summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-07-21 14:24:35 -0700
committerKeith Packard <keithp@keithp.com>2013-07-21 14:27:55 -0700
commite7e6090fdcf5db9265d7704bf4607d0a7776b16a (patch)
treeae1d1e4f332212930f74de3901a1ecfd1b6f6c8c
parentad530acaf241d8aab3eddbb795196d8f26d56d61 (diff)
Add DRM_MODE_PAGE_FLIP_ASYNC definedri3
This exposes the kernel API for performing asynchronous flips Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--include/drm/drm.h1
-rw-r--r--include/drm/drm_mode.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h
index 71a2ac10..3fa6688d 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -781,6 +781,7 @@ struct drm_event_vblank {
#define DRM_CAP_DUMB_PREFER_SHADOW 0x4
#define DRM_CAP_PRIME 0x5
#define DRM_CAP_TIMESTAMP_MONOTONIC 0x6
+#define DRM_CAP_ASYNC_PAGE_FLIP 0x7
#define DRM_PRIME_CAP_IMPORT 0x1
#define DRM_PRIME_CAP_EXPORT 0x2
diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h
index d41d76bc..ae80c5b2 100644
--- a/include/drm/drm_mode.h
+++ b/include/drm/drm_mode.h
@@ -414,7 +414,8 @@ struct drm_mode_crtc_lut {
};
#define DRM_MODE_PAGE_FLIP_EVENT 0x01
-#define DRM_MODE_PAGE_FLIP_FLAGS DRM_MODE_PAGE_FLIP_EVENT
+#define DRM_MODE_PAGE_FLIP_ASYNC 0x02
+#define DRM_MODE_PAGE_FLIP_FLAGS (DRM_MODE_PAGE_FLIP_EVENT|DRM_MODE_PAGE_FLIP_ASYNC)
/*
* Request a page flip on the specified crtc.