Add windows debugger feature check

Related-To: NEO-6717
Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
This commit is contained in:
Yates, Brandon
2022-05-11 22:36:36 +00:00
committed by Compute-Runtime-Automation
parent f3c3822ab8
commit db6562c092
9 changed files with 149 additions and 2 deletions

View File

@@ -9,6 +9,15 @@
namespace L0 {
std::unique_ptr<NEO::Debugger> DebuggerL0::create(NEO::Device *device) {
return std::unique_ptr<NEO::Debugger>(nullptr);
auto &hwInfo = device->getHardwareInfo();
if (!hwInfo.capabilityTable.l0DebuggerSupported) {
return std::unique_ptr<DebuggerL0>(nullptr);
}
auto success = initDebuggingInOs(device->getRootDeviceEnvironment().osInterface.get());
if (success) {
auto debugger = debuggerL0Factory[device->getHardwareInfo().platform.eRenderCoreFamily](device);
return std::unique_ptr<DebuggerL0>(debugger);
}
return std::unique_ptr<DebuggerL0>(nullptr);
}
} // namespace L0