feature: add debug key to set MaxSubSlicesSupported

Related-To: HSD-16025421624
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
Naklicki, Mateusz
2024-10-21 12:06:30 +00:00
committed by Compute-Runtime-Automation
parent 0fb06b77dc
commit a5a11f4a0e
4 changed files with 21 additions and 0 deletions

View File

@@ -43,3 +43,17 @@ HWTEST2_F(HwInfoOverrideTest, givenBlitterEnableMaskOverrideWhenPrepareDeviceEnv
auto hwInfo = executionEnvironment.rootDeviceEnvironments[0]->getHardwareInfo();
EXPECT_EQ(hwInfo->featureTable.ftrBcsInfo, 0x6);
}
TEST_F(HwInfoOverrideTest, givenMaxSubSlicesSupportedOverrideWhenPrepareDeviceEnvironmentsForProductFamilyOverrideThenMaxSubSlicesSupportedValueIsReturned) {
DebugManagerStateRestore stateRestore;
debugManager.flags.MaxSubSlicesSupportedOverride.set(128);
MockExecutionEnvironment executionEnvironment{};
bool success = DeviceFactory::prepareDeviceEnvironmentsForProductFamilyOverride(executionEnvironment);
EXPECT_TRUE(success);
auto hwInfo = executionEnvironment.rootDeviceEnvironments[0]->getHardwareInfo();
EXPECT_EQ(hwInfo->gtSystemInfo.MaxSubSlicesSupported, 128u);
EXPECT_EQ(hwInfo->gtSystemInfo.MaxDualSubSlicesSupported, 128u);
}