Skip to content

Commit

Permalink
add more supported flags for validation (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug authored Mar 15, 2024
1 parent b0057ee commit 80222e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion layers/10_cmdbufemu/emulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,14 @@ typedef struct _cl_command_buffer_khr
cl_command_buffer_flags_khr flags )
{
const cl_command_buffer_flags_khr allFlags =
CL_COMMAND_BUFFER_SIMULTANEOUS_USE_KHR;
CL_COMMAND_BUFFER_SIMULTANEOUS_USE_KHR |
#if defined(cl_khr_command_buffer_mutable_dispatch)
CL_COMMAND_BUFFER_MUTABLE_KHR |
#endif // defined(cl_khr_command_buffer_mutable_dispatch)
#if defined(cl_khr_command_buffer_multi_device) && 0
CL_COMMAND_BUFFER_DEVICE_SIDE_SYNC_KHR |
#endif // defined(cl_khr_command_buffer_multi_device)
0;
if( flags & ~allFlags )
{
return CL_INVALID_VALUE;
Expand Down

0 comments on commit 80222e5

Please sign in to comment.