Skip to contentSkip to conversation

Header: Add rotation property fields

PATCH Superseded Robert Foss 3 participants 3 messages Apr 13, 2017 – Apr 18, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Header: Add rotation property fields

From: Sean Paul <[email protected]>

From drm_crtc.h, for use with the plane "rotation" property.

---
 include/drm/drm.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/drm/drm.h +8 -0
index 1e7a4bc7a505..656c90045161 100644
@@ -74,6 +74,14 @@ extern "C" {
 #define _DRM_LOCK_IS_CONT(lock)	   ((lock) & _DRM_LOCK_CONT)
 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT))
 
+/* Rotation property bits */
+#define DRM_ROTATE_0		0
+#define DRM_ROTATE_90		1
+#define DRM_ROTATE_180		2
+#define DRM_ROTATE_270		3
+#define DRM_REFLECT_X		4
+#define DRM_REFLECT_Y		5
+
 typedef unsigned int drm_context_t;
 typedef unsigned int drm_drawable_t;
 typedef unsigned int drm_magic_t;
Signature · 6 lines
2.11.0.453.g787f75f05

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw

Hi Robert,

Quoted 6 lines · Robert Foss

From: Sean Paul <[email protected]>

From drm_crtc.h, for use with the plane "rotation" property.

Thanks for the patch; fwiw, please feel free to add

Quoted 26 lines
---
 include/drm/drm.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/drm/drm.h +8 -1
index 1e7a4bc7a505..656c90045161 100644
@@ -74,6 +74,14 @@ extern "C" {
 #define _DRM_LOCK_IS_CONT(lock)           ((lock) & _DRM_LOCK_CONT)
 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT))
 
+/* Rotation property bits */
+#define DRM_ROTATE_0           0
+#define DRM_ROTATE_90          1
+#define DRM_ROTATE_180         2
+#define DRM_ROTATE_270         3
+#define DRM_REFLECT_X          4
+#define DRM_REFLECT_Y          5
+
 typedef unsigned int drm_context_t;
 typedef unsigned int drm_drawable_t;
 typedef unsigned int drm_magic_t;
--

2.11.0.453.g787f75f05

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Best,
Sumit.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 11 lines · Sumit Semwal

Hi Robert,

Quoted 6 lines · Robert Foss

From: Sean Paul <[email protected]>

From drm_crtc.h, for use with the plane "rotation" property.

Thanks for the patch; fwiw, please feel free to add

Please take a look at include/drm/README and follow the process in there. -Daniel

Quoted 38 lines
Quoted 27 lines
---
 include/drm/drm.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/drm/drm.h +8 -1
index 1e7a4bc7a505..656c90045161 100644
@@ -74,6 +74,14 @@ extern "C" {
 #define _DRM_LOCK_IS_CONT(lock)           ((lock) & _DRM_LOCK_CONT)
 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT))
 
+/* Rotation property bits */
+#define DRM_ROTATE_0           0
+#define DRM_ROTATE_90          1
+#define DRM_ROTATE_180         2
+#define DRM_ROTATE_270         3
+#define DRM_REFLECT_X          4
+#define DRM_REFLECT_Y          5
+
 typedef unsigned int drm_context_t;
 typedef unsigned int drm_drawable_t;
 typedef unsigned int drm_magic_t;
--

2.11.0.453.g787f75f05

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Best,
Sumit.
_______________________________________________
dri-devel mailing list
[email protected]
https://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]
https://lists.freedesktop.org/mailman/listinfo/dri-devel