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:
1 parent
d81003f176
commit
cfb25fe699
26 files changed
+2485
-105
No files matched your search
@@ -24,7 +24,7 @@ pkgtype(kind: "executable")
|
||||
// looks for it there too (the rpath is relative to build/), not through LD_LIBRARY_PATH, which
|
||||
// apps started by the compositor would inherit.
|
||||
options(
|
||||
"native-stub": [ "host_stub.c", "raster_stub.c" ],
|
||||
"native-stub": [ "host_stub.c", "raster_stub.c", "raster_gpu.c" ],
|
||||
link: {
|
||||
"native": {
|
||||
"cc-link-flags": "-l:libwasmtime.a -lpthread -ldl -lm -ldrm -linput -lseat -lxkbcommon -ludev -Wl,-rpath,$ORIGIN/../.pixi/envs/default/lib",
|
||||
|
||||
Reference in new issue
Block a user