mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Fix allocating small buffers from pool
Wait for engine completion before freeing from pool Related-To: NEO-7332 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d9d706d747
commit
0cea7fe6d1
@@ -94,6 +94,8 @@ MemObj::~MemObj() {
|
||||
}
|
||||
destroyGraphicsAllocation(graphicsAllocation, doAsyncDestructions);
|
||||
graphicsAllocation = nullptr;
|
||||
} else if (graphicsAllocation && context->getBufferPoolAllocator().isPoolBuffer(associatedMemObject)) {
|
||||
memoryManager->waitForEnginesCompletion(*graphicsAllocation);
|
||||
}
|
||||
if (!associatedMemObject) {
|
||||
releaseMapAllocation(rootDeviceIndex, doAsyncDestructions);
|
||||
|
||||
Reference in New Issue
Block a user