@@ -603,9 +603,9 @@ clRemapCommandBufferKHR(
603
603
"cl_khr_command_buffer_mutable_dispatch"
604
604
605
605
606
- #define CL_KHR_COMMAND_BUFFER_MUTABLE_DISPATCH_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 1 )
606
+ #define CL_KHR_COMMAND_BUFFER_MUTABLE_DISPATCH_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 2 )
607
607
608
- typedef cl_uint cl_command_buffer_structure_type_khr ;
608
+ typedef cl_uint cl_command_buffer_update_type_khr ;
609
609
typedef cl_bitfield cl_mutable_dispatch_fields_khr ;
610
610
typedef cl_uint cl_mutable_command_info_khr ;
611
611
typedef struct _cl_mutable_dispatch_arg_khr {
@@ -619,8 +619,6 @@ typedef struct _cl_mutable_dispatch_exec_info_khr {
619
619
const void * param_value ;
620
620
} cl_mutable_dispatch_exec_info_khr ;
621
621
typedef struct _cl_mutable_dispatch_config_khr {
622
- cl_command_buffer_structure_type_khr type ;
623
- const void * next ;
624
622
cl_mutable_command_khr command ;
625
623
cl_uint num_args ;
626
624
cl_uint num_svm_args ;
@@ -633,12 +631,6 @@ typedef struct _cl_mutable_dispatch_config_khr {
633
631
const size_t * global_work_size ;
634
632
const size_t * local_work_size ;
635
633
} cl_mutable_dispatch_config_khr ;
636
- typedef struct _cl_mutable_base_config_khr {
637
- cl_command_buffer_structure_type_khr type ;
638
- const void * next ;
639
- cl_uint num_mutable_dispatch ;
640
- const cl_mutable_dispatch_config_khr * mutable_dispatch_list ;
641
- } cl_mutable_base_config_khr ;
642
634
typedef cl_bitfield cl_mutable_dispatch_asserts_khr ;
643
635
644
636
/* cl_command_buffer_flags_khr - bitfield */
@@ -671,9 +663,8 @@ typedef cl_bitfield cl_mutable_dispatch_asserts_khr;
671
663
#define CL_MUTABLE_DISPATCH_GLOBAL_WORK_SIZE_KHR 0x12A6
672
664
#define CL_MUTABLE_DISPATCH_LOCAL_WORK_SIZE_KHR 0x12A7
673
665
674
- /* cl_command_buffer_structure_type_khr */
675
- #define CL_STRUCTURE_TYPE_MUTABLE_BASE_CONFIG_KHR 0
676
- #define CL_STRUCTURE_TYPE_MUTABLE_DISPATCH_CONFIG_KHR 1
666
+ /* cl_command_buffer_update_type_khr */
667
+ #define CL_STRUCTURE_TYPE_MUTABLE_DISPATCH_CONFIG_KHR 0
677
668
678
669
/* cl_command_buffer_properties_khr */
679
670
#define CL_COMMAND_BUFFER_MUTABLE_DISPATCH_ASSERTS_KHR 0x12B7
@@ -688,7 +679,9 @@ typedef cl_bitfield cl_mutable_dispatch_asserts_khr;
688
679
typedef cl_int CL_API_CALL
689
680
clUpdateMutableCommandsKHR_t (
690
681
cl_command_buffer_khr command_buffer ,
691
- const cl_mutable_base_config_khr * mutable_config );
682
+ cl_uint num_configs ,
683
+ const cl_command_buffer_update_type_khr * config_types ,
684
+ const void * * configs );
692
685
693
686
typedef clUpdateMutableCommandsKHR_t *
694
687
clUpdateMutableCommandsKHR_fn ;
@@ -709,7 +702,9 @@ clGetMutableCommandInfoKHR_fn ;
709
702
extern CL_API_ENTRY cl_int CL_API_CALL
710
703
clUpdateMutableCommandsKHR (
711
704
cl_command_buffer_khr command_buffer ,
712
- const cl_mutable_base_config_khr * mutable_config ) ;
705
+ cl_uint num_configs ,
706
+ const cl_command_buffer_update_type_khr * config_types ,
707
+ const void * * configs ) ;
713
708
714
709
extern CL_API_ENTRY cl_int CL_API_CALL
715
710
clGetMutableCommandInfoKHR (
0 commit comments