Revert "Deferred deletion of allocations in main thread"

This reverts commit 418e0f7322.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2022-12-20 13:32:52 +01:00
committed by Compute-Runtime-Automation
parent 0e6cc86821
commit cac134028c
11 changed files with 13 additions and 144 deletions

View File

@@ -258,7 +258,7 @@ void MemoryManager::checkGpuUsageAndDestroyGraphicsAllocations(GraphicsAllocatio
if (gfxAllocation->isUsed()) {
if (gfxAllocation->isUsedByManyOsContexts()) {
multiContextResourceDestructor->deferDeletion(new DeferrableAllocationDeletion{*this, *gfxAllocation});
multiContextResourceDestructor->clearQueueTillFirstFailure();
multiContextResourceDestructor->drain(false);
return;
}
for (auto &engine : getRegisteredEngines()) {