Skip to content

Commit 27e48c2

Browse files
Removed redundant condition
Signed-off-by: Zhang, Winston <[email protected]>
1 parent f264ec6 commit 27e48c2

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

unified-runtime/source/adapters/level_zero/image_common.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -887,25 +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.
908-
ze_image_region_t DstRegion;
909892
UR_CALL(getImageRegionHelper(zeSrcImageDesc, &pCopyRegion->dstOffset,
910893
&pCopyRegion->copyExtent, DstRegion));
911894
ze_image_region_t SrcRegion;

0 commit comments

Comments
 (0)