mirror of
https://github.com/torvalds/linux.git
synced 2026-09-28 20:12:01 +02:00
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:
|
||
|---|---|---|
| .. | ||
| dcn30_afmt.c | ||
| dcn30_afmt.h | ||
| dcn30_cm_common.c | ||
| dcn30_mmhubbub.c | ||
| dcn30_mmhubbub.h | ||
| dcn30_opp.h | ||
| dcn30_vpg.c | ||
| dcn30_vpg.h | ||
| Makefile | ||