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:
Mateusz Jablonski
2019-09-17 10:44:49 +02:00
committed by sys_ocldev
parent 578a03e417
commit dc949f6d18
15 changed files with 63 additions and 21 deletions

View File

@@ -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()) {