mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
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:
committed by
Compute-Runtime-Automation
parent
9d31d36491
commit
4266f861ac
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user