[libdrm] Header: Add rotation property fields
diff mbox

Message ID 20170413161035.10503-1-robert.foss@collabora.com
State New
Headers show

Commit Message

Robert Foss April 13, 2017, 4:10 p.m. UTC
From: Sean Paul <seanpaul@chromium.org>

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

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
---
 include/drm/drm.h | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Sumit Semwal April 17, 2017, 3:19 p.m. UTC | #1
Hi Robert,

On 13 April 2017 at 21:40, Robert Foss <robert.foss@collabora.com> wrote:
> From: Sean Paul <seanpaul@chromium.org>
>
> From drm_crtc.h, for use with the plane "rotation" property.
>
> Signed-off-by: Sean Paul <seanpaul@chromium.org>
> Signed-off-by: Robert Foss <robert.foss@collabora.com>
Thanks for the patch; fwiw, please feel free to add
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>

> ---
>  include/drm/drm.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/include/drm/drm.h b/include/drm/drm.h
> index 1e7a4bc7a505..656c90045161 100644
> --- a/include/drm/drm.h
> +++ b/include/drm/drm.h
> @@ -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
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Best,
Sumit.
Daniel Vetter April 18, 2017, 6:42 a.m. UTC | #2
On Mon, Apr 17, 2017 at 08:49:50PM +0530, Sumit Semwal wrote:
> Hi Robert,
> 
> On 13 April 2017 at 21:40, Robert Foss <robert.foss@collabora.com> wrote:
> > From: Sean Paul <seanpaul@chromium.org>
> >
> > From drm_crtc.h, for use with the plane "rotation" property.
> >
> > Signed-off-by: Sean Paul <seanpaul@chromium.org>
> > Signed-off-by: Robert Foss <robert.foss@collabora.com>
> Thanks for the patch; fwiw, please feel free to add
> Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>

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

> 
> > ---
> >  include/drm/drm.h | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> >
> > diff --git a/include/drm/drm.h b/include/drm/drm.h
> > index 1e7a4bc7a505..656c90045161 100644
> > --- a/include/drm/drm.h
> > +++ b/include/drm/drm.h
> > @@ -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
> >
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
> 
> Best,
> Sumit.
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Patch
diff mbox

diff --git a/include/drm/drm.h b/include/drm/drm.h
index 1e7a4bc7a505..656c90045161 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -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;