drm: Add DRM_ROTATE_MASK and DRM_REFLECT_MASK
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 1 Oct 2015 07:00:57 +0000 (10:00 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 Oct 2015 13:32:42 +0000 (15:32 +0200)
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>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
include/drm/drm_crtc.h

index 683f142..33ddedd 100644 (file)
@@ -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