Destroy multi graphics allocations synchronously

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2022-07-13 13:36:17 +00:00
committed by Compute-Runtime-Automation
parent d139d307f0
commit 5dd25d9e8c
2 changed files with 60 additions and 11 deletions

View File

@@ -79,6 +79,7 @@ MemObj::~MemObj() {
peekSharingHandler()->releaseReusedGraphicsAllocation();
}
needWait |= multiGraphicsAllocation.getGraphicsAllocations().size() > 1u;
for (auto graphicsAllocation : multiGraphicsAllocation.getGraphicsAllocations()) {
auto rootDeviceIndex = graphicsAllocation ? graphicsAllocation->getRootDeviceIndex() : 0;
bool doAsyncDestructions = DebugManager.flags.EnableAsyncDestroyAllocations.get();