mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
fix: dont allocate TSP for OOQ without Event
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c892b8c6f3
commit
d96cf5846a
@@ -451,6 +451,19 @@ inline WaitStatus Event::wait(bool blocking, bool useQuickKmdSleep) {
|
||||
|
||||
DEBUG_BREAK_IF(this->taskLevel == CompletionStamp::notReady && this->executionStatus >= 0);
|
||||
|
||||
{
|
||||
TakeOwnershipWrapper<CommandQueue> queueOwnership(*cmdQueue);
|
||||
|
||||
bool releaseNodes = (taskCount == cmdQueue->peekTaskCount());
|
||||
if (bcsState.isValid()) {
|
||||
releaseNodes &= (bcsState.taskCount == cmdQueue->peekBcsTaskCount(bcsState.engineType));
|
||||
}
|
||||
|
||||
if (releaseNodes) {
|
||||
cmdQueue->releaseDeferredNodes();
|
||||
}
|
||||
}
|
||||
|
||||
auto *allocationStorage = cmdQueue->getGpgpuCommandStreamReceiver().getInternalAllocationStorage();
|
||||
allocationStorage->cleanAllocationList(this->taskCount, TEMPORARY_ALLOCATION);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user