Refactor around cache flush after walker

Change-Id: If5c7399df91bd076b684bcab83f50b4852e53429
This commit is contained in:
Chodor, Jaroslaw
2019-02-05 15:11:38 +01:00
committed by sys_ocldev
parent b36bcf62e7
commit 048098ce66
10 changed files with 87 additions and 70 deletions

View File

@@ -561,9 +561,9 @@ inline void CommandStreamReceiverHw<GfxFamily>::flushBatchedSubmissions() {
surfacesForSubmit.push_back(surface);
}
//make sure we flush DC
//make sure we flush DC if needed
if (epiloguePipeControlLocation) {
((PIPE_CONTROL *)epiloguePipeControlLocation)->setDcFlushEnable(true);
((PIPE_CONTROL *)epiloguePipeControlLocation)->setDcFlushEnable(false == HwHelper::cacheFlushAfterWalkerSupported(this->hwInfo));
}
auto flushStamp = this->flush(primaryCmdBuffer->batchBuffer, surfacesForSubmit);