@@ -1216,7 +1216,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendBlitFill(void *ptr,
12161216 appendEventForProfiling (hEvent, true );
12171217 NEO::GraphicsAllocation *gpuAllocation = device->getDriverHandle ()->getDriverSystemMemoryAllocation (ptr,
12181218 size,
1219- neoDevice->getRootDeviceIndex ());
1219+ neoDevice->getRootDeviceIndex (),
1220+ nullptr );
12201221 if (gpuAllocation == nullptr ) {
12211222 return ZE_RESULT_ERROR_INVALID_ARGUMENT;
12221223 }
@@ -1301,17 +1302,15 @@ inline AlignedAllocationData CommandListCoreFamily<gfxCoreFamily>::getAlignedAll
13011302
13021303 if (srcAllocFound == false ) {
13031304 alloc = device->getDriverHandle ()->findHostPointerAllocation (ptr, static_cast <size_t >(bufferSize), device->getRootDeviceIndex ());
1304- if (alloc != nullptr ) {
1305- offset += ptrDiff (buffer, alloc->getUnderlyingBuffer ());
1306- } else {
1307- alloc = getHostPtrAlloc (buffer, bufferSize, &offset);
1305+ if (alloc == nullptr ) {
1306+ alloc = getHostPtrAlloc (buffer, bufferSize);
13081307 }
13091308 alignedPtr = static_cast <uintptr_t >(alignDown (alloc->getGpuAddress (), NEO::EncodeSurfaceState<GfxFamily>::getSurfaceBaseAddressAlignment ()));
13101309
13111310 hostPointerNeedsFlush = true ;
13121311 } else {
13131312 alloc = allocData->gpuAllocations .getGraphicsAllocation (device->getRootDeviceIndex ());
1314- alignedPtr = reinterpret_cast < uintptr_t >(ptr) - offset ;
1313+ alignedPtr = sourcePtr ;
13151314
13161315 if (allocData->memoryType == InternalMemoryType::HOST_UNIFIED_MEMORY ||
13171316 allocData->memoryType == InternalMemoryType::SHARED_UNIFIED_MEMORY) {
0 commit comments