Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d621f970 authored by Brian Starkey's avatar Brian Starkey Committed by Greg Kroah-Hartman
Browse files

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




[ Upstream commit 7916efe5b57505080b3cebf5bdb228b4eda008ea ]

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: default avatarBrian Starkey <brian.starkey@arm.com>
Signed-off-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c6737116
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -184,9 +184,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;

	/* set the 'enable layer' bit */
	val |= LAYER_ENABLE;