refactor: don't use global GfxCoreHelper getter

Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2023-01-09 13:30:43 +00:00
committed by Compute-Runtime-Automation
parent 0dc5fb3e51
commit 60340734b7
15 changed files with 72 additions and 53 deletions

View File

@@ -1932,7 +1932,8 @@ HWTEST_F(CommandStreamReceiverTest, givenDebugFlagWhenCreatingCsrThenSetEnableSt
}
HWTEST_F(CommandStreamReceiverTest, whenCreatingWorkPartitionAllocationThenInitializeContentsWithCopyEngine) {
REQUIRE_BLITTER_OR_SKIP(defaultHwInfo.get());
MockExecutionEnvironment mockExecutionEnvironment{};
REQUIRE_BLITTER_OR_SKIP(*mockExecutionEnvironment.rootDeviceEnvironments[0].get());
DebugManagerStateRestore restore{};
DebugManager.flags.EnableStaticPartitioning.set(0);
@@ -2135,7 +2136,7 @@ TEST(CreateWorkPartitionAllocationTest, givenEnabledBlitterWhenInitializingWorkP
auto memoryManager = static_cast<MockMemoryManager *>(device.getMemoryManager());
auto commandStreamReceiver = device.getDefaultEngine().commandStreamReceiver;
REQUIRE_BLITTER_OR_SKIP(&device.getHardwareInfo());
REQUIRE_BLITTER_OR_SKIP(device.getRootDeviceEnvironment());
memoryManager->freeGraphicsMemory(commandStreamReceiver->getWorkPartitionAllocation());
memoryManager->copyMemoryToAllocationBanksCalled = 0u;