mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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:
committed by
sys_ocldev
parent
fa30e0dc1f
commit
8df30ceac1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user