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: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
8ca05c66ba
commit
ff8a520372
2 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue