rusticl/cl: mark _cl_image_desc as Send and Sync

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: @LingMan <18294-LingMan@users.noreply.gitlab.freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24062>
This commit is contained in:
Karol Herbst 2023-10-05 23:48:37 +02:00 committed by Marge Bot
parent e994935c1f
commit aa1d746a8e

View file

@ -153,6 +153,9 @@ 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 {}',
# _cl_image_desc contains a pointer to _cl_mem
'--raw-line', 'unsafe impl std::marker::Send for _cl_image_desc {}',
'--raw-line', 'unsafe impl std::marker::Sync for _cl_image_desc {}',
'--allowlist-type', 'cl_.*',
'--allowlist-var', 'CL_.*',
# some info types need to be strongly typed so we can implement various get_infos