Merge "msm: mdss: Fix 3D Mux when restoring from DSC on/off"
This commit is contained in:
commit
bac30a06da
1 changed files with 8 additions and 7 deletions
|
@ -3614,6 +3614,7 @@ int mdss_mdp_ctl_setup(struct mdss_mdp_ctl *ctl)
|
|||
u32 width, height;
|
||||
int split_fb, rc = 0;
|
||||
u32 max_mixer_width;
|
||||
bool dsc_merge_enabled = 0;
|
||||
struct mdss_panel_info *pinfo;
|
||||
|
||||
if (!ctl || !ctl->panel_data) {
|
||||
|
@ -3738,15 +3739,15 @@ int mdss_mdp_ctl_setup(struct mdss_mdp_ctl *ctl)
|
|||
ctl->mixer_right = NULL;
|
||||
}
|
||||
|
||||
if (ctl->mixer_right) {
|
||||
if (!is_dsc_compression(pinfo) ||
|
||||
(pinfo->dsc_enc_total == 1))
|
||||
ctl->opmode |= MDSS_MDP_CTL_OP_PACK_3D_ENABLE |
|
||||
MDSS_MDP_CTL_OP_PACK_3D_H_ROW_INT;
|
||||
} else {
|
||||
dsc_merge_enabled = is_dsc_compression(pinfo) &&
|
||||
(pinfo->dsc_enc_total == 2);
|
||||
|
||||
if (ctl->mixer_right && (!dsc_merge_enabled))
|
||||
ctl->opmode |= MDSS_MDP_CTL_OP_PACK_3D_ENABLE |
|
||||
MDSS_MDP_CTL_OP_PACK_3D_H_ROW_INT;
|
||||
else
|
||||
ctl->opmode &= ~(MDSS_MDP_CTL_OP_PACK_3D_ENABLE |
|
||||
MDSS_MDP_CTL_OP_PACK_3D_H_ROW_INT);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue