From 5c6ec39bb5c75ce95dd3e9eac6127984e651f5e8 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Fri, 15 Mar 2024 08:26:38 -0700 Subject: [PATCH] add more supported flags for validation --- layers/10_cmdbufemu/emulate.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layers/10_cmdbufemu/emulate.cpp b/layers/10_cmdbufemu/emulate.cpp index 1da1792..e6c8375 100644 --- a/layers/10_cmdbufemu/emulate.cpp +++ b/layers/10_cmdbufemu/emulate.cpp @@ -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;