summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-04-02 14:11:50 +0100
committerDave Airlie <airlied@redhat.com>2012-05-18 11:12:16 +0100
commit4271a4090068f9dec3784205391c59540130b132 (patch)
tree39cf41a082b95eb33a0d352120fec4a49fcc8bbd /include/drm
parentcfcbd6d3de7f75f7c5a07d3fac8e1949bbbc79e0 (diff)
drm/prime: expose capability flags for userspace.
This lets the kernel tell userspace if the device supports prime import/export. This is useful for -modesetting at least, but would be nice for other drivers. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h
index 5b831df15bf..e51035a3757 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -777,6 +777,10 @@ struct drm_event_vblank {
#define DRM_CAP_VBLANK_HIGH_CRTC 0x2
#define DRM_CAP_DUMB_PREFERRED_DEPTH 0x3
#define DRM_CAP_DUMB_PREFER_SHADOW 0x4
+#define DRM_CAP_PRIME 0x5
+
+#define DRM_PRIME_CAP_IMPORT 0x1
+#define DRM_PRIME_CAP_EXPORT 0x2
/* typedef area */
#ifndef __KERNEL__