mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
[13/n] Internal 4GB allocator.
- Add common function for all memory managers to obtain internal heap base. Change-Id: Iacdaaf598e8786dad046b3f4550f9c80ce3f15d9
This commit is contained in:
committed by
sys_ocldev
parent
bc08ecdcea
commit
2119d5db08
@@ -167,6 +167,10 @@ uint64_t OsAgnosticMemoryManager::getMaxApplicationAddress() {
|
||||
return MemoryConstants::max32BitAppAddress + static_cast<uint64_t>(is64bit) * (MemoryConstants::max64BitAppAddress - MemoryConstants::max32BitAppAddress);
|
||||
}
|
||||
|
||||
uint64_t OsAgnosticMemoryManager::getInternalHeapBaseAddress() {
|
||||
return this->allocator32Bit->getBase();
|
||||
}
|
||||
|
||||
GraphicsAllocation *OsAgnosticMemoryManager::createGraphicsAllocation(OsHandleStorage &handleStorage, size_t hostPtrSize, const void *hostPtr) {
|
||||
auto allocation = new MemoryAllocation(false, 0, const_cast<void *>(hostPtr), reinterpret_cast<uint64_t>(hostPtr), hostPtrSize, counter++);
|
||||
allocation->fragmentsStorage = handleStorage;
|
||||
|
||||
Reference in New Issue
Block a user