mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 09:59:39 +08:00
Command stream receiver: use memory manager from execution environment
Change-Id: I236218a73bd7dac6e5744e3596f146b77b5ca1c8 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
97c56b9de0
commit
4f028d13a1
@@ -37,14 +37,12 @@ ExperimentalCommandBuffer::~ExperimentalCommandBuffer() {
|
||||
timestamp += 2;
|
||||
}
|
||||
MemoryManager *memoryManager = commandStreamReceiver->getMemoryManager();
|
||||
if (memoryManager) {
|
||||
memoryManager->freeGraphicsMemory(timestamps);
|
||||
memoryManager->freeGraphicsMemory(experimentalAllocation);
|
||||
memoryManager->freeGraphicsMemory(timestamps);
|
||||
memoryManager->freeGraphicsMemory(experimentalAllocation);
|
||||
|
||||
if (currentStream.get()) {
|
||||
memoryManager->freeGraphicsMemory(currentStream->getGraphicsAllocation());
|
||||
currentStream->replaceGraphicsAllocation(nullptr);
|
||||
}
|
||||
if (currentStream.get()) {
|
||||
memoryManager->freeGraphicsMemory(currentStream->getGraphicsAllocation());
|
||||
currentStream->replaceGraphicsAllocation(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user