mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 03:38:18 +02:00
amd/vpelib: refactor minor change
Make dscl_set_scaler_position be a function pointer Acked-by: Chuanyu Tseng <Chuanyu.Tseng@amd.com> Singed-off-by: Min-Hsuan You <Min-Hsuan.You@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39848>
This commit is contained in:
parent
3d750ed881
commit
e33bbe7ee7
4 changed files with 7 additions and 2 deletions
|
|
@ -893,6 +893,8 @@ void vpe10_dpp_set_hdr_multiplier(struct dpp *dpp, uint32_t multiplier);
|
|||
/*Program Scaler*/
|
||||
void vpe10_dpp_set_segment_scaler(struct dpp *dpp, const struct scaler_data *scl_data);
|
||||
|
||||
void vpe10_dpp_dscl_set_scaler_position(struct dpp *dpp, const struct scaler_data *scl_data);
|
||||
|
||||
void vpe10_dpp_set_frame_scaler(struct dpp *dpp, const struct scaler_data *scl_data);
|
||||
|
||||
/*Scalar helper functions*/
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ static struct dpp_funcs vpe10_dpp_funcs = {
|
|||
.get_optimal_number_of_taps = vpe10_dpp_get_optimal_number_of_taps,
|
||||
.dscl_calc_lb_num_partitions = vpe10_dscl_calc_lb_num_partitions,
|
||||
.set_segment_scaler = vpe10_dpp_set_segment_scaler,
|
||||
.dscl_set_scaler_position = vpe10_dpp_dscl_set_scaler_position,
|
||||
.set_frame_scaler = vpe10_dpp_set_frame_scaler,
|
||||
.get_line_buffer_size = vpe10_get_line_buffer_size,
|
||||
.validate_number_of_taps = vpe10_dpp_validate_number_of_taps,
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ void vpe10_dpp_dscl_set_scale_ratio(struct dpp *dpp, const struct scaler_data *d
|
|||
vpe_fixpt_u3d19(data->ratios.vert_c) << 5);
|
||||
}
|
||||
|
||||
static void dpp1_dscl_set_scaler_position(struct dpp *dpp, const struct scaler_data *data)
|
||||
void vpe10_dpp_dscl_set_scaler_position(struct dpp *dpp, const struct scaler_data *data)
|
||||
{
|
||||
uint32_t init_frac = 0;
|
||||
uint32_t init_int = 0;
|
||||
|
|
@ -312,7 +312,7 @@ void vpe10_dpp_set_segment_scaler(struct dpp *dpp, const struct scaler_data *scl
|
|||
if (dscl_mode == DSCL_MODE_DSCL_BYPASS)
|
||||
return;
|
||||
|
||||
dpp1_dscl_set_scaler_position(dpp, scl_data);
|
||||
dpp->funcs->dscl_set_scaler_position(dpp, scl_data);
|
||||
}
|
||||
|
||||
void vpe10_dpp_set_frame_scaler(struct dpp *dpp, const struct scaler_data *scl_data)
|
||||
|
|
|
|||
|
|
@ -106,6 +106,8 @@ struct dpp_funcs {
|
|||
/** scaler */
|
||||
void (*set_segment_scaler)(struct dpp *dpp, const struct scaler_data *scl_data);
|
||||
|
||||
void (*dscl_set_scaler_position)(struct dpp *dpp, const struct scaler_data *scl_data);
|
||||
|
||||
void (*set_frame_scaler)(struct dpp *dpp, const struct scaler_data *scl_data);
|
||||
|
||||
uint32_t (*get_line_buffer_size)(void);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue