fix: Add per product cache line size property

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2024-07-18 11:32:45 +00:00
committed by Compute-Runtime-Automation
parent 64acb65b08
commit 85e708819a
14 changed files with 31 additions and 1 deletions

View File

@@ -970,4 +970,12 @@ TEST(ProductHelperPreemptionSettingTest, whenSipClassIsForcedToBuiltinThenRequir
hwInfo.capabilityTable.requiredPreemptionSurfaceSize = initialPreemptionSurfaceSize;
MockProductHelper::setupPreemptionSurfaceSize(hwInfo, *executionEnvironment.rootDeviceEnvironments[0]);
EXPECT_EQ(initialPreemptionSurfaceSize, hwInfo.capabilityTable.requiredPreemptionSurfaceSize);
}
HWTEST2_F(ProductHelperTest, givenProductHelperWhenItsPreXe2ThenCacheLineSizeIs64Bytes, IsAtMostPVC) {
EXPECT_EQ(productHelper->getCacheLineSize(), 64u);
}
HWTEST2_F(ProductHelperTest, givenProductHelperWhenItsXe2PlusThenCacheLineSizeIs256Bytes, IsAtLeastBmg) {
EXPECT_EQ(productHelper->getCacheLineSize(), 256u);
}