mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 17:00:59 +08:00
Pass proper device bitfield when allocating global/constant surface
Related-To: NEO-4484 Change-Id: Iecb968bfc6ed3f7e3dc216dab3f26693c1b949d6 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b58371df4e
commit
a604eee07b
@@ -41,7 +41,11 @@ GraphicsAllocation *allocateGlobalsSurface(NEO::SVMAllocsManager *const svmAlloc
|
||||
return svmAllocManager->getSVMAlloc(ptr)->gpuAllocation;
|
||||
} else {
|
||||
auto allocationType = constant ? GraphicsAllocation::AllocationType::CONSTANT_SURFACE : GraphicsAllocation::AllocationType::GLOBAL_SURFACE;
|
||||
auto gpuAlloc = device.getMemoryManager()->allocateGraphicsMemoryWithProperties({device.getRootDeviceIndex(), size, allocationType});
|
||||
auto gpuAlloc = device.getMemoryManager()->allocateGraphicsMemoryWithProperties({device.getRootDeviceIndex(),
|
||||
true, // allocateMemory
|
||||
size, allocationType,
|
||||
false, // isMultiStorageAllocation
|
||||
device.getDeviceBitfield()});
|
||||
DEBUG_BREAK_IF(gpuAlloc == nullptr);
|
||||
if (gpuAlloc == nullptr) {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user