From b5a1ea8ae52531bbb5f2063ada2db8f97da9d291 Mon Sep 17 00:00:00 2001 From: JayYang Date: Fri, 8 Sep 2023 14:34:37 +0800 Subject: [PATCH] [Media Common] [VP] Add CCS flush in media copy Additional CCS flush is required on new iGFXs. Add it in ve and blt copy. No need to add in render copy because it is already added. --- .../common/shared/mediacopy/media_vebox_copy_next.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/media_softlet/agnostic/common/shared/mediacopy/media_vebox_copy_next.cpp b/media_softlet/agnostic/common/shared/mediacopy/media_vebox_copy_next.cpp index e7ddcfb9c22..f776e4313d4 100644 --- a/media_softlet/agnostic/common/shared/mediacopy/media_vebox_copy_next.cpp +++ b/media_softlet/agnostic/common/shared/mediacopy/media_vebox_copy_next.cpp @@ -222,6 +222,12 @@ MOS_STATUS VeboxCopyStateNext::CopyMainSurface(PMOS_RESOURCE src, PMOS_RESOURCE flushDwParams.pOsResource = (PMOS_RESOURCE)&veboxHeap->DriverResource; flushDwParams.dwResourceOffset = veboxHeap->uiOffsetSync; flushDwParams.dwDataDW1 = veboxHeap->dwNextTag; + + auto skuTable = m_osInterface->pfnGetSkuTable(m_osInterface); + if (skuTable && MEDIA_IS_SKU(skuTable, FtrEnablePPCFlush)) + { + flushDwParams.bEnablePPCFlush = true; + } VEBOX_COPY_CHK_STATUS_RETURN(m_miItf->MHW_ADDCMD_F(MI_FLUSH_DW)(&cmdBuffer)); } VEBOX_COPY_CHK_STATUS_RETURN(perfProfiler->AddPerfCollectEndCmd((void*)this, m_osInterface, m_miItf, &cmdBuffer));