Skip to content
Merged
Changes from 1 commit
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
Next Next commit
explicitly pass NULL for an empty event wait list
  • Loading branch information
bashbaug committed Aug 25, 2025
commit 5ad3dd0d4f30d8f2ce2824cba70b2785022df8c8
22 changes: 11 additions & 11 deletions layers/10_cmdbufemu/emulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ struct BarrierWithWaitList : Command
return g_pNextDispatch->clEnqueueBarrierWithWaitList(
queue,
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -271,7 +271,7 @@ struct CopyBuffer : Command
dst_offset,
size,
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -345,7 +345,7 @@ struct CopyBufferRect : Command
dst_row_pitch,
dst_slice_pitch,
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -411,7 +411,7 @@ struct CopyBufferToImage : Command
dst_origin.data(),
region.data(),
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -473,7 +473,7 @@ struct CopyImage : Command
dst_origin.data(),
region.data(),
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -535,7 +535,7 @@ struct CopyImageToBuffer : Command
region.data(),
dst_offset,
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -601,7 +601,7 @@ struct FillBuffer : Command
offset,
size,
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -678,7 +678,7 @@ struct FillImage : Command
origin.data(),
region.data(),
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -725,7 +725,7 @@ struct SVMMemcpy : Command
src_ptr,
size,
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -779,7 +779,7 @@ struct SVMMemFill : Command
pattern.size(),
size,
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down Expand Up @@ -1073,7 +1073,7 @@ struct NDRangeKernel : Command
global_work_size.data(),
local_work_size.size() ? local_work_size.data() : nullptr,
static_cast<cl_uint>(wait_list.size()),
wait_list.data(),
wait_list.size() ? wait_list.data() : nullptr,
signal);
}

Expand Down