]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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>
Thu, 19 Apr 2018 15:19:11 +0000 (10:19 -0500)
commitd78fd7255881645fc645e23145d469385227170d
tree00b7aa0f55a454d729617eb678ef0e4310456378
parenta10beabba213924d876f2d10ca9351aeab93f58a
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