@@ -114,15 +114,6 @@ void KernelImmutableData::initialize(NEO::KernelInfo *kernelInfo, Device *device
114114 {neoDevice->getRootDeviceIndex (), kernelIsaSize, allocType, neoDevice->getDeviceBitfield ()});
115115 UNRECOVERABLE_IF (allocation == nullptr );
116116
117- auto &hwInfo = neoDevice->getHardwareInfo ();
118- auto &hwHelper = NEO::HwHelper::get (hwInfo.platform .eRenderCoreFamily );
119-
120- if (kernelInfo->heapInfo .pKernelHeap != nullptr && internalKernel == false ) {
121- NEO::MemoryTransferHelper::transferMemoryToAllocation (hwHelper.isBlitCopyRequiredForLocalMemory (hwInfo, *allocation),
122- *neoDevice, allocation, 0 , kernelInfo->heapInfo .pKernelHeap ,
123- static_cast <size_t >(kernelIsaSize));
124- }
125-
126117 isaGraphicsAllocation.reset (allocation);
127118
128119 if (neoDevice->getDebugger () && kernelInfo->kernelDescriptor .external .debugData .get ()) {
@@ -132,6 +123,15 @@ void KernelImmutableData::initialize(NEO::KernelInfo *kernelInfo, Device *device
132123 }
133124 }
134125
126+ auto &hwInfo = neoDevice->getHardwareInfo ();
127+ auto &hwHelper = NEO::HwHelper::get (hwInfo.platform .eRenderCoreFamily );
128+
129+ if (kernelInfo->heapInfo .pKernelHeap != nullptr && internalKernel == false ) {
130+ NEO::MemoryTransferHelper::transferMemoryToAllocation (hwHelper.isBlitCopyRequiredForLocalMemory (hwInfo, *allocation),
131+ *neoDevice, allocation, 0 , kernelInfo->heapInfo .pKernelHeap ,
132+ static_cast <size_t >(kernelIsaSize));
133+ }
134+
135135 this ->crossThreadDataSize = this ->kernelDescriptor ->kernelAttributes .crossThreadDataSize ;
136136
137137 ArrayRef<uint8_t > crossThredDataArrayRef;
0 commit comments