提交 edabb3c4 编写于 作者: B Brian Starkey 提交者: Liviu Dudau

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: ad49f860 ("drm/arm: Add support for Mali Display Processors")
Signed-off-by: NBrian Starkey <brian.starkey@arm.com>
Signed-off-by: NLiviu Dudau <Liviu.Dudau@arm.com>
上级 b2a2ddb0
...@@ -187,13 +187,8 @@ static void malidp_de_plane_update(struct drm_plane *plane, ...@@ -187,13 +187,8 @@ static void malidp_de_plane_update(struct drm_plane *plane,
/* convert src values from Q16 fixed point to integer */ /* convert src values from Q16 fixed point to integer */
src_w = plane->state->src_w >> 16; src_w = plane->state->src_w >> 16;
src_h = plane->state->src_h >> 16; src_h = plane->state->src_h >> 16;
if (plane->state->rotation & MALIDP_ROTATED_MASK) { dest_w = plane->state->crtc_w;
dest_w = plane->state->crtc_h; dest_h = plane->state->crtc_h;
dest_h = plane->state->crtc_w;
} else {
dest_w = plane->state->crtc_w;
dest_h = plane->state->crtc_h;
}
malidp_hw_write(mp->hwdev, ms->format, mp->layer->base); malidp_hw_write(mp->hwdev, ms->format, mp->layer->base);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册