Refactor: don't use global ProductHelper getter in ocl files 1/n

Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2022-12-27 02:57:51 +00:00
committed by Compute-Runtime-Automation
parent 929e03ad8a
commit 14d524fe26
5 changed files with 6 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ HWTEST_F(TimestampPacketTests, givenCrossCsrDependenciesWhenFillCsrDepsThenFlush
eventsRequest.fillCsrDependenciesForTimestampPacketContainer(csrDeps, mockCmdQ->getGpgpuCommandStreamReceiver(), CsrDependencies::DependenciesType::All);
const auto &productHelper = *NEO::ProductHelper::get(device->getHardwareInfo().platform.eProductFamily);
const auto &productHelper = device->getProductHelper();
if (productHelper.isDcFlushAllowed()) {
EXPECT_TRUE(mockCmdQ2->getUltCommandStreamReceiver().flushBatchedSubmissionsCalled);
} else {