Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Set correct EOTF and Gamut flag in VRR info

[Why] FreeSync always use G2.2 EOTF and Native gamut
[How] Set EOTF and Gamut flags accordingly

Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Mike Hsieh <Mike.Hsieh@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mike Hsieh and committed by
Alex Deucher
52b5432c 01c0c124

+4 -4
+4 -4
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
··· 688 688 if (app_tf != TRANSFER_FUNC_UNKNOWN) { 689 689 infopacket->valid = true; 690 690 691 - infopacket->sb[6] |= 0x08; // PB6 = [Bit 3 = Native Color Active] 692 - 693 - if (app_tf == TRANSFER_FUNC_GAMMA_22) { 694 - infopacket->sb[9] |= 0x04; // PB6 = [Bit 2 = Gamma 2.2 EOTF Active] 691 + if (app_tf != TRANSFER_FUNC_PQ2084) { 692 + infopacket->sb[6] |= 0x08; // PB6 = [Bit 3 = Native Color Active] 693 + if (app_tf == TRANSFER_FUNC_GAMMA_22) 694 + infopacket->sb[9] |= 0x04; // PB6 = [Bit 2 = Gamma 2.2 EOTF Active] 695 695 } 696 696 } 697 697 }