Refactor: don't use global ProductHelper getter in shared 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 03:09:52 +00:00
committed by Compute-Runtime-Automation
parent 96743747a3
commit 929e03ad8a
4 changed files with 18 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ void DebuggerL0::initialize() {
memoryOperationsIface->makeResident(device, ArrayRef<NEO::GraphicsAllocation *>(&moduleDebugArea, 1));
}
const auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
const auto &productHelper = device->getProductHelper();
NEO::MemoryTransferHelper::transferMemoryToAllocation(productHelper.isBlitCopyRequiredForLocalMemory(hwInfo, *moduleDebugArea),
*device, moduleDebugArea, 0, &debugArea,
sizeof(DebugAreaHeader));