Skip to content

V3DRender 0.12

Choose a tag to compare

@adyoull adyoull released this 16 Nov 09:27
· 30 commits to main since this release

V3DRender 0.12

A native RISC OS driver for the Raspberry Pi 4's GPU (Broadcom V3D 4.2), following Linux's v3d driver. Programs draw with Mesa's v3d driver, which reaches V3DRender through RISC3D.

This is the first public release. It has been tested on a Pi 4 under native RISC OS 5.

What works

  • Mesa draws with it. Mesa 26.1.6's v3d driver (through riscos-mesa and RISC3D) runs OpenGL 2.1 and GLES 2: 100 frames of 1920x1080 in 37 cs.
  • Every kind of GPU job: bin and render (control lists), the TFU (texture formatting), and compute (CSD) on every QPU.
  • The GPU's own MMU, its interrupt, sync objects and sync files, as Linux's driver.
  • Recovery: a job that stops making progress for half a second, or runs for 5 seconds, is ended and the GPU reset. *V3DReset [all] does it on demand.
  • Fast read-back: cached buffers (DRM_RISCOS_BO_CPU_CACHED) and the program's own memory (DRM_IOCTL_RISCOS_IMPORT_MEMORY) let the CPU read a frame at about 2.6–3.9 GB/s, against 151 MB/s from ordinary buffers. V3DRender does the cache maintenance.
  • Alongside the VideoCore: V3DRender takes its memory from above 1 GB where it can, so ReelHWAccel's H.264 decoding (which needs the first 1 GB) keeps working. Reel plays through the VideoCore with V3DRender loaded.
  • Diagnostics: *V3DRender (status, counters, memory placement, hang registers), *V3DDump (the first hung job's buffers), tools/v3ddump.py (decodes a dump) and the kit's V3DJob replay (re-runs a hung job without Mesa).

New in 0.12

Memory above 1 GB first: buffers and the GPU's page table come from between 1 GB and 4 GB (OS_Memory 12 with a range, RISC OS 5.29+), in contiguous runs where possible. *V3DRender shows how much is above and below 1 GB. See CHANGELOG.md for 0.01–0.11.

Downloads

  • V3DRender-0.12.zip: the module.
  • V3DRenderTest-14.zip: the test kit. Run Check, then read Results.

Requirements

  • A Raspberry Pi 4, Pi 400 or CM4 with RISC OS 5.30 or later.
  • RISC3D 0.03 or later. Programs reach the GPU through RISC3D only.
  • Rob Heaton's V3DDriver not loaded (both would drive the same GPU).

The SWI chunk (&C3D40) and error block (&81D340) are provisional.

Licence

GNU GPL version 2 or later, as the Linux v3d driver it follows. The Pi 4 power-up and reset sequences are Rob Heaton's (V3DDriver). See NOTICE.