Do not flush tag update if already flushed

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2022-08-08 12:20:44 +00:00
committed by Compute-Runtime-Automation
parent 8f8370be32
commit eb8cd33dc6
2 changed files with 44 additions and 1 deletions

View File

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