]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/amd/display: Fix shaper using bad LUT params
authorIlya Bakoulin <ilya.bakoulin@amd.com>
Fri, 6 Oct 2023 19:57:28 +0000 (15:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Oct 2023 23:02:06 +0000 (19:02 -0400)
[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>
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c

index e837554b8a28cc4ff51a8ea145a3854a913a0e39..1b9f21fd4f1732989bc8b63e43cda974c254ff5a 100644 (file)
@@ -494,6 +494,7 @@ bool dcn32_set_mcm_luts(
                }
        }
        result = mpc->funcs->program_1dlut(mpc, lut_params, mpcc_id);
+       lut_params = NULL;
 
        // Shaper
        if (plane_state->in_shaper_func) {