Skip to contentSkip to conversation

drm/amd/display: remove assert around dpp_base replacement

PATCH In review Melissa Wen 2 participants 2 messages Jan 16 – Feb 3

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: remove assert around dpp_base replacement

There is nothing wrong if in_shaper_func type is DISTRIBUTED POINTS. Remove the assert placed for a TODO to avoid misinterpretations.

---
 drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c +0 -1
index 3cd44c6602b3..4dfd22bc00c4 100644
@@ -507,7 +507,6 @@ bool dcn32_set_mcm_luts(
 		lut_params = &plane_state->in_shaper_func.pwl;
 	else if (plane_state->in_shaper_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
 		// TODO: dpp_base replace
-		ASSERT(false);
 		cm3_helper_translate_curve_to_hw_format(&plane_state->in_shaper_func,
 				&dpp_base->shaper_params, true);
 		lut_params = &dpp_base->shaper_params;
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Melissa Wen

There is nothing wrong if in_shaper_func type is DISTRIBUTED POINTS. Remove the assert placed for a TODO to avoid misinterpretations.

---
  drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c +0 -1
index 3cd44c6602b3..4dfd22bc00c4 100644
@@ -507,7 +507,6 @@ bool dcn32_set_mcm_luts(
  		lut_params = &plane_state->in_shaper_func.pwl;
  	else if (plane_state->in_shaper_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
  		// TODO: dpp_base replace
-		ASSERT(false);
  		cm3_helper_translate_curve_to_hw_format(&plane_state->in_shaper_func,
  				&dpp_base->shaper_params, true);
  		lut_params = &dpp_base->shaper_params;