mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Add adjustHwInfoForIgc support
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fba5e99c48
commit
336c8c10d5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user