mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-07 04:09:01 +02:00
Add AGP support to drm_addmap().
This commit is contained in:
parent
7822ca7a8f
commit
78325dacbe
1 changed files with 5 additions and 0 deletions
|
|
@ -105,6 +105,11 @@ int drm_addmap(dev_t kdev, u_long cmd, caddr_t data,
|
|||
dev->lock.hw_lock = map->handle; /* Pointer to lock */
|
||||
}
|
||||
break;
|
||||
#ifdef DRM_AGP
|
||||
case _DRM_AGP:
|
||||
map->offset = map->offset + dev->agp->base;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
drm_free(map, sizeof(*map), DRM_MEM_MAPS);
|
||||
DRM_DEBUG("bad type\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue