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

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

Merge "mdss: ppp: Fix arithmetic error"

parents cd9f9682 4a05ba99
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -554,8 +554,9 @@ static void mdp3_ppp_tile_workaround(struct ppp_blit_op *blit_op,
			tmp_v =
				(MDP_SCALE_Q_FACTOR * blit_op->dst.roi.height) /
				MDP_MAX_X_SCALE_FACTOR +
				(MDP_SCALE_Q_FACTOR * blit_op->dst.roi.height) %
				MDP_MAX_X_SCALE_FACTOR ? 1 : 0;
				((MDP_SCALE_Q_FACTOR *
				blit_op->dst.roi.height) %
				MDP_MAX_X_SCALE_FACTOR ? 1 : 0);

			/* move x location as roi width gets bigger */
			blit_op->src.roi.x -= tmp_v - blit_op->src.roi.width;
@@ -565,8 +566,9 @@ static void mdp3_ppp_tile_workaround(struct ppp_blit_op *blit_op,
			tmp_v =
				(MDP_SCALE_Q_FACTOR * blit_op->dst.roi.height) /
				MDP_MIN_X_SCALE_FACTOR +
				(MDP_SCALE_Q_FACTOR * blit_op->dst.roi.height) %
				MDP_MIN_X_SCALE_FACTOR ? 1 : 0;
				((MDP_SCALE_Q_FACTOR *
				blit_op->dst.roi.height) %
				MDP_MIN_X_SCALE_FACTOR ? 1 : 0);

			/*
			 * we don't move x location for continuity of