drm/amd/display: programming last delta in output transfer function LUT to a correct...
authorVladimir Stempen <vladimir.stempen@amd.com>
Mon, 27 Jan 2020 18:07:45 +0000 (13:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:05:51 +0000 (11:05 -0500)
commitc11e57f0506b0a0335976f8165abd2684480ff0a
treee4cb0e9bc206502594fb477bb282c9f2602134ef
parentc01760d6616d832df3e0b5df4837a9aebe510348
drm/amd/display: programming last delta in output transfer function LUT to a correct value

[Why]
Currently DAL programs negative slope for the last point of output
transfer function curve.

[How]
Applying a check for the last PWL point for RGB values not to be
smaller than previous. If smaller, initialize the last point values
to a sum of previous PWL value and previous PWL delta;

Signed-off-by: Vladimir Stempen <vladimir.stempen@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c