mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
OsAgnosticMemoryManager to call freeMemory on AubManager
Resolves: NEO-3231 Change-Id: I89a3cc9f2a63931c6c87ec70bbedc19716a885c1 Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "core/helpers/basic_math.h"
|
||||
#include "core/helpers/ptr_math.h"
|
||||
#include "runtime/aub/aub_center.h"
|
||||
#include "runtime/execution_environment/execution_environment.h"
|
||||
#include "runtime/gmm_helper/gmm.h"
|
||||
#include "runtime/gmm_helper/gmm_helper.h"
|
||||
@@ -199,6 +200,12 @@ void OsAgnosticMemoryManager::freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllo
|
||||
if (gfxAllocation->getReservedAddressPtr()) {
|
||||
releaseReservedCpuAddressRange(gfxAllocation->getReservedAddressPtr(), gfxAllocation->getReservedAddressSize());
|
||||
}
|
||||
|
||||
auto aubCenter = executionEnvironment.aubCenter.get();
|
||||
if (aubCenter && aubCenter->getAubManager()) {
|
||||
aubCenter->getAubManager()->freeMemory(gfxAllocation->getGpuAddress(), gfxAllocation->getUnderlyingBufferSize());
|
||||
}
|
||||
|
||||
delete gfxAllocation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user