linux/drivers/gpu/drm/amd/display/dc/dcn30
Melissa Wen 4278d65a41 drm/amd/display: use halving distribution for all encode-to-linear curves
In encode-to-linear conversions, LUT entries should be uniformly
distributed across the input range: non-linear encodings are already
approximately perceptually uniform, so every input code carries the same
weight. A fixed count per region does the opposite, concentrating
entries on the darker values and leaving few for the bright end, whereas
halving distribution spaces all 256 entries uniformly. This holds for
any encoded input, so remove the PQ/sRGB condition from commit
"drm/amd/display: use halving distribution for PQ/sRGB linearizing LUT"
and apply halving to all encode-to-linear operations
(pre-defined TF or user LUTs).

It fixes the following IGT kms_colorop subtests:
- plane-XR30-XR30-srgb_inv_eotf_lut-srgb_eotf_lut
- plane-XR30-XR30-gamma_2_2-gamma_2_2_inv-gamma_2_2

Fixes: a71d2b051f ("drm/amd/display: use halving distribution for PQ/sRGB linearizing LUT")
Reviewed-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 6df7c9c307e72e7f13829e94edc89134f0764775)
2026-09-02 16:54:09 -04:00
..
dcn30_afmt.c drm/amd/display: Remove unused local variables 2023-02-23 17:36:00 -05:00
dcn30_afmt.h drm/amd/display: Add VPG and AFMT low power support for DCN3.1 2021-09-14 15:57:11 -04:00
dcn30_cm_common.c drm/amd/display: use halving distribution for all encode-to-linear curves 2026-09-02 16:54:09 -04:00
dcn30_mmhubbub.c drm/amd/display: Update MCIF_ADDR macro to address IGT DWB regression 2026-04-28 14:27:35 -04:00
dcn30_mmhubbub.h drm/amd/display: rework macros for DWB register access 2022-11-15 13:35:15 -05:00
dcn30_opp.h drm/amd/display: Add DCN3 OPP header 2020-07-01 01:59:14 -04:00
dcn30_vpg.c drm/amd/display: Fix issue with dynamic bpp change for DCN3x 2021-09-23 15:17:30 -04:00
dcn30_vpg.h drm/amd/display: refactor vpg.h 2024-04-09 22:16:02 -04:00
Makefile drm/amd/display: Refactoring HPO 2024-07-23 17:35:45 -04:00