⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module gpu_accel

Module gpu_accel 

Source
Expand description

GPU Acceleration Framework

Provides comprehensive GPU acceleration including:

  • VirtIO GPU 3D (virgl) protocol support
  • OpenGL ES 2.0 software rasterizer (integer/fixed-point math only)
  • GEM/TTM buffer object management
  • DRM Kernel Mode Setting (KMS)
  • Vsync and page-flip scheduling
  • Hardware cursor plane

All arithmetic uses integer or 16.16 fixed-point math (no FPU required).

Structs§

AtomicCommit
Atomic mode-setting commit request
DisplayMode
Display mode (resolution + timing)
DrmConnector
DRM connector
DrmCrtc
CRTC (CRT Controller) – drives a scanout engine
DrmEncoder
DRM encoder (links CRTC to connector)
DrmFramebuffer
DRM framebuffer object
GemBufferObject
GEM buffer object
GemManager
GEM buffer manager
HardwareCursor
Hardware cursor plane state
KmsManager
DRM KMS state manager
PageFlipManager
Double-buffered page flip manager
PageFlipRequest
Page flip request
ScissorRect
Scissor rectangle
ShaderState
Shader state (uniforms + enabled attributes)
SoftTexture
Software texture (ARGB8888)
SoftwareRasterizer
Software rasterizer state
VblankEvent
Vblank event
Vec4
A 4-component integer vector (used as vertex attribute or uniform in 16.16 FP)
Vertex
Vertex data for software rasterizer
Viewport
Viewport transform parameters
Virgl3dResource
Virgl 3D resource descriptor
VirglContext
Virgl rendering context
VirglDriver
VirtIO GPU 3D (virgl) driver state
VirglFence
Virgl fence for GPU/CPU synchronization

Enums§

BlendMode
Blend mode for fragment output
CacheMode
Cache coherency mode
ConnectorStatus
Connector status
ConnectorType
Connector type (physical display output)
CursorFormat
Cursor image format
DepthFunc
Depth test function
EncoderType
Encoder type
FlipState
Page flip state
MemoryDomain
Memory domain for buffer objects
PrimitiveType
Primitive type for drawing
TextureFilter
Texture filter mode
TransferDirection
Transfer direction for 3D resource data
Virgl3dResourceType
Virgl 3D resource types
VirglCommand
Virgl command types sent via command buffer
VirglFormat
Virgl resource format (subset of Gallium pipe_format)

Functions§

init
Initialize the GPU acceleration subsystem
with_cursor
Access the hardware cursor
with_gem
Access the GEM buffer manager
with_kms
Access the KMS manager
with_page_flip
Access the page flip manager
with_virgl
Access the virgl driver