Add Adreno 304 (FD304) GPU acceleration, Xlibre Glamor/DRI3/GLX offload, and OpenGL demos

This commit is contained in:
Luxferre committed 2026-10-28 09:26:24 +02:00
1 parent 4aa087f372
commit 3b9f2ee28d
57 files changed
+2279 -25

No files matched your search

+22
View File
@@ -426,3 +426,25 @@ Both the rear loudspeaker (`Speaker`, with boosted `RX3 Digital Volume` for loud
```bash
mmcli -m any
```
### 5.5 Adreno 304 GPU hardware acceleration and OpenGL / OpenGL ES demos
Bananarchy includes full kernel (`drm/msm` + `qcom-iommu` with `96 KB` GMEM, `a300_pfp.fw` / `a300_pm4.fw`, and up to `409.6 MHz` OPP scaling) and userspace (**Mesa Freedreno `FD304`**) hardware acceleration for the Qualcomm **Adreno 304 (`0x03000400`)** GPU across all supported MSM8905 and MSM8909 devices.
The **Xlibre** display server (`modesetting_drv.so`) uses **Glamor + DRI3 + GLX + KMSRO** to offload X11 rendering to the Adreno 304 GPU (`/dev/dri/card1` / `/dev/dri/renderD128`) and synchronize GMEM resolves before transferring damaged rectangles over DMA to the `panel-mipi-dbi` SPI display (`/dev/dri/card0`).
- **Query active OpenGL 3.1 / OpenGL ES 3.0 and EGL hardware renderer info**:
```bash
DISPLAY=:0 glxinfo -B
DISPLAY=:0 eglinfo -B
```
- **Run 3D OpenGL and OpenGL ES hardware-accelerated demos on the `240x320` display**:
```bash
DISPLAY=:0 glxgears -info
DISPLAY=:0 glteapot
DISPLAY=:0 es2gears_x11
```
- **Inspect live Adreno 304 GPU hardware state, frequency, and ringbuffer fences**:
```bash
doas cat /sys/kernel/debug/dri/1/gpu
```