From: Joshua Ashton Date: Thu, 2 Nov 2023 04:21:55 +0000 (+0000) Subject: drm/amd/display: Set color_mgmt_changed to true on unsuspend X-Git-Tag: for-linus-6.9~25^2~3^2~14 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2eb9dd497a698dc384c0dd3e0311d541eb2e13dd;p=users%2Fdwmw2%2Flinux.git drm/amd/display: Set color_mgmt_changed to true on unsuspend Otherwise we can end up with a frame on unsuspend where color management is not applied when userspace has not committed themselves. Fixes re-applying color management on Steam Deck/Gamescope on S3 resume. Signed-off-by: Joshua Ashton Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- 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 6d2f60c61decc..f3f94d109726d 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3029,6 +3029,7 @@ static int dm_resume(void *handle) dc_stream_release(dm_new_crtc_state->stream); dm_new_crtc_state->stream = NULL; } + dm_new_crtc_state->base.color_mgmt_changed = true; } for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) {