Expand description
A crate for handling 2D and 3D virtio-gpu hypercalls, along with graphics swapchain allocation and mapping.
Re-exports§
pub use mesa3d_util::MesaError::Unsupported as RutabagaUnsupported;
Macros§
Structs§
- Device
Id - A unique identifier for a device.
- DrmFormat
- A fourcc format identifier.
- Gfxstream
Flags - gfxstream flag struct.
- Image
Allocation Info - Information required to allocate a swapchain image.
- Image
Memory Requirements - The memory requirements, compression and layout of a swapchain image.
- Resource3D
Info - Metadata associated with a swapchain, video or camera image.
- Resource
Create3D - Resource
Create Blob - Rutabaga
- The global library handle used to query capability sets, create resources and contexts.
- Rutabaga
Builder - Rutabaga Builder, following the Rust builder pattern.
- Rutabaga
Debug - Convenience struct for debug data
- Rutabaga
Descriptor - Rutabaga
Fence - Convenience struct for Rutabaga fences
- Rutabaga
Gralloc - A container for a variety of allocation backends.
- Rutabaga
Gralloc Backend Flags - Usage flags for constructing rutabaga gralloc backend
- Rutabaga
Gralloc Flags - Usage flags for constructing a buffer object.
- Rutabaga
Handle - Handle to OS-specific memory or synchronization objects.
- Rutabaga
Handler - Rutabaga
Import Data - Import Data for resource_import
- Rutabaga
Iovec - Represents a buffer.
basecontains the address of a buffer, whilelencontains the length of the buffer. - Rutabaga
Path - Information needed to open an OS-specific RutabagaConnection (TBD). Only Linux hosts are considered at the moment.
- Transfer3D
- Transfers {to, from} 1D buffers, 2D textures, 3D textures, and cubemaps.
- Virgl
Renderer Flags - virglrenderer flag struct.
- Vulkan
Info - Memory index and physical device id of the associated VkDeviceMemory.
Enums§
- Rutabaga
Component Type - Enumeration of possible rutabaga components.
- Rutabaga
Error - A list specifying general categories of rutabaga_gfx error.
- Rutabaga
Wsi
Constants§
- RUTABAGA_
BLOB_ FLAG_ USE_ CROSS_ DEVICE - RUTABAGA_
BLOB_ FLAG_ USE_ MAPPABLE - RUTABAGA_
BLOB_ FLAG_ USE_ SHAREABLE - RUTABAGA_
BLOB_ MEM_ GUEST - Blob resource creation parameters.
- RUTABAGA_
BLOB_ MEM_ HOST3D - RUTABAGA_
BLOB_ MEM_ HOST3D_ GUEST - RUTABAGA_
CAPSET_ CROSS_ DOMAIN - RUTABAGA_
CAPSET_ DRM - RUTABAGA_
CAPSET_ GFXSTREAM_ COMPOSER - RUTABAGA_
CAPSET_ GFXSTREAM_ GLES - RUTABAGA_
CAPSET_ GFXSTREAM_ VULKAN - RUTABAGA_
CAPSET_ MAGMA - RUTABAGA_
CAPSET_ VENUS - RUTABAGA_
CAPSET_ VIRGL - Rutabaga capsets.
- RUTABAGA_
CAPSET_ VIRG L2 - RUTABAGA_
CONTEXT_ INIT_ CAPSET_ ID_ MASK - Rutabaga context init capset id mask.
- RUTABAGA_
DEBUG_ ERROR - Rutabaga debug types
- RUTABAGA_
DEBUG_ INFO - RUTABAGA_
DEBUG_ WARNING - RUTABAGA_
FLAG_ FENCE - Rutabaga flags for creating fences.
- RUTABAGA_
FLAG_ FENCE_ HOST_ SHAREABLE - RUTABAGA_
FLAG_ INFO_ RING_ IDX - RUTABAGA_
HANDLE_ TYPE_ MEM_ DMABUF - RUTABAGA_
HANDLE_ TYPE_ MEM_ OPAQUE_ FD - Mesa handle types (memory and sync in same namespace)
- RUTABAGA_
HANDLE_ TYPE_ PLATFORM_ EGL_ NATIVE_ PIXMAP - RUTABAGA_
HANDLE_ TYPE_ PLATFORM_ SCREEN_ BUFFER_ QNX - RUTABAGA_
IMPORT_ FLAG_ 3D_ INFO - Rutabaga import flags
- RUTABAGA_
IMPORT_ FLAG_ PRESERVE_ CONTENT - RUTABAGA_
IMPORT_ FLAG_ RESOURCE_ EXISTS - RUTABAGA_
IMPORT_ FLAG_ VULKAN_ INFO - RUTABAGA_
MAP_ ACCESS_ MASK - Access flags (not in virtio_gpu spec)
- RUTABAGA_
MAP_ ACCESS_ READ - RUTABAGA_
MAP_ ACCESS_ RW - RUTABAGA_
MAP_ ACCESS_ WRITE - RUTABAGA_
MAP_ CACHE_ CACHED - RUTABAGA_
MAP_ CACHE_ MASK - Mapped memory caching flags (see virtio_gpu spec)
- RUTABAGA_
MAP_ CACHE_ UNCACHED - RUTABAGA_
MAP_ CACHE_ WC - RUTABAGA_
PATH_ TYPE_ GPU - RUTABAGA_
PATH_ TYPE_ WAYLAND - Rutabaga path types
- RUTABAGA_
PIPE_ BIND_ RENDER_ TARGET - RUTABAGA_
PIPE_ TEXTURE_ 2D - 3D resource creation parameters. Also used to create 2D resource. Constants based on Mesa’s (internal) Gallium interface. Not in the virtio-gpu spec, but should be since dumb resources can’t work with gfxstream/virglrenderer without this.
Traits§
- Rutabaga
From RawDescriptor - Rutabaga
Into RawDescriptor - Trait for forfeiting ownership of the current raw descriptor, and returning the raw descriptor
- Rutabaga
Mapped Region - Safety
Functions§
Type Aliases§
- Rutabaga
Debug Handler - Rutabaga
Fence Handler - Rutabaga
Paths - Rutabaga
RawDescriptor - Rutabaga
Result - The result of an operation in this crate.