Patch "drm: mali-dp: Fix destination size handling when rotating" has been added to the 4.9-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm: mali-dp: Fix destination size handling when rotating
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-mali-dp-fix-destination-size-handling-when-rotating.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Oct 5 10:28:31 CEST 2017
From: Brian Starkey <[email protected]>
Date: Wed, 7 Dec 2016 13:17:21 +0000
Subject: drm: mali-dp: Fix destination size handling when rotating
From: Brian Starkey <[email protected]>
[ Upstream commit edabb3c4cd2d035bc93a3d67b25a304ea6217301 ]
The destination rectangle provided by userspace in the CRTC_X/Y/W/H properties is already expressed as the dimensions after rotation. This means we shouldn't swap the width and height ourselves when a 90/270 degree rotation is requested, so remove the code doing the swap.
--- drivers/gpu/drm/arm/malidp_planes.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/gpu/drm/arm/malidp_planes.c +2 -7
@@ -150,13 +150,8 @@ static void malidp_de_plane_update(struc/* convert src values from Q16 fixed point to integer */ src_w = plane->state->src_w >>16 ; src_h = plane->state->src_h >>16 ; -if (plane->state->rotation &MALIDP_ROTATED_MASK ) { - dest_w = plane->state->crtc_h; - dest_h = plane->state->crtc_w; - }else { - dest_w = plane->state->crtc_w; - dest_h = plane->state->crtc_h; - } + dest_w = plane->state->crtc_w; + dest_h = plane->state->crtc_h;malidp_hw_write (mp->hwdev, format_id, mp->layer->base);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/drm-mali-dp-fix-destination-size-handling-when-rotating.patch queue-4.9/drm-mali-dp-fix-transposed-horizontal-vertical-flip.patch