Skip to content

Commit 85ca6e8

Browse files
Ilya Bakoulinalexdeucher
authored andcommitted
drm/amd/display: Fix shaper using bad LUT params
[Why] LUT params are not cleared after setting blend TF, which can lead to same params being used for the shaper, if the shaper func is bypassed. [How] Set lut_params to NULL after program_1dlut. Reviewed-by: Krunoslav Kovac <krunoslav.kovac@amd.com> Acked-by: Roman Li <roman.li@amd.com> Signed-off-by: Ilya Bakoulin <ilya.bakoulin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 8d0f4cd commit 85ca6e8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ bool dcn32_set_mcm_luts(
494494
}
495495
}
496496
result = mpc->funcs->program_1dlut(mpc, lut_params, mpcc_id);
497+
lut_params = NULL;
497498

498499
// Shaper
499500
if (plane_state->in_shaper_func) {

0 commit comments

Comments
 (0)