@@ -430,7 +430,7 @@ void dcn401_populate_mcm_luts(struct dc *dc,
430430 if (mcm_luts .lut1d_func -> type == TF_TYPE_HWPWL )
431431 m_lut_params .pwl = & mcm_luts .lut1d_func -> pwl ;
432432 else if (mcm_luts .lut1d_func -> type == TF_TYPE_DISTRIBUTED_POINTS ) {
433- rval = cm3_helper_translate_curve_to_hw_format (
433+ rval = cm3_helper_translate_curve_to_hw_format (mpc -> ctx ,
434434 mcm_luts .lut1d_func ,
435435 & dpp_base -> regamma_params , false);
436436 m_lut_params .pwl = rval ? & dpp_base -> regamma_params : NULL ;
@@ -450,7 +450,7 @@ void dcn401_populate_mcm_luts(struct dc *dc,
450450 m_lut_params .pwl = & mcm_luts .shaper -> pwl ;
451451 else if (mcm_luts .shaper -> type == TF_TYPE_DISTRIBUTED_POINTS ) {
452452 ASSERT (false);
453- rval = cm3_helper_translate_curve_to_hw_format (
453+ rval = cm3_helper_translate_curve_to_hw_format (mpc -> ctx ,
454454 mcm_luts .shaper ,
455455 & dpp_base -> regamma_params , true);
456456 m_lut_params .pwl = rval ? & dpp_base -> regamma_params : NULL ;
@@ -627,8 +627,9 @@ bool dcn401_set_mcm_luts(struct pipe_ctx *pipe_ctx,
627627 if (plane_state -> blend_tf .type == TF_TYPE_HWPWL )
628628 lut_params = & plane_state -> blend_tf .pwl ;
629629 else if (plane_state -> blend_tf .type == TF_TYPE_DISTRIBUTED_POINTS ) {
630- rval = cm3_helper_translate_curve_to_hw_format (& plane_state -> blend_tf ,
631- & dpp_base -> regamma_params , false);
630+ rval = cm3_helper_translate_curve_to_hw_format (plane_state -> ctx ,
631+ & plane_state -> blend_tf ,
632+ & dpp_base -> regamma_params , false);
632633 lut_params = rval ? & dpp_base -> regamma_params : NULL ;
633634 }
634635 result = mpc -> funcs -> program_1dlut (mpc , lut_params , mpcc_id );
@@ -639,8 +640,9 @@ bool dcn401_set_mcm_luts(struct pipe_ctx *pipe_ctx,
639640 lut_params = & plane_state -> in_shaper_func .pwl ;
640641 else if (plane_state -> in_shaper_func .type == TF_TYPE_DISTRIBUTED_POINTS ) {
641642 // TODO: dpp_base replace
642- rval = cm3_helper_translate_curve_to_hw_format (& plane_state -> in_shaper_func ,
643- & dpp_base -> shaper_params , true);
643+ rval = cm3_helper_translate_curve_to_hw_format (plane_state -> ctx ,
644+ & plane_state -> in_shaper_func ,
645+ & dpp_base -> shaper_params , true);
644646 lut_params = rval ? & dpp_base -> shaper_params : NULL ;
645647 }
646648 result &= mpc -> funcs -> program_shaper (mpc , lut_params , mpcc_id );
@@ -674,7 +676,7 @@ bool dcn401_set_output_transfer_func(struct dc *dc,
674676 params = & stream -> out_transfer_func .pwl ;
675677 else if (pipe_ctx -> stream -> out_transfer_func .type ==
676678 TF_TYPE_DISTRIBUTED_POINTS &&
677- cm3_helper_translate_curve_to_hw_format (
679+ cm3_helper_translate_curve_to_hw_format (stream -> ctx ,
678680 & stream -> out_transfer_func ,
679681 & mpc -> blender_params , false))
680682 params = & mpc -> blender_params ;
0 commit comments