refactor: remove redundant function computeMaxNeededSubSliceSpace

use GfxCoreHelper::getHighestEnabledDualSubSlice instead

Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-07-31 12:09:47 +00:00
committed by Compute-Runtime-Automation
parent b33fe6ccf1
commit c0b96dcd6e
9 changed files with 2 additions and 58 deletions

View File

@@ -992,26 +992,6 @@ HWTEST2_F(ProductHelperTest, givenProductHelperWhenItsXe2PlusThenCacheLineSizeIs
EXPECT_EQ(productHelper->getCacheLineSize(), 256u);
}
TEST_F(ProductHelperTest, whenGettingMaxSubSliceSpaceThenValueIsNotSmallerThanMaxSubSliceCount) {
constexpr auto maxSupportedSubSlices = 128u;
auto hwInfo = *defaultHwInfo;
auto &gtSystemInfo = hwInfo.gtSystemInfo;
gtSystemInfo.SliceCount = 1;
gtSystemInfo.SubSliceCount = 2;
gtSystemInfo.DualSubSliceCount = 2;
gtSystemInfo.MaxSlicesSupported = 2;
gtSystemInfo.MaxSlicesSupported = 2;
gtSystemInfo.MaxSubSlicesSupported = maxSupportedSubSlices;
gtSystemInfo.MaxDualSubSlicesSupported = maxSupportedSubSlices;
gtSystemInfo.IsDynamicallyPopulated = true;
for (uint32_t slice = 0; slice < GT_MAX_SLICE; slice++) {
gtSystemInfo.SliceInfo[slice].Enabled = slice < gtSystemInfo.SliceCount;
}
EXPECT_EQ(maxSupportedSubSlices, productHelper->computeMaxNeededSubSliceSpace(hwInfo));
}
HWTEST_F(ProductHelperTest, givenDefaultProductHelperWhenQuery2DBlockLoadThenReturnFalse) {
EXPECT_FALSE(productHelper->supports2DBlockLoad());