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%
Find a file
HuJK f6a66611d0 drm/kgsl: per-context VA slices — fix cross-client VBO iova collisions
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 2026-07-11 17:42:48 +08:00
.gitlab-ci format: add compressed formats directly by testing extensions 2023-01-02 15:23:35 +00:00
ci ci: Remove obsolete CI configuration files 2022-03-15 08:06:01 +00:00
docs vkr: move to a subdirectory 2021-07-30 10:40:09 -07:00
perf-testing perf: update mesa configuration flags to silence warnings 2021-03-10 16:14:00 +00:00
prebuilt-intermediates drm/kgsl: implement msm-protocol native-context backend over KGSL 2026-07-11 06:00:23 +08:00
server virgl: replace uint64_t queue_id with uint32_t ring_idx 2022-12-16 01:59:39 +00:00
src drm/kgsl: per-context VA slices — fix cross-client VBO iova collisions 2026-07-11 17:42:48 +08:00
tests virgl: replace uint64_t queue_id with uint32_t ring_idx 2022-12-16 01:59:39 +00:00
vtest vtest: rename sync_queue/sync_queue_index -> timeline/ring_idx 2022-12-16 01:59:39 +00:00
.dir-locals.el add emacs editing/indent rules 2015-03-20 14:09:15 +10:00
.editorconfig Add .editorconfig 2021-12-13 10:41:39 +00:00
.gitignore Add __pycache__ to gitignore 2021-10-18 13:22:09 -07:00
.gitlab-ci.yml ci: migrate from minio to s3 2022-11-23 10:59:50 +00:00
Android.bp drm/kgsl: implement msm-protocol native-context backend over KGSL 2026-07-11 06:00:23 +08:00
config.h.meson virgl: add support for hardware video acceleration 2022-08-11 06:44:14 +00:00
COPYING virglrenderer: add license file 2015-04-20 11:10:35 +10:00
generate-prebuilts.sh Regenerate prebuilt format descriptions 2020-08-28 11:11:04 -07:00
LICENSE Add metadata files 2018-08-17 13:15:18 -07:00
meson.build ANDROID: virglrenderer: stub out virgl gbm winsys 2024-07-09 17:49:24 -07:00
meson_options.txt virgl: add support for hardware video acceleration 2022-08-11 06:44:14 +00:00
METADATA Upgrade virglrenderer to 0.10.4 2023-01-18 22:47:04 +00:00
MODULE_LICENSE_MIT Add metadata files 2018-08-17 13:15:18 -07:00
NOTICE Add metadata files 2018-08-17 13:15:18 -07:00
OWNERS OWNERS: remove myself 2025-09-05 14:24:06 +00:00
README.rst Add simple README.rst 2021-09-01 09:28:52 +02:00
README.version Add metadata files 2018-08-17 13:15:18 -07:00

URL: https://cgit.freedesktop.org/virglrenderer
Version: 0.6.0
BugComponent: 405564
Owners: lepton