aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Li <Roman.Li@amd.com>2017-11-16 17:22:39 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-11-28 17:56:54 -0500
commitd5c9cb6e00047b194d54cadc1e91156f2875a3e5 (patch)
tree759e4db9ac73603d4e1316853812f0f33c12d176
parent0a24bfcb2cc2cd161a0c8aae8fcbb58239d5da2b (diff)
drm/amd/display: fix gamma setting
Adding gamma changed check as condition for affected plane. We ignored adding plane as affected if modeset was not required. But for color management change we still need it. Signed-off-by: Roman Li <Roman.Li@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c3
1 files changed, 2 insertions, 1 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 3d6fbc38d95f..8d94dfc7ba3f 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -4717,7 +4717,8 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
4717 } 4717 }
4718 } else { 4718 } else {
4719 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { 4719 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
4720 if (!drm_atomic_crtc_needs_modeset(new_crtc_state)) 4720 if (!drm_atomic_crtc_needs_modeset(new_crtc_state) &&
4721 !new_crtc_state->color_mgmt_changed)
4721 continue; 4722 continue;
4722 4723
4723 if (!new_crtc_state->enable) 4724 if (!new_crtc_state->enable)