mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
refactor: replace isContextGroup with contextGroupCount in osContext
Related-To: NEO-14289 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8c7fb0dde8
commit
cfb3dade30
@@ -468,7 +468,7 @@ void Device::createSecondaryContexts(const EngineControl &primaryEngine, Seconda
|
||||
this->createSecondaryEngine(primaryEngine.commandStreamReceiver, engineTypeUsage);
|
||||
}
|
||||
|
||||
primaryEngine.osContext->setContextGroup(true);
|
||||
UNRECOVERABLE_IF(primaryEngine.osContext->isPartOfContextGroup() == false);
|
||||
}
|
||||
|
||||
void Device::allocateDebugSurface(size_t debugSurfaceSize) {
|
||||
@@ -553,7 +553,7 @@ bool Device::createEngine(EngineTypeUsage engineTypeUsage) {
|
||||
EngineDescriptor engineDescriptor(engineTypeUsage, getDeviceBitfield(), preemptionMode, false);
|
||||
|
||||
auto osContext = executionEnvironment->memoryManager->createAndRegisterOsContext(commandStreamReceiver.get(), engineDescriptor);
|
||||
osContext->setContextGroup(useContextGroup);
|
||||
osContext->setContextGroupCount(useContextGroup ? gfxCoreHelper.getContextGroupContextsCount() : 0);
|
||||
osContext->setIsPrimaryEngine(isPrimaryEngine);
|
||||
osContext->setIsDefaultEngine(isDefaultEngine);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user