]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Don't use ROM for output TF if GAMMA_CS_TFM_1D
authorHugo Hu <hugo.hu@amd.com>
Fri, 3 May 2019 07:36:29 +0000 (15:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 May 2019 15:39:29 +0000 (10:39 -0500)
commita2e644a0a1bfcf027ba826065ba282da83cd4332
tree82322d347fb455395acc98fd25c53d35fbd03e13
parent93923852e6aad544ce60003e0c883cc9cfae0cc1
drm/amd/display: Don't use ROM for output TF if GAMMA_CS_TFM_1D

We can’t use hardcoded SRGB ROM for output TF if we have GAMMA_CS_TFM_1D
(unless we know 1D LUT is identity), so we never want to return here early.
We apply the LUT part of ColorTransform3x4 only in apply_lut_1d() which is
called near the end of that function.

Signed-off-by: Hugo Hu <hugo.hu@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c