aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/arm
diff options
context:
space:
mode:
authorBrian Starkey <brian.starkey@arm.com>2016-12-07 13:14:51 +0000
committerLiviu Dudau <Liviu.Dudau@arm.com>2017-01-23 09:46:24 +0000
commitb2a2ddb0e2a1617d79ad77b14be547c989665d0c (patch)
tree9d28726fc44794740637f0d49a4b5c41fffaf472 /drivers/gpu/drm/arm
parentdrm: mali-dp: Check more use cases in the plane's ->atomic_check() (diff)
downloadlinux-dev-b2a2ddb0e2a1617d79ad77b14be547c989665d0c.tar.xz
linux-dev-b2a2ddb0e2a1617d79ad77b14be547c989665d0c.zip
drm: mali-dp: Don't force source size == crtc size
Remove the check enforcing that src_w and src_h match crtc_w and crtc_h, as this prevents rotation from working. The check was intended to disallow scaling, but drm_plane_helper_check_state() does that for us, while also taking rotation into account, so the removed check was redundant in any case. Signed-off-by: Brian Starkey <brian.starkey@arm.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Diffstat (limited to 'drivers/gpu/drm/arm')
-rw-r--r--drivers/gpu/drm/arm/malidp_planes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c
index f684fe4a80d2..69eba71253c9 100644
--- a/drivers/gpu/drm/arm/malidp_planes.c
+++ b/drivers/gpu/drm/arm/malidp_planes.c
@@ -135,8 +135,7 @@ static int malidp_de_plane_check(struct drm_plane *plane,
if ((state->crtc_w > mp->hwdev->max_line_size) ||
(state->crtc_h > mp->hwdev->max_line_size) ||
(state->crtc_w < mp->hwdev->min_line_size) ||
- (state->crtc_h < mp->hwdev->min_line_size) ||
- (state->crtc_w != src_w) || (state->crtc_h != src_h))
+ (state->crtc_h < mp->hwdev->min_line_size))
return -EINVAL;
/* packed RGB888 / BGR888 can't be rotated or flipped */