Make implicit flush for cross-device dependency

Related-To: NEO-6418

If there's a cross-device dependency, flush batched
submissions to avoid deadlock.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2022-04-27 16:34:20 +00:00
committed by Compute-Runtime-Automation
parent 9d31d36491
commit 4266f861ac
5 changed files with 54 additions and 13 deletions

View File

@@ -26,10 +26,7 @@ bool DeferrableAllocationDeletion::apply() {
graphicsAllocation.releaseUsageInOsContext(contextId);
} else {
isStillUsed = true;
engine.commandStreamReceiver->flushBatchedSubmissions();
if (engine.commandStreamReceiver->peekLatestFlushedTaskCount() < graphicsAllocation.getTaskCount(contextId)) {
engine.commandStreamReceiver->updateTagFromWait();
}
engine.commandStreamReceiver->updateTagFromWait();
}
}
}