aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 2cae7511d11f..5da4e900eb0c 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1522,6 +1522,12 @@ extern int drm_format_plane_cpp(uint32_t format, int plane);
1522extern int drm_format_horz_chroma_subsampling(uint32_t format); 1522extern int drm_format_horz_chroma_subsampling(uint32_t format);
1523extern int drm_format_vert_chroma_subsampling(uint32_t format); 1523extern int drm_format_vert_chroma_subsampling(uint32_t format);
1524extern const char *drm_get_format_name(uint32_t format); 1524extern const char *drm_get_format_name(uint32_t format);
1525
1526static inline bool drm_rotation_90_or_270(unsigned int rotation)
1527{
1528 return rotation & (BIT(DRM_ROTATE_90) | BIT(DRM_ROTATE_270));
1529}
1530
1525extern struct drm_property *drm_mode_create_rotation_property(struct drm_device *dev, 1531extern struct drm_property *drm_mode_create_rotation_property(struct drm_device *dev,
1526 unsigned int supported_rotations); 1532 unsigned int supported_rotations);
1527extern unsigned int drm_rotation_simplify(unsigned int rotation, 1533extern unsigned int drm_rotation_simplify(unsigned int rotation,