refactor: remove useLocalMem from allocate32BitGraphicsMemoryImpl

- this method allocates System Memory
- argument is not needed - ExternalHeap is selected inside this function
- remove unneeded ults
- allocate memory in Device Pool for external heap allocation in
OsAgnosticMemoryManager

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-09-15 17:20:28 +00:00
committed by Compute-Runtime-Automation
parent 670eaeb050
commit 371412a826
25 changed files with 67 additions and 112 deletions

View File

@@ -72,8 +72,7 @@ class MockWddmMemoryManager : public MemoryManagerCreate<WddmMemoryManager> {
AllocationData allocationData;
MockAllocationProperties properties(rootDeviceIndex, allocateMemory, size, allocationType);
getAllocationData(allocationData, properties, ptr, createStorageInfoFromProperties(properties));
bool useLocalMemory = !allocationData.flags.useSystemMemory && this->localMemorySupported[rootDeviceIndex];
return allocate32BitGraphicsMemoryImpl(allocationData, useLocalMemory);
return allocate32BitGraphicsMemoryImpl(allocationData);
}
void freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation) override {