Skip to content

Commit 2eb9dd4

Browse files
misyltoadalexdeucher
authored andcommitted
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>
1 parent ed30a4a commit 2eb9dd4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,6 +3029,7 @@ static int dm_resume(void *handle)
30293029
dc_stream_release(dm_new_crtc_state->stream);
30303030
dm_new_crtc_state->stream = NULL;
30313031
}
3032+
dm_new_crtc_state->base.color_mgmt_changed = true;
30323033
}
30333034

30343035
for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) {

0 commit comments

Comments
 (0)