summaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-05-08 10:44:02 -0700
committerKeith Packard <keithp@keithp.com>2008-05-08 10:44:02 -0700
commit9af4c497433398fa4576a7c1c31036448cf4f24c (patch)
tree796775f0bebcdedc7b28dbc2511bfc00797786fc /linux-core/drm_drv.c
parenteffc6d998f080ba6f9c81d1b4b0e75a42be0238e (diff)
[intel-gem] Move domains to relocation records. add set_domain ioctl.
Domain information is about buffer relationships, not buffer contents. That means a relocation contains the domain information as it knows how the source buffer references the target buffer. This also adds the set_domain ioctl so that user space can move buffers to the cpu domain.
Diffstat (limited to 'linux-core/drm_drv.c')
-rw-r--r--linux-core/drm_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 4c85cdf4..16c38dbe 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -158,6 +158,7 @@ static struct drm_ioctl_desc drm_ioctls[] = {
DRM_IOCTL_DEF(DRM_IOCTL_GEM_MMAP, drm_gem_mmap_ioctl, 0),
DRM_IOCTL_DEF(DRM_IOCTL_GEM_NAME, drm_gem_name_ioctl, DRM_AUTH),
DRM_IOCTL_DEF(DRM_IOCTL_GEM_OPEN, drm_gem_open_ioctl, DRM_AUTH),
+ DRM_IOCTL_DEF(DRM_IOCTL_GEM_SET_DOMAIN, drm_gem_set_domain_ioctl, DRM_AUTH),
};
#define DRM_CORE_IOCTL_COUNT ARRAY_SIZE( drm_ioctls )