fix: flush cache after accessing img from buffer

Related-To: NEO-15391

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-07-23 11:39:49 +00:00
committed by Compute-Runtime-Automation
parent 7e6436563e
commit bbcca97682
8 changed files with 80 additions and 8 deletions

View File

@@ -447,8 +447,12 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTaskHeapful(
const auto &hwInfo = peekHwInfo();
bool hasStallingCmdsOnTaskStream = false;
if (dispatchFlags.blocking || dispatchFlags.dcFlush || dispatchFlags.guardCommandBufferWithPipeControl || this->heapStorageRequiresRecyclingTag) {
bool barrierWithPostSyncNeeded = dispatchFlags.blocking ||
dispatchFlags.dcFlush ||
dispatchFlags.guardCommandBufferWithPipeControl ||
dispatchFlags.textureCacheFlush ||
this->heapStorageRequiresRecyclingTag;
if (barrierWithPostSyncNeeded) {
LinearStream &epilogueCommandStream = dispatchFlags.optionalEpilogueCmdStream != nullptr ? *dispatchFlags.optionalEpilogueCmdStream : commandStreamTask;
processBarrierWithPostSync(epilogueCommandStream, dispatchFlags, levelClosed, currentPipeControlForNooping,
epiloguePipeControlLocation, hasStallingCmdsOnTaskStream, args);