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

Commit d7654ef6 authored by Ujwal Patel's avatar Ujwal Patel
Browse files

msm: mdss: restrict decimation when layer format is macro-tile



When layer format is macro-tile, decimation cannot be supported. Add the
necessary checks to fail HW configuration for such use-case.

Change-Id: I68adbcdf8014f9ad528e945928f309b221c6dcfd
Signed-off-by: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent f79896a4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -158,6 +158,9 @@ int mdss_mdp_overlay_req_check(struct msm_fb_data_type *mfd,
		} else if (req->flags & MDP_BWC_EN) {
			pr_err("Decimation can't be enabled with BWC\n");
			return -EINVAL;
		} else if (fmt->tile) {
			pr_err("Decimation can't be enabled with MacroTile format\n");
			return -EINVAL;
		}
	}

@@ -276,7 +279,7 @@ static int __mdp_pipe_tune_perf(struct mdss_mdp_pipe *pipe)
		 * mdp clock requirement
		 */
		if (mdata->has_decimation && (pipe->vert_deci < MAX_DECIMATION)
			&& !pipe->bwc_mode)
			&& !pipe->bwc_mode && !pipe->src_fmt->tile)
			pipe->vert_deci++;
		else
			return -EPERM;