HwHelper: update getSubDevicesCount and getEnginesCount implementation

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-06-28 13:44:09 +00:00
committed by Compute-Runtime-Automation
parent 8582c9cbc7
commit afd5f766c2
4 changed files with 73 additions and 10 deletions

View File

@ -1334,3 +1334,19 @@ HWTEST_F(HwHelperTest, whenSetRenderCompressedFlagThenProperFlagSet) {
hwHelper.applyRenderCompressionFlag(*gmm, 0);
EXPECT_EQ(0u, gmm->resourceParams.Flags.Info.RenderCompressed);
}
HWTEST_F(HwHelperTest, givenRcsOrCcsEnabledWhenQueryingEngineCountThenReturnCorrectValue) {
HardwareInfo hwInfo = *defaultHwInfo;
hwInfo.gtSystemInfo.CCSInfo.NumberOfCCSEnabled = 3;
hwInfo.featureTable.ftrRcsNode = false;
hwInfo.featureTable.ftrCCSNode = false;
EXPECT_EQ(0u, HwHelper::getEnginesCount(hwInfo));
hwInfo.featureTable.ftrCCSNode = true;
EXPECT_EQ(3u, HwHelper::getEnginesCount(hwInfo));
hwInfo.featureTable.ftrRcsNode = true;
EXPECT_EQ(4u, HwHelper::getEnginesCount(hwInfo));
}