Skip to content

Commit

Permalink
drm/mali-dp: Rectify the width and height passed to rotmem_required()
Browse files Browse the repository at this point in the history
The width and height needs to be swapped

Signed-off-by: Ayan Kumar halder <[email protected]>
Reviewed-by: Brian Starkey <[email protected]>
Reviewed-by: Alexandru Gheorghe <[email protected]>
Acked-by: Liviu Dudau <[email protected]>
[rebased on top of v4.18-rc1]
Signed-off-by: Liviu Dudau <[email protected]>
  • Loading branch information
ayahal01 authored and dliviu committed Jun 18, 2018
1 parent ad7fda2 commit c6cf387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/arm/malidp_planes.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ static int malidp_de_plane_check(struct drm_plane *plane,
if (state->rotation & MALIDP_ROTATED_MASK) {
int val;

val = mp->hwdev->hw->rotmem_required(mp->hwdev, state->crtc_h,
state->crtc_w,
val = mp->hwdev->hw->rotmem_required(mp->hwdev, state->crtc_w,
state->crtc_h,
fb->format->format);
if (val < 0)
return val;
Expand Down

0 comments on commit c6cf387

Please sign in to comment.