mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Add windows debugger feature check
Related-To: NEO-6717 Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f3c3822ab8
commit
db6562c092
@@ -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
|
||||
Reference in New Issue
Block a user