Use GfxPartition for GPU address range allocations

[4/n] - Remove allocator32Bit

Related-To: NEO-2877

Change-Id: I0772a7fe1fda19daa12699c546587bd3cdd84f2c
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
This commit is contained in:
Venevtsev, Igor
2019-07-04 12:40:58 +02:00
committed by sys_ocldev
parent 09e87879db
commit 4403796f58
33 changed files with 13 additions and 451 deletions

View File

@@ -573,18 +573,6 @@ uint64_t DrmMemoryManager::getSystemSharedMemory() {
return std::min(hostMemorySize, gpuMemorySize);
}
uint64_t DrmMemoryManager::getMaxApplicationAddress() {
return is64bit ? MemoryConstants::max64BitAppAddress : MemoryConstants::max32BitAppAddress;
}
uint64_t DrmMemoryManager::getInternalHeapBaseAddress() {
return gfxPartition.getHeapBase(internalHeapIndex);
}
uint64_t DrmMemoryManager::getExternalHeapBaseAddress() {
return gfxPartition.getHeapBase(HeapIndex::HEAP_EXTERNAL);
}
MemoryManager::AllocationStatus DrmMemoryManager::populateOsHandles(OsHandleStorage &handleStorage) {
BufferObject *allocatedBos[maxFragmentsCount];
uint32_t numberOfBosAllocated = 0;