drm/amd/display: Fix distribution of segments for PQ
authorAnthony Koo <Anthony.Koo@amd.com>
Fri, 16 Dec 2016 17:12:03 +0000 (12:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:05:51 +0000 (17:05 -0400)
commit4a69244eb63794cc48ad3653e0f16f2eb096fcd7
tree6483aa1274f2fd4c891a976064d3db4ae80a951d
parentab3ee7a556343c9549ccbefb9d31039377806f28
drm/amd/display: Fix distribution of segments for PQ

For PQ case, redistribution of segments should be done differently
for FP16 case in order to handle content above FP16 value of 1.0

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>
drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c