summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce110
diff options
context:
space:
mode:
authorAnthony Koo2016-12-16 18:12:03 +0100
committerAlex Deucher2017-09-26 23:05:44 +0200
commite63d86dc9b59d72cf25c6bc75e641bceed4fcd40 (patch)
tree16e6ca0e6b6b495478b0a31147c9c8cfdf230160 /drivers/gpu/drm/amd/display/dc/dce110
parentdrm/amd/display: Refactor to move gamma correction to module (diff)
downloadkernel-qcow2-linux-e63d86dc9b59d72cf25c6bc75e641bceed4fcd40.tar.gz
kernel-qcow2-linux-e63d86dc9b59d72cf25c6bc75e641bceed4fcd40.tar.xz
kernel-qcow2-linux-e63d86dc9b59d72cf25c6bc75e641bceed4fcd40.zip
drm/amd/display: Implement PQ curve based on output transfer function
Refactor part 5 - Regamma programming should be dependent on Output transfer function type Program sRGB gamma or PQ transfer function based on output transfer function. Signed-off-by: Anthony Koo <anthony.koo@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce110')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
index 72017d5a8252..2f790753b559 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
@@ -303,7 +303,8 @@ static bool dce110_set_output_transfer_func(
opp->funcs->opp_power_on_regamma_lut(opp, true);
- if (ramp && calculate_regamma_params(regamma_params, ramp, surface)) {
+ if (ramp && calculate_regamma_params(
+ regamma_params, ramp, surface, stream)) {
opp->funcs->opp_program_regamma_pwl(opp, regamma_params);
opp->funcs->opp_set_regamma_mode(opp, OPP_REGAMMA_USER);
} else {