Code cleanup - avoid copy 2/n

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2021-07-19 18:51:17 +00:00
committed by Compute-Runtime-Automation
parent 771722f3d7
commit ce92b42f63
3 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ class CommandQueueHw : public CommandQueue {
auto &stateSaveAreaHeader = SipKernel::getSipKernel(device->getDevice()).getStateSaveAreaHeader();
if (stateSaveAreaHeader.size() > 0) {
auto hwInfo = device->getDevice().getHardwareInfo();
auto &hwInfo = device->getDevice().getHardwareInfo();
auto &hwHelper = NEO::HwHelper::get(hwInfo.platform.eRenderCoreFamily);
NEO::MemoryTransferHelper::transferMemoryToAllocation(hwHelper.isBlitCopyRequiredForLocalMemory(hwInfo, *debugSurface),
device->getDevice(), debugSurface, 0, stateSaveAreaHeader.data(),