mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
HwHelper: update getSubDevicesCount and getEnginesCount implementation
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
8582c9cbc7
commit
afd5f766c2
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user