]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: CS_TFM_1D only applied post EOTF
authorKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Thu, 16 May 2019 15:14:55 +0000 (11:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 May 2019 15:39:33 +0000 (10:39 -0500)
commit9b7cd4dd39d55d7de157ae061eee249f8be5249d
tree276a06dede5649113c971b67550bcc02b7358ec9
parent249498a28b712b3323242e9ba189e2a1ce08d747
drm/amd/display: CS_TFM_1D only applied post EOTF

[Why]
There's some unnecessary mem allocation for CS_TFM_ID. What's worse, it
depends on LUT size and since it's 4K for CS_TFM_1D, it is 16x bigger
than in regular case when it's actually needed. This leads to some
crashes in stress conditions.

[How]
Skip ramp combining designed for RGB256 and DXGI gamma with CS_TFM_1D.

Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@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