summary refs log tree commit diff
path: root/Kbuild
diff options
context:
space:
mode:
authorKrunoslav Kovac <krunoslav.kovac@amd.com>2023-08-08 16:38:56 -0400
committerCristian Ciocaltea <cristian.ciocaltea@collabora.com>2023-09-11 21:18:11 +0300
commit7ad1b3d182d0020034b35cde9d7eb7b1f80481fa (patch)
treece08c9a22b5c8dd48dcf884bea11d92d37cc5481 /Kbuild
parent03e32af8b40060d89c48004717057274213a2720 (diff)
downloadlinux-7ad1b3d182d0020034b35cde9d7eb7b1f80481fa.tar.gz
drm/amd/display: PQ regamma end point
[WHY & HOW]
PQ has a fixed range of 0-10,000 nits.
Using 1=80 nits normalization, PQ should map to 1.0 for X=125.0
HW LUT used for interpolation does not have X=125 so it's interpolated.
However, we cap Y to 1 for all X>=125.

The closest larger HW point is 128.
What we want is Y(128) such that interpolation through 125 gives 1.0.
Such value is ~1.00256.
Another change is to hardcode PQ table, we pretty much always have 1=80
normalization so the table can be static.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Krunoslav Kovac <krunoslav.kovac@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 959d2fc47f14f7f5ab3f74530e80c9407ced91f2)
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions