mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
feature: debug flag to disable l0 debugger
Related-To: HSD-18037823909 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4ebb668d76
commit
844b29d17c
@@ -605,4 +605,5 @@ EnableLogLevel = 6
|
||||
EnableReusingGpuTimestamps = -1
|
||||
ForceCopyOperationOffloadForComputeCmdList = -1
|
||||
SecondaryContextEngineTypeMask = -1
|
||||
DisableSupportForL0Debugger=0
|
||||
# Please don't edit below this line
|
||||
|
||||
@@ -95,6 +95,22 @@ TEST(Device, givenNoDebuggerWhenGettingDebuggerThenNullptrIsReturned) {
|
||||
EXPECT_EQ(nullptr, device->getL0Debugger());
|
||||
}
|
||||
|
||||
struct DeviceWithDisabledL0DebuggerTests : public DeviceFixture, public ::testing::Test {
|
||||
void SetUp() override {
|
||||
debugManager.flags.DisableSupportForL0Debugger.set(true);
|
||||
DeviceFixture::setUp();
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
DeviceFixture::tearDown();
|
||||
}
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
};
|
||||
|
||||
TEST_F(DeviceWithDisabledL0DebuggerTests, givenSetFlagDisableSupportForL0DebuggerWhenCreateDeviceThenCapabilityLDebuggerSupportedIsDisabled) {
|
||||
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.l0DebuggerSupported);
|
||||
}
|
||||
|
||||
TEST(Device, givenDeviceWithBrandingStringNameWhenGettingDeviceNameThenBrandingStringIsReturned) {
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user