Skip to content

Commit 6e7a417

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 <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 93522c1 commit 6e7a417

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,6 +3046,7 @@ static int dm_resume(void *handle)
30463046
dc_stream_release(dm_new_crtc_state->stream);
30473047
dm_new_crtc_state->stream = NULL;
30483048
}
3049+
dm_new_crtc_state->base.color_mgmt_changed = true;
30493050
}
30503051

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

0 commit comments

Comments
 (0)