diff options
| -rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 1a7e96ee6051..27579443cdc5 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |||
| @@ -4717,8 +4717,12 @@ next_crtc: | |||
| 4717 | update_stream_scaling_settings( | 4717 | update_stream_scaling_settings( |
| 4718 | &new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream); | 4718 | &new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream); |
| 4719 | 4719 | ||
| 4720 | /* Color managment settings */ | 4720 | /* |
| 4721 | if (dm_new_crtc_state->base.color_mgmt_changed) { | 4721 | * Color management settings. We also update color properties |
| 4722 | * when a modeset is needed, to ensure it gets reprogrammed. | ||
| 4723 | */ | ||
| 4724 | if (dm_new_crtc_state->base.color_mgmt_changed || | ||
| 4725 | drm_atomic_crtc_needs_modeset(new_crtc_state)) { | ||
| 4722 | ret = amdgpu_dm_set_regamma_lut(dm_new_crtc_state); | 4726 | ret = amdgpu_dm_set_regamma_lut(dm_new_crtc_state); |
| 4723 | if (ret) | 4727 | if (ret) |
| 4724 | goto fail; | 4728 | goto fail; |
