perf(vk): speed up neural compute 22.0% (+1.3% Market 1536x864 FPS) on AMD RDNA 3/3.5/4 via WMMA16 zero-C, quad-A, and K-chain fusion #2329

Merged
HumanBean merged 1 commit from Jer9/Longshot:perf/vk-wmma16-zero-c-kchain-quad into main 2026-11-23 19:59:23 +00:00
Contributor

Summary

On AMD RDNA 3 / 3.5 / 4 GPUs, the Switch 2's AI upscaling neural network compute shader (prog 6676619641320ba7 at 67% render scale 1024x576, 9dc98871eb7fc101 at 100% render scale 1536x864 / 1382x864) runs game-wide across Hyrule Field, Market, Kokiri Forest, and dungeons, and is the single largest GPU pass in Market (1.518 ms at 67% render scale 1024x576). Even with the existing paired WMMA16 shader path, every matrix multiply still ran 4 subgroup barriers, wrote and read zero accumulators (C == 0, 74.2% of all ops) through shared memory (LDS), re-loaded identical A matrices across paired calls, and spilled every intermediate K-step accumulator through shared memory and registers instead of keeping it in cooperative-matrix registers.

This PR adds a block-local WMMA16 fusion planner and three bit-exact helper functions (pair_zero_c_fn, quad_zero_c_fn, pair_k2_zero_c_fn) that skip the zero-C LDS round-trips, reuse A across paired calls, and keep K-chain accumulators in registers game-wide — cutting subgroup barriers in 6676619641320ba7 by -56.4% (376 -> 164) and eliminating all 94 CoopLoad(C) and 376 C LDS stores with zero extra shared memory.

Where this helps vs. where it doesn't:

  • What a player notices: On its own, +0.6 FPS (-0.2 to -0.3 ms GPU time) is not noticeable without an FPS counter. This is an incremental GPU/power efficiency improvement for AMD RDNA 3 / 3.5 / 4 laptops, handhelds, and desktops (RX 7000/9000, 780M/860M/880M/890M) that cuts the neural upscaler shader by 22% and compounds with other GPU optimizations.
  • Helps: AMD RDNA 3 / 3.5 / 4 GPUs (VK_KHR_cooperative_matrix WMMA16 path; AMD RDNA 3.5 tested, RDNA 3 / 4 / Linux RADV pending) game-wide in GPU-bound scenes where the Switch 2 neural upscaler is a meaningful share of frame time. Cuts prog 6676619641320ba7 by -22.0% (1.518 -> 1.184 ms), cuts Market 100% render scale (1536x864) gpu_wait_ms -8.7% (2.08 -> 1.90 ms), cuts GPU frame time -1.2% (16.49 -> 16.29 ms), and lifts Market 100% render scale (1536x864) Median/Mean FPS +1.3% / +1.2% (all 3 rounds non-overlapping).
  • No measurable impact: Non-WMMA16 GPUs (NVIDIA, Intel, AMD RDNA 2 and older — emits identical SPIR-V to main), CPU-bound scenes (such as Market 67% render scale, 1024x576, on this 8-CU iGPU, where 12.3–13.4 ms GPU time sits inside an ~18.4 ms frame, so FPS/GPU-time deltas fall within run-to-run variance), and geometry/fragment-dominated GPU scenes (such as Hyrule Field 100% render scale, 1382x864 at 16:10, where ~19.9 ms GPU time is dominated by grass/terrain shading and the ~0.3 ms neural savings falls within ~1 ms run-to-run variance).

Technical details (100% bit-exact with exact K=8, zero extra LDS):

  • Extend DefineWmma16PairFunction (gpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp, spirv_emit_context.h) with a block-local planner (skips helper codegen when a shader has no pairable MMAs) and three DontInline helpers:
    • pair_zero_c_fn: uses OpCompositeConstruct(c_type, f16_zero) (compatible with Mesa RADV < 25.0.2 and spirv-val) instead of storing/loading C through LDS, cutting subgroup barriers from 4 to 2 per pair.
    • quad_zero_c_fn: fuses two zero-C pairs sharing canonical A, keeping A in a cooperative matrix register across both pairs (halving A LDS stores and OpCooperativeMatrixLoadKHR(A)) and reusing a single cached fs.quad_ret_type struct ID at every call site.
    • pair_k2_zero_c_fn: fuses a pure zero-C producer pair into its consuming accumulator pair, keeping the intermediate K-step accumulator in cooperative matrix registers (eliminating intermediate CoopStore, lane D loads, C LDS stores, and CoopLoad(C)).
  • Move the region_c protection barrier to entry of non-zero-C helpers (DefineWmma16MatrixFunction and pair_fn) so zero-C helpers need no trailing barrier while preserving full data-race safety across all call orderings.

Read first: DefineWmma16PairFunction() and EmitMatrixMulAddF16Fused() in gpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp.

Testing

How to test:

  1. Hardware requirement: Needs an AMD RDNA 3 / 3.5 / 4 GPU with VK_KHR_cooperative_matrix WMMA16 enabled (non-WMMA16 GPUs emit unchanged SPIR-V).
  2. Game-free tests: Run python -I -B tests/test_wmma16_zero_c_kchain.py --headers <SPIRV-Headers/include> (fails on main, passes here) and tests/test_wmma16.py. On Linux with spirv-val installed, also run tests/test_wmma16_spirv_val.py.
  3. Verify the shader speedup: Run main vs. this PR with RX_VK_PASS_TIMING=2 in Market (using two builds — note that RX_VK_MMA_WMMA16_FUSE=0 disables all WMMA16 pairing including main's existing pair helper, so it is a fallback kill switch rather than a main-vs-PR toggle). Check longshot_log.txt for dispatch prog 6676619641320ba7 (at 67% render scale, 1024x576) or 9dc98871eb7fc101 (at 100% render scale, 1536x864 / 1382x864) — it should drop by ~20–24%.
  4. Measure FPS / GPU time: Pre-warm shader and pipeline caches symmetrically on both builds (RX_VK_PRECOMPILE=1), then run >= 3 interleaved rounds in a GPU-bound scene (e.g., Market 100% render scale 1536x864 — CPU-bound 67% render scale 1024x576 hides the GPU win inside frame-time variance). Compare Median/Mean FPS, gpu_wait_ms, and vk: GPU time.
  5. Visual check: Inspect Switch 2 AI upscaling output in Market and across Market -> Hyrule Field -> Kokiri Forest for zero banding, ghosting, NaN/black pixels, or VK_ERROR_DEVICE_LOST.

Tested: Windows 11 (build 26200), AMD Ryzen AI 7 350 + AMD Radeon 860M (8 CUs, RDNA 3.5 iGPU, Adrenalin 26.10.1), 1600x1000, handheld_profile=1, sharpness=80, vsync=0, amd_anti-lag_2=1, RX_VK_PRECOMPILE=1, >= 12.5 s post-load settle, symmetric full-precompiled caches (~142 MB programs / ~830 MB pipelines on both main and this branch):

  • Market_Child fountain-first route (67% render scale 1024x576 3 interleaved rounds, 100% render scale 1536x864 3 interleaved rounds) + RX_VK_PASS_TIMING=2 (67% render scale, 1024x576): 6676619641320ba7 dropped 1.518 -> 1.184 ms (-22.0%), total m dispatch dropped 4.515 -> 4.355 ms.
  • HyruleField_Child in-bounds grassy-field orbit (castle-gate, 100% render scale, 1382x864 at 16:10, 3 interleaved rounds): 0 VK_ERROR_DEVICE_LOST, 0 exit/transition frames (min >= 16.60 ms), 0 shaders/pipelines compiled in Round 3, clean AI-upscaled grass/terrain visuals; frame metrics overlap main within run-to-run variance.
  • 3-zone tour (Market -> Hyrule Field -> Kokiri Forest, 67% render scale, 1024x576): 0 VK_ERROR_DEVICE_LOST across all three zones.
  • Stationary RX_VK_SHOT_FX=1 (sharpness=80) visual inspection: 3D scene and Switch 2 AI upscaling crisp and artifact-free (zero banding, zero ghosting, zero NaN/black pixels).
  • Game-free tests (on current main @ 0e32bc10 with dev.py env llvm-mingw + RX_CPM):
    • tests/test_wmma16_zero_c_kchain.py (new, including multi-block cross-block global_uses safety check, zero OpConstantNull SPIR-V binary assertion, and QuadZeroC fs.quad_ret_type return-type ID check): FAIL on main (753fb5af), PASS on this branch (88d69f50).
    • Targeted --strict suite (test_wmma16_zero_c_kchain, test_wmma16, test_switch_table, test_vk_braces, test_utf8_paths, test_doc_anchors): 6 passed, 0 failed (test_wmma16_spirv_val.py requires Linux spirv-val, validated on CI).
    • python -I -B tests/run_all.py --changed forge/main: 33 passed, 3 failed, 6 skipped — all 3 failures are pre-existing Windows-only main failures documented in #2304 (test_crash_dialog, test_dev_ab, test_input_movie).
    • tests/test_wmma16_spirv_val.py: fixture updated to emit PairZeroC, QuadZeroC, and PairK2ZeroC call sites into the spirv-val-checked module (spirv-val binary not on Windows PATH; validated on Linux CI).

Still to test:

  • Linux RDNA 3/3.5/4 (spirv-val via tests/test_wmma16_spirv_val.py + live game run): verify all SPIR-V modules pass spirv-val --target-env vulkan1.3 and match visual output (@Beanstalk Linux RADV, CI).
  • AMD RDNA 3 / RDNA 4 dGPU (Windows/Linux): verify 6676619641320ba7 / 9dc98871eb7fc101 speedup and visual parity (@Beanstalk AMD).
  • NVIDIA / Intel / RDNA 2 GPUs: verify mma_wmma16 == false emits identical SPIR-V to main and has no regression after the normal one-time LONGSHOT_SHADER_STAMP cache refresh (@Beanstalk Windows NVIDIA).

Measurements

Verdict: Clear, repeatable win on AMD RDNA 3.5 neural compute and GPU-bound Market: cuts prog 6676619641320ba7 by -22.0% (1.518 -> 1.184 ms), and at GPU-bound Market 100% render scale (1536x864) lifts Median FPS +1.3%, Mean FPS +1.2%, and cuts gpu_wait_ms -8.7% and GPU time -1.2% with non-overlapping 3-round ranges. Near-CPU-bound Market 67% render scale (1024x576), Market 100% render scale 1% low / >= 33.3 ms counts, and geometry/fragment-dominated Hyrule Field 100% render scale (1382x864 at 16:10) show no measurable difference (within run-to-run variance).

Setup: Windows 11, AMD Ryzen AI 7 350 + Radeon 860M (Adrenalin 26.10.1), 1600x1000, handheld_profile=1, sharpness=80, vsync=0, amd_anti-lag_2=1, RX_VK_PRECOMPILE=1, symmetric full-precompiled caches (142.1 MB programs / 829.6 MB vs 836.6 MB pipelines, untimed warm-up runs on both main and this branch, >= 12.5 s settle): fountain-first Market_Child route (1536x864 at 100% render scale, 1024x576 at 67% render scale) and in-bounds HyruleField_Child grassy-field orbit (1382x864 at 100% render scale 16:10). Measured standalone directly against main @ 753fb5af; rebased cleanly onto main @ 0e32bc10 (88d69f50 — none of the 8 intervening commits touch emit_spirv_warp.cpp or WMMA16 cooperative-matrix emission, and #2232's 4-core Auto threshold does not change behavior on this 8-core CPU, so the numbers hold unchanged). Multi-round values are median [min, max] across 3 interleaved rounds.

Where it makes a difference (AMD RDNA 3.5 neural compute & GPU-bound Market 100% render scale):

Metric Before: main @ 753fb5af After: this PR @ 88d69f50 Change
6676619641320ba7 span (Market 67% render scale, 1024x576, PASS_TIMING=2) 1.518 ms (prior 600-present window: 1.398 ms) 1.184 ms (prior window: 1.057 ms) -0.334 ms (-22.0%; prior window -24.4%)
Total m dispatch (Market 67% render scale, 1024x576, PASS_TIMING=2) 4.515 ms 4.355 ms -0.160 ms (-3.5%)
Market 100% render scale (1536x864) Median FPS (3 rounds) 45.11 [44.92, 45.29] 45.71 [45.63, 45.84] +0.60 FPS (+1.3%) — all 3 rounds faster
Market 100% render scale (1536x864) Mean FPS (3 rounds) 44.79 [44.25, 44.98] 45.34 [45.18, 45.47] +0.55 FPS (+1.2%) — all 3 rounds faster
Market 100% render scale (1536x864) gpu_wait_ms (3 rounds) 2.08 [2.03, 2.16] ms 1.90 [1.89, 1.93] ms -0.18 ms (-8.7%) — all 3 rounds lower
Market 100% render scale (1536x864) GPU time (3 rounds) 16.49 [16.48, 16.67] ms 16.29 [16.14, 16.44] ms -0.20 ms (-1.2%) — all 3 rounds faster

Where it does NOT make a difference (within run-to-run variance):

Metric Before: main @ 753fb5af After: this PR @ 88d69f50 Change
Market 100% render scale (1536x864) 1% Low FPS (3 rounds) 32.89 [31.36, 33.52] 32.95 [32.93, 33.53] No measurable difference (within run-to-run variance)
Market 100% render scale (1536x864) >= 33.3 ms frames (3 rounds) 7 [3, 10] 4 [2, 7] No measurable difference (within run-to-run variance)
Market 67% render scale (1024x576) Median FPS (3 rounds, CPU-bound)* 54.38 [53.59, 54.50] 53.62 [52.34, 55.46] No measurable difference (within run-to-run variance)
Market 67% render scale (1024x576) Mean FPS (3 rounds, CPU-bound)* 53.68 [52.66, 54.00] 53.13 [51.25, 54.90] No measurable difference (within run-to-run variance)
Market 67% render scale (1024x576) 1% Low FPS (3 rounds, CPU-bound)* 38.95 [36.86, 39.10] 38.43 [35.29, 39.16] No measurable difference (within run-to-run variance)
Market 67% render scale (1024x576) GPU time (3 rounds, CPU-bound)* 12.82 [12.73, 12.99] ms 13.03 [12.31, 13.42] ms No measurable difference (within run-to-run variance)
Hyrule Field 100% render scale (1382x864) Median FPS (3 rounds)** 38.70 [37.59, 38.70] 39.29 [38.68, 40.20] No measurable difference (within run-to-run variance)
Hyrule Field 100% render scale (1382x864) Mean FPS (3 rounds)** 38.56 [37.02, 38.66] 38.73 [38.08, 39.70] No measurable difference (within run-to-run variance)
Hyrule Field 100% render scale (1382x864) 1% Low FPS (3 rounds)** 29.03 [23.29, 29.37] 27.12 [25.59, 29.67] No measurable difference (within run-to-run variance)
Hyrule Field 100% render scale (1382x864) >= 33.3 ms frames (3 rounds)** 16 [16, 45] 28 [14, 42] No measurable difference (within run-to-run variance)
Hyrule Field 100% render scale (1382x864) gpu_wait_ms (3 rounds)** 4.04 [3.66, 5.71] ms 4.24 [3.32, 4.42] ms No measurable difference (within run-to-run variance)
Hyrule Field 100% render scale (1382x864) GPU time (3 rounds)** 19.88 [19.59, 21.24] ms 19.94 [19.32, 20.12] ms No measurable difference (within run-to-run variance)
Hyrule Field 100% render scale (1382x864) steady VRAM (3 rounds)** 2858 [2858, 2986] MB 2858 [2858, 2922] MB No measurable difference (within run-to-run variance)

*At 67% render scale (1024x576) on this 8-CU iGPU, Market is near CPU-bound (12.3–13.4 ms GPU time vs 18.4 ms frame time), so single-round thermal/OS variance spans 52.34–55.46 FPS (Round 1 reached 55.46 FPS / 39.16 FPS 1% low / 12.31 ms GPU time). At GPU-bound Market 100% render scale (1536x864), every round of 88d69f50 (45.63–45.84 FPS) cleanly beats main's best round (44.92–45.29 FPS).
**In Hyrule Field 100% render scale (1382x864 at 16:10), grass and terrain shading push GPU frame time to ~19.9 ms (~1,900–2,050 draws/frame), so the ~0.3 ms neural compute reduction is smaller than ~1 ms run-to-run GPU variance (19.32–20.12 ms vs 19.59–21.24 ms).

# RX_VK_PASS_TIMING=2 (Market 67% render scale, 1024x576, final 600-present window):
# Before:
[hos Presentation Thread] vk:   m   1.518 ms     1.0 x   1518.4 us       1.0 items    0.00 MB  dispatch  prog 6676619641320ba7
# After:
[hos Presentation Thread] vk:   m   1.184 ms     1.0 x   1184.0 us       1.0 items    0.00 MB  dispatch  prog 6676619641320ba7

# Before (Market 100% render scale, 1536x864, round 2):
[hos Presentation Thread] vk: GPU time 16.5 ms a frame (the longest submission 6.3 ms); 3.6 textures made a frame: colour targets 1.9 (4.3 MB), depth 1.6 (3.5 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB)
[hos Presentation Thread] vi: present intervals: <15.5 ms 0, 15.5-17.8 13, 17.8-22 137, 22-30 84, 30-40 1, over 40 0

# After (Market 100% render scale, 1536x864, round 2):
[hos Presentation Thread] vk: GPU time 16.4 ms a frame (the longest submission 7.2 ms); 1.3 textures made a frame: colour targets 0.9 (2.0 MB), depth 0.4 (1.1 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB)
[hos Presentation Thread] vi: present intervals: <15.5 ms 0, 15.5-17.8 22, 17.8-22 176, 22-30 47, 30-40 0, over 40 0

# Before (Hyrule Field 100% render scale, 1382x864, round 3):
[hos Presentation Thread] vk: GPU time 20.2 ms a frame (the longest submission 9.5 ms); 0.7 textures made a frame: colour targets 0.5 (0.6 MB), depth 0.2 (0.4 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB)
[hos Presentation Thread] vk: GPU time 18.8 ms a frame (the longest submission 9.0 ms); 0.7 textures made a frame: colour targets 0.5 (0.6 MB), depth 0.2 (0.4 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB)

# After (Hyrule Field 100% render scale, 1382x864, round 3):
[hos Presentation Thread] vk: GPU time 19.7 ms a frame (the longest submission 9.5 ms); 1.5 textures made a frame: colour targets 1.0 (1.5 MB), depth 0.5 (1.0 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB)
[hos host] vk: program census (close): created 0 (0 with stages; 0 with no present for 100 ms before, 0 in a frame of 100 ms or more; 0.0 ms of the game's threads), freed 0 (0 never used); first uses 0: program ready 0, loaded 0, translated 0, failed 0; pipeline ready 0, from a cache 0, compiled 0, made 0, left out 0, none 0; 0 with no create call seen, 0 whose stages are not the create call's; after the create call: under 16.7 ms 0, under 100 ms 0, under 1 s 0, longer 0; needing work 0 (0 of them 100 ms or more after the create call, 0 created in a load or a long frame); in play: 99 program records loaded (18.3 ms), 0 new graphics pipelines, pipelines from the driver's cache 4, from the start's cache 0, compiled 0; 0 draws and dispatches left out, 0 waits (0.0 ms)

Risks

  • Shader cache refresh: Because LONGSHOT_SHADER_STAMP hashes all files under gpu/vk/eden/, updating emit_spirv_warp.cpp and spirv_emit_context.h refreshes longshot_programs.bin once across GPUs as normal for gpu/vk/eden/ edits; non-WMMA16 GPUs emit identical SPIR-V to main.
  • Bit-exactness & barrier safety: All three helpers preserve the exact K=8 FP16 rounding sequence (OpCooperativeMatrixMulAddKHR on B_lo then B_hi), use 0 extra shared memory, use OpCompositeConstruct(c_type, f16_zero) (avoiding OpConstantNull on TypeCooperativeMatrixKHR for Mesa RADV < 25.0.2), enforce entry-barrier protection on region_c for non-zero-C helpers, and verify global_uses across all blocks before skipping any K-chain producer or extract.
  • Turn off / rollback: RX_VK_MMA_WMMA16_FUSE=0 disables all fused WMMA16 helpers immediately; a revert is also clean. No save or longshot_options.ini changes.

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 (tests/run_all.py --changed forge/main on Windows: 33 passed, 3 pre-existing Windows-only main failures named in #2304: test_crash_dialog, test_dev_ab, test_input_movie; targeted --strict suite 6/6 passed; test_wmma16_spirv_val.py C++ Sirit fixture compiled and passed 11/11 cases locally, spirv-val on Linux CI).
  • 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

  • A check under tests/ that reads changed source is updated, not weakened (tests/test_wmma16_spirv_val.py updated to cover PairZeroC/QuadZeroC/PairK2ZeroC; tests/test_wmma16.py passes unchanged).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • 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.
## Summary On AMD RDNA 3 / 3.5 / 4 GPUs, the Switch 2's AI upscaling neural network compute shader (`prog 6676619641320ba7` at `67% render scale` `1024x576`, `9dc98871eb7fc101` at `100% render scale` `1536x864` / `1382x864`) runs **game-wide** across Hyrule Field, Market, Kokiri Forest, and dungeons, and is the single largest GPU pass in Market (`1.518 ms` at `67% render scale` `1024x576`). Even with the existing paired WMMA16 shader path, every matrix multiply still ran 4 subgroup barriers, wrote and read zero accumulators (`C == 0`, `74.2%` of all ops) through shared memory (LDS), re-loaded identical `A` matrices across paired calls, and spilled every intermediate K-step accumulator through shared memory and registers instead of keeping it in cooperative-matrix registers. This PR adds a block-local WMMA16 fusion planner and three bit-exact helper functions (`pair_zero_c_fn`, `quad_zero_c_fn`, `pair_k2_zero_c_fn`) that skip the zero-`C` LDS round-trips, reuse `A` across paired calls, and keep K-chain accumulators in registers **game-wide** — cutting subgroup barriers in `6676619641320ba7` by **`-56.4%`** (`376 -> 164`) and eliminating all `94` `CoopLoad(C)` and `376` `C` LDS stores with zero extra shared memory. **Where this helps vs. where it doesn't:** - **What a player notices:** On its own, `+0.6 FPS` (`-0.2 to -0.3 ms` GPU time) is not noticeable without an FPS counter. This is an incremental GPU/power efficiency improvement for **AMD RDNA 3 / 3.5 / 4** laptops, handhelds, and desktops (RX 7000/9000, 780M/860M/880M/890M) that cuts the neural upscaler shader by `22%` and compounds with other GPU optimizations. - **Helps:** **AMD RDNA 3 / 3.5 / 4 GPUs** (`VK_KHR_cooperative_matrix` WMMA16 path; AMD RDNA 3.5 tested, RDNA 3 / 4 / Linux RADV pending) **game-wide** in **GPU-bound scenes** where the Switch 2 neural upscaler is a meaningful share of frame time. Cuts `prog 6676619641320ba7` by **`-22.0%`** (`1.518 -> 1.184 ms`), cuts Market `100% render scale` (`1536x864`) `gpu_wait_ms` **`-8.7%`** (`2.08 -> 1.90 ms`), cuts GPU frame time **`-1.2%`** (`16.49 -> 16.29 ms`), and lifts Market `100% render scale` (`1536x864`) Median/Mean FPS **`+1.3%` / `+1.2%`** (all 3 rounds non-overlapping). - **No measurable impact:** **Non-WMMA16 GPUs** (NVIDIA, Intel, AMD RDNA 2 and older — emits identical SPIR-V to `main`), **CPU-bound scenes** (such as Market `67% render scale`, `1024x576`, on this 8-CU iGPU, where `12.3–13.4 ms` GPU time sits inside an `~18.4 ms` frame, so FPS/GPU-time deltas fall within run-to-run variance), and **geometry/fragment-dominated GPU scenes** (such as Hyrule Field `100% render scale`, `1382x864` at `16:10`, where `~19.9 ms` GPU time is dominated by grass/terrain shading and the `~0.3 ms` neural savings falls within `~1 ms` run-to-run variance). **Technical details (100% bit-exact with `exact K=8`, zero extra LDS):** - Extend `DefineWmma16PairFunction` (`gpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp`, `spirv_emit_context.h`) with a block-local planner (skips helper codegen when a shader has no pairable MMAs) and three `DontInline` helpers: - `pair_zero_c_fn`: uses `OpCompositeConstruct(c_type, f16_zero)` (compatible with Mesa RADV `< 25.0.2` and `spirv-val`) instead of storing/loading `C` through LDS, cutting subgroup barriers from **4 to 2** per pair. - `quad_zero_c_fn`: fuses two zero-C pairs sharing canonical `A`, keeping `A` in a cooperative matrix register across both pairs (halving `A` LDS stores and `OpCooperativeMatrixLoadKHR(A)`) and reusing a single cached `fs.quad_ret_type` struct ID at every call site. - `pair_k2_zero_c_fn`: fuses a pure zero-C producer pair into its consuming accumulator pair, keeping the intermediate K-step accumulator in cooperative matrix registers (eliminating intermediate `CoopStore`, lane `D` loads, `C` LDS stores, and `CoopLoad(C)`). - Move the `region_c` protection barrier to entry of non-zero-C helpers (`DefineWmma16MatrixFunction` and `pair_fn`) so zero-C helpers need no trailing barrier while preserving full data-race safety across all call orderings. Read first: `DefineWmma16PairFunction()` and `EmitMatrixMulAddF16Fused()` in `gpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp`. ## Testing **How to test:** 1. **Hardware requirement:** Needs an **AMD RDNA 3 / 3.5 / 4 GPU** with `VK_KHR_cooperative_matrix` WMMA16 enabled (non-WMMA16 GPUs emit unchanged SPIR-V). 2. **Game-free tests:** Run `python -I -B tests/test_wmma16_zero_c_kchain.py --headers <SPIRV-Headers/include>` (fails on `main`, passes here) and `tests/test_wmma16.py`. On Linux with `spirv-val` installed, also run `tests/test_wmma16_spirv_val.py`. 3. **Verify the shader speedup:** Run `main` vs. this PR with `RX_VK_PASS_TIMING=2` in Market (using two builds — note that `RX_VK_MMA_WMMA16_FUSE=0` disables *all* WMMA16 pairing including `main`'s existing pair helper, so it is a fallback kill switch rather than a `main`-vs-PR toggle). Check `longshot_log.txt` for `dispatch prog 6676619641320ba7` (at `67% render scale`, `1024x576`) or `9dc98871eb7fc101` (at `100% render scale`, `1536x864` / `1382x864`) — it should drop by `~20–24%`. 4. **Measure FPS / GPU time:** Pre-warm shader and pipeline caches symmetrically on both builds (`RX_VK_PRECOMPILE=1`), then run `>= 3` interleaved rounds in a **GPU-bound** scene (e.g., Market `100% render scale` `1536x864` — CPU-bound `67% render scale` `1024x576` hides the GPU win inside frame-time variance). Compare Median/Mean FPS, `gpu_wait_ms`, and `vk: GPU time`. 5. **Visual check:** Inspect Switch 2 AI upscaling output in Market and across `Market -> Hyrule Field -> Kokiri Forest` for zero banding, ghosting, NaN/black pixels, or `VK_ERROR_DEVICE_LOST`. **Tested:** Windows 11 (build 26200), AMD Ryzen AI 7 350 + AMD Radeon 860M (8 CUs, RDNA 3.5 iGPU, Adrenalin 26.10.1), `1600x1000`, `handheld_profile=1`, `sharpness=80`, `vsync=0`, `amd_anti-lag_2=1`, `RX_VK_PRECOMPILE=1`, `>= 12.5 s` post-load settle, symmetric full-precompiled caches (`~142 MB` programs / `~830 MB` pipelines on both `main` and this branch): - `Market_Child` fountain-first route (`67% render scale` `1024x576` 3 interleaved rounds, `100% render scale` `1536x864` 3 interleaved rounds) + `RX_VK_PASS_TIMING=2` (`67% render scale`, `1024x576`): `6676619641320ba7` dropped `1.518 -> 1.184 ms` (`-22.0%`), total `m dispatch` dropped `4.515 -> 4.355 ms`. - `HyruleField_Child` in-bounds grassy-field orbit (`castle-gate`, `100% render scale`, `1382x864` at `16:10`, 3 interleaved rounds): `0` `VK_ERROR_DEVICE_LOST`, `0` exit/transition frames (`min >= 16.60 ms`), `0` shaders/pipelines compiled in Round 3, clean AI-upscaled grass/terrain visuals; frame metrics overlap `main` within run-to-run variance. - 3-zone tour (`Market -> Hyrule Field -> Kokiri Forest`, `67% render scale`, `1024x576`): `0` `VK_ERROR_DEVICE_LOST` across all three zones. - Stationary `RX_VK_SHOT_FX=1` (`sharpness=80`) visual inspection: 3D scene and Switch 2 AI upscaling crisp and artifact-free (zero banding, zero ghosting, zero NaN/black pixels). - Game-free tests (on current `main @ 0e32bc10` with `dev.py env` `llvm-mingw` + `RX_CPM`): - `tests/test_wmma16_zero_c_kchain.py` (new, including multi-block cross-block `global_uses` safety check, zero `OpConstantNull` SPIR-V binary assertion, and `QuadZeroC` `fs.quad_ret_type` return-type ID check): **FAIL** on `main` (`753fb5af`), **PASS** on this branch (`88d69f50`). - Targeted `--strict` suite (`test_wmma16_zero_c_kchain`, `test_wmma16`, `test_switch_table`, `test_vk_braces`, `test_utf8_paths`, `test_doc_anchors`): **6 passed, 0 failed** (`test_wmma16_spirv_val.py` requires Linux `spirv-val`, validated on CI). - `python -I -B tests/run_all.py --changed forge/main`: **33 passed, 3 failed, 6 skipped** — all 3 failures are pre-existing Windows-only `main` failures documented in `#2304` (`test_crash_dialog`, `test_dev_ab`, `test_input_movie`). - `tests/test_wmma16_spirv_val.py`: fixture updated to emit `PairZeroC`, `QuadZeroC`, and `PairK2ZeroC` call sites into the `spirv-val`-checked module (`spirv-val` binary not on Windows PATH; validated on Linux CI). **Still to test:** - Linux RDNA 3/3.5/4 (`spirv-val` via `tests/test_wmma16_spirv_val.py` + live game run): verify all SPIR-V modules pass `spirv-val --target-env vulkan1.3` and match visual output (@Beanstalk Linux RADV, CI). - AMD RDNA 3 / RDNA 4 dGPU (Windows/Linux): verify `6676619641320ba7` / `9dc98871eb7fc101` speedup and visual parity (@Beanstalk AMD). - NVIDIA / Intel / RDNA 2 GPUs: verify `mma_wmma16 == false` emits identical SPIR-V to `main` and has no regression after the normal one-time `LONGSHOT_SHADER_STAMP` cache refresh (@Beanstalk Windows NVIDIA). ## Measurements **Verdict:** Clear, repeatable win on AMD RDNA 3.5 neural compute and GPU-bound Market: cuts `prog 6676619641320ba7` by **`-22.0%`** (`1.518 -> 1.184 ms`), and at GPU-bound Market `100% render scale` (`1536x864`) lifts Median FPS **`+1.3%`**, Mean FPS **`+1.2%`**, and cuts `gpu_wait_ms` **`-8.7%`** and GPU time **`-1.2%`** with non-overlapping 3-round ranges. Near-CPU-bound Market `67% render scale` (`1024x576`), Market `100% render scale` 1% low / `>= 33.3 ms` counts, and geometry/fragment-dominated Hyrule Field `100% render scale` (`1382x864` at `16:10`) show **no measurable difference (within run-to-run variance)**. Setup: Windows 11, AMD Ryzen AI 7 350 + Radeon 860M (Adrenalin 26.10.1), `1600x1000`, `handheld_profile=1`, `sharpness=80`, `vsync=0`, `amd_anti-lag_2=1`, `RX_VK_PRECOMPILE=1`, symmetric full-precompiled caches (`142.1 MB` programs / `829.6 MB` vs `836.6 MB` pipelines, untimed warm-up runs on both `main` and this branch, `>= 12.5 s` settle): fountain-first `Market_Child` route (`1536x864` at `100% render scale`, `1024x576` at `67% render scale`) and in-bounds `HyruleField_Child` grassy-field orbit (`1382x864` at `100% render scale` `16:10`). Measured standalone directly against `main @ 753fb5af`; rebased cleanly onto `main @ 0e32bc10` (`88d69f50` — none of the 8 intervening commits touch `emit_spirv_warp.cpp` or WMMA16 cooperative-matrix emission, and `#2232`'s 4-core Auto threshold does not change behavior on this 8-core CPU, so the numbers hold unchanged). Multi-round values are `median [min, max]` across 3 interleaved rounds. **Where it makes a difference (AMD RDNA 3.5 neural compute & GPU-bound Market `100% render scale`):** | Metric | Before: `main @ 753fb5af` | After: this PR @ `88d69f50` | Change | |---|---|---|---| | **`6676619641320ba7` span (Market `67% render scale`, `1024x576`, `PASS_TIMING=2`)** | `1.518 ms` (prior 600-present window: `1.398 ms`) | **`1.184 ms`** (prior window: **`1.057 ms`**) | **`-0.334 ms` (`-22.0%`; prior window `-24.4%`)** | | **Total `m dispatch` (Market `67% render scale`, `1024x576`, `PASS_TIMING=2`)** | `4.515 ms` | **`4.355 ms`** | **`-0.160 ms` (`-3.5%`)** | | **Market `100% render scale` (`1536x864`) Median FPS (3 rounds)** | `45.11 [44.92, 45.29]` | **`45.71 [45.63, 45.84]`** | **`+0.60 FPS` (`+1.3%`) — all 3 rounds faster** | | **Market `100% render scale` (`1536x864`) Mean FPS (3 rounds)** | `44.79 [44.25, 44.98]` | **`45.34 [45.18, 45.47]`** | **`+0.55 FPS` (`+1.2%`) — all 3 rounds faster** | | **Market `100% render scale` (`1536x864`) `gpu_wait_ms` (3 rounds)** | `2.08 [2.03, 2.16] ms` | **`1.90 [1.89, 1.93] ms`** | **`-0.18 ms` (`-8.7%`) — all 3 rounds lower** | | **Market `100% render scale` (`1536x864`) GPU time (3 rounds)** | `16.49 [16.48, 16.67] ms` | **`16.29 [16.14, 16.44] ms`** | **`-0.20 ms` (`-1.2%`) — all 3 rounds faster** | **Where it does NOT make a difference (within run-to-run variance):** | Metric | Before: `main @ 753fb5af` | After: this PR @ `88d69f50` | Change | |---|---|---|---| | Market `100% render scale` (`1536x864`) 1% Low FPS (3 rounds) | `32.89 [31.36, 33.52]` | `32.95 [32.93, 33.53]` | No measurable difference (within run-to-run variance) | | Market `100% render scale` (`1536x864`) `>= 33.3 ms` frames (3 rounds) | `7 [3, 10]` | `4 [2, 7]` | No measurable difference (within run-to-run variance) | | Market `67% render scale` (`1024x576`) Median FPS (3 rounds, CPU-bound)* | `54.38 [53.59, 54.50]` | `53.62 [52.34, 55.46]` | No measurable difference (within run-to-run variance) | | Market `67% render scale` (`1024x576`) Mean FPS (3 rounds, CPU-bound)* | `53.68 [52.66, 54.00]` | `53.13 [51.25, 54.90]` | No measurable difference (within run-to-run variance) | | Market `67% render scale` (`1024x576`) 1% Low FPS (3 rounds, CPU-bound)* | `38.95 [36.86, 39.10]` | `38.43 [35.29, 39.16]` | No measurable difference (within run-to-run variance) | | Market `67% render scale` (`1024x576`) GPU time (3 rounds, CPU-bound)* | `12.82 [12.73, 12.99] ms` | `13.03 [12.31, 13.42] ms` | No measurable difference (within run-to-run variance) | | Hyrule Field `100% render scale` (`1382x864`) Median FPS (3 rounds)** | `38.70 [37.59, 38.70]` | `39.29 [38.68, 40.20]` | No measurable difference (within run-to-run variance) | | Hyrule Field `100% render scale` (`1382x864`) Mean FPS (3 rounds)** | `38.56 [37.02, 38.66]` | `38.73 [38.08, 39.70]` | No measurable difference (within run-to-run variance) | | Hyrule Field `100% render scale` (`1382x864`) 1% Low FPS (3 rounds)** | `29.03 [23.29, 29.37]` | `27.12 [25.59, 29.67]` | No measurable difference (within run-to-run variance) | | Hyrule Field `100% render scale` (`1382x864`) `>= 33.3 ms` frames (3 rounds)** | `16 [16, 45]` | `28 [14, 42]` | No measurable difference (within run-to-run variance) | | Hyrule Field `100% render scale` (`1382x864`) `gpu_wait_ms` (3 rounds)** | `4.04 [3.66, 5.71] ms` | `4.24 [3.32, 4.42] ms` | No measurable difference (within run-to-run variance) | | Hyrule Field `100% render scale` (`1382x864`) GPU time (3 rounds)** | `19.88 [19.59, 21.24] ms` | `19.94 [19.32, 20.12] ms` | No measurable difference (within run-to-run variance) | | Hyrule Field `100% render scale` (`1382x864`) steady VRAM (3 rounds)** | `2858 [2858, 2986] MB` | `2858 [2858, 2922] MB` | No measurable difference (within run-to-run variance) | *At `67% render scale` (`1024x576`) on this 8-CU iGPU, Market is near CPU-bound (`12.3–13.4 ms` GPU time vs `18.4 ms` frame time), so single-round thermal/OS variance spans `52.34–55.46 FPS` (Round 1 reached `55.46 FPS` / `39.16 FPS` 1% low / `12.31 ms` GPU time). At GPU-bound Market `100% render scale` (`1536x864`), every round of `88d69f50` (`45.63–45.84 FPS`) cleanly beats `main`'s best round (`44.92–45.29 FPS`). **In Hyrule Field `100% render scale` (`1382x864` at `16:10`), grass and terrain shading push GPU frame time to `~19.9 ms` (`~1,900–2,050` draws/frame), so the `~0.3 ms` neural compute reduction is smaller than `~1 ms` run-to-run GPU variance (`19.32–20.12 ms` vs `19.59–21.24 ms`). ```text # RX_VK_PASS_TIMING=2 (Market 67% render scale, 1024x576, final 600-present window): # Before: [hos Presentation Thread] vk: m 1.518 ms 1.0 x 1518.4 us 1.0 items 0.00 MB dispatch prog 6676619641320ba7 # After: [hos Presentation Thread] vk: m 1.184 ms 1.0 x 1184.0 us 1.0 items 0.00 MB dispatch prog 6676619641320ba7 # Before (Market 100% render scale, 1536x864, round 2): [hos Presentation Thread] vk: GPU time 16.5 ms a frame (the longest submission 6.3 ms); 3.6 textures made a frame: colour targets 1.9 (4.3 MB), depth 1.6 (3.5 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB) [hos Presentation Thread] vi: present intervals: <15.5 ms 0, 15.5-17.8 13, 17.8-22 137, 22-30 84, 30-40 1, over 40 0 # After (Market 100% render scale, 1536x864, round 2): [hos Presentation Thread] vk: GPU time 16.4 ms a frame (the longest submission 7.2 ms); 1.3 textures made a frame: colour targets 0.9 (2.0 MB), depth 0.4 (1.1 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB) [hos Presentation Thread] vi: present intervals: <15.5 ms 0, 15.5-17.8 22, 17.8-22 176, 22-30 47, 30-40 0, over 40 0 # Before (Hyrule Field 100% render scale, 1382x864, round 3): [hos Presentation Thread] vk: GPU time 20.2 ms a frame (the longest submission 9.5 ms); 0.7 textures made a frame: colour targets 0.5 (0.6 MB), depth 0.2 (0.4 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB) [hos Presentation Thread] vk: GPU time 18.8 ms a frame (the longest submission 9.0 ms); 0.7 textures made a frame: colour targets 0.5 (0.6 MB), depth 0.2 (0.4 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB) # After (Hyrule Field 100% render scale, 1382x864, round 3): [hos Presentation Thread] vk: GPU time 19.7 ms a frame (the longest submission 9.5 ms); 1.5 textures made a frame: colour targets 1.0 (1.5 MB), depth 0.5 (1.0 MB), ASTC or BC 0.0 (0.0 MB), other 0.0 (0.0 MB) [hos host] vk: program census (close): created 0 (0 with stages; 0 with no present for 100 ms before, 0 in a frame of 100 ms or more; 0.0 ms of the game's threads), freed 0 (0 never used); first uses 0: program ready 0, loaded 0, translated 0, failed 0; pipeline ready 0, from a cache 0, compiled 0, made 0, left out 0, none 0; 0 with no create call seen, 0 whose stages are not the create call's; after the create call: under 16.7 ms 0, under 100 ms 0, under 1 s 0, longer 0; needing work 0 (0 of them 100 ms or more after the create call, 0 created in a load or a long frame); in play: 99 program records loaded (18.3 ms), 0 new graphics pipelines, pipelines from the driver's cache 4, from the start's cache 0, compiled 0; 0 draws and dispatches left out, 0 waits (0.0 ms) ``` ## Risks - **Shader cache refresh:** Because `LONGSHOT_SHADER_STAMP` hashes all files under `gpu/vk/eden/`, updating `emit_spirv_warp.cpp` and `spirv_emit_context.h` refreshes `longshot_programs.bin` once across GPUs as normal for `gpu/vk/eden/` edits; non-WMMA16 GPUs emit identical SPIR-V to `main`. - **Bit-exactness & barrier safety:** All three helpers preserve the exact `K=8` FP16 rounding sequence (`OpCooperativeMatrixMulAddKHR` on `B_lo` then `B_hi`), use `0` extra shared memory, use `OpCompositeConstruct(c_type, f16_zero)` (avoiding `OpConstantNull` on `TypeCooperativeMatrixKHR` for Mesa RADV `< 25.0.2`), enforce entry-barrier protection on `region_c` for non-zero-C helpers, and verify `global_uses` across all blocks before skipping any K-chain producer or extract. - **Turn off / rollback:** `RX_VK_MMA_WMMA16_FUSE=0` disables all fused WMMA16 helpers immediately; a revert is also clean. No save or `longshot_options.ini` changes. ## 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 (`tests/run_all.py --changed forge/main` on Windows: 33 passed, 3 pre-existing Windows-only `main` failures named in `#2304`: `test_crash_dialog`, `test_dev_ab`, `test_input_movie`; targeted `--strict` suite 6/6 passed; `test_wmma16_spirv_val.py` C++ Sirit fixture compiled and passed 11/11 cases locally, `spirv-val` on Linux CI). - [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] A check under `tests/` that reads changed source is updated, not weakened (`tests/test_wmma16_spirv_val.py` updated to cover `PairZeroC`/`QuadZeroC`/`PairK2ZeroC`; `tests/test_wmma16.py` passes unchanged). - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [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.
perf(vk): speed up neural compute 22.0% (+1.3% Market 1536x864 FPS) on AMD RDNA 3/3.5/4 via WMMA16 zero-C, quad-A, and K-chain fusion
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 3s
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
7816c6ebc6
Extend DefineWmma16PairFunction on AMD RDNA 3/3.5/4 cooperative-matrix compute networks with three bit-exact DontInline helpers and a block-local planner (skipping helper codegen when a shader has no pairable MMAs): - pair_zero_c_fn: skips C LDS stores and OpCooperativeMatrixLoadKHR(C) via OpCompositeConstruct(c_type, f16_zero) (Mesa RADV < 25.0.2 compatible), cutting subgroup barriers from 4 to 2 per pair. - quad_zero_c_fn: fuses two zero-C pairs sharing canonical A, keeping A in a cooperative matrix register across both pairs (halving A LDS stores and loads) and reusing a single cached fs.quad_ret_type struct ID at every call site. - pair_k2_zero_c_fn: fuses a pure zero-C producer pair into its consuming accumulator pair, keeping the K-step accumulator in cooperative matrix registers (eliminating intermediate CoopStore, lane D loads, C stores, and CoopLoad(C)).  Move the region_c protection barrier to entry of non-zero-C helpers (single and pair_fn) so zero-C helpers require no trailing barrier while preserving full data-race safety across all call orderings and zero extra shared memory.  Assisted-by: Antigravity
Author
Contributor

Tested in game: Windows 11, AMD Radeon 860M (Adrenalin 26.10.1): Market (1536x864 and 1024x576), Hyrule Field (1382x864), and 3-zone tour (Market -> Hyrule Field -> Kokiri Forest). Confirmed 6676619641320ba7 dropped 1.518 -> 1.184 ms (-22.0%), Market 1536x864 +1.3% Median FPS and -8.7% gpu_wait_ms, 0 device_lost, crisp Switch 2 AI upscaling parity with zero banding or NaN.

Tested in game: Windows 11, AMD Radeon 860M (Adrenalin 26.10.1): Market (1536x864 and 1024x576), Hyrule Field (1382x864), and 3-zone tour (Market -> Hyrule Field -> Kokiri Forest). Confirmed 6676619641320ba7 dropped 1.518 -> 1.184 ms (-22.0%), Market 1536x864 +1.3% Median FPS and -8.7% gpu_wait_ms, 0 device_lost, crisp Switch 2 AI upscaling parity with zero banding or NaN.
Jer9 changed title from WIP: perf(vk): speed up neural compute 22.0% (+1.3% Market 1536x864 FPS) on AMD RDNA 3/3.5/4 via WMMA16 zero-C, quad-A, and K-chain fusion to perf(vk): speed up neural compute 22.0% (+1.3% Market 1536x864 FPS) on AMD RDNA 3/3.5/4 via WMMA16 zero-C, quad-A, and K-chain fusion 2026-11-23 04:23:54 +00:00
Member

@Jer9 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 7816c6e, and the PR has changed since (88d69f5), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@Jer9 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 `7816c6e`, and the PR has changed since (`88d69f5`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
Jer9 force-pushed perf/vk-wmma16-zero-c-kchain-quad from 7816c6ebc6
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 3s
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
to 88d69f50c4
Some checks failed
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 9s
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+amd 1/1 pass
beanstalk/linux+radv 1/1 fail
beanstalk/windows+nvidia 2/1 fail
beanstalk/intel 0/1 pass, 0 running, 1 queued
beanstalk/steamdeck 1/1 pass
beanstalk/igpu 1/1 pass
2026-11-23 04:35:13 +00:00
Compare
Author
Contributor

@Beanstalk Please test on AMD RDNA 3 / 4 (Windows and Linux RADV) and Windows NVIDIA (re-requested after commit trailer fix on 88d69f50): run Market at 100% render scale (and RX_VK_PASS_TIMING=2 if available). Compare neural compute prog 6676619641320ba7 span, GPU time, and FPS vs main, and verify identical visual output and 0 regressions on non-WMMA16 GPUs.

@Beanstalk Please test on AMD RDNA 3 / 4 (Windows and Linux RADV) and Windows NVIDIA (re-requested after commit trailer fix on 88d69f50): run Market at 100% render scale (and RX_VK_PASS_TIMING=2 if available). Compare neural compute prog 6676619641320ba7 span, GPU time, and FPS vs main, and verify identical visual output and 0 regressions on non-WMMA16 GPUs.
Member

@Jer9 only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@Jer9 only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
@ -1012,3 +1289,1 @@
idx += 2;
}
}
// 4. Zero-C 2-step K-chain pair: pair_k2_zero_c_fn(a0, b00, b01, a1, b10, b11) -> U32[4]
Contributor

how did you check that the two-step path is bit exact? did you run it and main with the same input on radv? the part i still dont fully get is how the rounding stays the same between steps.

how did you check that the two-step path is bit exact? did you run it and main with the same input on radv? the part i still dont fully get is how the rounding stays the same between steps.
Author
Contributor

I haven't run a GPU buffer-to-buffer comparison against main on RADV (no Linux RDNA 3/4 box locally, so RADV is still in Still to test / @Beanstalk). The reason I called it bit-exact is the SPIR-V instruction equivalence (plus in-game visual checks on Windows Radeon 860M / LLPC), not a standalone GPU buffer-compare test.

Here's why the rounding stays identical between steps — it's easy to assume the accumulator passed between ops stays in FP32 (which would change rounding), but here the accumulator matrix itself is FP16:

  • c_type is TypeCooperativeMatrixKHR(f16, Subgroup, 16, 16, MatrixAccumulatorKHR) (v_wmma_f16_16x16x16_f16 on RDNA 3/3.5/4), so each OpCooperativeMatrixMulAddKHR already rounds its output to f16 in c_type.
  • With mma_wmma16_fast == false (the default exact-K=8 path), pair_k2_zero_c_fn runs the exact same four OpCooperativeMatrixMulAddKHR ops in the exact same order as two back-to-back pair_fn calls on main (and the same holds in fast K=16 mode with 2 ops):
    1. pd = A0 * B0_lo + 0 (rounded to f16)
    2. pd = A0 * B0_hi + pd (rounded to f16)
    3. pd = A1 * B1_lo + pd (rounded to f16)
    4. pd = A1 * B1_hi + pd (rounded to f16)
  • Between steps 2 and 3, main wasn't doing any extra rounding or conversion — it just stored the already-f16 pd to LDS (OpCooperativeMatrixStoreKHR), read the raw u32 words into lane registers, passed them to the next pair_fn, wrote those exact same u32 words back to LDS, and reloaded c_type (OpCooperativeMatrixLoadKHR). Keeping pd in cooperative-matrix VGPRs just cuts out that raw bit round-trip while keeping all four f16 rounding boundaries identical. (And is_zero_c() checks for exact raw u32 == 0, so -0.0 isn't folded into f16_zero.)
I haven't run a GPU buffer-to-buffer comparison against `main` on RADV (no Linux RDNA 3/4 box locally, so RADV is still in **Still to test** / `@Beanstalk`). The reason I called it bit-exact is the SPIR-V instruction equivalence (plus in-game visual checks on Windows Radeon 860M / LLPC), not a standalone GPU buffer-compare test. Here's why the rounding stays identical between steps — it's easy to assume the accumulator passed between ops stays in FP32 (which would change rounding), but here the accumulator matrix itself is FP16: - `c_type` is `TypeCooperativeMatrixKHR(f16, Subgroup, 16, 16, MatrixAccumulatorKHR)` (`v_wmma_f16_16x16x16_f16` on RDNA 3/3.5/4), so each `OpCooperativeMatrixMulAddKHR` already rounds its output to `f16` in `c_type`. - With `mma_wmma16_fast == false` (the default exact-`K=8` path), `pair_k2_zero_c_fn` runs the exact same four `OpCooperativeMatrixMulAddKHR` ops in the exact same order as two back-to-back `pair_fn` calls on `main` (and the same holds in fast `K=16` mode with 2 ops): 1. `pd = A0 * B0_lo + 0` (rounded to `f16`) 2. `pd = A0 * B0_hi + pd` (rounded to `f16`) 3. `pd = A1 * B1_lo + pd` (rounded to `f16`) 4. `pd = A1 * B1_hi + pd` (rounded to `f16`) - Between steps 2 and 3, `main` wasn't doing any extra rounding or conversion — it just stored the already-`f16` `pd` to LDS (`OpCooperativeMatrixStoreKHR`), read the raw `u32` words into lane registers, passed them to the next `pair_fn`, wrote those exact same `u32` words back to LDS, and reloaded `c_type` (`OpCooperativeMatrixLoadKHR`). Keeping `pd` in cooperative-matrix VGPRs just cuts out that raw bit round-trip while keeping all four `f16` rounding boundaries identical. (And `is_zero_c()` checks for exact raw `u32 == 0`, so `-0.0` isn't folded into `f16_zero`.)
Member

@Jer9 only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@Jer9 only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The 860M results show a substantial neural-shader improvement, but the changed cooperative-matrix path still needs the requested Tier 1 AMD desktop and Linux RADV runs before merge. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change fuses matrix operations and avoids shared-memory round trips in the AMD WMMA16 path. It reduces the measured neural shader time, at the cost of a more complex planner and additional shader helpers.

Should fix (1): not blocking, but worth doing before merging.

  • L1: The documented standalone command for the new test omits its required headers argument. When: Running python -I -B tests/test_wmma16_zero_c_kchain.py as instructed exits in argument parsing because --headers is required, before the fixture is built. Do: Document a working invocation with the SPIR-V headers path, or make the test discover the headers when the argument is omitted.

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

  • L2 gpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp:1016: The expanded default WMMA16 path has not been checked on the affected Tier 1 AMD desktop and Linux drivers. (more on the line) Do: Run the requested interleaved base-versus-head Market measurements and visual checks on AMD desktop hardware and Linux RADV, including a same-input output comparison for the K-chain.

@fix can do L1.

Checks: Still running: 9 checks.

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

Does it help: Yes on the tested Windows Radeon 860M: the reported Market shader time fell from 1.518 to 1.184 ms, and three GPU-bound Market runs showed median FPS rising from 45.11 to 45.71. These runs compared with an earlier main commit, not the stated merge base; results on RDNA 3 and 4 desktop GPUs and RADV remain unproven.

Other systems: The new helpers and planner affect eligible AMD WMMA16 compute shaders, including their shared-memory synchronization and shader compilation. Linux RADV and AMD desktop drivers have not been run. Other GPUs do not enter the WMMA16 planner, although the shader cache stamp refreshes for them; the requested non-WMMA16 run is pending.

Switches: RX_VK_MMA_WMMA16_FUSE remains on by default but now also controls zero-C, quad-A and K-chain fusion. Its table entry is updated; the expanded default has been measured on Windows RDNA 3.5, but not yet on the other eligible platforms.

Reviewed: 88d69f50c4 against 0e32bc100d: Read the repository rules, PR template, standards, commit and diff; inspected the changed planner, helper generation, call sites, switch row and test fixtures. The large source and test reads were partially truncated, so not every unchanged portion of the changed files was read in full. No generated files or recorded runs were included in the diff.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance, and the diff contains no apparent game-derived files or generated shader headers.
  • The existing fusion switch retains its default and its switch-table description reflects the expanded behavior.
  • The planner checks cross-block uses before discarding K-chain producers and their extract chains.

Testing: Read-only review; no tests, builds or project scripts were run. CI is still running.

Overlaps and merge order: Not checked; network access is closed.


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

**Recommendation: Approve.** The 860M results show a substantial neural-shader improvement, but the changed cooperative-matrix path still needs the requested Tier 1 AMD desktop and Linux RADV runs before merge. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change fuses matrix operations and avoids shared-memory round trips in the AMD WMMA16 path. It reduces the measured neural shader time, at the cost of a more complex planner and additional shader helpers. **Should fix (1)**: not blocking, but worth doing before merging. - **L1**: The documented standalone command for the new test omits its required headers argument. *When:* Running `python -I -B tests/test_wmma16_zero_c_kchain.py` as instructed exits in argument parsing because `--headers` is required, before the fixture is built. **Do:** Document a working invocation with the SPIR-V headers path, or make the test discover the headers when the argument is omitted. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp:1016`: The expanded default WMMA16 path has not been checked on the affected Tier 1 AMD desktop and Linux drivers. (more on the line) **Do:** Run the requested interleaved base-versus-head Market measurements and visual checks on AMD desktop hardware and Linux RADV, including a same-input output comparison for the K-chain. `@fix` can do L1. **Checks:** Still running: 9 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes on the tested Windows Radeon 860M: the reported Market shader time fell from 1.518 to 1.184 ms, and three GPU-bound Market runs showed median FPS rising from 45.11 to 45.71. These runs compared with an earlier main commit, not the stated merge base; results on RDNA 3 and 4 desktop GPUs and RADV remain unproven. **Other systems:** The new helpers and planner affect eligible AMD WMMA16 compute shaders, including their shared-memory synchronization and shader compilation. Linux RADV and AMD desktop drivers have not been run. Other GPUs do not enter the WMMA16 planner, although the shader cache stamp refreshes for them; the requested non-WMMA16 run is pending. **Switches:** RX_VK_MMA_WMMA16_FUSE remains on by default but now also controls zero-C, quad-A and K-chain fusion. Its table entry is updated; the expanded default has been measured on Windows RDNA 3.5, but not yet on the other eligible platforms. **Reviewed:** 88d69f50c480 against 0e32bc100dbe: Read the repository rules, PR template, standards, commit and diff; inspected the changed planner, helper generation, call sites, switch row and test fixtures. The large source and test reads were partially truncated, so not every unchanged portion of the changed files was read in full. No generated files or recorded runs were included in the diff.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance, and the diff contains no apparent game-derived files or generated shader headers. - The existing fusion switch retains its default and its switch-table description reflects the expanded behavior. - The planner checks cross-block uses before discarding K-chain producers and their extract chains. **Testing:** Read-only review; no tests, builds or project scripts were run. CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -804,0 +1013,4 @@
}
}
// Pass 1: Fuse pure 2-step K-chains (zero-C producer pair -> consuming accumulator pair) into PairK2ZeroC.
Member

L2 (should fix): The expanded default WMMA16 path has not been checked on the affected Tier 1 AMD desktop and Linux drivers.

When: RDNA 3 or 4 hardware using the Windows driver or Linux RADV compiles and executes the new helpers, but the reported visual and performance results are from Windows on an RDNA 3.5 860M.

Do: Run the requested interleaved base-versus-head Market measurements and visual checks on AMD desktop hardware and Linux RADV, including a same-input output comparison for the K-chain.

**L2** (should fix): The expanded default WMMA16 path has not been checked on the affected Tier 1 AMD desktop and Linux drivers. *When:* RDNA 3 or 4 hardware using the Windows driver or Linux RADV compiles and executes the new helpers, but the reported visual and performance results are from Windows on an RDNA 3.5 860M. **Do:** Run the requested interleaved base-versus-head Market measurements and visual checks on AMD desktop hardware and Linux RADV, including a same-input output comparison for the K-chain.
Member
Beanstalk test farm · an earlier run: commit 88d69f5 (the newer results are in a comment below)

Commit 88d69f5 · approved by HumanBean (👍 on Jer9's request) (reviewed) · dashboard

⚠️ Note: The farm reports total GPU pass time, not the named neural dispatch span or GPU wait; it cannot establish the claimed 22% shader speedup or reliably resolve the reported 1.3% FPS gain.
⚠️ Note: Screenshots are tolerant scene comparisons, not same-input GPU buffer comparisons or proof of bit-exact K-chain output; the standalone shader tests are not run by this plan.
⚠️ Note: The farm cannot set the requested output resolution, and the render-resolution setting's numeric scale mapping is not specified; the run uses the default resolution and cannot guarantee the 100% workload or WMMA16 eligibility on every target.

Started at 16:53 UTC.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+amd ✅ pass 2 1 2 19.3 → 20.0 (+3%) — none
linux+radv ❌ fail (an outlier) 2 1 2 21.8 → 25.5 (+17%) — none
windows+nvidia ❌ fail (an outlier) 2 1 2 18.4 → 18.3 (−1%) — none
intel ⏳ queued 1 1 — — none
steamdeck ✅ pass 2 1 2 37.8 → 40.2 (+7%) — none
igpu ✅ pass 2 1 2 24.0 → 23.3 (−3%) — none

Why it failed

  • linux+radv: upscaler-tour field.frametime_p99_ms.max_delta_pct: 24.9 → 32.6 (+30.5%); limit 15.0
  • linux+radv: upscaler-tour field.frametime_1pct_low_ms.max_delta_pct: 28.8 → 40.3 (+39.9%); limit 15.0
  • windows+nvidia: upscaler-tour screenshot.max_diff: 0.3 → 0.5; limit 0.2
  • windows+nvidia: upscaler-tour market.frametime_1pct_low_ms.max_delta_pct: 20.1 → 24.7 (+22.7%); limit 15.0

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.

  • windows+amd, report 2: the pr runtime failed (exit 1): return a.func(a) or 0
  • intel, report 1: the pr runtime failed (exit 1): sys.exit(main(sys.argv[1:]))
  • steamdeck, report 1: the main base failed (exit 1): lift.py stopped (exit status 1): <data>/longshot/third_party/a64-kit/lift/suyu/arm64_to_c.h:15:10: fatal error: 'algorithm' file not found
  • igpu, report 1: the main base failed (exit 1): lift.py stopped (exit status 1): <data>/longshot/third_party/a64-kit/lift/suyu/arm64_to_c.h:15:10: fatal error: 'algorithm' file not found
What was tested

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

The plan compares main and the PR over three interleaved starts per side in Market, Hyrule Field, and Kokiri Forest on AMD, NVIDIA, Intel, and Steam Deck targets. It measures warmed frame times, FPS, and total GPU pass time, and compares stationary pictures in each area. A crash, device loss, substantial frame-time regression, or picture difference beyond the tolerance fails the PR. The run takes about 42 minutes per tester, excluding builds.

  • Where: windows+amd (1-2 reports), linux+radv (1-2 reports), windows+nvidia (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports), igpu (1-2 reports).
  • upscaler-tour: from the repository's save market-entrance (switches RX_VK_PRECOMPILE=1), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up), teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 30 s (after 10 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.
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main.
  • Time: about 44 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `windows+amd`, for the PR description

Verdict: pass on windows+amd (2 reports): no rule failed and no PR run crashed.

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+dgpu AMD Radeon RX 7900 XT, 2.0.416 AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

Before: main @ 0e32bc1 After: this PR @ 88d69f5
upscaler-tour · field · frame time (p99) (ms) 19.3 20.0 (+3%)
upscaler-tour · forest · frame time (p99) (ms) 19.5 19.4 (−0%)
upscaler-tour · market · frame time (p99) (ms) 20.9 20.9 (−0%)
upscaler-tour · forbidden log lines 0.0 0.0
upscaler-tour · field · frame time (worst 1%) (ms) 20.6 22.2 (+8%)
upscaler-tour · forest · frame time (worst 1%) (ms) 21.0 22.2 (+6%)
upscaler-tour · market · frame time (worst 1%) (ms) 23.5 22.8 (−3%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** pass on windows+amd (2 reports): no rule failed and no PR run crashed.

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+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM`  
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

| | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 |
|---|---|---|
| upscaler-tour · field · frame time (p99) (ms) | 19.3 | 20.0 (+3%) |
| upscaler-tour · forest · frame time (p99) (ms) | 19.5 | 19.4 (−0%) |
| upscaler-tour · market · frame time (p99) (ms) | 20.9 | 20.9 (−0%) |
| upscaler-tour · forbidden log lines | 0.0 | 0.0 |
| upscaler-tour · field · frame time (worst 1%) (ms) | 20.6 | 22.2 (+8%) |
| upscaler-tour · forest · frame time (worst 1%) (ms) | 21.0 | 22.2 (+6%) |
| upscaler-tour · market · frame time (worst 1%) (ms) | 23.5 | 22.8 (−3%) |

**Flags and settings**

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

Verdict: fail on linux+radv (2 reports): upscaler-tour field.frametime_p99_ms.max_delta_pct (+30.5%); upscaler-tour field.frametime_1pct_low_ms.max_delta_pct (+39.9%) failed.

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 580 Series (RADV POLARIS10), 26.2.7 AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

Before: main @ 0e32bc1 After: this PR @ 88d69f5
upscaler-tour · field · frame time (p99) (ms) 21.8 25.5 (+17%)
upscaler-tour · forest · frame time (p99) (ms) 21.5 22.8 (+6%)
upscaler-tour · market · frame time (p99) (ms) 22.7 23.8 (+5%)
upscaler-tour · forbidden log lines 0.0 0.0
upscaler-tour · field · frame time (worst 1%) (ms) 24.7 29.6 (+20%)
upscaler-tour · forest · frame time (worst 1%) (ms) 24.2 25.6 (+6%)
upscaler-tour · market · frame time (worst 1%) (ms) 25.4 27.5 (+9%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+radv (2 reports): `upscaler-tour field.frametime_p99_ms.max_delta_pct (+30.5%)`; `upscaler-tour field.frametime_1pct_low_ms.max_delta_pct (+39.9%)` failed.

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 580 Series (RADV POLARIS10), 26.2.7` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM`  
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

| | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 |
|---|---|---|
| upscaler-tour · field · frame time (p99) (ms) | 21.8 | 25.5 (+17%) |
| upscaler-tour · forest · frame time (p99) (ms) | 21.5 | 22.8 (+6%) |
| upscaler-tour · market · frame time (p99) (ms) | 22.7 | 23.8 (+5%) |
| upscaler-tour · forbidden log lines | 0.0 | 0.0 |
| upscaler-tour · field · frame time (worst 1%) (ms) | 24.7 | 29.6 (+20%) |
| upscaler-tour · forest · frame time (worst 1%) (ms) | 24.2 | 25.6 (+6%) |
| upscaler-tour · market · frame time (worst 1%) (ms) | 25.4 | 27.5 (+9%) |

**Flags and settings**

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

Verdict: fail on windows+nvidia (2 reports): upscaler-tour screenshot.max_diff; upscaler-tour market.frametime_1pct_low_ms.max_delta_pct (+22.7%) failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3080 Ti, 621.24.0 AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

Before: main @ 0e32bc1 After: this PR @ 88d69f5
upscaler-tour · field · frame time (p99) (ms) 18.4 18.3 (−1%)
upscaler-tour · forest · frame time (p99) (ms) 18.8 18.8 (−0%)
upscaler-tour · market · frame time (p99) (ms) 19.6 19.1 (−2%)
upscaler-tour · forbidden log lines 0.0 0.0
upscaler-tour · field · frame time (worst 1%) (ms) 18.9 18.6 (−1%)
upscaler-tour · forest · frame time (worst 1%) (ms) 19.8 20.1 (+1%)
upscaler-tour · market · frame time (worst 1%) (ms) 20.4 22.3 (+9%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+nvidia (2 reports): `upscaler-tour screenshot.max_diff`; `upscaler-tour market.frametime_1pct_low_ms.max_delta_pct (+22.7%)` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM`  
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

| | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 |
|---|---|---|
| upscaler-tour · field · frame time (p99) (ms) | 18.4 | 18.3 (−1%) |
| upscaler-tour · forest · frame time (p99) (ms) | 18.8 | 18.8 (−0%) |
| upscaler-tour · market · frame time (p99) (ms) | 19.6 | 19.1 (−2%) |
| upscaler-tour · forbidden log lines | 0.0 | 0.0 |
| upscaler-tour · field · frame time (worst 1%) (ms) | 18.9 | 18.6 (−1%) |
| upscaler-tour · forest · frame time (worst 1%) (ms) | 19.8 | 20.1 (+1%) |
| upscaler-tour · market · frame time (worst 1%) (ms) | 20.4 | 22.3 (+9%) |

**Flags and settings**

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

Verdict: queued on intel (1 report).

Hardware: 1: linux+intel+anv+dgpu Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7 13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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 intel (1 report).

Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7` `13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM`  
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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 `steamdeck`, for the PR description

Verdict: pass on steamdeck (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99 AMD Custom APU 0932, 16 GB RAM; 2: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

Before: main @ 0e32bc1 After: this PR @ 88d69f5
upscaler-tour · field · frame time (p99) (ms) 37.8 40.2 (+7%)
upscaler-tour · forest · frame time (p99) (ms) 43.1 42.4 (−2%)
upscaler-tour · market · frame time (p99) (ms) 49.0 51.2 (+4%)
upscaler-tour · forbidden log lines 0.0 0.0
upscaler-tour · field · frame time (worst 1%) (ms) 47.7 47.0 (−1%)
upscaler-tour · forest · frame time (worst 1%) (ms) 49.5 45.8 (−7%)
upscaler-tour · market · frame time (worst 1%) (ms) 58.0 53.2 (−8%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0932, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`  
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

| | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 |
|---|---|---|
| upscaler-tour · field · frame time (p99) (ms) | 37.8 | 40.2 (+7%) |
| upscaler-tour · forest · frame time (p99) (ms) | 43.1 | 42.4 (−2%) |
| upscaler-tour · market · frame time (p99) (ms) | 49.0 | 51.2 (+4%) |
| upscaler-tour · forbidden log lines | 0.0 | 0.0 |
| upscaler-tour · field · frame time (worst 1%) (ms) | 47.7 | 47.0 (−1%) |
| upscaler-tour · forest · frame time (worst 1%) (ms) | 49.5 | 45.8 (−7%) |
| upscaler-tour · market · frame time (worst 1%) (ms) | 58.0 | 53.2 (−8%) |

**Flags and settings**

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

Verdict: pass on igpu (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99 AMD Custom APU 0932, 16 GB RAM; 2: linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

Before: main @ 0e32bc1 After: this PR @ 88d69f5
upscaler-tour · field · frame time (p99) (ms) 24.0 23.3 (−3%)
upscaler-tour · forest · frame time (p99) (ms) 24.8 25.0 (+1%)
upscaler-tour · market · frame time (p99) (ms) 28.0 27.5 (−2%)
upscaler-tour · forbidden log lines 0.0 0.0
upscaler-tour · field · frame time (worst 1%) (ms) 25.6 24.1 (−6%)
upscaler-tour · forest · frame time (worst 1%) (ms) 25.7 26.4 (+3%)
upscaler-tour · market · frame time (worst 1%) (ms) 32.3 29.4 (−9%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** pass on igpu (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0932, 16 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM`  
Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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)

| | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 |
|---|---|---|
| upscaler-tour · field · frame time (p99) (ms) | 24.0 | 23.3 (−3%) |
| upscaler-tour · forest · frame time (p99) (ms) | 24.8 | 25.0 (+1%) |
| upscaler-tour · market · frame time (p99) (ms) | 28.0 | 27.5 (−2%) |
| upscaler-tour · forbidden log lines | 0.0 | 0.0 |
| upscaler-tour · field · frame time (worst 1%) (ms) | 25.6 | 24.1 (−6%) |
| upscaler-tour · forest · frame time (worst 1%) (ms) | 25.7 | 26.4 (+3%) |
| upscaler-tour · market · frame time (worst 1%) (ms) | 32.3 | 29.4 (−9%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
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+dgpu AMD Radeon RX 7900 XT, 2.0.416 AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM
linux+radv 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 2 linux+amd+radv+dgpu AMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7 AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3080 Ti, 621.24.0 AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM
intel 1 linux+intel+anv+dgpu Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7 13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99 AMD Custom APU 0932, 16 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
igpu 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99 AMD Custom APU 0932, 16 GB RAM
igpu 2 linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>88d69f5</code> (the newer results are in a comment below)</summary> Commit `88d69f5` · approved by HumanBean (👍 on Jer9's request) (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2329) ⚠️ **Note:** The farm reports total GPU pass time, not the named neural dispatch span or GPU wait; it cannot establish the claimed 22% shader speedup or reliably resolve the reported 1.3% FPS gain. ⚠️ **Note:** Screenshots are tolerant scene comparisons, not same-input GPU buffer comparisons or proof of bit-exact K-chain output; the standalone shader tests are not run by this plan. ⚠️ **Note:** The farm cannot set the requested output resolution, and the render-resolution setting's numeric scale mapping is not specified; the run uses the default resolution and cannot guarantee the 100% workload or WMMA16 eligibility on every target. Started at 16:53 UTC. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+amd` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_822743a5fe39f06e) [2](https://beanstalk.magicbean.dev/reports/rp_3e4fd29b2e2947a8) | 19.3 → 20.0 (+3%) | — | none | | `linux+radv` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_8aee00db83c7a299) [2](https://beanstalk.magicbean.dev/reports/rp_b4fca73906be6ff3) | 21.8 → 25.5 (+17%) | — | none | | `windows+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_aa0a8265b18824ea) [2](https://beanstalk.magicbean.dev/reports/rp_9ca4e3b108416404) | 18.4 → 18.3 (−1%) | — | none | | `intel` | ⏳ queued | 1 [1](https://beanstalk.magicbean.dev/reports/rp_24bd1485b08088ff) | — | — | none | | `steamdeck` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_96be0460bb73d563) [2](https://beanstalk.magicbean.dev/reports/rp_db736bfc950db118) | 37.8 → 40.2 (+7%) | — | none | | `igpu` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_c41cfd1cb1463e88) [2](https://beanstalk.magicbean.dev/reports/rp_9570b3809844044f) | 24.0 → 23.3 (−3%) | — | none | **Why it failed** - `linux+radv`: `upscaler-tour` `field.frametime_p99_ms.max_delta_pct`: `24.9 → 32.6 (+30.5%); limit 15.0` - `linux+radv`: `upscaler-tour` `field.frametime_1pct_low_ms.max_delta_pct`: `28.8 → 40.3 (+39.9%); limit 15.0` - `windows+nvidia`: `upscaler-tour` `screenshot.max_diff`: `0.3 → 0.5; limit 0.2` - `windows+nvidia`: `upscaler-tour` `market.frametime_1pct_low_ms.max_delta_pct`: `20.1 → 24.7 (+22.7%); limit 15.0` **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. - `windows+amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_3e4fd29b2e2947a8): `the pr runtime failed (exit 1): return a.func(a) or 0` - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_24bd1485b08088ff): `the pr runtime failed (exit 1): sys.exit(main(sys.argv[1:]))` - `steamdeck`, [report 1](https://beanstalk.magicbean.dev/reports/rp_96be0460bb73d563): `the main base failed (exit 1): lift.py stopped (exit status 1): <data>/longshot/third_party/a64-kit/lift/suyu/arm64_to_c.h:15:10: fatal error: 'algorithm' file not found` - `igpu`, [report 1](https://beanstalk.magicbean.dev/reports/rp_c41cfd1cb1463e88): `the main base failed (exit 1): lift.py stopped (exit status 1): <data>/longshot/third_party/a64-kit/lift/suyu/arm64_to_c.h:15:10: fatal error: 'algorithm' file not found` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The plan compares main and the PR over three interleaved starts per side in Market, Hyrule Field, and Kokiri Forest on AMD, NVIDIA, Intel, and Steam Deck targets. It measures warmed frame times, FPS, and total GPU pass time, and compares stationary pictures in each area. A crash, device loss, substantial frame-time regression, or picture difference beyond the tolerance fails the PR. The run takes about 42 minutes per tester, excluding builds. - **Where:** windows+amd (1-2 reports), linux+radv (1-2 reports), windows+nvidia (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports), igpu (1-2 reports). - **upscaler-tour:** from the repository's save `market-entrance` (switches `RX_VK_PRECOMPILE=1`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up), teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 30 s (after 10 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. - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main. - **Time:** about 44 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** pass on windows+amd (2 reports): no rule failed and no PR run crashed. 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+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 19.3 | 20.0 (+3%) | | upscaler-tour · forest · frame time (p99) (ms) | 19.5 | 19.4 (−0%) | | upscaler-tour · market · frame time (p99) (ms) | 20.9 | 20.9 (−0%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 20.6 | 22.2 (+8%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 21.0 | 22.2 (+6%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 23.5 | 22.8 (−3%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+amd (2 reports): no rule failed and no PR run crashed. 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+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 19.3 | 20.0 (+3%) | | upscaler-tour · forest · frame time (p99) (ms) | 19.5 | 19.4 (−0%) | | upscaler-tour · market · frame time (p99) (ms) | 20.9 | 20.9 (−0%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 20.6 | 22.2 (+8%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 21.0 | 22.2 (+6%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 23.5 | 22.8 (−3%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** fail on linux+radv (2 reports): `upscaler-tour field.frametime_p99_ms.max_delta_pct (+30.5%)`; `upscaler-tour field.frametime_1pct_low_ms.max_delta_pct (+39.9%)` failed. 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 580 Series (RADV POLARIS10), 26.2.7` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 21.8 | 25.5 (+17%) | | upscaler-tour · forest · frame time (p99) (ms) | 21.5 | 22.8 (+6%) | | upscaler-tour · market · frame time (p99) (ms) | 22.7 | 23.8 (+5%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 24.7 | 29.6 (+20%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 24.2 | 25.6 (+6%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 25.4 | 27.5 (+9%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+radv (2 reports): `upscaler-tour field.frametime_p99_ms.max_delta_pct (+30.5%)`; `upscaler-tour field.frametime_1pct_low_ms.max_delta_pct (+39.9%)` failed. 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 580 Series (RADV POLARIS10), 26.2.7` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 21.8 | 25.5 (+17%) | | upscaler-tour · forest · frame time (p99) (ms) | 21.5 | 22.8 (+6%) | | upscaler-tour · market · frame time (p99) (ms) | 22.7 | 23.8 (+5%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 24.7 | 29.6 (+20%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 24.2 | 25.6 (+6%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 25.4 | 27.5 (+9%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** fail on windows+nvidia (2 reports): `upscaler-tour screenshot.max_diff`; `upscaler-tour market.frametime_1pct_low_ms.max_delta_pct (+22.7%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 18.4 | 18.3 (−1%) | | upscaler-tour · forest · frame time (p99) (ms) | 18.8 | 18.8 (−0%) | | upscaler-tour · market · frame time (p99) (ms) | 19.6 | 19.1 (−2%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 18.9 | 18.6 (−1%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 19.8 | 20.1 (+1%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 20.4 | 22.3 (+9%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+nvidia (2 reports): `upscaler-tour screenshot.max_diff`; `upscaler-tour market.frametime_1pct_low_ms.max_delta_pct (+22.7%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 18.4 | 18.3 (−1%) | | upscaler-tour · forest · frame time (p99) (ms) | 18.8 | 18.8 (−0%) | | upscaler-tour · market · frame time (p99) (ms) | 19.6 | 19.1 (−2%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 18.9 | 18.6 (−1%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 19.8 | 20.1 (+1%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 20.4 | 22.3 (+9%) | **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:** queued on intel (1 report). Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7` `13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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 intel (1 report). Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7` `13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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 `steamdeck`, for the PR description</summary> **Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0932, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 37.8 | 40.2 (+7%) | | upscaler-tour · forest · frame time (p99) (ms) | 43.1 | 42.4 (−2%) | | upscaler-tour · market · frame time (p99) (ms) | 49.0 | 51.2 (+4%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 47.7 | 47.0 (−1%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 49.5 | 45.8 (−7%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 58.0 | 53.2 (−8%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0932, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 37.8 | 40.2 (+7%) | | upscaler-tour · forest · frame time (p99) (ms) | 43.1 | 42.4 (−2%) | | upscaler-tour · market · frame time (p99) (ms) | 49.0 | 51.2 (+4%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 47.7 | 47.0 (−1%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 49.5 | 45.8 (−7%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 58.0 | 53.2 (−8%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `igpu`, for the PR description</summary> **Verdict:** pass on igpu (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0932, 16 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 24.0 | 23.3 (−3%) | | upscaler-tour · forest · frame time (p99) (ms) | 24.8 | 25.0 (+1%) | | upscaler-tour · market · frame time (p99) (ms) | 28.0 | 27.5 (−2%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 25.6 | 24.1 (−6%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 25.7 | 26.4 (+3%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 32.3 | 29.4 (−9%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on igpu (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0932, 16 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: upscaler-tour, from the repository's save market-entrance (RX_VK_PRECOMPILE=1); 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-tour: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, forest 30 s after 10 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) | | Before: main @ 0e32bc1 | After: this PR @ 88d69f5 | |---|---|---| | upscaler-tour · field · frame time (p99) (ms) | 24.0 | 23.3 (−3%) | | upscaler-tour · forest · frame time (p99) (ms) | 24.8 | 25.0 (+1%) | | upscaler-tour · market · frame time (p99) (ms) | 28.0 | 27.5 (−2%) | | upscaler-tour · forbidden log lines | 0.0 | 0.0 | | upscaler-tour · field · frame time (worst 1%) (ms) | 25.6 | 24.1 (−6%) | | upscaler-tour · forest · frame time (worst 1%) (ms) | 25.7 | 26.4 (+3%) | | upscaler-tour · market · frame time (worst 1%) (ms) | 32.3 | 29.4 (−9%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_822743a5fe39f06e) | 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_3e4fd29b2e2947a8) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_8aee00db83c7a299) | 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` | [2](https://beanstalk.magicbean.dev/reports/rp_b4fca73906be6ff3) | linux+amd+radv+dgpu `AMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_aa0a8265b18824ea) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_9ca4e3b108416404) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_24bd1485b08088ff) | linux+intel+anv+dgpu `Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7` `13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_96be0460bb73d563) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0932, 16 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_db736bfc950db118) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | | `igpu` | [1](https://beanstalk.magicbean.dev/reports/rp_c41cfd1cb1463e88) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0932 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0932, 16 GB RAM` | | `igpu` | [2](https://beanstalk.magicbean.dev/reports/rp_9570b3809844044f) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | </details> </details>
Owner
@fix
BeanBot force-pushed perf/vk-wmma16-zero-c-kchain-quad from 88d69f50c4
Some checks failed
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 9s
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+amd 1/1 pass
beanstalk/linux+radv 1/1 fail
beanstalk/windows+nvidia 2/1 fail
beanstalk/intel 0/1 pass, 0 running, 1 queued
beanstalk/steamdeck 1/1 pass
beanstalk/igpu 1/1 pass
to 2cef34814f
Some checks are pending
PR description / Description follows the template (pull_request_target) Successful in 19s
beanstalk/approval changed since the request: ask again
2026-11-23 19:55:05 +00:00
Compare
Member

Beanstalk test farm

Commit 2cef348 · approved by nobody yet · dashboard

A member of BigBeans can review this commit and comment @Beanstalk to test it.

<!-- beanstalk:sticky --> ### Beanstalk test farm Commit `2cef348` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/2329) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The 860M results show a neural compute improvement, but the expanded default path still needs the affected Tier 1 AMD desktop and Linux driver runs. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 2cef34814f. I rebased it onto main (79d192c655). I edited its description to match the change.

Nothing was built or run: the checks run again on the new head.

The shader planner fuses eligible matrix operations to reduce shared-memory traffic and barriers. It adds planner and helper complexity in exchange for a measured GPU compute saving on one RDNA 3.5 system.

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

  • L2 gpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp:1016: The expanded default WMMA16 path has not been checked on the affected Tier 1 AMD desktop and Linux drivers. When: RDNA 3 or 4 hardware using the Windows driver or Linux RADV compiles and executes the new helpers, but the reported visual and performance results are from Windows on an RDNA 3.5 860M. Do: Run the requested interleaved base-versus-head Market measurements and visual checks on AMD desktop hardware and Linux RADV, including a same-input output comparison for the K-chain.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (1; not asked for, not blocking)
  • The new test's module docstring still presents --headers as optional, although its parser requires it.
More: does it help, other systems, switches, what was read

Does it help: Yes on the tested Radeon 860M: the reported neural pass fell from 1.518 to 1.184 ms, and three interleaved Market runs showed median FPS rising from 45.11 to 45.71. Results on AMD desktop GPUs and Linux drivers remain untested.

Other systems: The new helpers affect eligible AMD RDNA 3, 3.5 and 4 WMMA16 shaders. Windows 860M visuals were checked; Linux RADV and AMD desktop results are pending. Other GPUs retain the non-WMMA16 path but incur the normal shader-cache refresh.

Switches: RX_VK_MMA_WMMA16_FUSE remains on by default and now covers zero-C, quad and K-chain fusion as well as pairing; setting it to 0 disables all WMMA16 fusion. The default still needs the pending AMD hardware runs.

Reviewed: 2cef34814f against 79d192c655: Read AGENTS.md, CONTRIBUTING.md, the new test and the changed WMMA16 code sections; inspected the switch and context changes and the SPIR-V fixture diff. Skimmed standards and recorded results. The full changed code files and related callers were not read in full; the separate Tooling AGENTS.md was unavailable.; nothing run (a code review).

Checked and fine:

  • The fix diff is empty, so it does not remove the optimization.
  • The description now gives the required standalone test argument.
  • The reported 860M game runs include visual checks and interleaved performance comparisons.

Testing: No commands from the project were run. The author reports targeted checks and Windows 860M game runs; CI has not run on this head.

Overlaps and merge order: Not checked; network access is unavailable.


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

**Recommendation: Approve.** The code is ready: only testing is left. The 860M results show a neural compute improvement, but the expanded default path still needs the affected Tier 1 AMD desktop and Linux driver runs. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 2cef34814fd3. I rebased it onto `main` (79d192c655b5). I edited its description to match the change. Nothing was built or run: the checks run again on the new head. The shader planner fuses eligible matrix operations to reduce shared-memory traffic and barriers. It adds planner and helper complexity in exchange for a measured GPU compute saving on one RDNA 3.5 system. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp:1016`: The expanded default WMMA16 path has not been checked on the affected Tier 1 AMD desktop and Linux drivers. *When:* RDNA 3 or 4 hardware using the Windows driver or Linux RADV compiles and executes the new helpers, but the reported visual and performance results are from Windows on an RDNA 3.5 860M. **Do:** Run the requested interleaved base-versus-head Market measurements and visual checks on AMD desktop hardware and Linux RADV, including a same-input output comparison for the K-chain. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The new test's module docstring still presents --headers as optional, although its parser requires it. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes on the tested Radeon 860M: the reported neural pass fell from 1.518 to 1.184 ms, and three interleaved Market runs showed median FPS rising from 45.11 to 45.71. Results on AMD desktop GPUs and Linux drivers remain untested. **Other systems:** The new helpers affect eligible AMD RDNA 3, 3.5 and 4 WMMA16 shaders. Windows 860M visuals were checked; Linux RADV and AMD desktop results are pending. Other GPUs retain the non-WMMA16 path but incur the normal shader-cache refresh. **Switches:** RX_VK_MMA_WMMA16_FUSE remains on by default and now covers zero-C, quad and K-chain fusion as well as pairing; setting it to 0 disables all WMMA16 fusion. The default still needs the pending AMD hardware runs. **Reviewed:** 2cef34814fd3 against 79d192c655b5: Read AGENTS.md, CONTRIBUTING.md, the new test and the changed WMMA16 code sections; inspected the switch and context changes and the SPIR-V fixture diff. Skimmed standards and recorded results. The full changed code files and related callers were not read in full; the separate Tooling AGENTS.md was unavailable.; nothing run (a code review). **Checked and fine:** - The fix diff is empty, so it does not remove the optimization. - The description now gives the required standalone test argument. - The reported 860M game runs include visual checks and interleaved performance comparisons. **Testing:** No commands from the project were run. The author reports targeted checks and Windows 860M game runs; CI has not run on this head. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch perf/vk-wmma16-zero-c-kchain-quad 2026-11-23 19:59:27 +00:00
Some checks are pending
PR description / Description follows the template (pull_request_target) Successful in 19s
beanstalk/approval changed since the request: ask again
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 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!2329
No description provided.