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 <joshua@froggi.es>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Joshua Ashton 2023-11-02 04:21:55 +00:00 committed by Alex Deucher
parent ed30a4a51b
commit 2eb9dd497a
1 changed files with 1 additions and 0 deletions

View File

@ -3029,6 +3029,7 @@ static int dm_resume(void *handle)
dc_stream_release(dm_new_crtc_state->stream); dc_stream_release(dm_new_crtc_state->stream);
dm_new_crtc_state->stream = NULL; 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) { for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) {