mesa/src/util/rust
Val Packett 7bd096ca51 util/rust: Add memory map access mode detection to descriptor API
Add a method for determining which MESA_MAP_ACCESS_* flag would be
appropriate for a given OwnedDescriptor, based on both access flags and
write seals (since access mode can be RDWR despite the seals!)

This is useful for virtgpu implementations when mapping incoming buffers
from host software into the guest's address space. Previously Rutabaga
relied on basic heuristics like "SHM is always R/O", but with upcoming
extra protocols to be forwarded over virtgpu channels (like PipeWire)
those assumptions no longer hold true.

Signed-off-by: Val Packett <val@packett.cool>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40132>
2026-03-04 23:12:22 +00:00
..
bytestream util: rust: fix some warnings 2025-09-02 19:37:19 +00:00
sys util/rust: Add memory map access mode detection to descriptor API 2026-03-04 23:12:22 +00:00
defines.rs util/rust: cleanup derelict allow(dead_code) annotations 2025-12-20 00:14:46 +01:00
descriptor.rs
error.rs util: rust: more rust support for windows/MacOS 2025-11-24 06:56:07 -08:00
lib.rs
memory_mapping.rs
meson.build meson: add rust_global_args for flags for all the rust compilations 2025-12-20 00:13:19 +01:00
shm.rs