Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Fix S3 gamma corruption.

On S3 resume gamma is corrupted since no gamma programming
took place.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Andrey Grodzovsky and committed by
Alex Deucher
90114434 4bd3ae5f

+2
+2
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 1120 1120 1121 1121 stream_update->src = dc_stream->src; 1122 1122 stream_update->dst = dc_stream->dst; 1123 + stream_update->out_transfer_func = dc_stream->out_transfer_func; 1123 1124 1124 1125 for (i = 0; i < new_surface_count; i++) { 1125 1126 updates[i].surface = new_surfaces[i]; 1126 1127 updates[i].gamma = 1127 1128 (struct dc_gamma *)new_surfaces[i]->gamma_correction; 1129 + updates[i].in_transfer_func = new_surfaces[i]->in_transfer_func; 1128 1130 flip_addr[i].address = new_surfaces[i]->address; 1129 1131 flip_addr[i].flip_immediate = new_surfaces[i]->flip_immediate; 1130 1132 plane_info[i].color_space = new_surfaces[i]->color_space;