All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm: Add DRM_ROTATE_MASK and DRM_REFLECT_MASK
@ 2015-10-01  7:00 Joonas Lahtinen
  2015-10-01  7:00 ` [PATCH 2/2] drm: Use " Joonas Lahtinen
  0 siblings, 1 reply; 3+ messages in thread
From: Joonas Lahtinen @ 2015-10-01  7:00 UTC (permalink / raw)
  To: Direct Rendering Infrastructure - Development

Makes it cleaner to separate the two from rotation variable.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
 include/drm/drm_crtc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 683f142..33ddedd 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -86,10 +86,12 @@ static inline uint64_t I642U64(int64_t val)
 }
 
 /* rotation property bits */
+#define DRM_ROTATE_MASK 0x0f
 #define DRM_ROTATE_0	0
 #define DRM_ROTATE_90	1
 #define DRM_ROTATE_180	2
 #define DRM_ROTATE_270	3
+#define DRM_REFLECT_MASK (~DRM_ROTATE_MASK)
 #define DRM_REFLECT_X	4
 #define DRM_REFLECT_Y	5
 
-- 
2.4.3

_______________________________________________
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

end of thread, other threads:[~2015-10-01  7:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01  7:00 [PATCH 1/2] drm: Add DRM_ROTATE_MASK and DRM_REFLECT_MASK Joonas Lahtinen
2015-10-01  7:00 ` [PATCH 2/2] drm: Use " Joonas Lahtinen
2015-10-01  7:27   ` Ville Syrjälä

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.