Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more supported flags for validation #111

Merged
merged 1 commit into from
Mar 15, 2024
Merged
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
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