drm/amd/display: Fix blend LUT programming
authorIlya Bakoulin <ilya.bakoulin@amd.com>
Thu, 12 Oct 2023 16:21:34 +0000 (12:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Nov 2023 16:18:33 +0000 (12:18 -0400)
commit5d853ad5a866dd52ff519afd073f4156cca3cf7f
tree17b8763841331a5d80242e81f44235efbc7b44b8
parent995dedb7a4fa9703d1ae584914b0aa12b5da454c
drm/amd/display: Fix blend LUT programming

[Why]
LUT write index does not get reset to zero when writing the LUT values
for each separate RGB component, which results in wrong data for 2 of
the 3 components.

[How]
Reset LUT write index to zero before writing each component's data.

Reviewed-by: Krunoslav Kovac <krunoslav.kovac@amd.com>
Acked-by: Hersen Wu <hersenxs.wu@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/dcn30/dcn30_dpp.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c