Skip to content

Releases

RISC3D 0.25

Choose a tag to compare

@adyoull adyoull released this 26 Nov 16:47

RISC3D 0.25

A new switch in Configure's RISC3D page, for the desktop's 2D, and the 3D driver's version shown there. With them comes V3DRender 0.39, which fixes what David Sharp found porting Quake 3, Mupen64Plus and Doom 3 to RISC OS, and can put a 3D program's window on the screen by the GPU.

David's three ports run on the Pi 4's GPU through RISC3D. Quake 3 runs at 138 fps at 480x300 (35 in software). Mupen64Plus runs Super Mario 64 at 163-169 VI/s (12-15 in software). Doom 3 runs once the buffer limit is lifted.

Configure's RISC3D page on a Raspberry Pi 4

What's in it

RISC3D-0.11-5.zip is also the PackMan package RISC3D. It holds:

  • !RISC3D, for !Boot.Resources:
    • the RISC3D module 0.11;
    • DAClamp, run before the driver loads;
    • in GPU: Linux3D 0.06 and V3DRender 0.39.
  • !RISC3DSetup 1.12, for !Boot.Resources.Configure.

RISC3D-client-0.13.tgz is the client library, for building riscos-mesa.

Changes

  • New since 0.22 (0.23 and 0.24 weren't published):
    • V3DRender 0.39: room for big games. David Sharp got Doom 3's full game running (dhewm3 0.2.2), which holds up to about 850 MB of GPU buffers. That found two limits, both now fixed:
      • The buffer area grows as programs need it, in 128 MB pieces, up to V3DRender$Size, now 1 GB by default (it was a fixed 256 MB). Only address space is reserved; memory is still claimed buffer by buffer, and pieces go back when they're empty. A launcher can set V3DRender$Size (up to 2048) any time before a program first uses the GPU, with no restart of the driver.
      • Less fragmentation. Mesa asks for many buffers just over a power of two (1 MB + 4 KB), and V3DRender's alignment left a large gap after each. In David's BOFrag test the 256 MB area refused a buffer when only half full. V3DRender's new rule fills it to 93%, and keeps the larger GPU page-table entries.
      • Also: fewer GPU resets while a game loads (the binner's overflow memory is topped up sooner), *V3DRender's lines end CR LF, and it lists each program's buffers with its task name.
    • V3DRender 0.38: the GPU's copy of a 3D frame into its window can now scale it, for programs that draw at one size and show it larger (as SDL's scaled windows do). In riscos-mesa's measurements on a Pi 4, a 1600x1000 window drawn at 800x500 went from 148 to 240 frames a second, and from 1024x640 from 144 to 204. It needs riscos-mesa's next !MesaLibs.
    • !RISC3DSetup 1.12 is built with riscos-crossdev 1.14, whose UnixLib is 5.0.3.12, released today. Nothing else in it changes. 5.0.3.12 word-aligns UnixLib's data, which 5.0.3.11 didn't. On a Pi with alignment exceptions on, that misalignment can stop a program before it starts, though Configure's page wasn't caught by it.
  • New in 0.21 and 0.22:
    • Configure's RISC3D page shows the driver's version (for example "V3DRender 0.37") in Drivers and beside RISC3D's at the foot, so it can be told without *Help.
    • The z-layer overlays tick box is gone. Overlays behind the desktop needed an alpha desktop mode, which some programs draw wrongly in. For 3D windows, V3DRender's PRESENT now layers them under menus and windows per program, with no alpha mode. Anyone who turned it on can set framebuffer_ignore_alpha=1 in config.txt, or put back !Boot.Loader.CONFIG/BAK.
    • RISC3D 0.11: a program's 3D contexts are closed only when it ends. Before, a GL program that ran a *command (*Run, system()) lost them.
    • V3DRender 0.36: the same fix for its GPU files.
    • V3DRender 0.37: PRESENT copies a frame to the screen in one pass, not two. In riscos-mesa's measurements on a Pi 4, a 1600x1000 window went from 149 to 251 frames a second, faster than the CPU copy.

The rest is as in 0.20:

  • Desktop 2D from Configure. Where the driver offers it (V3DRender 0.28 on), the page has a tick box: "Draw the desktop's copies and fills on the GPU (2D)".
    • It's applied at once and kept, so *V3DRender 2D on|off isn't needed.
    • Off by default.
    • For programs: the new SWI RISC3D_Desktop2D (&5AF86) and the system variable RISC3D$2D (on, async or off).
  • V3DRender 0.39 (from 0.26):
    • Nothing taken at start-up. V3DRender now takes the GPU's memory and interrupt the first time a program uses the GPU, or when the desktop's 2D is turned on. A computer that never draws on the GPU gives nothing up. Until then, Configure's RISC3D window says "none yet". The Early load option keeps the old way.
    • FreeOnly (in V3DRender$Options): take only memory nothing else is using, rather than having RISC OS move other modules' memory out of the way.
    • A crash fixed where the start-up log was on: its interrupt handler called RISC OS from interrupt mode (0.27 to 0.33).
    • Doom 3 runs: buffer tables now grow as needed (up to 65,535), where 4,096 stopped it. Refused buffers are counted in *V3DRender. Found by David Sharp with his dhewm3 port: he traced the crash to the handle limit and tested a fix.
    • All its memory: it lifts RISC OS's 128 MB limit on its buffer area itself. Before, it got 256 MB only if !MesaLibs had booted first. !RISC3D also runs its own DAClamp before the driver loads. Found by David Sharp, who worked out why his ports crashed on a machine with only !RISC3D.
    • PRESENT: prompted in part by David Sharp's report of tearing and slow window copies. The GPU copies a finished 3D frame into a window's visible parts, so menus and windows sit over it properly. riscos-mesa 20.3.5-24's EGL uses it: in its Pi tests a window ran at about 565 frames a second, against 66 when the CPU copied it. It works in 16 and 32 bits per pixel, RGB or BGR.
    • V3DRender$Options and a longer start-up log, for machines that stop at boot with V3DRender loading.
    • These last four came from Chris Hughes's testing on his CM4, whose logs found the crash and pointed to start-up memory.
  • Client library 0.13: RISC3D$Disable works. Before, the library's test never saw the variable. Found by David Sharp with his dhewm3 port, who also spotted why RISC3D's own tests had missed it.
  • README: programs can ask RISC3D_Info which driver they'll get before making a context. A program's !Run should load SharedUnixLibrary and ARMEABISupport. Both were David Sharp's suggestions. His three ports are in the table of programs seen on the GPU.

Thanks

Thanks to David Sharp for the Doom 3 full-game findings and BOFrag, to riscos-mesa for the present measurements, to Chris Hughes for his patient testing on a CM4, and to David again for his ports of ioquake3, Mupen64Plus and dhewm3, and for detailed, reproducible reports with test programs and evidence. They led to most of this release: the memory and buffer limits, the RISC3D$Disable fault, the documentation for programs, and riscos-mesa's fixes for 64K-colour windows and SDL video restarts. His ports are at https://github.com/davidpsharp.

Known

  • Configure's RISC3D page can be slow to open. Its window opens only once the GPU probe finishes, which can take up to 20 s after Set or a driver reload.

Licences

RISC3D 0.22

Choose a tag to compare

@adyoull adyoull released this 25 Nov 21:43

RISC3D 0.22

A new switch in Configure's RISC3D page, for the desktop's 2D, and the 3D driver's version shown there. With them comes V3DRender 0.37, which fixes what David Sharp found porting apps to RISC OS, and can put a 3D program's window on the screen by the GPU.

Configure's RISC3D page on a Raspberry Pi 4

What's in it

RISC3D-0.11-2.zip is also the PackMan package RISC3D. It holds:

  • !RISC3D, for !Boot.Resources:
    • the RISC3D module 0.11;
    • DAClamp, run before the driver loads;
    • in GPU: Linux3D 0.06 and V3DRender 0.37.
  • !RISC3DSetup 1.09, for !Boot.Resources.Configure.

RISC3D-client-0.13.tgz is the client library, for building riscos-mesa.

Changes

  • New since 0.20:
    • Configure's RISC3D page shows the driver's version (for example "V3DRender 0.37") in Drivers and beside RISC3D's at the foot, so it can be told without *Help.
    • The z-layer overlays tick box is gone. Overlays behind the desktop needed an alpha desktop mode, which some programs draw wrongly in. For 3D windows, V3DRender's PRESENT now layers them under menus and windows per program, with no alpha mode. Anyone who turned it on can set framebuffer_ignore_alpha=1 in config.txt, or put back !Boot.Loader.CONFIG/BAK.
    • RISC3D 0.11: a program's 3D contexts are closed only when it ends. Before, a GL program that ran a *command (*Run, system()) lost them.
    • V3DRender 0.36: the same fix for its GPU files.
    • V3DRender 0.37: PRESENT copies a frame to the screen in one pass, not two. In riscos-mesa's measurements on a Pi 4, a 1600x1000 window went from 149 to 251 frames a second, faster than the CPU copy.

The rest is as in 0.20:

  • Desktop 2D from Configure. Where the driver offers it (V3DRender 0.28 on), the page has a tick box: "Draw the desktop's copies and fills on the GPU (2D)".
    • It's applied at once and kept, so *V3DRender 2D on|off isn't needed.
    • Off by default.
    • For programs: the new SWI RISC3D_Desktop2D (&5AF86) and the system variable RISC3D$2D (on, async or off).
  • V3DRender 0.37 (from 0.26):
    • Nothing taken at start-up. V3DRender now takes the GPU's memory and interrupt the first time a program uses the GPU, or when the desktop's 2D is turned on. A computer that never draws on the GPU gives nothing up. Until then, Configure's RISC3D window says "none yet". The Early load option keeps the old way.
    • FreeOnly (in V3DRender$Options): take only memory nothing else is using, rather than having RISC OS move other modules' memory out of the way.
    • A crash fixed where the start-up log was on: its interrupt handler called RISC OS from interrupt mode (0.27 to 0.33).
    • Larger buffers: buffer tables now grow as needed (up to 65,535), where 4,096 stopped it. Refused buffers are counted in *V3DRender. Found by David Sharp with his port: he traced the crash to the handle limit and tested a fix.
    • All its memory: it lifts RISC OS's 128 MB limit on its buffer area itself. Before, it got 256 MB only if !MesaLibs had booted first. !RISC3D also runs its own DAClamp before the driver loads. Found by David Sharp, who worked out why his ports crashed on a machine with only !RISC3D.
    • PRESENT: prompted in part by David Sharp's report of tearing and slow window copies. The GPU copies a finished 3D frame into a window's visible parts, so menus and windows sit over it properly. riscos-mesa 20.3.5-24's EGL uses it: in its Pi tests a window ran at about 565 frames a second, against 66 when the CPU copied it. It works in 16 and 32 bits per pixel, RGB or BGR.
    • V3DRender$Options and a longer start-up log, for machines that stop at boot with V3DRender loading.
    • These last four came from Chris Hughes's testing on his CM4, whose logs found the crash and pointed to start-up memory.
  • Client library 0.13: RISC3D$Disable works. Before, the library's test never saw the variable. Found by David Sharp with his dhewm3 port, who also spotted why RISC3D's own tests had missed it.
  • README: programs can ask RISC3D_Info which driver they'll get before making a context. A program's !Run should load SharedUnixLibrary and ARMEABISupport. Both were David Sharp's suggestions. His three ports are in the table of programs seen on the GPU.

Thanks

Thanks to riscos-mesa for the present measurements, to Chris Hughes for his patient testing on a CM4, and to David Sharp for his ports of ioquake3, Mupen64Plus and dhewm3, and for detailed, reproducible reports with test programs and evidence. They led to most of this release: the memory and buffer limits, the RISC3D$Disable fault, the documentation for programs, and riscos-mesa's fixes for 64K-colour windows and SDL video restarts. His ports are at https://github.com/davidpsharp.

Known

  • Configure's RISC3D page can be slow to open. Its window opens only once the GPU probe finishes, which can take up to 20 s after Set or a driver reload.

Licences

RISC3D 0.18

Choose a tag to compare

@adyoull adyoull released this 23 Nov 11:29

RISC3D 0.18

A fix for Configure's RISC3D page. Everything else is as in 0.17.

What's in it

RISC3D-0.09-2.zip is also the PackMan package RISC3D. It holds:

  • !RISC3D, for !Boot.Resources, unchanged from 0.17:
    • the RISC3D module 0.09;
    • in GPU: Linux3D 0.06 and V3DRender 0.26.
  • !RISC3DSetup 1.06, for !Boot.Resources.Configure.

Changes

  • !RISC3DSetup 1.06. The page is a GCCSDK (UnixLib) program, so it needs the SharedUnixLibrary and ARMEABISupport modules.
    • Before: where ARMEABISupport wasn't loaded, opening the page stopped at once with "SWI &59D01 not known" (reported on a CM4).
    • Now: its !Run loads both from System:Modules, or says which to install with PackMan.

Licences

RISC3D 0.17

Choose a tag to compare

@adyoull adyoull released this 22 Nov 21:06

RISC3D 0.17

Configure's RISC3D window now shows what the Pi 4's GPU really supports on native RISC OS, with no program running. It also gains a Hardware section from the driver. V3DRender, the Pi 4 driver, moves from 0.16 to 0.26.

Configure's RISC3D window on a native Raspberry Pi 4 with V3DRender

What's in it

RISC3D-0.09-1.zip is also the PackMan package RISC3D. It holds:

  • !RISC3D, for !Boot.Resources:
    • the RISC3D module 0.09;
    • in GPU: Linux3D 0.06 and V3DRender 0.26.
  • !RISC3DSetup 1.05, for !Boot.Resources.Configure.

Changes

Configure's RISC3D window (!RISC3DSetup 1.05)

  • On native RISC OS it runs riscos-mesa's GPUProbe (<MesaLibs$Dir>.GPUProbe, from !MesaLibs 20.3.5-23) and shows what programs get:

    • the renderer;
    • OpenGL and GLSL, and OpenGL ES and GLSL ES;
    • whether OpenGL ES 1.1 is there;
    • the largest texture and the extension counts.

    With an older !MesaLibs, it says those figures need 20.3.5-23. On RISC OS on Linux it asks Linux3D, as before.

  • A Hardware section, with whatever the driver says about the GPU itself. From V3DRender that's the GPU and its revision, the clock, the GPU memory in use, the largest image, and whether desktop 2D is on.

  • The probe is started through the Filer, and its leftover contexts are closed. Started by the window itself, it crashed about one time in four.

RISC3D module 0.09

  • New SWI RISC3D_Describe (&5AF85). It returns the driver's own lines about its GPU.
  • A new driver reason, 4 "hardware", for drivers that register with flags bit 3. See docs/DRIVER-GUIDE.md.

V3DRender 0.16 → 0.26

  • Start-up:

    • it has the firmware power the GPU on before reading it (a likely fix for start-up aborts on some boards, such as a CM4);
    • a start-up that fails part way is cleaned up safely;
    • V3DRender$Step records how far start-up got.
  • For programs:

    • imported memory follows pages the OS moves (the web browser's GPU corruption);
    • freed GPU memory is kept for reuse, up to 16 MB (*V3DRender pool);
    • a Broadcom cache erratum (GFXH-1897) is worked around, as Linux does.
  • Desktop 2D on the GPU, off by default (*V3DRender 2D on): window moves, scrolls, block copies and plain fills. It's based on Rob Heaton's V3DDriver, then expanded through testing:

    • fills use half the GPU commands;
    • the sizes at which the GPU takes over were measured on the Pi;
    • no memory is claimed or freed during a redraw;
    • every case is checked pixel for pixel against the CPU.

    Timings on a Pi 4, native RISC OS, 1920×1200 at 32 bpp, ARM at 1800 MHz, per operation, waited for:

    Operation CPU GPU
    Copy 512×320 566 µs 266 µs 2.1×
    Scroll 640×383 up a row 666 µs 400 µs 1.7×
    Copy 256×256 120 µs 110 µs 1.1×
    Copy 64×64 25 µs 25 µs level
    Fill 640×384 233 µs 233 µs level
    Fill 128×128 35 µs 30 µs 1.2×

Linux's side (riscos-risc3d 0.23-1) and the client library (0.12) are unchanged.

Tested

On the owner's Raspberry Pi 4, native RISC OS, through TestAgent:

  • the window, with !MesaLibs 20.3.5-23test3;
  • 24 refreshes in a row with no crash, and no contexts left open;
  • the Hardware section with V3DRender 0.20 to 0.23.

V3DRender 0.26 itself was tested by its own project. A CM4 (R-Comp Ne.X.T) report on the start-up fix is awaited.

Licences

RISC3D 0.16

Choose a tag to compare

@adyoull adyoull released this 22 Nov 20:52

RISC3D 0.16

Configure's RISC3D window can now turn RISC3D's GPU drawing off. With it off, no 3D driver is loaded and programs draw in software, as they did before RISC3D. The window has also been laid out afresh.

Configure's RISC3D window on a Raspberry Pi 4 under RISC OS on Linux

What's in it

RISC3D-0.08-3.zip is also the PackMan package RISC3D. It holds:

  • !RISC3D, for !Boot.Resources:
    • the RISC3D module 0.08;
    • in GPU: Linux3D 0.06 and V3DRender 0.16.
  • !RISC3DSetup 1.04, for !Boot.Resources.Configure.

Changes

  • Load a 3D driver, the window's one tick box, with Set (the window stays open and shows the result):
    • Set keeps the choice in Choices:RISC3D.Settings.
    • If no program has a 3D context open, the choice takes effect at once; otherwise it takes effect at the next start.
  • RISC3D 0.08:
    • It loads no driver while RISC3D$Off is set.
    • *RMReInit RISC3D now starts it afresh and loads the driver again.
  • The window:
    • Groups for Graphics, Features and Drivers.
    • The driver's name in large type.
    • Yes/No fields for features.
    • The Drivers group's last row says what draws: the driver in use (Linux3D, V3DRender, ...) or Software3D, Mesa in each program.
    • Interactive help for each part.

Linux's side (riscos-risc3d 0.23-1) and the client library (0.12) are unchanged.

Tested

On a Raspberry Pi 4 under RISC OS on Linux, run on its own:

  • the window;
  • turning RISC3D off and on again.

Licences

RISC3D 0.11

Choose a tag to compare

@adyoull adyoull released this 18 Nov 18:12

RISC3D 0.11

RISC3D's SWIs and errors move to the numbers RISC OS Allocations has
allocated:

  • RISC3D: SWI chunk &5AF80, errors &823D00.
  • Linux3D: errors &823C00.
  • V3DRender: SWI chunk &5AFC0, errors &823E00.

This is a clean break: RISC3D 0.05 answers only the new numbers.

Programs need riscos-mesa 20.3.5-22's !MesaLibs (RISC3D client 0.11). Older
!MesaLibs don't find RISC3D, and their programs draw in software.

What's in it

  • RISC3D-0.05-1.zip: !RISC3D, for !Boot.Resources. It is also the
    PackMan package RISC3D.
    • The RISC3D module 0.05.
    • In GPU:
      • Linux3D 0.05: RISC OS on Linux;
      • V3DRender 0.16: Raspberry Pi 4, 400 and CM4, on native RISC OS.
    • GPU.Licences and GPU.GPL-2 for V3DRender.
  • RISC3D-client-0.11.tgz: the client library riscos-mesa builds in. Only
    the SWI numbers changed.
  • riscos-risc3d 0.22-1 (RISC OS on Linux's side, rol-3d 0.19) is
    unchanged, and comes through ROL's Updates.

A program that must have RISC3D can check with
RMEnsure RISC3D 0.05 Error This program needs !RISC3D.

Licences

RISC3D 0.10

Choose a tag to compare

@adyoull adyoull released this 16 Nov 16:06

RISC3D 0.10

RISC3D lets RISC OS programs that draw with Mesa (OpenGL, OpenGL ES) use
the machine's GPU. Programs don't change: riscos-mesa's EGL and OSMesa use
RISC3D where a GPU driver is registered, and draw in software where none is.

What's in it

  • RISC3D-0.04-7.zip: !RISC3D, for !Boot.Resources. It is the same
    on every system, and is also the PackMan package RISC3D.
    • The RISC3D module 0.04.
    • Its GPU drivers, in GPU. Each starts only on the machine it is for:
      • Linux3D 0.04: RISC OS on Linux, with riscos-risc3d installed;
      • V3DRender 0.15: Raspberry Pi 4, 400 and CM4, on native RISC OS.
    • !RISC3D's !Boot loads RISC3D at start-up, and RISC3D loads the first
      driver in GPU that starts. Programs need nothing in their !Run.
      *RISC3D says which driver is in use.
  • riscos-risc3d_0.22-1_arm64.deb: RISC OS on Linux's side.
    • rol-3d 0.19.
    • Debian's Mesa from trixie-backports (26.1.6). The Pi's GPU needs it for
      fixed-function lighting with textures.
    • !RISC3D itself comes from PackMan (riscos-harddisc installs it).
  • RISC3D-client-0.9.tgz: the client library that riscos-mesa builds in.
    It is unchanged since 0.9.

Licences

Status

This is a prototype. The SWI chunk (&C3D00) and the error numbers are
provisional.

RISC3D 0.9

Choose a tag to compare

@adyoull adyoull released this 16 Nov 09:24

Client library 0.9: TORCS's strips drawn cheaply; contexts closed safely at exit.