techpack: display: Temporary disable dimlayer exposure while in HBM
This commit is contained in:
parent
da82ae5c24
commit
6207c41cc9
@ -240,7 +240,7 @@ int dsi_display_set_backlight(struct drm_connector *connector,
|
||||
|
||||
#ifdef CONFIG_DRM_SDE_EXPO
|
||||
if(panel->dimlayer_exposure) {
|
||||
if (bl_lvl && !panel->mi_cfg.in_aod) {
|
||||
if (bl_lvl && !panel->mi_cfg.in_aod && !panel->mi_cfg.fod_hbm_enabled) {
|
||||
bl_temp = expo_map_dim_level((u32)bl_temp, dsi_display);
|
||||
}
|
||||
}
|
||||
|
@ -2632,6 +2632,11 @@ static int sde_crtc_config_exposure_dim_layer(struct drm_crtc_state *crtc_state,
|
||||
}
|
||||
|
||||
|
||||
if (!alpha || panel->mi_cfg.in_aod || panel->mi_cfg.fod_hbm_enabled) {
|
||||
cstate->exposure_dim_layer = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ((stage + SDE_STAGE_0) >= kms->catalog->mixer[0].sblk->maxblendstages) {
|
||||
return -EINVAL;
|
||||
}
|
||||
@ -4901,7 +4906,7 @@ static int sde_crtc_exposure_atomic_check(struct sde_crtc_state *cstate,
|
||||
struct dsi_display *dsi_display = get_main_display();
|
||||
struct dsi_panel *panel = dsi_display->panel;
|
||||
|
||||
if (!panel->dimlayer_exposure || panel->mi_cfg.in_aod) {
|
||||
if (!panel->dimlayer_exposure || panel->mi_cfg.in_aod || panel->mi_cfg.fod_hbm_enabled) {
|
||||
cstate->exposure_dim_layer = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user