mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
[1/n] Internal 4GB allocator
- Add new entry point in memory manager for internal allocations. - Route to allocate32BitGraphicsMemory - Add new enum to control memory region - Change mm to memoryManager Change-Id: I2ee069aa9baf7f69f652022e026569ec4fdb9d77
This commit is contained in:
committed by
sys_ocldev
parent
386675480f
commit
19c68a608f
@@ -152,6 +152,10 @@ GraphicsAllocation *MemoryManager::allocateGraphicsMemory(size_t size, const voi
|
||||
return graphicsAllocation;
|
||||
}
|
||||
|
||||
GraphicsAllocation *MemoryManager::createInternalGraphicsAllocation(const void *ptr, size_t allocationSize) {
|
||||
return allocate32BitGraphicsMemory(allocationSize, const_cast<void *>(ptr), MemoryType::INTERNAL_ALLOCATION);
|
||||
}
|
||||
|
||||
void MemoryManager::cleanGraphicsMemoryCreatedFromHostPtr(GraphicsAllocation *graphicsAllocation) {
|
||||
hostPtrManager.releaseHandleStorage(graphicsAllocation->fragmentsStorage);
|
||||
cleanOsHandles(graphicsAllocation->fragmentsStorage);
|
||||
|
||||
Reference in New Issue
Block a user