drm/amd/display: Implement custom degamma lut on dcn
authorDavid Francis <David.Francis@amd.com>
Thu, 12 Jul 2018 19:46:41 +0000 (15:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Aug 2018 19:35:25 +0000 (14:35 -0500)
commit78e4405cec6cb0780b27b222685dde33934b38e4
tree6fa8772651eff98d82abad618374a3117bc4a948
parentd90e9a3bf5e747f0e3b0c8bec96d8699493f63ab
drm/amd/display: Implement custom degamma lut on dcn

[Why]
Custom degamma lut functions are a feature we would
like to support on compatible hardware

[How]
In atomic check, convert from array of drm_color_lut to
dc_transfer_func.  On hardware commit, allow for possibility
of custom degamma.  Both are based on the equivalent
regamma pipeline.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/modules/color/color_gamma.c