[Mesa-dev] [PATCH 1/3] dri_interface: Introduce __DRI_IMAGE_USE_SCANOUT_ROTATION_* flags (v3)

Vivek Kasireddy vivek.kasireddy at intel.com
Fri Nov 20 19:38:02 PST 2015


These flags can be used by the DRI driver to set additional requirements
such as tiling while creating buffers.

v2: Added a brief comment to explain the rotation orientation.

v3: Corrected a typo in the comment added in v2 and removed an empty
    line.

Cc: Michel Danzer <michel at daenzer.net>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy at intel.com>
---
 include/GL/internal/dri_interface.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 6bbd3fa..2fba46f 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1100,6 +1100,14 @@ struct __DRIdri2ExtensionRec {
 #define __DRI_IMAGE_USE_SCANOUT		0x0002
 #define __DRI_IMAGE_USE_CURSOR		0x0004 /* Depricated */
 #define __DRI_IMAGE_USE_LINEAR		0x0008
+/**
+ * Setting a rotation angle of 90 or 270 would result in the scanout
+ * buffer being rotated in a counter clockwise manner. This is the
+ * expected behavior for ensuring XRandR compliance.
+ */
+#define __DRI_IMAGE_USE_SCANOUT_ROTATION_90     0x0010
+#define __DRI_IMAGE_USE_SCANOUT_ROTATION_180    0x0020
+#define __DRI_IMAGE_USE_SCANOUT_ROTATION_270    0x0040
 
 
 /**
-- 
2.4.3



More information about the mesa-dev mailing list