Add adjustHwInfoForIgc support

Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
This commit is contained in:
Rafal Maziejuk
2022-11-23 11:12:58 +00:00
committed by Compute-Runtime-Automation
parent fba5e99c48
commit 336c8c10d5
5 changed files with 25 additions and 4 deletions

View File

@@ -24,6 +24,16 @@ HWTEST_F(CompilerProductHelperFixture, WhenIsMidThreadPreemptionIsSupportedIsCal
EXPECT_TRUE(compilerProductHelper->isMidThreadPreemptionSupported(hwInfo));
}
HWTEST_F(CompilerProductHelperFixture, WhenAdjustHwInfoForIgcIsCalledThenHwInfoNotChanged) {
auto &hwInfo = *pDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
auto adjustedHwInfo = hwInfo;
auto compilerProductHelper = CompilerProductHelper::get(hwInfo.platform.eProductFamily);
compilerProductHelper->adjustHwInfoForIgc(adjustedHwInfo);
EXPECT_EQ(hwInfo.platform.eProductFamily, adjustedHwInfo.platform.eProductFamily);
}
using IsBeforeXeHpc = IsBeforeGfxCore<IGFX_XE_HPC_CORE>;
HWTEST2_F(CompilerProductHelperFixture, GivenProductBeforeXeHpcWhenIsForceToStatelessRequiredThenFalseIsReturned, IsBeforeXeHpc) {