Skip to content

Commit fa1644a

Browse files
Demon000onettboots
authored andcommitted
techpack: display: ignore CSC config on FOD layer
FOD performance decreases if the color of the icon is not exactly white, which happens when night light is enabled. Skip CSC for the FOD layer. Change-Id: Icb202690ec58e807b612fffe479c8e7c5c3b5d03 Signed-off-by: onettboots <blackcocopet@gmail.com>
1 parent 7103732 commit fa1644a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/msm/sde/sde_plane.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3951,7 +3951,9 @@ struct sde_csc_cfg *sde_plane_get_csc_cfg(struct drm_plane *plane)
39513951
psde = to_sde_plane(plane);
39523952
pstate = to_sde_plane_state(plane->state);
39533953

3954-
if (psde->csc_pcc_ptr)
3954+
if (sde_plane_is_fod_layer(&pstate->base))
3955+
csc_ptr = NULL;
3956+
else if (psde->csc_pcc_ptr)
39553957
csc_ptr = psde->csc_pcc_ptr;
39563958
else
39573959
csc_ptr = psde->csc_ptr;

0 commit comments

Comments
 (0)