diff options
author | Brian Starkey <brian.starkey@arm.com> | 2016-12-07 08:20:28 -0500 |
---|---|---|
committer | Liviu Dudau <Liviu.Dudau@arm.com> | 2017-01-23 04:46:24 -0500 |
commit | 7916efe5b57505080b3cebf5bdb228b4eda008ea (patch) | |
tree | d34f1d69e4757da52fbf879762f895bfe4997b5e | |
parent | edabb3c4cd2d035bc93a3d67b25a304ea6217301 (diff) |
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: ad49f8602fe8 ("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>
-rw-r--r-- | drivers/gpu/drm/arm/malidp_planes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c index 8c5ce36147f3..629f634872a4 100644 --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c | |||
@@ -221,9 +221,9 @@ static void malidp_de_plane_update(struct drm_plane *plane, | |||
221 | if (plane->state->rotation & DRM_ROTATE_MASK) | 221 | if (plane->state->rotation & DRM_ROTATE_MASK) |
222 | val = ilog2(plane->state->rotation & DRM_ROTATE_MASK) << LAYER_ROT_OFFSET; | 222 | val = ilog2(plane->state->rotation & DRM_ROTATE_MASK) << LAYER_ROT_OFFSET; |
223 | if (plane->state->rotation & DRM_REFLECT_X) | 223 | if (plane->state->rotation & DRM_REFLECT_X) |
224 | val |= LAYER_V_FLIP; | ||
225 | if (plane->state->rotation & DRM_REFLECT_Y) | ||
226 | val |= LAYER_H_FLIP; | 224 | val |= LAYER_H_FLIP; |
225 | if (plane->state->rotation & DRM_REFLECT_Y) | ||
226 | val |= LAYER_V_FLIP; | ||
227 | 227 | ||
228 | /* | 228 | /* |
229 | * always enable pixel alpha blending until we have a way to change | 229 | * always enable pixel alpha blending until we have a way to change |