refactor: Remove global CompilerProductHelper gettter 1/n

Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2023-01-20 16:09:58 +00:00
committed by Compute-Runtime-Automation
parent 7925e12392
commit 235385abc9
16 changed files with 61 additions and 40 deletions

View File

@@ -1981,9 +1981,11 @@ TEST_F(ProgramTests, whenCreatingFromZebinThenAppendAllowZebinFlagToBuildOptions
ZebinTestData::ValidEmptyProgram zebin;
auto copyHwInfo = *defaultHwInfo;
auto compilerProductHelper = CompilerProductHelper::get(copyHwInfo.platform.eProductFamily);
MockExecutionEnvironment mockExecutionEnvironment{};
compilerProductHelper->adjustHwInfoForIgc(copyHwInfo);
auto &compilerProductHelper = mockExecutionEnvironment.rootDeviceEnvironments[0]->getHelper<CompilerProductHelper>();
compilerProductHelper.adjustHwInfoForIgc(copyHwInfo);
zebin.elfHeader->machine = copyHwInfo.platform.eProductFamily;