mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
e994935c1f
commit
aa1d746a8e
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue