Draw on the GPU: the desktop with OpenGL ES, apps through linux-dmabuf

The host's rasteriser has a GPU half (raster_gpu.c): the same primitives, drawn the same way, on
machines with a real GPU and OpenGL ES 3, straight into the display's buffers in a login session.
EGL and GLES are loaded at run time; without them everything is drawn on the CPU as before
(CHANDRA_GPU=0 does that too). zwp_linux_dmabuf_v1 lets apps draw on the GPU as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Opus 5.5 committed 2026-11-30 16:42:22 -08:00
1 parent d81003f176
commit cfb25fe699
26 files changed
+2485 -105

No files matched your search

+27
View File
@@ -353,6 +353,33 @@ pub fn surface_capture(_fd : Int, _offset : Int, _stride : Int, _width : Int, _h
0U
}
///| No GPU buffers on the native build, which draws on the CPU.
pub fn dmabuf_support() -> (UInt64, Array[(UInt, UInt64)]) {
(0UL, [])
}
///|
pub fn dmabuf_import(
_planes : Array[(Int, UInt, UInt)],
_modifier : UInt64,
_width : Int,
_height : Int,
_fourcc : UInt,
_y_invert : Bool,
) -> UInt {
0U
}
///|
pub fn dmabuf_capture(_id : UInt) -> UInt {
0U
}
///|
pub fn dmabuf_release(_id : UInt) -> Unit {
()
}
///|
pub fn surface_release(_id : UInt) -> Unit {
()