drm/amd/display: fix gamma not being applied correctly
authorMurton Liu <murton.liu@amd.com>
Wed, 17 Oct 2018 18:47:45 +0000 (14:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 20:27:36 +0000 (15:27 -0500)
commit8ce504b9389be846bcdf512ed5be8f661b3bf097
treeb5c7084c4ed852f9ae047543d703cfe6219a7b8c
parenteb6b29d62841ec38665840af4c443fbef85bf2ec
drm/amd/display: fix gamma not being applied correctly

[why]
Gamma was always being set as identity on SDR monitor,
leading to no changes in gamma. This caused nightlight to
not apply correctly.

[how]
Added a default gamma structure to compare against
in the sdr case.

Signed-off-by: Murton Liu <murton.liu@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/dc/dcn10/dcn10_hw_sequencer.c