]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix OGAM LUT calculation precision
authorFelipe <Felipe.Clark@amd.com>
Mon, 30 Nov 2020 22:38:02 +0000 (17:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2020 16:34:35 +0000 (11:34 -0500)
commit6cb5a24f30cbd4991c67d605fa4d30150dcfca38
treeceec592831c016126820a86999806e0c52255b78
parent37a6e9416a7fc148c698c9e80e4621e009773526
drm/amd/display: Fix OGAM LUT calculation precision

[Why]
The OGAM LUT precision was accumulating too much error
in the higher end.

[How]
Instead of calculating all points of the LUT in relation
to the previous ones, perform a full calculation in one
of the intermediate segments to stop error propagation.

Signed-off-by: Felipe Clark <Felipe.Clark@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c