mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Setup sub device's os context based on sub device id
Move types defined by using to separated header file Related-To: NEO-3691 Change-Id: I71dfca0644b7022c4a381fbe396d0e32ca7d1ce5 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
578a03e417
commit
dc949f6d18
@@ -142,11 +142,9 @@ bool Device::createEngine(uint32_t deviceIndex, uint32_t deviceCsrIndex, aub_str
|
||||
|
||||
auto commandStreamReceiver = executionEnvironment->commandStreamReceivers[deviceIndex][deviceCsrIndex].get();
|
||||
|
||||
DeviceBitfield deviceBitfield;
|
||||
deviceBitfield.set(deviceIndex);
|
||||
bool lowPriority = (deviceCsrIndex == HwHelper::lowPriorityGpgpuEngineIndex);
|
||||
auto osContext = executionEnvironment->memoryManager->createAndRegisterOsContext(commandStreamReceiver, engineType,
|
||||
deviceBitfield, preemptionMode, lowPriority);
|
||||
getDeviceBitfieldForOsContext(), preemptionMode, lowPriority);
|
||||
commandStreamReceiver->setupContext(*osContext);
|
||||
|
||||
if (!commandStreamReceiver->initializeTagAllocation()) {
|
||||
|
||||
Reference in New Issue
Block a user