rusticl/spirv: mark SPIRVBin as Send and Sync

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27747>
This commit is contained in:
Karol Herbst 2024-02-21 18:24:36 +01:00 committed by Marge Bot
parent 17e97a8f06
commit 59cba70751

View file

@ -25,6 +25,10 @@ pub struct SPIRVBin {
info: Option<clc_parsed_spirv>,
}
// Safety: SPIRVBin is not mutable and is therefore Send and Sync, needed due to `clc_binary::data`
unsafe impl Send for SPIRVBin {}
unsafe impl Sync for SPIRVBin {}
#[derive(PartialEq, Eq, Hash, Clone)]
pub struct SPIRVKernelArg {
pub name: String,