Move residency and eviction allocations from MemoryManager to CSR

Change-Id: I44185b35375f4cc9d58cac14cac1edefaacde652
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2018-09-13 15:49:38 +02:00
committed by sys_ocldev
parent fa30e0dc1f
commit 8df30ceac1
6 changed files with 50 additions and 88 deletions

View File

@@ -73,9 +73,7 @@ GraphicsAllocation *AllocationsList::detachAllocationImpl(GraphicsAllocation *,
}
MemoryManager::MemoryManager(bool enable64kbpages, bool enableLocalMemory) : allocator32Bit(nullptr), enable64kbpages(enable64kbpages),
localMemorySupported(enableLocalMemory) {
residencyAllocations.reserve(20);
};
localMemorySupported(enableLocalMemory){};
MemoryManager::~MemoryManager() {
freeAllocationsList(-1, graphicsAllocations);
@@ -294,22 +292,6 @@ TagAllocator<TimestampPacket> *MemoryManager::getTimestampPacketAllocator() {
return timestampPacketAllocator.get();
}
void MemoryManager::pushAllocationForResidency(GraphicsAllocation *gfxAllocation) {
residencyAllocations.push_back(gfxAllocation);
}
void MemoryManager::clearResidencyAllocations() {
residencyAllocations.clear();
}
void MemoryManager::pushAllocationForEviction(GraphicsAllocation *gfxAllocation) {
evictionAllocations.push_back(gfxAllocation);
}
void MemoryManager::clearEvictionAllocations() {
evictionAllocations.clear();
}
void MemoryManager::freeGraphicsMemory(GraphicsAllocation *gfxAllocation) {
freeGraphicsMemoryImpl(gfxAllocation);
}