diff --git a/src/util/rust/sys/mod.rs b/src/util/rust/sys/mod.rs index 5acb90839a6..6a6c99ee3a2 100644 --- a/src/util/rust/sys/mod.rs +++ b/src/util/rust/sys/mod.rs @@ -10,6 +10,9 @@ pub mod stub; #[cfg(windows)] pub mod windows; +// Only Linux works for all cases. Windows works for HANDLEs. +// Tracking bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13826 + cfg_if::cfg_if! { if #[cfg(any(target_os = "android", target_os = "linux"))] { pub use linux as platform; diff --git a/src/util/rust/sys/stub/tube.rs b/src/util/rust/sys/stub/tube.rs index a875adbd6e4..21420c83476 100644 --- a/src/util/rust/sys/stub/tube.rs +++ b/src/util/rust/sys/stub/tube.rs @@ -42,3 +42,9 @@ impl Listener { Err(MesaError::Unsupported) } } + +impl AsBorrowedDescriptor for Listener { + fn as_borrowed_descriptor(&self) -> &OwnedDescriptor { + unimplemented!() + } +} diff --git a/src/util/rust/sys/windows/tube.rs b/src/util/rust/sys/windows/tube.rs index a875adbd6e4..21420c83476 100644 --- a/src/util/rust/sys/windows/tube.rs +++ b/src/util/rust/sys/windows/tube.rs @@ -42,3 +42,9 @@ impl Listener { Err(MesaError::Unsupported) } } + +impl AsBorrowedDescriptor for Listener { + fn as_borrowed_descriptor(&self) -> &OwnedDescriptor { + unimplemented!() + } +}