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)
commite10777a67963163055f9ca43292cb21ff52967d2
treeceec592831c016126820a86999806e0c52255b78
parent610c4974ad172dad884244763125f8cd6585c503
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