Skip to content

Commit df44445

Browse files
atseanpaulckhu-mediatek
authored andcommitted
drm/mediatek: Support 180 degree rotation
Now that we support both reflections, we can expose 180 degree rotation and rely on the simplify routine to convert that into REFLECT_X | REFLECT_Y Signed-off-by: Sean Paul <[email protected]> Signed-off-by: CK Hu <[email protected]>
1 parent b368d3e commit df44445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/mediatek/mtk_disp_ovl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ static unsigned int mtk_ovl_layer_nr(struct mtk_ddp_comp *comp)
143143

144144
static unsigned int mtk_ovl_supported_rotations(struct mtk_ddp_comp *comp)
145145
{
146-
return DRM_MODE_ROTATE_0 | DRM_MODE_REFLECT_Y |
147-
DRM_MODE_REFLECT_X;
146+
return DRM_MODE_ROTATE_0 | DRM_MODE_ROTATE_180 |
147+
DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y;
148148
}
149149

150150
static int mtk_ovl_layer_check(struct mtk_ddp_comp *comp, unsigned int idx,

0 commit comments

Comments
 (0)