diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-03-05 16:02:40 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-03-05 16:02:40 +0000 |
commit | 971c2f8ad582bd0d6b97ed503c9e5abaa9feee02 (patch) | |
tree | 971aa7c11bc908e0a20049762af52eef106f576e | |
parent | d1774bb44cdc1b5ce606c299b8eea1793f4352e3 (diff) |
allow dristat to find out whether AGP is write-combined or not.tdfx-3-1-0-20010306-freeze
-rw-r--r-- | linux-core/drm_bufs.c | 1 | ||||
-rw-r--r-- | linux/drm_bufs.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index 38ea1ff0..b7e27d17 100644 --- a/linux-core/drm_bufs.c +++ b/linux-core/drm_bufs.c @@ -128,6 +128,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp, #if __REALLY_HAVE_AGP case _DRM_AGP: map->offset = map->offset + dev->agp->base; + map->mtrr = dev->agp->agp_mtrr; /* for getmap */ break; #endif default: diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index 38ea1ff0..b7e27d17 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -128,6 +128,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp, #if __REALLY_HAVE_AGP case _DRM_AGP: map->offset = map->offset + dev->agp->base; + map->mtrr = dev->agp->agp_mtrr; /* for getmap */ break; #endif default: |