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

Commit 1ebd398b authored by Adrian Salido-Moreno's avatar Adrian Salido-Moreno Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: pipe: fix solid fill image programming



When programming pipe in solid fill, the image properties should be
programmed to make sure that scaling blocks are bypassed. In order to
do this we need to program out resolution to same size as source.

Change-Id: If0a9182ca738e753f99a5b5e9cc20bc76b75238a
Signed-off-by: default avatarAdrian Salido-Moreno <adrianm@codeaurora.org>
parent 3feb0d1e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1479,6 +1479,17 @@ static int mdss_mdp_image_setup(struct mdss_mdp_pipe *pipe,
	}
	img_size = (height << 16) | width;

	/*
	 * in solid fill, there is no src rectangle, but hardware needs to
	 * be programmed same as dst to avoid issues in scaling blocks
	 */
	if (data == NULL) {
		src_size = dst_size;
		img_size = dst_size;
		src_xy = 0;
		decimation = 0;
	}

	if (IS_MDSS_MAJOR_MINOR_SAME(mdata->mdp_rev, MDSS_MDP_HW_REV_103) &&
		pipe->bwc_mode) {
		/* check source dimensions change */