mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Add method to get device bitfield from context
Related-To: NEO-4484 Change-Id: I5079c5bff48b552ed5326b2252bcd9401ea66c7d Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
@@ -271,7 +271,7 @@ Image *Image::create(Context *context,
|
||||
AllocationProperties allocProperties = MemObjHelper::getAllocationPropertiesWithImageInfo(rootDeviceIndex, imgInfo,
|
||||
false, // allocateMemory
|
||||
memoryProperties, context->getDevice(0)->getHardwareInfo(),
|
||||
context->getDevice(0)->getDeviceBitfield());
|
||||
context->getDeviceBitfieldForAllocation());
|
||||
|
||||
memory = memoryManager->allocateGraphicsMemoryWithProperties(allocProperties, hostPtr);
|
||||
|
||||
@@ -289,7 +289,7 @@ Image *Image::create(Context *context,
|
||||
false, // allocateMemory
|
||||
imgInfo.size, GraphicsAllocation::AllocationType::SHARED_CONTEXT_IMAGE,
|
||||
false, // isMultiStorageAllocation
|
||||
context->getDevice(0)->getDeviceBitfield()},
|
||||
context->getDeviceBitfieldForAllocation()},
|
||||
hostPtr);
|
||||
memory->setDefaultGmm(gmm);
|
||||
zeroCopy = true;
|
||||
@@ -299,7 +299,7 @@ Image *Image::create(Context *context,
|
||||
false, // allocateMemory
|
||||
hostPtrMinSize, GraphicsAllocation::AllocationType::MAP_ALLOCATION,
|
||||
false, // isMultiStorageAllocation
|
||||
context->getDevice(0)->getDeviceBitfield()};
|
||||
context->getDeviceBitfieldForAllocation()};
|
||||
properties.flags.flushL3RequiredForRead = properties.flags.flushL3RequiredForWrite = true;
|
||||
mapAllocation = memoryManager->allocateGraphicsMemoryWithProperties(properties, hostPtr);
|
||||
}
|
||||
@@ -307,7 +307,7 @@ Image *Image::create(Context *context,
|
||||
AllocationProperties allocProperties = MemObjHelper::getAllocationPropertiesWithImageInfo(rootDeviceIndex, imgInfo,
|
||||
true, // allocateMemory
|
||||
memoryProperties, context->getDevice(0)->getHardwareInfo(),
|
||||
context->getDevice(0)->getDeviceBitfield());
|
||||
context->getDeviceBitfieldForAllocation());
|
||||
memory = memoryManager->allocateGraphicsMemoryWithProperties(allocProperties);
|
||||
|
||||
if (memory && MemoryPool::isSystemMemoryPool(memory->getMemoryPool())) {
|
||||
|
||||
Reference in New Issue
Block a user