]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: Set color_mgmt_changed to true on unsuspend
authorJoshua Ashton <joshua@froggi.es>
Thu, 2 Nov 2023 04:21:55 +0000 (04:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:48:46 +0000 (09:48 +0200)
[ Upstream commit 2eb9dd497a698dc384c0dd3e0311d541eb2e13dd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 9044214dfdbdfdda66d62056a667d6c5eee44617..c4ba397f8cef56ac433a6096a209428d8e2f6b3d 100644 (file)
@@ -3010,6 +3010,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) {