mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
refactor: use deviceBitfield from CSR when creating engine
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5b20450162
commit
3204411aca
@@ -150,6 +150,7 @@ class CommandStreamReceiver : NEO::NonCopyableAndNonMovableClass {
|
||||
OSInterface *getOSInterface() const;
|
||||
ExecutionEnvironment &peekExecutionEnvironment() const { return executionEnvironment; }
|
||||
GmmHelper *peekGmmHelper() const;
|
||||
DeviceBitfield peekDeviceBitfield() const { return deviceBitfield; }
|
||||
|
||||
MOCKABLE_VIRTUAL void setTagAllocation(GraphicsAllocation *allocation);
|
||||
GraphicsAllocation *getTagAllocation() const {
|
||||
|
||||
@@ -588,7 +588,7 @@ bool Device::createSecondaryEngine(CommandStreamReceiver *primaryCsr, EngineType
|
||||
return false;
|
||||
}
|
||||
|
||||
EngineDescriptor engineDescriptor(engineTypeUsage, getDeviceBitfield(), preemptionMode, primaryCsr->getOsContext().isRootDevice());
|
||||
EngineDescriptor engineDescriptor(engineTypeUsage, primaryCsr->peekDeviceBitfield(), preemptionMode, primaryCsr->getOsContext().isRootDevice());
|
||||
|
||||
auto osContext = executionEnvironment->memoryManager->createAndRegisterSecondaryOsContext(&primaryCsr->getOsContext(), commandStreamReceiver.get(), engineDescriptor);
|
||||
osContext->incRefInternal();
|
||||
|
||||
Reference in New Issue
Block a user