mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
024c015dab
commit
e2cec35f1f
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user