Set MaxEusPerSubslice from topology if not already set

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-07-22 16:20:54 +00:00
committed by Compute-Runtime-Automation
parent 575445dbb5
commit 6486b3574d
2 changed files with 7 additions and 0 deletions

View File

@ -617,4 +617,10 @@ HWTEST2_F(HwConfigLinux, GivenDifferentValuesFromTopologyQueryWhenConfiguringHwI
EXPECT_EQ(static_cast<uint32_t>(drm->storedSVal), outHwInfo.gtSystemInfo.MaxSlicesSupported);
EXPECT_EQ(hwInfo.gtSystemInfo.MaxDualSubSlicesSupported, outHwInfo.gtSystemInfo.MaxDualSubSlicesSupported);
hwInfo.gtSystemInfo.MaxEuPerSubSlice = 0;
ret = hwConfig->configureHwInfoDrm(&hwInfo, &outHwInfo, osInterface.get());
EXPECT_EQ(0, ret);
EXPECT_EQ(8u, outHwInfo.gtSystemInfo.MaxEuPerSubSlice);
}