mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 16:48:45 +08:00
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:
committed by
Compute-Runtime-Automation
parent
7e6436563e
commit
bbcca97682
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user