refactor: keep correct path on main branch in Drm::create

Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
Maciej Bielski
2024-07-03 10:34:24 +00:00
committed by Compute-Runtime-Automation
parent 024c015dab
commit e2cec35f1f

View File

@@ -50,22 +50,18 @@ Drm *Drm::create(std::unique_ptr<HwDeviceIdDrm> &&hwDeviceId, RootDeviceEnvironm
break;
}
}
int ret = 0;
if (deviceDescriptor) {
ret = drm->setupHardwareInfo(deviceDescriptor, true);
if (ret != 0) {
return nullptr;
}
hwInfo->capabilityTable.deviceName = deviceName;
} else {
if (!deviceDescriptor) {
printDebugString(debugManager.flags.PrintDebugMessages.get(), stderr,
"FATAL: Unknown device: deviceId: %04x, revisionId: %04x\n", hwInfo->platform.usDeviceID, hwInfo->platform.usRevId);
return nullptr;
}
// Activate the Turbo Boost Frequency feature
ret = drm->enableTurboBoost();
if (ret != 0) {
if (drm->setupHardwareInfo(deviceDescriptor, true)) {
return nullptr;
}
hwInfo->capabilityTable.deviceName = deviceName;
if (drm->enableTurboBoost()) {
printDebugString(debugManager.flags.PrintDebugMessages.get(), stderr, "%s", "WARNING: Failed to request OCL Turbo Boost\n");
}