From 2ad068005aa9785dd86e0023354f68e970f04e9f Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 21 Sep 2004 05:13:21 +0000 Subject: Make DRM permanent maps match broken X behavior. X is mapping regions that are both smaller and larger than what the hardware supports. If DRM tries to fix these requests X will fail. --- linux/drm_bufs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'linux') diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index f48ef6f1..5058a1d3 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -190,6 +190,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp, _entry->map->offset, _entry->map->size, _entry->map->type ); if ( _entry->map && map->type == _entry->map->type && map->offset == _entry->map->offset ) { + _entry->map->size = map->size; DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); map = _entry->map; DRM_DEBUG( "Found existing: offset = 0x%08lx, size = 0x%08lx, type = %d\n", -- cgit v1.2.3