mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Obtain storage info internally, in allocateGraphicsMemoryInPreferredPool
Related-To: NEO-2860 Change-Id: Id7acb10793f3145238f6b930b4c64c20c87a1021 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
387fdc5682
commit
6e7f82c315
@@ -325,8 +325,9 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
|
||||
return true;
|
||||
}
|
||||
|
||||
GraphicsAllocation *MemoryManager::allocateGraphicsMemoryInPreferredPool(const AllocationProperties &properties, StorageInfo storageInfo, const void *hostPtr) {
|
||||
GraphicsAllocation *MemoryManager::allocateGraphicsMemoryInPreferredPool(const AllocationProperties &properties, const void *hostPtr) {
|
||||
AllocationData allocationData;
|
||||
auto storageInfo = GraphicsAllocation::createStorageInfoFromProperties(properties);
|
||||
getAllocationData(allocationData, properties, storageInfo, hostPtr);
|
||||
|
||||
AllocationStatus status = AllocationStatus::Error;
|
||||
|
||||
Reference in New Issue
Block a user