mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
refactor: Cleanup of tests that rely on default AOT config
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6de68d3bfd
commit
9ee94c81b7
@@ -347,9 +347,15 @@ HWTEST2_F(CompilerProductHelperFixture, givenConfigWhenMatchConfigWithRevIdThenP
|
||||
auto &compilerProductHelper = pDevice->getCompilerProductHelper();
|
||||
auto &hwInfo = *pDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto config = hwInfo.ipVersion.value;
|
||||
EXPECT_EQ(compilerProductHelper.matchRevisionIdWithProductConfig(config, 0x0), config);
|
||||
EXPECT_EQ(compilerProductHelper.matchRevisionIdWithProductConfig(config, 0x1), config);
|
||||
EXPECT_EQ(compilerProductHelper.matchRevisionIdWithProductConfig(config, 0x4), config);
|
||||
for (uint32_t rev : {0x0, 0x1, 0x4}) {
|
||||
NEO::HardwareIpVersion matchedIpVersion;
|
||||
matchedIpVersion.value = compilerProductHelper.matchRevisionIdWithProductConfig(config, rev);
|
||||
EXPECT_EQ(hwInfo.ipVersion.architecture, matchedIpVersion.architecture) << rev;
|
||||
EXPECT_EQ(hwInfo.ipVersion.release, matchedIpVersion.release) << rev;
|
||||
bool gotSameRevision = (matchedIpVersion.revision == hwInfo.ipVersion.revision);
|
||||
bool gotRequestedRevision = (matchedIpVersion.revision == rev);
|
||||
EXPECT_TRUE(gotSameRevision || gotRequestedRevision) << rev;
|
||||
}
|
||||
}
|
||||
|
||||
HWTEST_F(CompilerProductHelperFixture, givenProductHelperWhenGetAndOverrideHwIpVersionThenCorrectMatchIsFound) {
|
||||
|
||||
@@ -28,6 +28,7 @@ HWTEST2_P(ProductConfigHwInfoTests, givenAotConfigWhenSetHwInfoGmdIdThenCorrectV
|
||||
HWTEST2_P(ProductConfigHwInfoTests, givenUnknownAotConfigWhenGetProductConfigThenDefaultConfigIsReturned, IsAtLeastMtl) {
|
||||
hwInfo.ipVersion = {};
|
||||
hwInfo.platform.usDeviceID = 0;
|
||||
hwInfo.platform.usRevId = CommonConstants::invalidRevisionID;
|
||||
auto ret = compilerProductHelper->getHwIpVersion(hwInfo);
|
||||
EXPECT_EQ(ret, compilerProductHelper->getDefaultHwIpVersion());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user