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

Commit 71944813 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: fix sw calculation of interlace x offset"

parents b64d2322 b0533818
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -289,9 +289,7 @@ static int mdss_mdp_overlay_rotator_setup(struct msm_fb_data_type *mfd,
	if (req->flags & MDP_DEINTERLACE) {
		rot->flags |= MDP_DEINTERLACE;
		rot->src_rect.h /= 2;
		rot->src_rect.y /= 2;
		if (rot->src_rect.y % 2)
			rot->src_rect.y++;
		rot->src_rect.y = DIV_ROUND_UP(rot->src_rect.y, 2);
	}

	ret = mdss_mdp_rotator_setup(rot);
@@ -583,13 +581,12 @@ static int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd,

	if (pipe->flags & MDP_DEINTERLACE) {
		if (pipe->flags & MDP_SOURCE_ROTATED_90) {
			pipe->src.x = DIV_ROUND_UP(pipe->src.x, 2);
			pipe->src.w /= 2;
			pipe->img_width /= 2;
		} else {
			pipe->src.h /= 2;
			pipe->src.y /= 2;
			if (pipe->src.y % 2)
				pipe->src.y++;
			pipe->src.y = DIV_ROUND_UP(pipe->src.y, 2);
		}
	}