Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 809f3cbd authored by Alan Kwong's avatar Alan Kwong
Browse files

drm/msm/sde: set inline rotator output x & y offset to 0



Inline rotator output buffer x & y offset should be set to
0 instead of the relative x & y of the rotated buffer. Set
inline rotator output buffer offset to 0 so buffer size
validation matches allocation calculation.

Change-Id: I25314768dbd02037e3d088830d7c7b0e4cb0a99f
Signed-off-by: default avatarAlan Kwong <akwong@codeaurora.org>
parent 089d1cb5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1840,8 +1840,8 @@ static int sde_plane_rot_submit_command(struct drm_plane *plane,
	rot_cmd->src_rect_y = rstate->in_rot_rect.y1 >> 16;
	rot_cmd->src_rect_w = drm_rect_width(&rstate->in_rot_rect) >> 16;
	rot_cmd->src_rect_h = drm_rect_height(&rstate->in_rot_rect) >> 16;
	rot_cmd->dst_rect_x = rstate->out_rot_rect.x1 >> 16;
	rot_cmd->dst_rect_y = rstate->out_rot_rect.y1 >> 16;
	rot_cmd->dst_rect_x = 0;
	rot_cmd->dst_rect_y = 0;
	rot_cmd->dst_rect_w = drm_rect_width(&rstate->out_rot_rect) >> 16;
	rot_cmd->dst_rect_h = drm_rect_height(&rstate->out_rot_rect) >> 16;