@@ -889,24 +889,7 @@ ur_result_t bindlessImagesHandleCopyFlags(
889889 (ZeCommandList, pDst, &ZeDstRegion, DstRowPitch, DstSlicePitch,
890890 pSrc, &ZeSrcRegion, SrcRowPitch, SrcSlicePitch, zeSignalEvent,
891891 numWaitEvents, phWaitEvents));
892- } else if (pSrcImageDesc->rowPitch == 0 && pDstImageDesc->rowPitch == 0 ) {
893- // Copy from Non-USM memory to Non-USM memory
894- ze_image_region_t DstRegion;
895- UR_CALL (getImageRegionHelper (zeSrcImageDesc, &pCopyRegion->dstOffset ,
896- &pCopyRegion->copyExtent , DstRegion));
897- ze_image_region_t SrcRegion;
898- UR_CALL (getImageRegionHelper (zeSrcImageDesc, &pCopyRegion->srcOffset ,
899- &pCopyRegion->copyExtent , SrcRegion));
900- auto *UrImageDst = static_cast <ur_bindless_mem_handle_t *>(pDst);
901- auto *UrImageSrc = static_cast <const ur_bindless_mem_handle_t *>(pSrc);
902- ZE2UR_CALL (zeCommandListAppendImageCopyRegion,
903- (ZeCommandList, UrImageDst->getZeImage (),
904- UrImageSrc->getZeImage (), &DstRegion, &SrcRegion,
905- zeSignalEvent, numWaitEvents, phWaitEvents));
906892 } else {
907- // Copy from Non-USM/pitched USM memory to pitched USM/Non-USM memory
908- // Note: This might be the same procedure as pitched USM to
909- // pitched USM. Need further testing.
910893 ze_image_region_t DstRegion;
911894 UR_CALL (getImageRegionHelper (zeSrcImageDesc, &pCopyRegion->dstOffset ,
912895 &pCopyRegion->copyExtent , DstRegion));
0 commit comments