1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/modules/inc
Ma Hanghong b1a98cf89a drm/amd/display: Wrong colorimetry workaround
[Why]
For FreeSync HDR, native color space flag in AMD VSIF(BT.709) should be
used when intepreting content and color space flag in VSC or AVI
infoFrame should be ignored. However, it turned out some userspace
application still use color flag in VSC or AVI infoFrame which is
incorrect.

[How]
Transfer function is used when building the VSC and AVI infoFrame. Set
colorimetry to BT.709 when all the following match:

1. Pixel format is YCbCr;
2. In FreeSync 2 HDR, color is COLOR_SPACE_2020_YCBCR;
3. Transfer function is TRANSFER_FUNC_GAMMA_22;

Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Ma Hanghong <hanghong.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-10-27 14:45:14 -04:00
..
mod_freesync.h drm/amd/display: Add vrr_active_variable to dc_stream_update 2022-06-14 21:38:41 -04:00
mod_hdcp.h drm/amd/display: Fix HDCP SEND AKI INIT error 2022-03-25 12:40:26 -04:00
mod_info_packet.h drm/amd/display: Wrong colorimetry workaround 2022-10-27 14:45:14 -04:00
mod_shared.h drm/amd/display: Change infopacket type programming 2020-04-22 18:11:47 -04:00
mod_stats.h drm/amd/display: Handle persistence in DM 2020-05-28 14:00:47 -04:00
mod_vmid.h drm/amd/display: add missing mod_vmid destructor 2019-06-22 09:34:14 -05:00