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

+3 -4
View File
@@ -1,9 +1,8 @@
///| Software or hardware rendering: whether this machine has a GPU that apps can draw with.
///
/// Chandra itself always draws the desktop on the CPU (the host's rasteriser), so the GPU never
/// makes the compositor's own frames cheaper. What it changes is how much CPU is left over: with
/// a GPU, apps (browsers, video, games) draw there; without one they draw with llvmpipe or their
/// own software paths on the same cores as Chandra. So in software mode the desktop asks for
/// The host draws the desktop on the GPU when it can (wasmhost/bin/raster_gpu.c decides that on its
/// own, docs/rendering.md) and apps draw there too; without one both are software on the same
/// cores. So in software mode the desktop asks for
/// less: window previews are remade less often while they are on screen, and a desktop module
/// (Live Starfield) gets at most 30 frames a second.
///