Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62209070 authored by Joonas Lahtinen's avatar Joonas Lahtinen Committed by Daniel Vetter
Browse files

drm: Add DRM_ROTATE_MASK and DRM_REFLECT_MASK



Makes it cleaner to separate the two from rotation variable.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 8f12a311
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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