提交 7916efe5 编写于 作者: B Brian Starkey 提交者: Liviu Dudau

drm: mali-dp: Fix transposed horizontal/vertical flip

The horizontal and vertical flip flags were the wrong way around,
causing reflect-x to result in reflect-y being applied and vice-versa.
Fix them.

Fixes: ad49f860 ("drm/arm: Add support for Mali Display Processors")
Signed-off-by: NBrian Starkey <brian.starkey@arm.com>
Signed-off-by: NLiviu Dudau <Liviu.Dudau@arm.com>
上级 edabb3c4
......@@ -221,9 +221,9 @@ static void malidp_de_plane_update(struct drm_plane *plane,
if (plane->state->rotation & DRM_ROTATE_MASK)
val = ilog2(plane->state->rotation & DRM_ROTATE_MASK) << LAYER_ROT_OFFSET;
if (plane->state->rotation & DRM_REFLECT_X)
val |= LAYER_V_FLIP;
if (plane->state->rotation & DRM_REFLECT_Y)
val |= LAYER_H_FLIP;
if (plane->state->rotation & DRM_REFLECT_Y)
val |= LAYER_V_FLIP;
/*
* always enable pixel alpha blending until we have a way to change
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册