mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 21:42:53 +08:00
Pass device bitfield to allocation properties when creating mem obj
Related-To: NEO-4484 Change-Id: I961e9122591dc7293e37d5c1ca58cbcd649ee653 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
8f0380a00b
commit
0c404bc880
@@ -56,7 +56,7 @@ bool DirectSubmissionHw<GfxFamily, Dispatcher>::allocateResources() {
|
||||
const AllocationProperties commandStreamAllocationProperties{device.getRootDeviceIndex(),
|
||||
true, allocationSize,
|
||||
GraphicsAllocation::AllocationType::RING_BUFFER,
|
||||
isMultiOsContextCapable};
|
||||
isMultiOsContextCapable, osContext.getDeviceBitfield()};
|
||||
ringBuffer = memoryManager->allocateGraphicsMemoryWithProperties(commandStreamAllocationProperties);
|
||||
UNRECOVERABLE_IF(ringBuffer == nullptr);
|
||||
allocations.push_back(ringBuffer);
|
||||
@@ -68,7 +68,7 @@ bool DirectSubmissionHw<GfxFamily, Dispatcher>::allocateResources() {
|
||||
const AllocationProperties semaphoreAllocationProperties{device.getRootDeviceIndex(),
|
||||
true, MemoryConstants::pageSize,
|
||||
GraphicsAllocation::AllocationType::SEMAPHORE_BUFFER,
|
||||
isMultiOsContextCapable};
|
||||
isMultiOsContextCapable, osContext.getDeviceBitfield()};
|
||||
semaphores = memoryManager->allocateGraphicsMemoryWithProperties(semaphoreAllocationProperties);
|
||||
UNRECOVERABLE_IF(semaphores == nullptr);
|
||||
allocations.push_back(semaphores);
|
||||
|
||||
Reference in New Issue
Block a user