|
@@ -637,7 +637,7 @@ static bool dce110_set_output_transfer_func(
|
|
struct output_pixel_processor *opp = pipe_ctx->opp;
|
|
struct output_pixel_processor *opp = pipe_ctx->opp;
|
|
|
|
|
|
opp->funcs->opp_power_on_regamma_lut(opp, true);
|
|
opp->funcs->opp_power_on_regamma_lut(opp, true);
|
|
- opp->regamma_params->hw_points_num = GAMMA_HW_POINTS_NUM;
|
|
|
|
|
|
+ opp->regamma_params.hw_points_num = GAMMA_HW_POINTS_NUM;
|
|
|
|
|
|
if (stream->public.out_transfer_func &&
|
|
if (stream->public.out_transfer_func &&
|
|
stream->public.out_transfer_func->type ==
|
|
stream->public.out_transfer_func->type ==
|
|
@@ -646,8 +646,8 @@ static bool dce110_set_output_transfer_func(
|
|
TRANSFER_FUNCTION_SRGB) {
|
|
TRANSFER_FUNCTION_SRGB) {
|
|
opp->funcs->opp_set_regamma_mode(opp, OPP_REGAMMA_SRGB);
|
|
opp->funcs->opp_set_regamma_mode(opp, OPP_REGAMMA_SRGB);
|
|
} else if (dce110_translate_regamma_to_hw_format(
|
|
} else if (dce110_translate_regamma_to_hw_format(
|
|
- stream->public.out_transfer_func, opp->regamma_params)) {
|
|
|
|
- opp->funcs->opp_program_regamma_pwl(opp, opp->regamma_params);
|
|
|
|
|
|
+ stream->public.out_transfer_func, &opp->regamma_params)) {
|
|
|
|
+ opp->funcs->opp_program_regamma_pwl(opp, &opp->regamma_params);
|
|
opp->funcs->opp_set_regamma_mode(opp, OPP_REGAMMA_USER);
|
|
opp->funcs->opp_set_regamma_mode(opp, OPP_REGAMMA_USER);
|
|
} else {
|
|
} else {
|
|
opp->funcs->opp_set_regamma_mode(opp, OPP_REGAMMA_BYPASS);
|
|
opp->funcs->opp_set_regamma_mode(opp, OPP_REGAMMA_BYPASS);
|