linux-yocto/drivers/gpu/drm/amd/display/modules
Krunoslav Kovac 959d2fc47f 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>
2023-08-30 14:58:38 -04:00
..
color drm/amd/display: PQ regamma end point 2023-08-30 14:58:38 -04:00
freesync drm/amd/display: Limit Minimum FreeSync Refresh Rate 2023-06-15 10:44:49 -04:00
hdcp drm/amd/display: Drop CONFIG_DRM_AMD_DC_HDCP 2023-03-07 14:22:39 -05:00
inc drm/amd/display: Updating Video Format Fall Back Policy. 2023-02-28 14:29:35 -05:00
info_packet drm/amd/display: Update adaptive sync infopackets for replay 2023-08-15 18:08:30 -04:00
power drm/amd/display: Add Freesync Panel DM code 2023-08-07 17:14:07 -04:00
vmid drm/amd: Fix spelling typo in comments 2022-06-03 16:43:36 -04:00