mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
rusticl/spirv: mark SPIRVBin as Send and Sync
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27747>
This commit is contained in:
parent
17e97a8f06
commit
59cba70751
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue