perf(vk): cut the upscaler network 38% (+4.5-6.3% FPS) on RADV RDNA 2 (Steam Deck) via f16 pair dot products and B through workgroup memory #2439

Open
dantopa wants to merge 3 commits from dantopa/Longshot:perf/radv-software-mma-dot2 into main
First-time contributor

Summary

On GPUs without suitable cooperative matrices, the game's upscaler networks (9dc98871eb7fc101 at 100 % render,
fd029a317a9a4b94 at 75 %) run their HMMA in software. On RDNA 2 with RADV (Steam Deck, RX 6000 on Linux) none of
the fast paths apply: WMMA16 needs RDNA 3/4, and #2329 emits main's SPIR-V on RDNA 2. The unrolled form spends most of
its time on separate f16 multiplies and adds, and on the 16 shuffles that hand each lane its B words.

This PR adds two self-test-gated steps to the software HMMA lowering:

  • f16 pair dot products (SoftwareMmaForm::Dot2): each K pair is one OpFDot2MixAcc32VALVE
    (VK_VALVE_shader_mixed_float_dot_product, v_dot2c_f32_f16 on RADV), with A's quad broadcast folded in.
  • B through workgroup memory: a 256-byte tile a subgroup in place of the 16 shuffles; the same words.

On a Steam Deck LCD the 100 % network drops from 2.50 to 1.56 ms a dispatch (βˆ’38 %), and the frame rate rises
+4.5 % (Kokiri Forest), +6.3 % (Hyrule Field), +4.5 % (Market). Each step helps alone and more together.

Read first: mma_software.h (the two forms), vk_coopmat.cpp (choose_software_form, choose_staged_b and their
self-tests), device_policy.h (mma_stage_b_try), then tests/test_mma_software.py.

Testing

Tested: Steam Deck LCD, SteamOS, Mesa RADV (VANGOGH), in the game from the kokiri-start save in Kokiri Forest,
Hyrule Field and the Market, Upscaling = Game at 100 % and at 75 % (RX_VK_TAAU_KEYS=-, so the 75 % network runs).
The log shows both forms chosen after their self-tests:

vk: software matrix multiplies unrolled, f16 pair dot products, f16 rounding by conversion, A through quad broadcasts: 2050 of 16384 words other than the loop's, all within 2 f16 ulps (RX_VK_MMA_DOT2=0: not tried) (RX_VK_MMA_UNROLL=0: looped)
vk: software matrix multiplies: B through workgroup memory, 256 bytes a subgroup: the shuffles' words for 8192 lanes (RX_VK_MMA_STAGE_B=0: through shuffles)

The picture is the same as main's at the same spot (screenshots and 2x crops in a comment).
Checks: test_mma_software.py (the self-test's and the emitter's modules through spirv-val, the word comparison cut
from vk_coopmat.cpp), test_wmma16_spirv_val.py, test_wmma16_zero_c_kchain.py, test_device_policy.py,
test_switch_table.py, test_program_stamp_knobs.py and the other checks that read these files pass.
mise run test (tests/run_all.py --strict) on the head, 6b5aafc8 on main 6123c76a: 948 pass, 13 fail, 18 skipped (Windows only). The same 12 fail on main 6123c76a on this PC, for its tools: the AddressSanitizer runtime is missing from the clang used here (audio_source, game_layout, game_menu_mouse_buttons, input_movie, mods_list, obj_cache_size, option_ids, options_path, pads_after_menu, settings_atomic, tracy_funcs) and there is no dav1d (dav1d_av1). The 13th, test_prepare_stall, is a timing watchdog that timed out with 8 checks at once and passes alone, here and on main.
Windows: longshot_vk.dll cross-compiled with llvm-mingw (tools.lock's 20261104, as CI's windows-vulkan job: RX_TARGET=windows RX_VK_ONLY=1 RX_RELEASE=1 nx2/build.py --standalone) on the head, dd69bcca on main 9046a8d7. That build found near and far, which windows.h defines as macros, as names in vk_coopmat.cpp; dd69bcca renames them. After it, tests/run_all.py --strict --changed passes but test_input_movie (the AddressSanitizer runtime above).

Still to test:

  • Linux, RX 6000 (RDNA 2), RADV: the same A/B, expecting the network pass faster and the same picture (@Beanstalk)
  • Linux, RDNA 3/4, RADV: expecting no change, WMMA16 stays first (@Beanstalk)
  • Windows, any GPU: expecting no change, the extension is not asked for (@Beanstalk)

Measurements

Verdict: faster on the Steam Deck: the upscaler network βˆ’38 % (2.50 β†’ 1.56 ms a dispatch), +4.5 to +6.3 % fps.

Measured on main 90fae88c; main has moved since only in code this PR does not touch (CI, release tooling, input, the near/far rename), so the numbers still hold.

Setup: Steam Deck LCD, SteamOS, Mesa RADV (VANGOGH), GPU held at its peak clock; 1280x800 output, Upscaling = Game
100 %, frame generation and V-Sync off, HOS_FPS_MAX=1000; the kokiri-start save, teleported to each scene, 25 s to
settle, then the median of 12 fps samples 2.5 s apart; runs interleaved main, PR, main, PR. Network times from
RX_VK_PASS_TIMING=2, the median per-dispatch time of the run.

Before: main @ 90fae88c After: this PR @ 38315b62
Kokiri Forest fps (run 1 / run 2) 31.3 / 32.2 33.2 / 33.2
Hyrule Field fps 30.3 / 31.3 32.3 / 33.2
Market fps 23.5 / 23.5 24.5 / 24.6
9dc98871 (100 %), ms a dispatch 2.50 1.56
9dc98871 with RX_VK_MMA_DOT2=0 (B through workgroup memory alone) 2.16
9dc98871 with RX_VK_MMA_STAGE_B=0 (pair dot products alone) 2.04
fd029a31 (75 %), ms a dispatch 1.64 1.09

Both switches ship on where their self-tests pass: each step is faster alone, and the two together are faster still.

For scale: a hand-written core of the same maths, kept local (it is not part of this PR), reaches 0.91 ms for
9dc98871 and 0.63 ms for fd029a31 on the same Deck. That is the headroom a follow-up could go after.

Risks

  • Rounding: a pair dot product rounds a K pair's sum once where the loop rounds twice, so a word can differ from
    the loop's by one f32 rounding of that partial sum. The self-test bounds its own inputs (within 2 f16 ulps, the same
    sign, infinity and NaN where the loop has them); the screenshots are the evidence for the game's picture.
    RX_VK_MMA_DOT2=0 keeps the unrolled form, word for word the loop's.
  • Workgroup memory: 256 bytes a subgroup and two subgroup barriers. It needs whole, full subgroups
    (computeFullSubgroups) and is skipped where its self-test's words differ. RX_VK_MMA_STAGE_B=0 keeps the shuffles.
  • Unchanged: WMMA16 (RDNA 3/3.5/4) stays first where it passes; NVIDIA, Intel and AMD's Windows driver behave as
    before (the extension is asked for only where the unrolled forms are tried).
  • After updating: the program cache's stamp changes (bits 21 and 22), so programs translate once again.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

πŸ€– Generated with Claude Code

## Summary On GPUs without suitable cooperative matrices, the game's upscaler networks (`9dc98871eb7fc101` at 100 % render, `fd029a317a9a4b94` at 75 %) run their HMMA in software. On RDNA 2 with RADV (Steam Deck, RX 6000 on Linux) none of the fast paths apply: WMMA16 needs RDNA 3/4, and #2329 emits main's SPIR-V on RDNA 2. The unrolled form spends most of its time on separate f16 multiplies and adds, and on the 16 shuffles that hand each lane its B words. This PR adds two self-test-gated steps to the software HMMA lowering: - **f16 pair dot products** (`SoftwareMmaForm::Dot2`): each K pair is one `OpFDot2MixAcc32VALVE` (`VK_VALVE_shader_mixed_float_dot_product`, `v_dot2c_f32_f16` on RADV), with A's quad broadcast folded in. - **B through workgroup memory**: a 256-byte tile a subgroup in place of the 16 shuffles; the same words. On a Steam Deck LCD the 100 % network drops from **2.50 to 1.56 ms a dispatch (βˆ’38 %)**, and the frame rate rises **+4.5 % (Kokiri Forest), +6.3 % (Hyrule Field), +4.5 % (Market)**. Each step helps alone and more together. Read first: `mma_software.h` (the two forms), `vk_coopmat.cpp` (`choose_software_form`, `choose_staged_b` and their self-tests), `device_policy.h` (`mma_stage_b_try`), then `tests/test_mma_software.py`. ## Testing **Tested:** Steam Deck LCD, SteamOS, Mesa RADV (VANGOGH), in the game from the `kokiri-start` save in Kokiri Forest, Hyrule Field and the Market, `Upscaling = Game` at 100 % and at 75 % (`RX_VK_TAAU_KEYS=-`, so the 75 % network runs). The log shows both forms chosen after their self-tests: ``` vk: software matrix multiplies unrolled, f16 pair dot products, f16 rounding by conversion, A through quad broadcasts: 2050 of 16384 words other than the loop's, all within 2 f16 ulps (RX_VK_MMA_DOT2=0: not tried) (RX_VK_MMA_UNROLL=0: looped) vk: software matrix multiplies: B through workgroup memory, 256 bytes a subgroup: the shuffles' words for 8192 lanes (RX_VK_MMA_STAGE_B=0: through shuffles) ``` The picture is the same as main's at the same spot (screenshots and 2x crops in a comment). Checks: `test_mma_software.py` (the self-test's and the emitter's modules through spirv-val, the word comparison cut from `vk_coopmat.cpp`), `test_wmma16_spirv_val.py`, `test_wmma16_zero_c_kchain.py`, `test_device_policy.py`, `test_switch_table.py`, `test_program_stamp_knobs.py` and the other checks that read these files pass. `mise run test` (`tests/run_all.py --strict`) on the head, 6b5aafc8 on main 6123c76a: 948 pass, 13 fail, 18 skipped (Windows only). The same 12 fail on main 6123c76a on this PC, for its tools: the AddressSanitizer runtime is missing from the clang used here (`audio_source`, `game_layout`, `game_menu_mouse_buttons`, `input_movie`, `mods_list`, `obj_cache_size`, `option_ids`, `options_path`, `pads_after_menu`, `settings_atomic`, `tracy_funcs`) and there is no dav1d (`dav1d_av1`). The 13th, `test_prepare_stall`, is a timing watchdog that timed out with 8 checks at once and passes alone, here and on main. Windows: `longshot_vk.dll` cross-compiled with llvm-mingw (tools.lock's 20261104, as CI's `windows-vulkan` job: `RX_TARGET=windows RX_VK_ONLY=1 RX_RELEASE=1 nx2/build.py --standalone`) on the head, dd69bcca on main 9046a8d7. That build found `near` and `far`, which windows.h defines as macros, as names in `vk_coopmat.cpp`; dd69bcca renames them. After it, `tests/run_all.py --strict --changed` passes but `test_input_movie` (the AddressSanitizer runtime above). **Still to test:** - Linux, RX 6000 (RDNA 2), RADV: the same A/B, expecting the network pass faster and the same picture (@Beanstalk) - Linux, RDNA 3/4, RADV: expecting no change, WMMA16 stays first (@Beanstalk) - Windows, any GPU: expecting no change, the extension is not asked for (@Beanstalk) ## Measurements **Verdict:** faster on the Steam Deck: the upscaler network βˆ’38 % (2.50 β†’ 1.56 ms a dispatch), +4.5 to +6.3 % fps. Measured on main 90fae88c; main has moved since only in code this PR does not touch (CI, release tooling, input, the `near`/`far` rename), so the numbers still hold. Setup: Steam Deck LCD, SteamOS, Mesa RADV (VANGOGH), GPU held at its peak clock; 1280x800 output, `Upscaling = Game` 100 %, frame generation and V-Sync off, `HOS_FPS_MAX=1000`; the `kokiri-start` save, teleported to each scene, 25 s to settle, then the median of 12 fps samples 2.5 s apart; runs interleaved main, PR, main, PR. Network times from `RX_VK_PASS_TIMING=2`, the median per-dispatch time of the run. | | Before: main @ 90fae88c | After: this PR @ 38315b62 | |---|---|---| | Kokiri Forest fps (run 1 / run 2) | 31.3 / 32.2 | 33.2 / 33.2 | | Hyrule Field fps | 30.3 / 31.3 | 32.3 / 33.2 | | Market fps | 23.5 / 23.5 | 24.5 / 24.6 | | `9dc98871` (100 %), ms a dispatch | 2.50 | **1.56** | | `9dc98871` with `RX_VK_MMA_DOT2=0` (B through workgroup memory alone) | | 2.16 | | `9dc98871` with `RX_VK_MMA_STAGE_B=0` (pair dot products alone) | | 2.04 | | `fd029a31` (75 %), ms a dispatch | 1.64 | **1.09** | Both switches ship on where their self-tests pass: each step is faster alone, and the two together are faster still. For scale: a hand-written core of the same maths, kept local (it is not part of this PR), reaches 0.91 ms for `9dc98871` and 0.63 ms for `fd029a31` on the same Deck. That is the headroom a follow-up could go after. ## Risks - **Rounding:** a pair dot product rounds a K pair's sum once where the loop rounds twice, so a word can differ from the loop's by one f32 rounding of that partial sum. The self-test bounds its own inputs (within 2 f16 ulps, the same sign, infinity and NaN where the loop has them); the screenshots are the evidence for the game's picture. `RX_VK_MMA_DOT2=0` keeps the unrolled form, word for word the loop's. - **Workgroup memory:** 256 bytes a subgroup and two subgroup barriers. It needs whole, full subgroups (`computeFullSubgroups`) and is skipped where its self-test's words differ. `RX_VK_MMA_STAGE_B=0` keeps the shuffles. - **Unchanged:** WMMA16 (RDNA 3/3.5/4) stays first where it passes; NVIDIA, Intel and AMD's Windows driver behave as before (the extension is asked for only where the unrolled forms are tried). - **After updating:** the program cache's stamp changes (bits 21 and 22), so programs translate once again. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. πŸ€– Generated with [Claude Code](https://claude.com/claude-code)
perf(vk): software HMMA on RADV with f16 pair dot products and B through workgroup memory
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 9s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
4183926585
Two changes to the software HMMA.16816.F16 lowering (mma_software.h),
both self-test gated in vk_coopmat.cpp and both general: every program
with HMMA on a GPU without suitable cooperative matrices gets them from
its own translation.

- SoftwareMmaForm::Dot2: UnrolledF16 with A's and B's words kept packed
  and each K pair one OpFDot2MixAcc32VALVE
  (VK_VALVE_shader_mixed_float_dot_product, v_dot2c_f32_f16 on RADV, A's
  quad broadcast folded in as DPP). It rounds a pair's two products and
  their sum once where the loop rounds twice, so its words differ from
  the loop's by at most one f32 rounding of the pair's partial sum
  (cancellation can make that many f16 ulps). The self-test gains
  double-rounding warps and lets Dot2 through where no word is far from
  the loop's (within 2 f16 ulps, same sign, NaN and infinity where the
  loop's are); that the pictures do not change is for an image
  comparison, done separately. The extension is asked for only where the
  unrolled forms are tried (RX_VK_MMA_UNROLL's default: RADV, RDNA 4 on
  AMD's proprietary driver), and not with RX_VK_MMA_DOT2=0.

- B through a 256-byte workgroup memory tile per subgroup instead of 16
  shuffles: one 64-bit store, four 16-byte loads, two subgroup barriers,
  the same words. Compute programs pinned to 32 lanes with whole, full
  subgroups only (computeFullSubgroups, as WMMA16: the barriers need the
  whole subgroup converged). The tiles are a plain array, the layout the
  self-test (128-lane workgroups, four tiles) runs; a program with an
  explicit workgroup layout would get them as a Block past its own only
  where the self-test ran that layout too, which no device does yet (the
  renderer does not enable it), so such a program keeps the shuffles.
  Used where the self-test gives the shuffles' words; on RADV by default
  (device policy mma_stage_b_try), RX_VK_MMA_STAGE_B=0/1 over it.

Neither touches the WMMA 16x16x16 path of AMD RDNA 3/3.5/4 (mma_wmma16):
it stays first where it passes, and its per-program fallback (tiles past
the shared memory) keeps the loop, as choose_software_form picks no form
there. Both are in the program cache's stamp (B through workgroup memory
as bit 21, past graphics_table_loads' bits 19 and 20; the Block layout
as bit 22).

tests/test_mma_software.py checks every form's SPIR-V (spirv-val and
shape; B through shuffles, a tile array and a tile Block past an Aliased
Block for the program's own bytes), the emitter's function through
spirv-val in both layouts and where it keeps the shuffles, the
self-test's word comparison (65504 against infinity is far), the Dot2
arithmetic on the self-test's inputs on the CPU, and the switches. A
spirv-val older than OpFDot2MixAcc32VALVE validates the Dot2 modules
with the dot products as FMA pairs and says SKIP for the opcode.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SZrqKney9EyJu11BwXGF4K

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SZrqKney9EyJu11BwXGF4K
Author
First-time contributor

Tested in game: Steam Deck LCD, SteamOS, Mesa RADV (VANGOGH): Kokiri Forest, Hyrule Field and the Market from the kokiri-start save, Upscaling = Game at 100 % and 75 %; both forms pass their self-tests and are chosen (log lines in Testing); 9dc98871 2.50 -> 1.56 ms a dispatch; the picture matches main by eye.

Tested in game: Steam Deck LCD, SteamOS, Mesa RADV (VANGOGH): Kokiri Forest, Hyrule Field and the Market from the kokiri-start save, Upscaling = Game at 100 % and 75 %; both forms pass their self-tests and are chosen (log lines in Testing); 9dc98871 2.50 -> 1.56 ms a dispatch; the picture matches main by eye.
dantopa force-pushed perf/radv-software-mma-dot2 from 4183926585
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 9s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 4136df5883
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 7s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-24 06:10:22 +00:00
Compare
Author
First-time contributor

Rebased onto main 8aa5ab87 (the only new commit is .tooling-rev, release tooling): no code change, the measurements at 90fae88c still hold. Head is now 4136df58.

Rebased onto main 8aa5ab87 (the only new commit is `.tooling-rev`, release tooling): no code change, the measurements at 90fae88c still hold. Head is now 4136df58.
dantopa force-pushed perf/radv-software-mma-dot2 from 4136df5883
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 7s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 38315b629a
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
beanstalk/approval waiting for a BigBean's πŸ‘ on the request
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-24 06:13:26 +00:00
Compare
Author
First-time contributor

Pushed 38315b62: a readability pass, no change in behaviour.

  • mma_software.h: the staged-B load is its own helper (load_b_from_tile); named constants kSoftwareMmaTileVectors / kSoftwareMmaTileBytes replace the bare 16 and 256; the comment now says two word stores (what the SPIR-V has).
  • vk_coopmat.cpp: software_forms_agree folded into software_form_words + software_words_compare; one "use this form" branch in choose_software_form; the loop's own run goes through the same helper; a stale comment about Dot2's rounding corrected.
  • emit_spirv_warp.cpp: the staged-B condition split into named parts (full_subgroups, stage_b), a redundant % 32 test dropped.
  • vk_shader.cpp: the stamp bits written as 2097152u / 4194304u like their neighbours, so the mesh-fallback stamp-collision checks see them.
  • tests/test_mma_software.py: shared helpers instead of copies, and it now checks the staged module's store count.

All 38 SPIR-V modules the fixtures build (24 self-test, 14 emitter) are byte-identical before and after, and the stamp values are unchanged, so the measurements still hold. test_mma_software.py (44 PASS), test_wmma16_spirv_val.py, test_wmma16_zero_c_kchain.py, test_device_policy.py, test_switch_table.py, test_program_stamp_knobs.py, test_coopmat_probe_failures.py and the test_mesh_fallback_* stamp checks pass.

Pushed 38315b62: a readability pass, no change in behaviour. - `mma_software.h`: the staged-B load is its own helper (`load_b_from_tile`); named constants `kSoftwareMmaTileVectors` / `kSoftwareMmaTileBytes` replace the bare 16 and 256; the comment now says two word stores (what the SPIR-V has). - `vk_coopmat.cpp`: `software_forms_agree` folded into `software_form_words` + `software_words_compare`; one "use this form" branch in `choose_software_form`; the loop's own run goes through the same helper; a stale comment about Dot2's rounding corrected. - `emit_spirv_warp.cpp`: the staged-B condition split into named parts (`full_subgroups`, `stage_b`), a redundant `% 32` test dropped. - `vk_shader.cpp`: the stamp bits written as `2097152u` / `4194304u` like their neighbours, so the mesh-fallback stamp-collision checks see them. - `tests/test_mma_software.py`: shared helpers instead of copies, and it now checks the staged module's store count. All 38 SPIR-V modules the fixtures build (24 self-test, 14 emitter) are byte-identical before and after, and the stamp values are unchanged, so the measurements still hold. `test_mma_software.py` (44 PASS), `test_wmma16_spirv_val.py`, `test_wmma16_zero_c_kchain.py`, `test_device_policy.py`, `test_switch_table.py`, `test_program_stamp_knobs.py`, `test_coopmat_probe_failures.py` and the `test_mesh_fallback_*` stamp checks pass.
Author
First-time contributor

Screenshots, Steam Deck LCD, the same spot on main @ 90fae88c and on this PR (1280x800, Upscaling = Game 100 %, so 9dc98871 draws the picture):

main @ 90fae88c
this PR

2x crops (nearest neighbour) of Link and the path, main on the left, this PR on the right:

2x crop, Kokiri Forest exit
2x crop, second spot

Edges, the tunic's texture, grass and the HUD are the same. What moves between the two captures is the scene itself (the drifting fog and the fireflies are animated), not the upscale.

Also measured: fd029a31 at 75 % (RX_VK_TAAU_KEYS=-) goes from 1.64 to 1.09 ms a dispatch (βˆ’34 %).

Screenshots, Steam Deck LCD, the same spot on main @ 90fae88c and on this PR (1280x800, `Upscaling = Game` 100 %, so `9dc98871` draws the picture): ![main @ 90fae88c](https://git.magicbean.dev/attachments/b5f6833a-03af-4e00-8050-594a1a7c4bba) ![this PR](https://git.magicbean.dev/attachments/2e8a0141-475b-4c73-8859-66413cb3bb7c) 2x crops (nearest neighbour) of Link and the path, main on the left, this PR on the right: ![2x crop, Kokiri Forest exit](https://git.magicbean.dev/attachments/cafc056c-6107-49b5-a25b-70a7d07ba132) ![2x crop, second spot](https://git.magicbean.dev/attachments/c0db7797-b3a8-42ad-b089-ef01c7634b12) Edges, the tunic's texture, grass and the HUD are the same. What moves between the two captures is the scene itself (the drifting fog and the fireflies are animated), not the upscale. Also measured: `fd029a31` at 75 % (`RX_VK_TAAU_KEYS=-`) goes from 1.64 to 1.09 ms a dispatch (βˆ’34 %).
Author
First-time contributor

@Beanstalk on Linux RADV with an RDNA 2 card (RX 6000), Upscaling = Game at 100 %: the time of the upscaler network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) and the frame rate against main, and that the picture is unchanged; the log should say 'f16 pair dot products' and 'B through workgroup memory'. On RDNA 3/4 with RADV and on Windows (any GPU), expect no change: WMMA16 stays first, and the extension is not asked for.

@Beanstalk on Linux RADV with an RDNA 2 card (RX 6000), Upscaling = Game at 100 %: the time of the upscaler network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) and the frame rate against main, and that the picture is unchanged; the log should say 'f16 pair dot products' and 'B through workgroup memory'. On RDNA 3/4 with RADV and on Windows (any GPU), expect no change: WMMA16 stays first, and the extension is not asked for.
Member

@dantopa only members of BigBeans can start the farm.

One of them can approve this request by reacting πŸ‘ to it or to this comment. This request was for 38315b6, and the PR has changed since (6b5aafc), so a πŸ‘ no longer approves it. Comment @Beanstalk again to ask for the new commit.

@dantopa only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting πŸ‘ to it or to this comment.~~ This request was for `38315b6`, and the PR has changed since (`6b5aafc`), so a πŸ‘ no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
dantopa force-pushed perf/radv-software-mma-dot2 from 38315b629a
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
beanstalk/approval waiting for a BigBean's πŸ‘ on the request
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 6b5aafc86a
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 8s
beanstalk/approval waiting for a BigBean's πŸ‘ on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
2026-11-24 19:29:27 +00:00
Compare
Author
First-time contributor

Rebased onto main 6123c76a (two CI commits since 8aa5ab87, no code this PR touches): head 6b5aafc8, the same diff, so the measurements at 90fae88c still hold.

mise run test (tests/run_all.py --strict) on the head: 948 pass, 13 fail. The same 12 fail on main 6123c76a on this PC, for its tools (no AddressSanitizer runtime in its clang, no dav1d); test_prepare_stall timed out under load and passes alone, here and on main. The list is in Testing. Marking it ready for review.

Rebased onto main 6123c76a (two CI commits since 8aa5ab87, no code this PR touches): head 6b5aafc8, the same diff, so the measurements at 90fae88c still hold. `mise run test` (`tests/run_all.py --strict`) on the head: 948 pass, 13 fail. The same 12 fail on main 6123c76a on this PC, for its tools (no AddressSanitizer runtime in its clang, no dav1d); `test_prepare_stall` timed out under load and passes alone, here and on main. The list is in Testing. Marking it ready for review.
dantopa changed title from WIP: perf(vk): cut the upscaler network 38% (+4.5-6.3% FPS) on RADV RDNA 2 (Steam Deck) via f16 pair dot products and B through workgroup memory to perf(vk): cut the upscaler network 38% (+4.5-6.3% FPS) on RADV RDNA 2 (Steam Deck) via f16 pair dot products and B through workgroup memory 2026-11-24 19:29:46 +00:00
Author
First-time contributor

@Beanstalk on Linux RADV with an RDNA 2 card (RX 6000), Upscaling = Game at 100 %: the time of the upscaler network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) and the frame rate against main, and that the picture is unchanged; the log should say 'f16 pair dot products' and 'B through workgroup memory'. Head is now 6b5aafc8.

@Beanstalk on Linux RADV with an RDNA 2 card (RX 6000), Upscaling = Game at 100 %: the time of the upscaler network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) and the frame rate against main, and that the picture is unchanged; the log should say 'f16 pair dot products' and 'B through workgroup memory'. Head is now 6b5aafc8.
Member

@dantopa only members of BigBeans can start the farm.

One of them can approve this request by reacting πŸ‘ to it or to this comment. This request was for 6b5aafc, and the PR has changed since (dd69bcc), so a πŸ‘ no longer approves it. Comment @Beanstalk again to ask for the new commit.

@dantopa only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting πŸ‘ to it or to this comment.~~ This request was for `6b5aafc`, and the PR has changed since (`dd69bcc`), so a πŸ‘ no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
dantopa force-pushed perf/radv-software-mma-dot2 from 6b5aafc86a
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 8s
beanstalk/approval waiting for a BigBean's πŸ‘ on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
to dd69bcca0d
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's πŸ‘ on the request
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
2026-11-25 02:36:48 +00:00
Compare
Author
First-time contributor

Pushed dd69bcca, rebased onto main 9046a8d7: a Windows build fix.

Cross-compiling longshot_vk.dll with llvm-mingw the way CI's windows-vulkan job does failed in vk_coopmat.cpp: windows.h defines near and far as empty macros, and the self-test's comparison used both as names (SoftwareWords::far, the near lambda). They are now off and within, and test_mma_software.py reads the new names. With that the DLL builds, and tests/run_all.py --strict --changed passes but test_input_movie (no AddressSanitizer runtime in this PC's clang, as on main). No change in behaviour on Linux; the measurements at 90fae88c still hold (Measurements says why).

@Beanstalk on Linux RADV with an RDNA 2 card (RX 6000), Upscaling = Game at 100 %: the time of the upscaler network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) and the frame rate against main, and that the picture is unchanged; the log should say 'f16 pair dot products' and 'B through workgroup memory'. Head is now dd69bcca.

Pushed dd69bcca, rebased onto main 9046a8d7: a Windows build fix. Cross-compiling `longshot_vk.dll` with llvm-mingw the way CI's `windows-vulkan` job does failed in `vk_coopmat.cpp`: windows.h defines `near` and `far` as empty macros, and the self-test's comparison used both as names (`SoftwareWords::far`, the `near` lambda). They are now `off` and `within`, and `test_mma_software.py` reads the new names. With that the DLL builds, and `tests/run_all.py --strict --changed` passes but `test_input_movie` (no AddressSanitizer runtime in this PC's clang, as on main). No change in behaviour on Linux; the measurements at 90fae88c still hold (Measurements says why). @Beanstalk on Linux RADV with an RDNA 2 card (RX 6000), Upscaling = Game at 100 %: the time of the upscaler network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) and the frame rate against main, and that the picture is unchanged; the log should say 'f16 pair dot products' and 'B through workgroup memory'. Head is now dd69bcca.
Member

@dantopa only members of BigBeans can start the farm.

One of them can approve this request by reacting πŸ‘ to it or to this comment. This request was for dd69bcc, and the PR has changed since (d9e3238), so a πŸ‘ no longer approves it. Comment @Beanstalk again to ask for the new commit.

@dantopa only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting πŸ‘ to it or to this comment.~~ This request was for `dd69bcc`, and the PR has changed since (`d9e3238`), so a πŸ‘ no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
dantopa force-pushed perf/radv-software-mma-dot2 from dd69bcca0d
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's πŸ‘ on the request
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
to d9e3238597
Some checks reported errors
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Website build and checks (pull_request) Blocked by required conditions
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 20s
CI / longshot-builder end to end (synthetic game) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
beanstalk/linux+radv+gpu-rx-6* 0/1 pass, 0 running, 2 queued
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/linux+radv+gpu-rx-7*_rx-9* 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 0 running, 1 queued
2026-11-25 17:20:32 +00:00
Compare
Author
First-time contributor

Pushed d9e32385, rebased onto main 7eb53d1a (no conflicts). It adds one commit, from a cold review of the branch (the project's review guide, run by our own agent):

  • Dropped the staged B tiles' Block layout. Tiles placed as a Block after a program's own workgroup memory (an explicit workgroup layout) could never run, because make_profile leaves support_explicit_workgroup_layout off and so mma_software_staged_b_block was never set. The emitter path, the self-test's layout and stamp bit 22 are gone. A program with an explicit layout and workgroup memory of its own keeps the shuffles; the emitter cases still check that.
  • Tested the tile indices. The tile's store and load indices are now software_tile_* in mma_software.h. DefineSoftwareMma emits them, and test_mma_software.py runs them on plain numbers: every lane of 4 subgroups reads the words the shuffles would have handed it. The two index mutations the review tried now fail the check.
  • One rule for the mixed float dot product. create_device asks for it by the same rules choose_software_form uses (software_dot2_extension_wanted) instead of a copy, so RX_VK_MMA_DOT2=2 no longer asks for nothing and logs that the GPU lacks it.
  • Full subgroups for the staged self-test. Its pipeline asks for full subgroups, as the programs it stands for get them (pin_subgroup).
  • mma_stage_b_try only where it can be used. It is on only where compute can be pinned to 32 lanes, so not on GCN or Vega, matching software_stage_b_wanted.

Checked on the Steam Deck (LCD, RDNA 2), with the PR's files on nightly-797 (main 90fae88c). Main has changed four of those files since, in other places (#2286, #2411), and the rebase merged them without conflicts:

  • The log still says f16 pair dot products ... all within 2 f16 ulps and B through workgroup memory, 256 bytes a subgroup.
  • The network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) is 1.555 ms a dispatch (median of 8), against 1.557 ms before this commit and 2.495 ms on main.

On the rebased head, longshot_vk.dll cross-compiles with llvm-mingw the way windows-vulkan does (longshot-builder compile --only renderer, RX_TARGET=windows), and tests/run_all.py --strict --changed gives 178 pass, 1 fail: test_native_zstd, which needs the Python zstandard module this PC does not have.

@Beanstalk on Linux RADV with an RDNA 2 card (RX 6000), Upscaling = Game at 100 %: the time of the upscaler network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) and the frame rate against main, and that the picture is unchanged; the log should say 'f16 pair dot products' and 'B through workgroup memory'. Head is now d9e32385.

Pushed d9e32385, rebased onto main 7eb53d1a (no conflicts). It adds one commit, from a cold review of the branch (the project's review guide, run by our own agent): - **Dropped the staged B tiles' Block layout.** Tiles placed as a Block after a program's own workgroup memory (an explicit workgroup layout) could never run, because `make_profile` leaves `support_explicit_workgroup_layout` off and so `mma_software_staged_b_block` was never set. The emitter path, the self-test's layout and stamp bit 22 are gone. A program with an explicit layout and workgroup memory of its own keeps the shuffles; the emitter cases still check that. - **Tested the tile indices.** The tile's store and load indices are now `software_tile_*` in `mma_software.h`. `DefineSoftwareMma` emits them, and `test_mma_software.py` runs them on plain numbers: every lane of 4 subgroups reads the words the shuffles would have handed it. The two index mutations the review tried now fail the check. - **One rule for the mixed float dot product.** `create_device` asks for it by the same rules `choose_software_form` uses (`software_dot2_extension_wanted`) instead of a copy, so `RX_VK_MMA_DOT2=2` no longer asks for nothing and logs that the GPU lacks it. - **Full subgroups for the staged self-test.** Its pipeline asks for full subgroups, as the programs it stands for get them (`pin_subgroup`). - **`mma_stage_b_try` only where it can be used.** It is on only where compute can be pinned to 32 lanes, so not on GCN or Vega, matching `software_stage_b_wanted`. Checked on the Steam Deck (LCD, RDNA 2), with the PR's files on nightly-797 (main 90fae88c). Main has changed four of those files since, in other places (#2286, #2411), and the rebase merged them without conflicts: - The log still says `f16 pair dot products ... all within 2 f16 ulps` and `B through workgroup memory, 256 bytes a subgroup`. - The network pass (prog 9dc98871, `RX_VK_PASS_TIMING=2`) is 1.555 ms a dispatch (median of 8), against 1.557 ms before this commit and 2.495 ms on main. On the rebased head, `longshot_vk.dll` cross-compiles with llvm-mingw the way `windows-vulkan` does (`longshot-builder compile --only renderer`, `RX_TARGET=windows`), and `tests/run_all.py --strict --changed` gives 178 pass, 1 fail: `test_native_zstd`, which needs the Python `zstandard` module this PC does not have. @Beanstalk on Linux RADV with an RDNA 2 card (RX 6000), Upscaling = Game at 100 %: the time of the upscaler network pass (prog 9dc98871, RX_VK_PASS_TIMING=2) and the frame rate against main, and that the picture is unchanged; the log should say 'f16 pair dot products' and 'B through workgroup memory'. Head is now d9e32385.
Member

@dantopa only members of BigBeans can start the farm. One of them can approve this request by reacting πŸ‘ to it or to this comment.

@dantopa only members of `BigBeans` can start the farm. One of them can approve this request by reacting πŸ‘ to it or to this comment.
Owner

@beanstalk

@beanstalk
Member

Beanstalk test farm Β· πŸ”„ testing (9 of 6 reports so far)

Commit d9e3238 Β· approved by HumanBean (reviewed) Β· dashboard

⚠️ Note: The GPU pass probe measures aggregate GPU time, not the named network's per-dispatch time, so the claimed 38% network reduction cannot be judged directly.
⚠️ Note: The plan does not select the 75% network because the supplied settings do not identify its render-resolution value; it also cannot reproduce the Deck's 1280Γ—800 output.
⚠️ Note: Selection logs can legitimately be absent on WMMA16 and other fallback paths, so missing lines are unjudged; the RX 7000/9000 RADV target also waits if no matching Linux RADV tester is available.

Started at 17:47 UTC.

Target Result Reports Frame time p99 (ms), main β†’ PR VRAM peak (MB) Crashes
linux+radv+gpu-rx-6* (GPU "rx 6*") ⏳ queued 0 of 1 β€” β€” β€”
linux+radv+gpu-rx-7*_rx-9* (GPU "rx 7*" or "rx 9*") ⚠️ couldn't be judged 2 1 2 β€” β€” none
steamdeck ⏳ queued 1 1 β€” β€” none
windows+amd ⚠️ couldn't be judged 2 1 2 β€” β€” none
nvidia ⚠️ couldn't be judged 2 1 2 β€” β€” none
intel ⚠️ couldn't be judged 2 1 2 β€” β€” none

Couldn't be judged: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own.

  • linux+radv+gpu-rx-7*_rx-9*, report 1: main's longshot-builder failed (exit 1): Traceback (most recent call last):
  • linux+radv+gpu-rx-7*_rx-9*, report 2: main's longshot-builder failed (exit 1): Traceback (most recent call last):
  • steamdeck, report 1: main's longshot-builder failed (exit 1): Traceback (most recent call last):
  • windows+amd, report 1: main's longshot-builder failed (exit 1): longshot_builder: no llvm-mingw: pass --llvm-mingw <folder> or set LONGSHOT_MINGW (Z:\builder\tools\tools\llvm-mingw\bin\x86_64-w64-mingw32-clang.exe is not there)
  • windows+amd, report 2: main's longshot-builder failed (exit 1): longshot_builder: no llvm-mingw: pass --llvm-mingw <folder> or set LONGSHOT_MINGW (Z:\builder\tools\tools\llvm-mingw\bin\x86_64-w64-mingw32-clang.exe is not there)
  • nvidia, report 1: main's longshot-builder failed (exit 1): longshot_builder: no llvm-mingw: pass --llvm-mingw <folder> or set LONGSHOT_MINGW (Z:\builder\tools\tools\llvm-mingw\bin\x86_64-w64-mingw32-clang.exe is not there)
  • nvidia, report 2: main's longshot-builder failed (exit 1): longshot_builder: no llvm-mingw: pass --llvm-mingw <folder> or set LONGSHOT_MINGW (Y:\builder\tools\tools\llvm-mingw\bin\x86_64-w64-mingw32-clang.exe is not there)
  • intel, report 1: main's longshot-builder failed (exit 1): Traceback (most recent call last):
  • and 1 more, in the reports
What was tested

What will be tested Β· AI plan (gpt-6.1-terra)

Main and the pull request will be compared in Kokiri Forest, Hyrule Field and Market using the game upscaler, with three starts per side and 25-second measurements at each location. The plan measures frame times, frame rate and aggregate GPU pass time, and compares stationary pictures and self-test selection logs. Crashes, substantial frame-time or GPU-time regressions, and picture differences beyond the tolerance fail the pull request; missing selection logs are reported as unjudged. The requested RX 6000 RADV target has no matching GPU listed online and will wait for a tester. No tester online now matches linux+radv+gpu-rx-6*: that target waits for one.

  • Where: linux+radv+gpu-rx-6* (GPU "rx 6*", 1-2 reports), linux+radv+gpu-rx-7*_rx-9* (GPU "rx 7*" or "rx 9*", 1-2 reports), steamdeck (1-2 reports), windows+amd (1-2 reports), nvidia (1-2 reports), intel (1-2 reports).
  • upscaler-scenes: from the repository's save kokiri-start (settings dlss=0, frame_rate_cap=6, frame_generation=0), then teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 25 s (after 25 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 25 s (after 25 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 25 s (after 25 s warm-up); 3 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate, GPU time per pass, the game's log (an expected line that never appears: could not be judged).
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or GPU time a frame is more than 15% above main; or frame time (p99) is more than 15% above main; or expected log lines missing is above 0; or frame time (worst 1%) is more than 15% above main.
  • Time: about 46 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `linux+radv+gpu-rx-7*_rx-9*`, for the PR description

Verdict: could not be judged on linux+radv+gpu-rx-7*_rx-9* (2 reports).

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.0.8 AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.2.7 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on linux+radv+gpu-rx-7*_rx-9* (2 reports).

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.2.7` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`  
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `steamdeck`, for the PR description

Verdict: queued on steamdeck (1 report).

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** queued on steamdeck (1 report).

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`  
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `windows+amd`, for the PR description

Verdict: could not be judged on windows+amd (2 reports).

Hardware: 1: windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM; 2: windows+amd+amd-proprietary+igpu AMD Radeon Graphics, 2.0.388 AMD Ryzen Z1 Extreme, 16 GB RAM
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+amd (2 reports).

Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+igpu `AMD Radeon Graphics, 2.0.388` `AMD Ryzen Z1 Extreme, 16 GB RAM`  
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `nvidia`, for the PR description

Verdict: could not be judged on nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess NVIDIA GeForce RTX 3080 Ti, 621.24.0 AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`  
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `intel`, for the PR description

Verdict: could not be judged on intel (2 reports).

Hardware: 1: linux+intel+anv+dgpu Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4 AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM; 2: windows+intel+intel-proprietary+dgpu+xess Intel(R) Arc(TM) B580 Graphics, 0.406.983 AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on intel (2 reports).

Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4` `AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM`; 2: windows+intel+intel-proprietary+dgpu+xess `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM`  
Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
linux+radv+gpu-rx-7*_rx-9* 1 linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.0.8 AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM
linux+radv+gpu-rx-7*_rx-9* 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.2.7 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
windows+amd 1 windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM
windows+amd 2 windows+amd+amd-proprietary+igpu AMD Radeon Graphics, 2.0.388 AMD Ryzen Z1 Extreme, 16 GB RAM
nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+dlss+xess NVIDIA GeForce RTX 3080 Ti, 621.24.0 AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
intel 1 linux+intel+anv+dgpu Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4 AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM
intel 2 windows+intel+intel-proprietary+dgpu+xess Intel(R) Arc(TM) B580 Graphics, 0.406.983 AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM
<!-- beanstalk:sticky --> ### Beanstalk test farm Β· πŸ”„ testing (9 of 6 reports so far) Commit `d9e3238` Β· approved by HumanBean (reviewed) Β· [dashboard](https://beanstalk.magicbean.dev/prs/2439) ⚠️ **Note:** The GPU pass probe measures aggregate GPU time, not the named network's per-dispatch time, so the claimed 38% network reduction cannot be judged directly. ⚠️ **Note:** The plan does not select the 75% network because the supplied settings do not identify its render-resolution value; it also cannot reproduce the Deck's 1280Γ—800 output. ⚠️ **Note:** Selection logs can legitimately be absent on WMMA16 and other fallback paths, so missing lines are unjudged; the RX 7000/9000 RADV target also waits if no matching Linux RADV tester is available. Started at 17:47 UTC. | Target | Result | Reports | Frame time p99 (ms), main β†’ PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `linux+radv+gpu-rx-6*` (GPU "rx 6*") | ⏳ queued | 0 of 1 | β€” | β€” | β€” | | `linux+radv+gpu-rx-7*_rx-9*` (GPU "rx 7*" or "rx 9*") | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_d1dbaa2850ce6d45) [2](https://beanstalk.magicbean.dev/reports/rp_f83947c327bf28b1) | β€” | β€” | none | | `steamdeck` | ⏳ queued | 1 [1](https://beanstalk.magicbean.dev/reports/rp_e965bb27de9ff378) | β€” | β€” | none | | `windows+amd` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_ce01dc7e02b618af) [2](https://beanstalk.magicbean.dev/reports/rp_f967cf909ae8681c) | β€” | β€” | none | | `nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_1cc7fb4a5e0227c8) [2](https://beanstalk.magicbean.dev/reports/rp_ad4ab1498437feda) | β€” | β€” | none | | `intel` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_40d249b27510fc2f) [2](https://beanstalk.magicbean.dev/reports/rp_63eba2f0b24d1c5b) | β€” | β€” | none | **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `linux+radv+gpu-rx-7*_rx-9*`, [report 1](https://beanstalk.magicbean.dev/reports/rp_d1dbaa2850ce6d45): `main's longshot-builder failed (exit 1): Traceback (most recent call last):` - `linux+radv+gpu-rx-7*_rx-9*`, [report 2](https://beanstalk.magicbean.dev/reports/rp_f83947c327bf28b1): `main's longshot-builder failed (exit 1): Traceback (most recent call last):` - `steamdeck`, [report 1](https://beanstalk.magicbean.dev/reports/rp_e965bb27de9ff378): `main's longshot-builder failed (exit 1): Traceback (most recent call last):` - `windows+amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_ce01dc7e02b618af): `main's longshot-builder failed (exit 1): longshot_builder: no llvm-mingw: pass --llvm-mingw <folder> or set LONGSHOT_MINGW (Z:\builder\tools\tools\llvm-mingw\bin\x86_64-w64-mingw32-clang.exe is not there)` - `windows+amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_f967cf909ae8681c): `main's longshot-builder failed (exit 1): longshot_builder: no llvm-mingw: pass --llvm-mingw <folder> or set LONGSHOT_MINGW (Z:\builder\tools\tools\llvm-mingw\bin\x86_64-w64-mingw32-clang.exe is not there)` - `nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_1cc7fb4a5e0227c8): `main's longshot-builder failed (exit 1): longshot_builder: no llvm-mingw: pass --llvm-mingw <folder> or set LONGSHOT_MINGW (Z:\builder\tools\tools\llvm-mingw\bin\x86_64-w64-mingw32-clang.exe is not there)` - `nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_ad4ab1498437feda): `main's longshot-builder failed (exit 1): longshot_builder: no llvm-mingw: pass --llvm-mingw <folder> or set LONGSHOT_MINGW (Y:\builder\tools\tools\llvm-mingw\bin\x86_64-w64-mingw32-clang.exe is not there)` - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_40d249b27510fc2f): `main's longshot-builder failed (exit 1): Traceback (most recent call last):` - and 1 more, in the reports <details><summary>What was tested</summary> **What will be tested** Β· AI plan (`gpt-6.1-terra`) Main and the pull request will be compared in Kokiri Forest, Hyrule Field and Market using the game upscaler, with three starts per side and 25-second measurements at each location. The plan measures frame times, frame rate and aggregate GPU pass time, and compares stationary pictures and self-test selection logs. Crashes, substantial frame-time or GPU-time regressions, and picture differences beyond the tolerance fail the pull request; missing selection logs are reported as unjudged. The requested RX 6000 RADV target has no matching GPU listed online and will wait for a tester. No tester online now matches linux+radv+gpu-rx-6*: that target waits for one. - **Where:** linux+radv+gpu-rx-6* (GPU "rx 6*", 1-2 reports), linux+radv+gpu-rx-7*_rx-9* (GPU "rx 7*" or "rx 9*", 1-2 reports), steamdeck (1-2 reports), windows+amd (1-2 reports), nvidia (1-2 reports), intel (1-2 reports). - **upscaler-scenes:** from the repository's save `kokiri-start` (settings dlss=0, frame_rate_cap=6, frame_generation=0), then teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 25 s (after 25 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 25 s (after 25 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 25 s (after 25 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate, GPU time per pass, the game's log (an expected line that never appears: could not be judged). - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or GPU time a frame is more than 15% above main; or frame time (p99) is more than 15% above main; or expected log lines missing is above 0; or frame time (worst 1%) is more than 15% above main. - **Time:** about 46 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `linux+radv+gpu-rx-7*_rx-9*`, for the PR description</summary> **Verdict:** could not be judged on linux+radv+gpu-rx-7*_rx-9* (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.2.7` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on linux+radv+gpu-rx-7*_rx-9* (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.2.7` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** queued on steamdeck (1 report). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** queued on steamdeck (1 report). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** could not be judged on windows+amd (2 reports). Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+igpu `AMD Radeon Graphics, 2.0.388` `AMD Ryzen Z1 Extreme, 16 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+amd (2 reports). Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+igpu `AMD Radeon Graphics, 2.0.388` `AMD Ryzen Z1 Extreme, 16 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `nvidia`, for the PR description</summary> **Verdict:** could not be judged on nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** could not be judged on intel (2 reports). Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4` `AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM`; 2: windows+intel+intel-proprietary+dgpu+xess `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on intel (2 reports). Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4` `AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM`; 2: windows+intel+intel-proprietary+dgpu+xess `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM` Scene: upscaler-scenes, from the repository's save kokiri-start (dlss=0, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscaler-scenes: 3 game starts a side, forest 25 s after 25 s warm-up, field 25 s after 25 s warm-up, market 25 s after 25 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `linux+radv+gpu-rx-7*_rx-9*` | [1](https://beanstalk.magicbean.dev/reports/rp_d1dbaa2850ce6d45) | linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM` | | `linux+radv+gpu-rx-7*_rx-9*` | [2](https://beanstalk.magicbean.dev/reports/rp_f83947c327bf28b1) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.2.7` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_e965bb27de9ff378) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_ce01dc7e02b618af) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM` | | `windows+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_f967cf909ae8681c) | windows+amd+amd-proprietary+igpu `AMD Radeon Graphics, 2.0.388` `AMD Ryzen Z1 Extreme, 16 GB RAM` | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_1cc7fb4a5e0227c8) | windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_ad4ab1498437feda) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_40d249b27510fc2f) | linux+intel+anv+dgpu `Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4` `AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM` | | `intel` | [2](https://beanstalk.magicbean.dev/reports/rp_63eba2f0b24d1c5b) | windows+intel+intel-proprietary+dgpu+xess `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM` | </details>
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The Steam Deck measurements show a large reduction in the targeted dispatch time, but frame pacing and the default on other affected RADV hardware remain unmeasured. The review was also unable to read every changed file and its surrounding code in full. Recommend approval; not approved on the forge.

The change accelerates software matrix multiplies used by the upscaler with pair dot products and workgroup memory, gated by device self-tests. It adds shader-generation and startup-probe complexity and changes floating-point rounding.

Nits (1): optional.

  • L3: The cache-stamp description still says bits 21 and 22 change, although the final commit removed bit 22. When: A reviewer reading the current Risks section is told the removed Block-layout stamp bit is still present. Do: Update the Risks section to describe the current stamp and the final commit's removal of the Block layout.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1: The reported FPS samples do not show whether the improvement preserves frame pacing. When: The new shader path runs every frame on the Deck, but the reported medians do not include 1% lows or frame times, so a pacing regression could accompany the dispatch-time reduction. Do: Compare average FPS, 1% lows, and median and p99 frame times on the Deck at the same scenes and settings with interleaved base and head runs.
  • L2 gpu/vk/vk_coopmat.cpp:674: The staged-B default also applies to eligible RADV GPUs beyond the tested Deck. (more on the line) Do: Run the requested RX 6000 base-versus-head game and dispatch-time comparison, including frame pacing and picture correctness.

@fix can do L3.

Checks: Still running: 13 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven for overall player performance: the author's interleaved Steam Deck runs report 2.50 to 1.56 ms per 100% network dispatch and higher sampled FPS, but do not report 1% lows or frame times. The 75% network reports 1.64 to 1.09 ms per dispatch.

Other systems: The new default can affect software matrix multiplies on RADV devices with suitable features, including RX 6000; their game and performance runs are pending. RDNA 3/4 normally retain WMMA16, and Windows normally does not request the extension, but the requested confirmation runs are pending. The tile path uses shared memory and subgroup barriers; its self-test compares its output with the shuffle path.

Switches: RX_VK_MMA_DOT2 defaults to trying Dot2 where software unrolling and the extension are available; RX_VK_MMA_STAGE_B defaults to trying staged B on RADV with pinned full subgroups. Both have switch-table rows and self-test gates. Their defaults are supported by the Deck dispatch measurements, but the staged-B default on other RADV hardware needs measurement.

Reviewed: d9e3238597 against 7eb53d1a0a: Read AGENTS.md, CONTRIBUTING.md, the PR template and standards; docs/review-checklist.md and ../Tooling/AGENTS.md were absent. Read the main shader-generation and probe changes and relevant pinning, capability and cache code; skimmed the other changed files, tests, commits and recorded runs. The large diff and all changed code files were not read in full.; nothing run (a code review).

Checked and fine:

  • The two new switches have rows in switches.def.
  • The changed commits record AI assistance.
  • The staged tile indices have a numeric mapping fixture, and the program stamp includes the staged-B limit.
  • The author reports a Windows cross-build and an in-game Steam Deck run.

Testing: No code or tests were run, as requested. The author reports the Deck runs and cross-build; CI is still running.

Overlaps and merge order: Not determined; the network was closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The Steam Deck measurements show a large reduction in the targeted dispatch time, but frame pacing and the default on other affected RADV hardware remain unmeasured. The review was also unable to read every changed file and its surrounding code in full. Recommend approval; not approved on the forge. The change accelerates software matrix multiplies used by the upscaler with pair dot products and workgroup memory, gated by device self-tests. It adds shader-generation and startup-probe complexity and changes floating-point rounding. **Nits (1)**: optional. - **L3**: The cache-stamp description still says bits 21 and 22 change, although the final commit removed bit 22. *When:* A reviewer reading the current Risks section is told the removed Block-layout stamp bit is still present. **Do:** Update the Risks section to describe the current stamp and the final commit's removal of the Block layout. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The reported FPS samples do not show whether the improvement preserves frame pacing. *When:* The new shader path runs every frame on the Deck, but the reported medians do not include 1% lows or frame times, so a pacing regression could accompany the dispatch-time reduction. **Do:** Compare average FPS, 1% lows, and median and p99 frame times on the Deck at the same scenes and settings with interleaved base and head runs. - **L2** `gpu/vk/vk_coopmat.cpp:674`: The staged-B default also applies to eligible RADV GPUs beyond the tested Deck. (more on the line) **Do:** Run the requested RX 6000 base-versus-head game and dispatch-time comparison, including frame pacing and picture correctness. `@fix` can do L3. **Checks:** Still running: 13 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for overall player performance: the author's interleaved Steam Deck runs report 2.50 to 1.56 ms per 100% network dispatch and higher sampled FPS, but do not report 1% lows or frame times. The 75% network reports 1.64 to 1.09 ms per dispatch. **Other systems:** The new default can affect software matrix multiplies on RADV devices with suitable features, including RX 6000; their game and performance runs are pending. RDNA 3/4 normally retain WMMA16, and Windows normally does not request the extension, but the requested confirmation runs are pending. The tile path uses shared memory and subgroup barriers; its self-test compares its output with the shuffle path. **Switches:** RX_VK_MMA_DOT2 defaults to trying Dot2 where software unrolling and the extension are available; RX_VK_MMA_STAGE_B defaults to trying staged B on RADV with pinned full subgroups. Both have switch-table rows and self-test gates. Their defaults are supported by the Deck dispatch measurements, but the staged-B default on other RADV hardware needs measurement. **Reviewed:** d9e32385973b against 7eb53d1a0ac0: Read AGENTS.md, CONTRIBUTING.md, the PR template and standards; docs/review-checklist.md and ../Tooling/AGENTS.md were absent. Read the main shader-generation and probe changes and relevant pinning, capability and cache code; skimmed the other changed files, tests, commits and recorded runs. The large diff and all changed code files were not read in full.; nothing run (a code review). **Checked and fine:** - The two new switches have rows in switches.def. - The changed commits record AI assistance. - The staged tile indices have a numeric mapping fixture, and the program stamp includes the staged-B limit. - The author reports a Windows cross-build and an in-game Steam Deck run. **Testing:** No code or tests were run, as requested. The author reports the Deck runs and cross-build; CI is still running. **Overlaps and merge order:** Not determined; the network was closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -564,0 +671,4 @@
"B through shuffles", r.differ, 2 * kSoftwareTestLanes);
return;
}
spirv::mma_software_staged_b = dev.props.limits.maxComputeSharedMemorySize;
Member

L2 (should fix): The staged-B default also applies to eligible RADV GPUs beyond the tested Deck.

When: An RX 6000 on RADV can pass the word comparison and use the tile path, but that comparison does not measure whether its stores, loads and barriers improve performance on that GPU.

Do: Run the requested RX 6000 base-versus-head game and dispatch-time comparison, including frame pacing and picture correctness.

**L2** (should fix): The staged-B default also applies to eligible RADV GPUs beyond the tested Deck. *When:* An RX 6000 on RADV can pass the word comparison and use the tile path, but that comparison does not measure whether its stores, loads and barriers improve performance on that GPU. **Do:** Run the requested RX 6000 base-versus-head game and dispatch-time comparison, including frame pacing and picture correctness.
Some checks reported errors
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Website build and checks (pull_request) Blocked by required conditions
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 20s
CI / longshot-builder end to end (synthetic game) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
beanstalk/linux+radv+gpu-rx-6* 0/1 pass, 0 running, 2 queued
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/linux+radv+gpu-rx-7*_rx-9* 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 0 running, 1 queued
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/radv-software-mma-dot2:dantopa-perf/radv-software-mma-dot2'
git switch 'dantopa-perf/radv-software-mma-dot2'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2439
No description provided.