mirror of
https://github.com/Droid-VM/virglrenderer.git
synced 2026-11-17 19:44:24 +00:00
virglrenderer for DroidVM: KGSL native-context backend (turnip-in-guest over vdrm)
- C 86.4%
- C++ 11.6%
- Shell 0.7%
- Python 0.6%
- Meson 0.5%
- Other 0.2%
KGSL pagetables are per-process, so every guest process's turnip shares the single host VBO. All guests allocate iovas from the same capset va_start, so concurrent clients (gnome-shell greeter + user session + Xwayland + ...) bound BOs at overlapping VBO offsets — each CtxCreate's bindings silently overwrote the others'. The GPU then fetched one context's IB where another context's data now lived: deterministic 'CP DDE BR opcode error | opcode=0x00000000' hard faults (46 in gpufault_procs), context invalidation, EDEADLK cascades, zink DEVICE_LOST, gnome session crash loops, and smashed desktop geometry. Give each context a disjoint 8GB slice of the VBO (bitmask-allocated, released on destroy) and hand it to the guest via GET_PARAM (MSM_PARAM_VA_START/VA_SIZE); the patched guest turnip/gallium prefer the per-context slice over the global capset range. On device: GPU hard faults drop from one-per-repaint to ZERO across a full desktop session, and all UI renders cleanly. (A separate non-fatal background-geometry corruption remains, tracked separately.) Removes the TS-mismatch diagnostic (verified 0 mismatches — the fault was addressing, not fence timelines). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Smu6N2o945D86k4hE1i9jr |
History
|
|
|---|---|---|
| .gitlab-ci | ||
| ci | ||
| docs | ||
| perf-testing | ||
| prebuilt-intermediates | ||
| server | ||
| src | ||
| tests | ||
| vtest | ||
| .dir-locals.el | ||
| .editorconfig | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| Android.bp | ||
| config.h.meson | ||
| COPYING | ||
| generate-prebuilts.sh | ||
| LICENSE | ||
| meson.build | ||
| meson_options.txt | ||
| METADATA | ||
| MODULE_LICENSE_MIT | ||
| NOTICE | ||
| OWNERS | ||
| README.rst | ||
| README.version | ||
URL: https://cgit.freedesktop.org/virglrenderer Version: 0.6.0 BugComponent: 405564 Owners: lepton