Skip to content

Commit 6f395ce

Browse files
Ilya Bakoulinalexdeucher
authored andcommitted
drm/amd/display: Fix MPCC 1DLUT programming
[Why] Wrong function is used to translate LUT values to HW format, leading to visible artifacting in some cases. [How] Use the correct cm3_helper function. Cc: [email protected] # 6.1+ Reviewed-by: Krunoslav Kovac <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Ilya Bakoulin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent cab667a commit 6f395ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,7 @@ bool dcn32_set_mcm_luts(
487487
if (plane_state->blend_tf->type == TF_TYPE_HWPWL)
488488
lut_params = &plane_state->blend_tf->pwl;
489489
else if (plane_state->blend_tf->type == TF_TYPE_DISTRIBUTED_POINTS) {
490-
cm_helper_translate_curve_to_hw_format(plane_state->ctx,
491-
plane_state->blend_tf,
490+
cm3_helper_translate_curve_to_hw_format(plane_state->blend_tf,
492491
&dpp_base->regamma_params, false);
493492
lut_params = &dpp_base->regamma_params;
494493
}
@@ -503,8 +502,7 @@ bool dcn32_set_mcm_luts(
503502
else if (plane_state->in_shaper_func->type == TF_TYPE_DISTRIBUTED_POINTS) {
504503
// TODO: dpp_base replace
505504
ASSERT(false);
506-
cm_helper_translate_curve_to_hw_format(plane_state->ctx,
507-
plane_state->in_shaper_func,
505+
cm3_helper_translate_curve_to_hw_format(plane_state->in_shaper_func,
508506
&dpp_base->shaper_params, true);
509507
lut_params = &dpp_base->shaper_params;
510508
}

0 commit comments

Comments
 (0)