summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-06-03 12:42:49 +1000
committerDave Airlie <airlied@linux.ie>2008-07-01 17:55:17 +1000
commit409d6818eba8a2e2938e0f9281c9318928ba5a35 (patch)
treea80cde0285b33c27c2cdb17702768acd5c3bbe83
parentf892b4adf4021e82a7d4f2eb06256d6f4200ed15 (diff)
drm: sg alloc should write back the handle to userspacelibdrm-2.3.1
(cherry picked from commit d5ae19ebcf2dc6402872e0575b5786b6e8117b6f)
-rw-r--r--shared-core/drm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index 0ae04b28..82a486f7 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -701,7 +701,7 @@ struct drm_set_version {
#define DRM_IOCTL_AGP_BIND DRM_IOW( 0x36, struct drm_agp_binding)
#define DRM_IOCTL_AGP_UNBIND DRM_IOW( 0x37, struct drm_agp_binding)
-#define DRM_IOCTL_SG_ALLOC DRM_IOW( 0x38, struct drm_scatter_gather)
+#define DRM_IOCTL_SG_ALLOC DRM_IOWR(0x38, struct drm_scatter_gather)
#define DRM_IOCTL_SG_FREE DRM_IOW( 0x39, struct drm_scatter_gather)
#define DRM_IOCTL_WAIT_VBLANK DRM_IOWR(0x3a, union drm_wait_vblank)