mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
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:
committed by
Compute-Runtime-Automation
parent
b33fe6ccf1
commit
c0b96dcd6e
@@ -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 >SystemInfo = 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());
|
||||
|
||||
Reference in New Issue
Block a user