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.
main
Jon Smirl 2004-09-21 05:13:21 +00:00
parent 6f31c42fe9
commit 2ad068005a
2 changed files with 2 additions and 0 deletions

View File

@ -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",

View File

@ -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",