mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Revert "Optimize small buffers allocator"
This reverts commit f57ff2913c.
Resolves: HSD-15013057572
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
41ac42978c
commit
6aadf63725
@@ -90,6 +90,8 @@ MemObj::~MemObj() {
|
||||
}
|
||||
destroyGraphicsAllocation(graphicsAllocation, doAsyncDestructions);
|
||||
graphicsAllocation = nullptr;
|
||||
} else if (graphicsAllocation && context->getBufferPoolAllocator().isPoolBuffer(associatedMemObject)) {
|
||||
memoryManager->waitForEnginesCompletion(*graphicsAllocation);
|
||||
}
|
||||
if (!associatedMemObject) {
|
||||
releaseMapAllocation(rootDeviceIndex, doAsyncDestructions);
|
||||
@@ -100,6 +102,7 @@ MemObj::~MemObj() {
|
||||
}
|
||||
if (associatedMemObject) {
|
||||
associatedMemObject->decRefInternal();
|
||||
context->getBufferPoolAllocator().tryFreeFromPoolBuffer(associatedMemObject, this->offset, this->sizeInPoolAllocator);
|
||||
}
|
||||
if (!associatedMemObject) {
|
||||
releaseAllocatedMapPtr();
|
||||
|
||||
Reference in New Issue
Block a user