Skip to main content

Crate rutabaga_gfx

Crate rutabaga_gfx 

Source
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§

checked_arithmetic
checked_range

Structs§

DeviceId
A unique identifier for a device.
DrmFormat
A fourcc format identifier.
GfxstreamFlags
gfxstream flag struct.
ImageAllocationInfo
Information required to allocate a swapchain image.
ImageMemoryRequirements
The memory requirements, compression and layout of a swapchain image.
Resource3DInfo
Metadata associated with a swapchain, video or camera image.
ResourceCreate3D
ResourceCreateBlob
Rutabaga
The global library handle used to query capability sets, create resources and contexts.
RutabagaBuilder
Rutabaga Builder, following the Rust builder pattern.
RutabagaDebug
Convenience struct for debug data
RutabagaDescriptor
RutabagaFence
Convenience struct for Rutabaga fences
RutabagaGralloc
A container for a variety of allocation backends.
RutabagaGrallocBackendFlags
Usage flags for constructing rutabaga gralloc backend
RutabagaGrallocFlags
Usage flags for constructing a buffer object.
RutabagaHandle
Handle to OS-specific memory or synchronization objects.
RutabagaHandler
RutabagaImportData
Import Data for resource_import
RutabagaIovec
Represents a buffer. base contains the address of a buffer, while len contains the length of the buffer.
RutabagaPath
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.
VirglRendererFlags
virglrenderer flag struct.
VulkanInfo
Memory index and physical device id of the associated VkDeviceMemory.

Enums§

RutabagaComponentType
Enumeration of possible rutabaga components.
RutabagaError
A list specifying general categories of rutabaga_gfx error.
RutabagaWsi

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_VIRGL2
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§

RutabagaFromRawDescriptor
RutabagaIntoRawDescriptor
Trait for forfeiting ownership of the current raw descriptor, and returning the raw descriptor
RutabagaMappedRegion
Safety

Functions§

calculate_capset_mask
calculate_capset_names

Type Aliases§

RutabagaDebugHandler
RutabagaFenceHandler
RutabagaPaths
RutabagaRawDescriptor
RutabagaResult
The result of an operation in this crate.