mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
rusticl/bindgen: Use allowlist-* instead of whitelist-* switches
bindgen 0.58.0 deprecated the `whitelist-*` switches in favor of the new `allowlist-*` switches. Currently rusticl uses a mixture of both. Consistently move to the newer versions. Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18834>
This commit is contained in:
parent
5537f778a0
commit
13016d22c5
1 changed files with 21 additions and 21 deletions
|
|
@ -134,8 +134,8 @@ rusticl_opencl_bindings_rs = rust.bindgen(
|
|||
'--ignore-functions',
|
||||
# needed because bindgen adds *mut void fields...
|
||||
'--raw-line', 'unsafe impl std::marker::Sync for _cl_icd_dispatch {}',
|
||||
'--whitelist-type', 'cl_.*',
|
||||
'--whitelist-var', 'CL_.*',
|
||||
'--allowlist-type', 'cl_.*',
|
||||
'--allowlist-var', 'CL_.*',
|
||||
# some info types need to be strongly typed so we can implement various get_infos
|
||||
'--new-type-alias-deref', 'cl_(mem|image|pipe)_info',
|
||||
'--new-type-alias-deref', 'cl_kernel_(arg|work_group)_info',
|
||||
|
|
@ -213,29 +213,29 @@ rusticl_mesa_bindings_rs = rust.bindgen(
|
|||
],
|
||||
args : [
|
||||
rusticl_bindgen_args,
|
||||
'--whitelist-function', 'blob_.*',
|
||||
'--whitelist-function', 'clc_.*',
|
||||
'--whitelist-function', 'disk_cache_.*',
|
||||
'--whitelist-function', 'free',
|
||||
'--whitelist-function', 'glsl_.*',
|
||||
'--whitelist-function', 'malloc',
|
||||
'--whitelist-function', 'mesa_.*',
|
||||
'--whitelist-function', 'nir_.*',
|
||||
'--whitelist-function', 'pipe_.*',
|
||||
'--whitelist-function', 'rusticl_.*',
|
||||
'--whitelist-function', 'rz?alloc_.*',
|
||||
'--whitelist-function', 'spirv_.*',
|
||||
'--whitelist-function', 'u_.*',
|
||||
'--whitelist-function', 'util_format_.*',
|
||||
'--whitelist-type', 'pipe_endian',
|
||||
'--whitelist-type', 'clc_kernel_arg_access_qualifier',
|
||||
'--allowlist-function', 'blob_.*',
|
||||
'--allowlist-function', 'clc_.*',
|
||||
'--allowlist-function', 'disk_cache_.*',
|
||||
'--allowlist-function', 'free',
|
||||
'--allowlist-function', 'glsl_.*',
|
||||
'--allowlist-function', 'malloc',
|
||||
'--allowlist-function', 'mesa_.*',
|
||||
'--allowlist-function', 'nir_.*',
|
||||
'--allowlist-function', 'pipe_.*',
|
||||
'--allowlist-function', 'rusticl_.*',
|
||||
'--allowlist-function', 'rz?alloc_.*',
|
||||
'--allowlist-function', 'spirv_.*',
|
||||
'--allowlist-function', 'u_.*',
|
||||
'--allowlist-function', 'util_format_.*',
|
||||
'--allowlist-type', 'pipe_endian',
|
||||
'--allowlist-type', 'clc_kernel_arg_access_qualifier',
|
||||
'--bitfield-enum', 'clc_kernel_arg_access_qualifier',
|
||||
'--whitelist-type', 'clc_kernel_arg_type_qualifier',
|
||||
'--allowlist-type', 'clc_kernel_arg_type_qualifier',
|
||||
'--bitfield-enum', 'clc_kernel_arg_type_qualifier',
|
||||
'--bitfield-enum', 'nir_opt_if_options',
|
||||
'--bitfield-enum', 'nir_variable_mode',
|
||||
'--whitelist-type', 'float_controls',
|
||||
'--whitelist-var', 'PIPE_.*',
|
||||
'--allowlist-type', 'float_controls',
|
||||
'--allowlist-var', 'PIPE_.*',
|
||||
'--bitfield-enum', 'pipe_map_flags',
|
||||
'--allowlist-function', 'std(err|out)_ptr',
|
||||
'--bitfield-enum', 'nir_lower_int64_options',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue