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())