public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v2] drm: Describe the Rotation property bits.
@ 2015-11-02 15:14 Robert Fekete
  2015-11-02 15:18 ` Ville Syrjälä
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Fekete @ 2015-11-02 15:14 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx

    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>
---
 include/drm/drm_crtc.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 3f0c6909dda1..f47cefa37ef3 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
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] drm: Describe the Rotation property bits.
  2015-11-02 15:14 [PATCH v2] drm: Describe the Rotation property bits Robert Fekete
@ 2015-11-02 15:18 ` Ville Syrjälä
  2015-11-16 16:10   ` [Intel-gfx] " Daniel Vetter
  0 siblings, 1 reply; 3+ messages in thread
From: Ville Syrjälä @ 2015-11-02 15:18 UTC (permalink / raw)
  To: Robert Fekete; +Cc: intel-gfx, dri-devel

On Mon, Nov 02, 2015 at 04:14:08PM +0100, Robert Fekete wrote:
>     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>

> ---
>  include/drm/drm_crtc.h | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> index 3f0c6909dda1..f47cefa37ef3 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
> -- 
> 1.9.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Intel-gfx] [PATCH v2] drm: Describe the Rotation property bits.
  2015-11-02 15:18 ` Ville Syrjälä
@ 2015-11-16 16:10   ` Daniel Vetter
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2015-11-16 16:10 UTC (permalink / raw)
  To: Ville Syrjälä; +Cc: intel-gfx, dri-devel

On Mon, Nov 02, 2015 at 05:18:36PM +0200, Ville Syrjälä wrote:
> On Mon, Nov 02, 2015 at 04:14:08PM +0100, Robert Fekete wrote:
> >     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>

Applied to drm-misc, thanks.
-Daniel

> 
> > ---
> >  include/drm/drm_crtc.h | 6 +++++-
> >  1 file changed, 5 insertions(+), 1 deletion(-)
> > 
> > diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> > index 3f0c6909dda1..f47cefa37ef3 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
> > -- 
> > 1.9.1
> > 
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 
> -- 
> Ville Syrjälä
> Intel OTC
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-16 16:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-02 15:14 [PATCH v2] drm: Describe the Rotation property bits Robert Fekete
2015-11-02 15:18 ` Ville Syrjälä
2015-11-16 16:10   ` [Intel-gfx] " Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox