aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Paul2015-07-14 14:43:20 -0500
committerJohn Stultz2018-05-02 13:07:00 -0500
commit755140590075bb8509b35ecb1d0a0f9f28761ddb (patch)
treeee902e35ac53ce0c45249f8f73a95a1ffe42424c /include
parentdffc3a32a1faa02f8a8f4b3015fd59fe8a228fba (diff)
downloadexternal-libgbm-755140590075bb8509b35ecb1d0a0f9f28761ddb.tar.gz
external-libgbm-755140590075bb8509b35ecb1d0a0f9f28761ddb.tar.xz
external-libgbm-755140590075bb8509b35ecb1d0a0f9f28761ddb.zip
libdrm: Add rotation property fields
From drm_crtc.h, for use with the plane "rotation" property NOTE: These are legacy definitions for old code, similar DRM_MODE_* mask values are defined in the upstream code. Change-Id: I9240dede6a53817e6d8cedb31f6877312078b5ab Signed-off-by: Sean Paul <seanpaul@chromium.org> [jstultz: Added note about legacy definitions ] Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_mode.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h
index 5f9fadbd..74368de3 100644
--- a/include/drm/drm_mode.h
+++ b/include/drm/drm_mode.h
@@ -173,6 +173,19 @@ extern "C" {
173 DRM_MODE_REFLECT_X | \ 173 DRM_MODE_REFLECT_X | \
174 DRM_MODE_REFLECT_Y) 174 DRM_MODE_REFLECT_Y)
175 175
176
177/*
178 * Legacy definitions for old code that doesn't use
179 * the above mask definitions. Don't use in future code.
180 */
181/* rotation property bits */
182#define DRM_ROTATE_0 0
183#define DRM_ROTATE_90 1
184#define DRM_ROTATE_180 2
185#define DRM_ROTATE_270 3
186#define DRM_REFLECT_X 4
187#define DRM_REFLECT_Y 5
188
176/* Content Protection Flags */ 189/* Content Protection Flags */
177#define DRM_MODE_CONTENT_PROTECTION_UNDESIRED 0 190#define DRM_MODE_CONTENT_PROTECTION_UNDESIRED 0
178#define DRM_MODE_CONTENT_PROTECTION_DESIRED 1 191#define DRM_MODE_CONTENT_PROTECTION_DESIRED 1