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(
885
885
UR_CALL (DstBuffer->getZeHandle (ZeHandleDst, ur_mem_handle_t_::write_only,
886
886
CommandBuffer->Device ));
887
887
888
- bool PreferCopyEngine = (SrcBuffer->OnHost || SrcBuffer ->OnHost );
888
+ bool PreferCopyEngine = (SrcBuffer->OnHost || DstBuffer ->OnHost );
889
889
890
890
PreferCopyEngine |= UseCopyEngineForD2DCopy;
891
891
@@ -917,7 +917,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendMemBufferCopyRectExp(
917
917
UR_CALL (DstBuffer->getZeHandle (ZeHandleDst, ur_mem_handle_t_::write_only,
918
918
CommandBuffer->Device ));
919
919
920
- bool PreferCopyEngine = (SrcBuffer->OnHost || SrcBuffer ->OnHost );
920
+ bool PreferCopyEngine = (SrcBuffer->OnHost || DstBuffer ->OnHost );
921
921
922
922
PreferCopyEngine |= UseCopyEngineForD2DCopy;
923
923
You can’t perform that action at this time.
0 commit comments