Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/adapters/level_zero/command_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendMemBufferCopyExp(
UR_CALL(DstBuffer->getZeHandle(ZeHandleDst, ur_mem_handle_t_::write_only,
CommandBuffer->Device));

bool PreferCopyEngine = (SrcBuffer->OnHost || SrcBuffer->OnHost);
bool PreferCopyEngine = (SrcBuffer->OnHost || DstBuffer->OnHost);

PreferCopyEngine |= UseCopyEngineForD2DCopy;

Expand Down Expand Up @@ -917,7 +917,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendMemBufferCopyRectExp(
UR_CALL(DstBuffer->getZeHandle(ZeHandleDst, ur_mem_handle_t_::write_only,
CommandBuffer->Device));

bool PreferCopyEngine = (SrcBuffer->OnHost || SrcBuffer->OnHost);
bool PreferCopyEngine = (SrcBuffer->OnHost || DstBuffer->OnHost);

PreferCopyEngine |= UseCopyEngineForD2DCopy;

Expand Down