Searched refs:hw_points (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_cm_common.c | 346 uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; in cm_helper_translate_curve_to_hw_format() local 353 hw_points = 0; in cm_helper_translate_curve_to_hw_format() 393 hw_points += (1 << seg_distr[k]); in cm_helper_translate_curve_to_hw_format() 403 if (j == hw_points - 1) in cm_helper_translate_curve_to_hw_format() 419 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm_helper_translate_curve_to_hw_format() 420 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in cm_helper_translate_curve_to_hw_format() 421 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in cm_helper_translate_curve_to_hw_format() 423 rgb_resulted[hw_points].red = rgb_resulted[hw_points - 1].red; in cm_helper_translate_curve_to_hw_format() 424 rgb_resulted[hw_points].green = rgb_resulted[hw_points - 1].green; in cm_helper_translate_curve_to_hw_format() 425 rgb_resulted[hw_points].blue = rgb_resulted[hw_points - 1].blue; in cm_helper_translate_curve_to_hw_format() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_cm_common.c | 120 uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; in cm3_helper_translate_curve_to_hw_format() local 127 hw_points = 0; in cm3_helper_translate_curve_to_hw_format() 168 hw_points += (1 << seg_distr[k]); in cm3_helper_translate_curve_to_hw_format() 178 if (j == hw_points) in cm3_helper_translate_curve_to_hw_format() 191 rgb_resulted[hw_points].red = output_tf->tf_pts.red[start_index]; in cm3_helper_translate_curve_to_hw_format() 192 rgb_resulted[hw_points].green = output_tf->tf_pts.green[start_index]; in cm3_helper_translate_curve_to_hw_format() 193 rgb_resulted[hw_points].blue = output_tf->tf_pts.blue[start_index]; in cm3_helper_translate_curve_to_hw_format() 195 rgb_resulted[hw_points+1].red = rgb_resulted[hw_points].red; in cm3_helper_translate_curve_to_hw_format() 196 rgb_resulted[hw_points+1].green = rgb_resulted[hw_points].green; in cm3_helper_translate_curve_to_hw_format() 197 rgb_resulted[hw_points+1].blue = rgb_resulted[hw_points].blue; in cm3_helper_translate_curve_to_hw_format() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
D | dce110_hwseq.c | 447 uint32_t i, j, k, seg_distr[NUMBER_REGIONS], increment, start_index, hw_points; in dce110_translate_regamma_to_hw_format() local 454 hw_points = 0; in dce110_translate_regamma_to_hw_format() 498 hw_points += (1 << seg_distr[k]); in dce110_translate_regamma_to_hw_format() 508 if (j == hw_points - 1) in dce110_translate_regamma_to_hw_format() 519 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in dce110_translate_regamma_to_hw_format() 520 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in dce110_translate_regamma_to_hw_format() 521 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in dce110_translate_regamma_to_hw_format() 538 y_r = rgb_resulted[hw_points - 1].red; in dce110_translate_regamma_to_hw_format() 539 y_g = rgb_resulted[hw_points - 1].green; in dce110_translate_regamma_to_hw_format() 540 y_b = rgb_resulted[hw_points - 1].blue; in dce110_translate_regamma_to_hw_format() [all …]
|