Commit 52b5432c authored by Mike Hsieh's avatar Mike Hsieh Committed by Alex Deucher
Browse files

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: default avatarKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: default avatarAlan Liu <HaoPing.Liu@amd.com>
Signed-off-by: default avatarMike Hsieh <Mike.Hsieh@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 01c0c124
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -688,9 +688,9 @@ static void build_vrr_infopacket_fs2_data(enum color_transfer_func app_tf,
	if (app_tf != TRANSFER_FUNC_UNKNOWN) {
		infopacket->valid = true;

		if (app_tf != TRANSFER_FUNC_PQ2084) {
			infopacket->sb[6] |= 0x08;  // PB6 = [Bit 3 = Native Color Active]

		if (app_tf == TRANSFER_FUNC_GAMMA_22) {
			if (app_tf == TRANSFER_FUNC_GAMMA_22)
				infopacket->sb[9] |= 0x04;  // PB6 = [Bit 2 = Gamma 2.2 EOTF Active]
		}
	}