drm: mali-dp: Fix destination size handling when rotating
authorBrian Starkey <brian.starkey@arm.com>
Wed, 7 Dec 2016 13:17:21 +0000 (13:17 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 23 Jan 2017 09:46:24 +0000 (09:46 +0000)
commitedabb3c4cd2d035bc93a3d67b25a304ea6217301
tree58d5d77e2ffa050be9c9accb4792dc10a0b1110d
parentb2a2ddb0e2a1617d79ad77b14be547c989665d0c
drm: mali-dp: Fix destination size handling when rotating

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.

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>
drivers/gpu/drm/arm/malidp_planes.c