Skip to content

Commit 1a04628

Browse files
L0 Debugger - disable compression in debugging mode
Resolves: NEO-6942 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
1 parent ab4a45b commit 1a04628

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

level_zero/core/source/driver/driver_handle_imp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ void DriverHandleImp::enableRootDeviceDebugger(std::unique_ptr<NEO::Device> &neo
171171
UNRECOVERABLE_IF(neoDevice->getDebugger() != nullptr && enableProgramDebugging);
172172
}
173173
rootDeviceEnvironment->getMutableHardwareInfo()->capabilityTable.fusedEuEnabled = false;
174+
rootDeviceEnvironment->getMutableHardwareInfo()->capabilityTable.ftrRenderCompressedBuffers = false;
175+
rootDeviceEnvironment->getMutableHardwareInfo()->capabilityTable.ftrRenderCompressedImages = false;
174176

175177
rootDeviceEnvironment->debugger = DebuggerL0::create(neoDevice.get());
176178
}

level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_1.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ TEST_F(L0DebuggerTest, givenProgramDebuggingEnabledWhenDebuggerIsCreatedThenFuse
6666
EXPECT_FALSE(neoDevice->getHardwareInfo().capabilityTable.fusedEuEnabled);
6767
}
6868

69+
TEST_F(L0DebuggerTest, givenProgramDebuggingEnabledWhenDebuggerIsCreatedThenCompressionIsDisabled) {
70+
EXPECT_TRUE(driverHandle->enableProgramDebugging);
71+
EXPECT_FALSE(neoDevice->getHardwareInfo().capabilityTable.ftrRenderCompressedBuffers);
72+
EXPECT_FALSE(neoDevice->getHardwareInfo().capabilityTable.ftrRenderCompressedImages);
73+
}
74+
6975
TEST(Debugger, givenL0DebuggerOFFWhenGettingStateSaveAreaHeaderThenValidSipTypeIsReturned) {
7076
auto executionEnvironment = new NEO::ExecutionEnvironment();
7177
executionEnvironment->prepareRootDeviceEnvironments(1);

0 commit comments

Comments
 (0)