drm: Describe the Rotation property bits.
Subsystems (2)
PATCH v2 1/1 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 <[email protected]>
--- include/drm/drm_crtc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
include/drm/drm_crtc.h +5 -1
@@ -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
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Robert Fekete
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 <[email protected]>
Reviewed-by Ville Syrjälä <[email protected]>
Quoted 28 lines
--- include/drm/drm_crtc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)include/drm/drm_crtc.h +5
-1@@ -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 1Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 9 lines · Ville Syrjälä
Quoted 6 lines · Robert Fekete
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 <[email protected]>Reviewed-by Ville Syrjälä <[email protected]>
Applied to drm-misc, thanks.
-Daniel
Quoted 37 lines
Quoted 29 lines
--- include/drm/drm_crtc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)include/drm/drm_crtc.h +5
-1@@ -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 1Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel