mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Limit header includes from level_zero device.h
- remove including debugger_l0.h from device.h - add getL0Debugger() to shared NEO Device Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e768d0ed5e
commit
5956aea18d
@@ -11,6 +11,7 @@
|
||||
#include "shared/source/command_stream/experimental_command_buffer.h"
|
||||
#include "shared/source/command_stream/preemption.h"
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/debugger/debugger_l0.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/source/gmm_helper/gmm_helper.h"
|
||||
#include "shared/source/helpers/hw_helper.h"
|
||||
@@ -554,6 +555,14 @@ NEO::SourceLevelDebugger *Device::getSourceLevelDebugger() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
NEO::DebuggerL0 *Device::getL0Debugger() {
|
||||
auto debugger = getDebugger();
|
||||
if (debugger) {
|
||||
return !debugger->isLegacy() ? static_cast<NEO::DebuggerL0 *>(debugger) : nullptr;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const std::vector<EngineControl> &Device::getAllEngines() const {
|
||||
return this->allEngines;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user