@@ -887,24 +887,8 @@ ur_result_t bindlessImagesHandleCopyFlags(
887887 (ZeCommandList, pDst, &ZeDstRegion, DstRowPitch, DstSlicePitch,
888888 pSrc, &ZeSrcRegion, SrcRowPitch, SrcSlicePitch, zeSignalEvent,
889889 numWaitEvents, phWaitEvents));
890- } else if (pSrcImageDesc->rowPitch == 0 && pDstImageDesc->rowPitch == 0 ) {
891- // Copy from Non-USM memory to Non-USM memory
892- ze_image_region_t DstRegion;
893- UR_CALL (getImageRegionHelper (zeSrcImageDesc, &pCopyRegion->dstOffset ,
894- &pCopyRegion->copyExtent , DstRegion));
895- ze_image_region_t SrcRegion;
896- UR_CALL (getImageRegionHelper (zeSrcImageDesc, &pCopyRegion->srcOffset ,
897- &pCopyRegion->copyExtent , SrcRegion));
898- auto *UrImageDst = static_cast <ur_bindless_mem_handle_t *>(pDst);
899- auto *UrImageSrc = static_cast <const ur_bindless_mem_handle_t *>(pSrc);
900- ZE2UR_CALL (zeCommandListAppendImageCopyRegion,
901- (ZeCommandList, UrImageDst->getZeImage (),
902- UrImageSrc->getZeImage (), &DstRegion, &SrcRegion,
903- zeSignalEvent, numWaitEvents, phWaitEvents));
904890 } else {
905891 // Copy from Non-USM/pitched USM memory to pitched USM/Non-USM memory
906- // Note: This might be the same procedure as pitched USM to
907- // pitched USM. Need further testing.
908892 ze_image_region_t DstRegion;
909893 UR_CALL (getImageRegionHelper (zeSrcImageDesc, &pCopyRegion->dstOffset ,
910894 &pCopyRegion->copyExtent , DstRegion));
0 commit comments