mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Pass GmmClientContext to Gmm and GmmResourceInfo
Related-To: NEO-3007 Change-Id: Ia590670e93ed93b0941d5a5dc6ac010268cb561e Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
350eb83f02
commit
10d274daa9
@@ -274,7 +274,7 @@ DrmAllocation *DrmMemoryManager::allocateGraphicsMemory64kb(const AllocationData
|
||||
}
|
||||
|
||||
GraphicsAllocation *DrmMemoryManager::allocateShareableMemory(const AllocationData &allocationData) {
|
||||
auto gmm = std::make_unique<Gmm>(allocationData.hostPtr, allocationData.size, false);
|
||||
auto gmm = std::make_unique<Gmm>(executionEnvironment.getGmmClientContext(), allocationData.hostPtr, allocationData.size, false);
|
||||
size_t bufferSize = allocationData.size;
|
||||
uint64_t gpuRange = acquireGpuRange(bufferSize, false, allocationData.rootDeviceIndex);
|
||||
|
||||
@@ -483,7 +483,7 @@ GraphicsAllocation *DrmMemoryManager::createGraphicsAllocationFromSharedHandle(o
|
||||
properties.imgInfo->linearStorage = true;
|
||||
}
|
||||
|
||||
Gmm *gmm = new Gmm(*properties.imgInfo, createStorageInfoFromProperties(properties));
|
||||
Gmm *gmm = new Gmm(executionEnvironment.getGmmClientContext(), *properties.imgInfo, createStorageInfoFromProperties(properties));
|
||||
drmAllocation->setDefaultGmm(gmm);
|
||||
}
|
||||
return drmAllocation;
|
||||
|
||||
Reference in New Issue
Block a user