mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Remove MemoryManager::allocateGraphicsMemoryForHostPtr.
Change-Id: I629f2299a183fc135135dbaff89216b966554a95 Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
@@ -103,22 +103,10 @@ class MemoryManager {
|
||||
return allocateGraphicsMemoryInPreferredPool(properties, GraphicsAllocation::createStorageInfoFromProperties(properties), nullptr);
|
||||
}
|
||||
|
||||
virtual GraphicsAllocation *allocateGraphicsMemory(const AllocationProperties &properties, const void *ptr) {
|
||||
virtual GraphicsAllocation *allocateGraphicsMemoryWithProperties(const AllocationProperties &properties, const void *ptr) {
|
||||
return allocateGraphicsMemoryInPreferredPool(properties, GraphicsAllocation::createStorageInfoFromProperties(properties), ptr);
|
||||
}
|
||||
|
||||
GraphicsAllocation *allocateGraphicsMemoryForHostPtr(size_t size, void *ptr, bool fullRangeSvm, bool requiresL3Flush) {
|
||||
if (fullRangeSvm && DebugManager.flags.EnableHostPtrTracking.get()) {
|
||||
return allocateGraphicsMemory({false, size, GraphicsAllocation::AllocationType::EXTERNAL_HOST_PTR}, ptr);
|
||||
} else {
|
||||
auto allocation = allocateGraphicsMemoryForNonSvmHostPtr(size, ptr);
|
||||
if (allocation) {
|
||||
allocation->setFlushL3Required(requiresL3Flush);
|
||||
}
|
||||
return allocation;
|
||||
}
|
||||
}
|
||||
|
||||
GraphicsAllocation *allocateGraphicsMemoryInPreferredPool(const AllocationProperties &properties,
|
||||
StorageInfo storageInfo, const void *hostPtr);
|
||||
|
||||
@@ -232,7 +220,7 @@ class MemoryManager {
|
||||
}
|
||||
|
||||
virtual GraphicsAllocation *createGraphicsAllocation(OsHandleStorage &handleStorage, const AllocationData &allocationData) = 0;
|
||||
virtual GraphicsAllocation *allocateGraphicsMemoryForNonSvmHostPtr(size_t size, void *cpuPtr) = 0;
|
||||
virtual GraphicsAllocation *allocateGraphicsMemoryForNonSvmHostPtr(const AllocationData &allocationData) = 0;
|
||||
GraphicsAllocation *allocateGraphicsMemory(const AllocationData &allocationData);
|
||||
virtual GraphicsAllocation *allocateGraphicsMemoryWithHostPtr(const AllocationData &allocationData);
|
||||
virtual GraphicsAllocation *allocateGraphicsMemoryWithAlignment(const AllocationData &allocationData) = 0;
|
||||
|
||||
Reference in New Issue
Block a user