mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Remove redundant GmmHelper init in createDeviceImpl
Initialization of GmmHelper is carried out earlier in the prepareDeviceEnvironments method. Related-To: NEO-6523 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ce91edcb82
commit
21c2f06d72
@@ -62,6 +62,7 @@ bool prepareDeviceEnvironments(ExecutionEnvironment &executionEnvironment) {
|
||||
}
|
||||
|
||||
bool prepareDeviceEnvironment(ExecutionEnvironment &executionEnvironment, std::string &osPciPath, const uint32_t rootDeviceIndex) {
|
||||
auto retVal = true;
|
||||
executionEnvironment.prepareRootDeviceEnvironment(rootDeviceIndex);
|
||||
auto currentHwInfo = executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->getHardwareInfo();
|
||||
if (currentHwInfo->platform.eProductFamily == IGFX_UNKNOWN && currentHwInfo->platform.eRenderCoreFamily == IGFX_UNKNOWN_CORE) {
|
||||
@@ -70,10 +71,16 @@ bool prepareDeviceEnvironment(ExecutionEnvironment &executionEnvironment, std::s
|
||||
if (ultHwConfig.useMockedPrepareDeviceEnvironmentsFunc) {
|
||||
uint32_t numRootDevices = DebugManager.flags.CreateMultipleRootDevices.get() != 0 ? DebugManager.flags.CreateMultipleRootDevices.get() : 1u;
|
||||
UltDeviceFactory::prepareDeviceEnvironments(executionEnvironment, numRootDevices);
|
||||
return ultHwConfig.mockedPrepareDeviceEnvironmentsFuncResult;
|
||||
retVal = ultHwConfig.mockedPrepareDeviceEnvironmentsFuncResult;
|
||||
} else {
|
||||
retVal = prepareDeviceEnvironmentImpl(executionEnvironment, osPciPath, rootDeviceIndex);
|
||||
}
|
||||
|
||||
return prepareDeviceEnvironmentImpl(executionEnvironment, osPciPath, rootDeviceIndex);
|
||||
for (uint32_t rootDeviceIndex = 0u; rootDeviceIndex < executionEnvironment.rootDeviceEnvironments.size(); rootDeviceIndex++) {
|
||||
executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->initGmm();
|
||||
}
|
||||
|
||||
return retVal;
|
||||
}
|
||||
const HardwareInfo *getDefaultHwInfo() {
|
||||
return defaultHwInfo.get();
|
||||
|
||||
Reference in New Issue
Block a user