Commit d5c9cb6e authored by Roman Li's avatar Roman Li Committed by Alex Deucher

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: default avatarRoman Li <>
Reviewed-by: default avatarTony Cheng <>
Acked-by: default avatarHarry Wentland <>
Signed-off-by: default avatarAlex Deucher <>
parent 0a24bfcb
......@@ -4717,7 +4717,8 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
} else {
for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
if (!drm_atomic_crtc_needs_modeset(new_crtc_state))
if (!drm_atomic_crtc_needs_modeset(new_crtc_state) &&
if (!new_crtc_state->enable)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment