summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorRobert Fekete <robert.fekete@linux.intel.com>2015-11-02 16:14:08 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-24 11:41:53 +0100
commitd9c382421771560c6b282c100752a3c194cb5827 (patch)
treedfe17089d5573a28ecf286140bff24284b7e123e /include/drm/drm_crtc.h
parentcb1197173f46003616bcacbe2fea55ec3dd90e91 (diff)
downloadop-kernel-dev-d9c382421771560c6b282c100752a3c194cb5827.zip
op-kernel-dev-d9c382421771560c6b282c100752a3c194cb5827.tar.gz
drm: Describe the Rotation property bits.
Adds clarification of the rotation property bits. I.e. rotation is counter clockwise and that reflects are applied before any rotation. v2: Refer to the define names instead of the property values. Signed-off-by: Robert Fekete <robert.fekete@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 3f0c690..f47cefa 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -85,7 +85,11 @@ static inline uint64_t I642U64(int64_t val)
return (uint64_t)*((uint64_t *)&val);
}
-/* rotation property bits */
+/*
+ * Rotation property bits. DRM_ROTATE_<degrees> rotates the image by the
+ * specified amount in degrees in counter clockwise direction. DRM_REFLECT_X and
+ * DRM_REFLECT_Y reflects the image along the specified axis prior to rotation
+ */
#define DRM_ROTATE_MASK 0x0f
#define DRM_ROTATE_0 0
#define DRM_ROTATE_90 1
OpenPOWER on IntegriCloud