mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 06:23:01 +08:00
Introduce Online, Offline, Disabled DebuggingModes
This change allows to set DebuggingMode via ZET_ENABLE_PROGRAM_DEBUGGING env var 0: Disabled 1: Online 2: Offline Related-To: NEO-7630 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9b35ba5e50
commit
65c73a690f
@@ -88,7 +88,7 @@ TEST_F(WddmTests, whenftrEuDebugIsFalseThenDebuggingEnabledReturnsFalse) {
|
||||
}
|
||||
|
||||
TEST_F(WddmTests, whenProgramDebugIsEnabledAndCreatingContextWithInternalEngineThenDebuggableContextReturnsFalse) {
|
||||
executionEnvironment->setDebuggingMode(NEO::DebuggingMode::Enabled);
|
||||
executionEnvironment->setDebuggingMode(NEO::DebuggingMode::Online);
|
||||
wddm->init();
|
||||
OsContextWin osContext(*wddm, 0, 5u, EngineDescriptorHelper::getDefaultDescriptor({aub_stream::EngineType::ENGINE_RCS, EngineUsage::Internal}));
|
||||
osContext.ensureContextInitialized();
|
||||
@@ -181,7 +181,7 @@ TEST_F(WddmTests, GivengtSystemInfoSliceInfoHasEnabledSlicesAtHigherIndicesThenE
|
||||
&hwInfo->gtSystemInfo,
|
||||
hwInfo->capabilityTable.gpuAddressSpace));
|
||||
|
||||
wddm->rootDeviceEnvironment.executionEnvironment.setDebuggingMode(NEO::DebuggingMode::Enabled);
|
||||
wddm->rootDeviceEnvironment.executionEnvironment.setDebuggingMode(NEO::DebuggingMode::Online);
|
||||
EXPECT_TRUE(wddm->init());
|
||||
const auto &topologyMap = wddm->getTopologyMap();
|
||||
EXPECT_EQ(topologyMap.size(), 1u);
|
||||
@@ -206,7 +206,7 @@ TEST_F(WddmTests, GivenProperTopologyDataAndDebugFlagsEnabledWhenInitializingWdd
|
||||
&hwInfo->gtSystemInfo,
|
||||
hwInfo->capabilityTable.gpuAddressSpace));
|
||||
|
||||
wddm->rootDeviceEnvironment.executionEnvironment.setDebuggingMode(NEO::DebuggingMode::Enabled);
|
||||
wddm->rootDeviceEnvironment.executionEnvironment.setDebuggingMode(NEO::DebuggingMode::Online);
|
||||
EXPECT_TRUE(wddm->init());
|
||||
const auto &topologyMap = wddm->getTopologyMap();
|
||||
EXPECT_EQ(topologyMap.size(), 1u);
|
||||
@@ -227,7 +227,7 @@ TEST_F(WddmTests, GivenNoSubsliceEnabledAndDebugFlagsEnabledWhenInitializingWddm
|
||||
&hwInfo->gtSystemInfo,
|
||||
hwInfo->capabilityTable.gpuAddressSpace));
|
||||
|
||||
wddm->rootDeviceEnvironment.executionEnvironment.setDebuggingMode(NEO::DebuggingMode::Enabled);
|
||||
wddm->rootDeviceEnvironment.executionEnvironment.setDebuggingMode(NEO::DebuggingMode::Online);
|
||||
EXPECT_FALSE(wddm->init());
|
||||
const auto &topologyMap = wddm->getTopologyMap();
|
||||
EXPECT_TRUE(topologyMap.empty());
|
||||
|
||||
Reference in New Issue
Block a user