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: ad49f8602f ("drm/arm: Add support for Mali Display Processors")

Signed-off-by: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
This commit is contained in:
Brian Starkey 2016-12-07 13:20:28 +00:00 committed by Liviu Dudau
parent edabb3c4cd
commit 7916efe5b5
1 changed files with 2 additions and 2 deletions

View File

@ -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