mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0fb06b77dc
commit
a5a11f4a0e
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user