diff options
author | Joshua Ashton <joshua@froggi.es> | 2023-01-10 22:50:42 +0000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-17 16:11:52 -0500 |
commit | 1def6539028ce6ff7f222730b6bd748391be555c (patch) | |
tree | d4ed67301138367ea8574b2e97686b212675d589 /samples | |
parent | 766f179238639bb0fa8b4fd35c25b352e475363a (diff) | |
download | linux-1def6539028ce6ff7f222730b6bd748391be555c.tar.gz |
drm/amd/display: Fix COLOR_SPACE_YCBCR2020_TYPE matrix
The YCC conversion matrix for RGB -> COLOR_SPACE_YCBCR2020_TYPE is
missing the values for the fourth column of the matrix.
The fourth column of the matrix is essentially just a value that is
added given that the color is 3 components in size.
These values are needed to bias the chroma from the [-1, 1] -> [0, 1]
range.
This fixes color being very green when using Gamescope HDR on HDMI
output which prefers YCC 4:4:4.
Fixes: 40df2f809e8f ("drm/amd/display: color space ycbcr709 support")
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions