diff --git a/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs b/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs index 11b60ef3360..281bc7ed74b 100644 --- a/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs +++ b/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs @@ -25,6 +25,10 @@ pub struct SPIRVBin { info: Option, } +// 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,