Commit 6b91a404 authored by Krunoslav Kovac's avatar Krunoslav Kovac Committed by Alex Deucher

drm/amd/display: Rename fs_params to hdr_tm_params

[Why&How]
Renaming structure to better indicate its meaning.
Signed-off-by: default avatarKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarAnson Jacob <Anson.Jacob@amd.com>
Acked-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Tested-by: default avatarDan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 553ef24d
...@@ -942,7 +942,7 @@ static void hermite_spline_eetf(struct fixed31_32 input_x, ...@@ -942,7 +942,7 @@ static void hermite_spline_eetf(struct fixed31_32 input_x,
static bool build_freesync_hdr(struct pwl_float_data_ex *rgb_regamma, static bool build_freesync_hdr(struct pwl_float_data_ex *rgb_regamma,
uint32_t hw_points_num, uint32_t hw_points_num,
const struct hw_x_point *coordinate_x, const struct hw_x_point *coordinate_x,
const struct freesync_hdr_tf_params *fs_params, const struct hdr_tm_params *fs_params,
struct calculate_buffer *cal_buffer) struct calculate_buffer *cal_buffer)
{ {
uint32_t i; uint32_t i;
...@@ -2027,7 +2027,7 @@ bool mod_color_calculate_degamma_params(struct dc_color_caps *dc_caps, ...@@ -2027,7 +2027,7 @@ bool mod_color_calculate_degamma_params(struct dc_color_caps *dc_caps,
static bool calculate_curve(enum dc_transfer_func_predefined trans, static bool calculate_curve(enum dc_transfer_func_predefined trans,
struct dc_transfer_func_distributed_points *points, struct dc_transfer_func_distributed_points *points,
struct pwl_float_data_ex *rgb_regamma, struct pwl_float_data_ex *rgb_regamma,
const struct freesync_hdr_tf_params *fs_params, const struct hdr_tm_params *fs_params,
uint32_t sdr_ref_white_level, uint32_t sdr_ref_white_level,
struct calculate_buffer *cal_buffer) struct calculate_buffer *cal_buffer)
{ {
...@@ -2106,7 +2106,7 @@ static bool calculate_curve(enum dc_transfer_func_predefined trans, ...@@ -2106,7 +2106,7 @@ static bool calculate_curve(enum dc_transfer_func_predefined trans,
bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf, bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf,
const struct dc_gamma *ramp, bool mapUserRamp, bool canRomBeUsed, const struct dc_gamma *ramp, bool mapUserRamp, bool canRomBeUsed,
const struct freesync_hdr_tf_params *fs_params, const struct hdr_tm_params *fs_params,
struct calculate_buffer *cal_buffer) struct calculate_buffer *cal_buffer)
{ {
struct dc_transfer_func_distributed_points *tf_pts = &output_tf->tf_pts; struct dc_transfer_func_distributed_points *tf_pts = &output_tf->tf_pts;
......
...@@ -76,7 +76,7 @@ struct regamma_lut { ...@@ -76,7 +76,7 @@ struct regamma_lut {
}; };
}; };
struct freesync_hdr_tf_params { struct hdr_tm_params {
unsigned int sdr_white_level; unsigned int sdr_white_level;
unsigned int min_content; // luminance in 1/10000 nits unsigned int min_content; // luminance in 1/10000 nits
unsigned int max_content; // luminance in nits unsigned int max_content; // luminance in nits
...@@ -108,7 +108,7 @@ void precompute_de_pq(void); ...@@ -108,7 +108,7 @@ void precompute_de_pq(void);
bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf, bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf,
const struct dc_gamma *ramp, bool mapUserRamp, bool canRomBeUsed, const struct dc_gamma *ramp, bool mapUserRamp, bool canRomBeUsed,
const struct freesync_hdr_tf_params *fs_params, const struct hdr_tm_params *fs_params,
struct calculate_buffer *cal_buffer); struct calculate_buffer *cal_buffer);
bool mod_color_calculate_degamma_params(struct dc_color_caps *dc_caps, bool mod_color_calculate_degamma_params(struct dc_color_caps *dc_caps,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment