File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -885,7 +885,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendMemBufferCopyExp(
885885 UR_CALL (DstBuffer->getZeHandle (ZeHandleDst, ur_mem_handle_t_::write_only,
886886 CommandBuffer->Device ));
887887
888- bool PreferCopyEngine = (SrcBuffer->OnHost || SrcBuffer ->OnHost );
888+ bool PreferCopyEngine = (SrcBuffer->OnHost || DstBuffer ->OnHost );
889889
890890 PreferCopyEngine |= UseCopyEngineForD2DCopy;
891891
@@ -917,7 +917,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendMemBufferCopyRectExp(
917917 UR_CALL (DstBuffer->getZeHandle (ZeHandleDst, ur_mem_handle_t_::write_only,
918918 CommandBuffer->Device ));
919919
920- bool PreferCopyEngine = (SrcBuffer->OnHost || SrcBuffer ->OnHost );
920+ bool PreferCopyEngine = (SrcBuffer->OnHost || DstBuffer ->OnHost );
921921
922922 PreferCopyEngine |= UseCopyEngineForD2DCopy;
923923
You can’t perform that action at this time.
0 commit comments