mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
rusticl/program: mark NirKernelBuild as Send and Sync
Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26040>
This commit is contained in:
parent
dd5b0adc79
commit
98dab1aad5
1 changed files with 5 additions and 0 deletions
|
|
@ -91,6 +91,11 @@ pub struct NirKernelBuild {
|
|||
pub printf_info: Option<NirPrintfInfo>,
|
||||
}
|
||||
|
||||
// SAFETY: `CSOWrapper` is only safe to use if the device supports `PIPE_CAP_SHAREABLE_SHADERS` and
|
||||
// we make sure to set `nir_or_cso` to `KernelDevStateVariant::Cso` only if that's the case.
|
||||
unsafe impl Send for NirKernelBuild {}
|
||||
unsafe impl Sync for NirKernelBuild {}
|
||||
|
||||
pub struct ProgramBuild {
|
||||
pub builds: HashMap<&'static Device, ProgramDevBuild>,
|
||||
pub kernel_info: HashMap<String, KernelInfo>,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue