drm/amd/display: Don't program bypass on linear regamma LUT
authorHarry Wentland <harry.wentland@amd.com>
Thu, 12 Apr 2018 20:37:09 +0000 (16:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:21 +0000 (13:43 -0500)
commitc2f84e03a01ad09f18f9f132f8b1e78f699a5494
tree9f6690906ab05e862aba5b93944efa94247ed8d8
parent2c773de2ecb8c327f2448bd1eecad224e9227087
drm/amd/display: Don't program bypass on linear regamma LUT

Even though this is required for degamma since DCE HW only supports a
couple predefined LUTs we can just program the LUT directly for regamma.

This fixes dark screens which occurs when we program regamma to bypass
while degamma is using srgb LUT.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c