Skip to content

Commit

Permalink
[Media Common] [VP] Add CCS flush in media copy
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MicroYY authored and intel-mediadev committed Sep 8, 2023
1 parent 91120ce commit b5a1ea8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b5a1ea8

Please sign in to comment.