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

Commit 1ccb10a1 authored by Dhaval Patel's avatar Dhaval Patel Committed by Matt Wagantall
Browse files

msm: mdss: fix z order for thulium target



Thulium target supports 8 layers z ordering for
MDP composition. Update MDP driver accordingly to
handle the layer z-orders.

Change-Id: I08fe1dfb6964a83eed6b1b7a2dfa86046db6f423
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent ab10cfe8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -951,6 +951,7 @@ static void mdss_mdp_hw_rev_caps_init(struct mdss_data_type *mdata)
{
	switch (mdata->mdp_rev) {
	case MDSS_MDP_HW_REV_105:
	case MDSS_MDP_HW_REV_107:
	case MDSS_MDP_HW_REV_109:
		mdss_set_quirk(mdata, MDSS_QUIRK_BWCPANIC);
		mdata->max_target_zorder = 7; /* excluding base layer */
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ static int __layer_param_check(struct msm_fb_data_type *mfd,
	}
	min_src_size = fmt->is_yuv ? 2 : 1;

	if (layer->z_order >= mdata->max_target_zorder) {
	if (layer->z_order >= (mdata->max_target_zorder + MDSS_MDP_STAGE_0)) {
		pr_err("zorder %d out of range\n", layer->z_order);
		return -EINVAL;
	}