From 8068c2e119ba16c017e5a5f443fac5a55edbee65 Mon Sep 17 00:00:00 2001 From: KezhenLiu Date: Wed, 13 Mar 2024 12:12:52 +0800 Subject: [PATCH] [Encode] enable Freq Boost in gen12 remote gaming scenario enable Freq Boost in gen12 when binding with remote gaming scenario info --- .../agnostic/gen12/codec/hal/codechal_vdenc_hevc_g12.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/media_driver/agnostic/gen12/codec/hal/codechal_vdenc_hevc_g12.cpp b/media_driver/agnostic/gen12/codec/hal/codechal_vdenc_hevc_g12.cpp index b8e7c2297fd..b0a44fc6da5 100644 --- a/media_driver/agnostic/gen12/codec/hal/codechal_vdenc_hevc_g12.cpp +++ b/media_driver/agnostic/gen12/codec/hal/codechal_vdenc_hevc_g12.cpp @@ -7783,6 +7783,11 @@ MOS_STATUS CodechalVdencHevcStateG12::SendPrologWithFrameTracking( CODECHAL_ENCODE_CHK_NULL_RETURN(cmdBuffer); + CODECHAL_ENCODE_CHK_NULL_RETURN(m_hevcSeqParams); + + // Set flag bIsMdfLoad in remote gaming scenario to boost GPU frequency for low latency + cmdBuffer->Attributes.bFrequencyBoost = (m_hevcSeqParams->ScenarioInfo == ESCENARIO_REMOTEGAMING); + MOS_GPU_CONTEXT gpuContext = m_osInterface->pfnGetGpuContext(m_osInterface); if (UseRenderCommandBuffer())