Merge main: one linux-dmabuf, imported on the GPU or mapped without one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
d478f58d9b
54 files changed
+1110
-376
No files matched your search
+6
-5
@@ -21,7 +21,8 @@ At start the host looks for a GPU and logs it (or why there is none):
|
||||
part that changed is read back when one of them asks.
|
||||
- **Apps** (`compositor/wayland/dmabuf.mbt`): `zwp_linux_dmabuf_v1` version 4. Without it Mesa's EGL and
|
||||
Vulkan draw on the CPU whatever GPU there is. A committed buffer is copied on the GPU and
|
||||
released at once. Formats: 8-bit RGB with or without alpha, in every layout the driver samples.
|
||||
released at once. Formats: 8-bit RGB with or without alpha, in every layout the driver samples. A host that draws
|
||||
on the CPU takes only linear buffers, which it maps and copies.
|
||||
|
||||
Which GPU: the first render node whose driver is a real one (the list below), or the one
|
||||
`CHANDRA_RENDER_NODE` names. `CHANDRA_GPU=0`, `CHANDRA_RENDER=software` and `LIBGL_ALWAYS_SOFTWARE=1`
|
||||
@@ -38,10 +39,10 @@ when nested, recovering from a GPU reset, OpenGL ES 2 only GPUs (they use the CP
|
||||
`scripts/test-gpu.sh` (`just test-gpu`) compares both rasterisers on this machine's GPU and draws
|
||||
through real display buffers, without needing a free display.
|
||||
|
||||
On an HD 4600 (Haswell), 1920x1080, median time to rasterise a frame, CPU then GPU: the overview
|
||||
gliding with four windows 8 ms, 1 ms; a full-screen terminal scrolling 8 ms, 3 ms. alacritty (OpenGL)
|
||||
scrolling: 7 frames a second drawing in software, 42 on the GPU. vkcube (Vulkan) showed
|
||||
no frames at all without dmabufs, and 57 a second with them.
|
||||
On an HD 4600 (Haswell), 1920x1080: the overview gliding with four windows rasterises in 8 ms a frame
|
||||
on the CPU and 1 ms on the GPU (medians); a full-screen terminal scrolling in 5 ms and 2.5 ms. With
|
||||
a full-screen app drawing on the GPU at about 55 frames a second in both, the host's CPU use goes
|
||||
from 69 % to 42 % (vkcube) and from 75 % to 54 % (alacritty), PNG writes of the headless run included.
|
||||
|
||||
## Software or hardware mode
|
||||
|
||||
|
||||
Reference in new issue
Block a user