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
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2329
Loading…
Reference in a new issue
No description provided.
Delete branch "Jer9/Longshot:perf/vk-wmma16-zero-c-kchain-quad"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
On AMD RDNA 3 / 3.5 / 4 GPUs, the Switch 2's AI upscaling neural network compute shader (
prog 6676619641320ba7at67% render scale1024x576,9dc98871eb7fc101at100% render scale1536x864/1382x864) runs game-wide across Hyrule Field, Market, Kokiri Forest, and dungeons, and is the single largest GPU pass in Market (1.518 msat67% render scale1024x576). 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 identicalAmatrices 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-CLDS round-trips, reuseAacross paired calls, and keep K-chain accumulators in registers game-wide — cutting subgroup barriers in6676619641320ba7by-56.4%(376 -> 164) and eliminating all94CoopLoad(C)and376CLDS stores with zero extra shared memory.Where this helps vs. where it doesn't:
+0.6 FPS(-0.2 to -0.3 msGPU 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 by22%and compounds with other GPU optimizations.VK_KHR_cooperative_matrixWMMA16 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. Cutsprog 6676619641320ba7by-22.0%(1.518 -> 1.184 ms), cuts Market100% 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 Market100% render scale(1536x864) Median/Mean FPS+1.3%/+1.2%(all 3 rounds non-overlapping).main), CPU-bound scenes (such as Market67% render scale,1024x576, on this 8-CU iGPU, where12.3–13.4 msGPU time sits inside an~18.4 msframe, so FPS/GPU-time deltas fall within run-to-run variance), and geometry/fragment-dominated GPU scenes (such as Hyrule Field100% render scale,1382x864at16:10, where~19.9 msGPU time is dominated by grass/terrain shading and the~0.3 msneural savings falls within~1 msrun-to-run variance).Technical details (100% bit-exact with
exact K=8, zero extra LDS):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 threeDontInlinehelpers:pair_zero_c_fn: usesOpCompositeConstruct(c_type, f16_zero)(compatible with Mesa RADV< 25.0.2andspirv-val) instead of storing/loadingCthrough LDS, cutting subgroup barriers from 4 to 2 per pair.quad_zero_c_fn: fuses two zero-C pairs sharing canonicalA, keepingAin a cooperative matrix register across both pairs (halvingALDS stores andOpCooperativeMatrixLoadKHR(A)) and reusing a single cachedfs.quad_ret_typestruct 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 intermediateCoopStore, laneDloads,CLDS stores, andCoopLoad(C)).region_cprotection barrier to entry of non-zero-C helpers (DefineWmma16MatrixFunctionandpair_fn) so zero-C helpers need no trailing barrier while preserving full data-race safety across all call orderings.Read first:
DefineWmma16PairFunction()andEmitMatrixMulAddF16Fused()ingpu/vk/eden/shader_recompiler/backend/spirv/emit_spirv_warp.cpp.Testing
How to test:
VK_KHR_cooperative_matrixWMMA16 enabled (non-WMMA16 GPUs emit unchanged SPIR-V).python -I -B tests/test_wmma16_zero_c_kchain.py --headers <SPIRV-Headers/include>(fails onmain, passes here) andtests/test_wmma16.py. On Linux withspirv-valinstalled, also runtests/test_wmma16_spirv_val.py.mainvs. this PR withRX_VK_PASS_TIMING=2in Market (using two builds — note thatRX_VK_MMA_WMMA16_FUSE=0disables all WMMA16 pairing includingmain's existing pair helper, so it is a fallback kill switch rather than amain-vs-PR toggle). Checklongshot_log.txtfordispatch prog 6676619641320ba7(at67% render scale,1024x576) or9dc98871eb7fc101(at100% render scale,1536x864/1382x864) — it should drop by~20–24%.RX_VK_PRECOMPILE=1), then run>= 3interleaved rounds in a GPU-bound scene (e.g., Market100% render scale1536x864— CPU-bound67% render scale1024x576hides the GPU win inside frame-time variance). Compare Median/Mean FPS,gpu_wait_ms, andvk: GPU time.Market -> Hyrule Field -> Kokiri Forestfor zero banding, ghosting, NaN/black pixels, orVK_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 spost-load settle, symmetric full-precompiled caches (~142 MBprograms /~830 MBpipelines on bothmainand this branch):Market_Childfountain-first route (67% render scale1024x5763 interleaved rounds,100% render scale1536x8643 interleaved rounds) +RX_VK_PASS_TIMING=2(67% render scale,1024x576):6676619641320ba7dropped1.518 -> 1.184 ms(-22.0%), totalm dispatchdropped4.515 -> 4.355 ms.HyruleField_Childin-bounds grassy-field orbit (castle-gate,100% render scale,1382x864at16:10, 3 interleaved rounds):0VK_ERROR_DEVICE_LOST,0exit/transition frames (min >= 16.60 ms),0shaders/pipelines compiled in Round 3, clean AI-upscaled grass/terrain visuals; frame metrics overlapmainwithin run-to-run variance.Market -> Hyrule Field -> Kokiri Forest,67% render scale,1024x576):0VK_ERROR_DEVICE_LOSTacross all three zones.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).main @ 0e32bc10withdev.py envllvm-mingw+RX_CPM):tests/test_wmma16_zero_c_kchain.py(new, including multi-block cross-blockglobal_usessafety check, zeroOpConstantNullSPIR-V binary assertion, andQuadZeroCfs.quad_ret_typereturn-type ID check): FAIL onmain(753fb5af), PASS on this branch (88d69f50).--strictsuite (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.pyrequires Linuxspirv-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-onlymainfailures documented in#2304(test_crash_dialog,test_dev_ab,test_input_movie).tests/test_wmma16_spirv_val.py: fixture updated to emitPairZeroC,QuadZeroC, andPairK2ZeroCcall sites into thespirv-val-checked module (spirv-valbinary not on Windows PATH; validated on Linux CI).Still to test:
spirv-valviatests/test_wmma16_spirv_val.py+ live game run): verify all SPIR-V modules passspirv-val --target-env vulkan1.3and match visual output (@Beanstalk Linux RADV, CI).6676619641320ba7/9dc98871eb7fc101speedup and visual parity (@Beanstalk AMD).mma_wmma16 == falseemits identical SPIR-V tomainand has no regression after the normal one-timeLONGSHOT_SHADER_STAMPcache refresh (@Beanstalk Windows NVIDIA).Measurements
Verdict: Clear, repeatable win on AMD RDNA 3.5 neural compute and GPU-bound Market: cuts
prog 6676619641320ba7by-22.0%(1.518 -> 1.184 ms), and at GPU-bound Market100% render scale(1536x864) lifts Median FPS+1.3%, Mean FPS+1.2%, and cutsgpu_wait_ms-8.7%and GPU time-1.2%with non-overlapping 3-round ranges. Near-CPU-bound Market67% render scale(1024x576), Market100% render scale1% low />= 33.3 mscounts, and geometry/fragment-dominated Hyrule Field100% render scale(1382x864at16: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 MBprograms /829.6 MBvs836.6 MBpipelines, untimed warm-up runs on bothmainand this branch,>= 12.5 ssettle): fountain-firstMarket_Childroute (1536x864at100% render scale,1024x576at67% render scale) and in-boundsHyruleField_Childgrassy-field orbit (1382x864at100% render scale16:10). Measured standalone directly againstmain @ 753fb5af; rebased cleanly ontomain @ 0e32bc10(88d69f50— none of the 8 intervening commits touchemit_spirv_warp.cppor 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 aremedian [min, max]across 3 interleaved rounds.Where it makes a difference (AMD RDNA 3.5 neural compute & GPU-bound Market
100% render scale):main @ 753fb5af88d69f506676619641320ba7span (Market67% 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%)m dispatch(Market67% render scale,1024x576,PASS_TIMING=2)4.515 ms4.355 ms-0.160 ms(-3.5%)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 faster100% 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 faster100% render scale(1536x864)gpu_wait_ms(3 rounds)2.08 [2.03, 2.16] ms1.90 [1.89, 1.93] ms-0.18 ms(-8.7%) — all 3 rounds lower100% render scale(1536x864) GPU time (3 rounds)16.49 [16.48, 16.67] ms16.29 [16.14, 16.44] ms-0.20 ms(-1.2%) — all 3 rounds fasterWhere it does NOT make a difference (within run-to-run variance):
main @ 753fb5af88d69f50100% render scale(1536x864) 1% Low FPS (3 rounds)32.89 [31.36, 33.52]32.95 [32.93, 33.53]100% render scale(1536x864)>= 33.3 msframes (3 rounds)7 [3, 10]4 [2, 7]67% render scale(1024x576) Median FPS (3 rounds, CPU-bound)*54.38 [53.59, 54.50]53.62 [52.34, 55.46]67% render scale(1024x576) Mean FPS (3 rounds, CPU-bound)*53.68 [52.66, 54.00]53.13 [51.25, 54.90]67% render scale(1024x576) 1% Low FPS (3 rounds, CPU-bound)*38.95 [36.86, 39.10]38.43 [35.29, 39.16]67% render scale(1024x576) GPU time (3 rounds, CPU-bound)*12.82 [12.73, 12.99] ms13.03 [12.31, 13.42] ms100% render scale(1382x864) Median FPS (3 rounds)**38.70 [37.59, 38.70]39.29 [38.68, 40.20]100% render scale(1382x864) Mean FPS (3 rounds)**38.56 [37.02, 38.66]38.73 [38.08, 39.70]100% render scale(1382x864) 1% Low FPS (3 rounds)**29.03 [23.29, 29.37]27.12 [25.59, 29.67]100% render scale(1382x864)>= 33.3 msframes (3 rounds)**16 [16, 45]28 [14, 42]100% render scale(1382x864)gpu_wait_ms(3 rounds)**4.04 [3.66, 5.71] ms4.24 [3.32, 4.42] ms100% render scale(1382x864) GPU time (3 rounds)**19.88 [19.59, 21.24] ms19.94 [19.32, 20.12] ms100% render scale(1382x864) steady VRAM (3 rounds)**2858 [2858, 2986] MB2858 [2858, 2922] MB*At
67% render scale(1024x576) on this 8-CU iGPU, Market is near CPU-bound (12.3–13.4 msGPU time vs18.4 msframe time), so single-round thermal/OS variance spans52.34–55.46 FPS(Round 1 reached55.46 FPS/39.16 FPS1% low /12.31 msGPU time). At GPU-bound Market100% render scale(1536x864), every round of88d69f50(45.63–45.84 FPS) cleanly beatsmain's best round (44.92–45.29 FPS).**In Hyrule Field
100% render scale(1382x864at16:10), grass and terrain shading push GPU frame time to~19.9 ms(~1,900–2,050draws/frame), so the~0.3 msneural compute reduction is smaller than~1 msrun-to-run GPU variance (19.32–20.12 msvs19.59–21.24 ms).Risks
LONGSHOT_SHADER_STAMPhashes all files undergpu/vk/eden/, updatingemit_spirv_warp.cppandspirv_emit_context.hrefresheslongshot_programs.binonce across GPUs as normal forgpu/vk/eden/edits; non-WMMA16 GPUs emit identical SPIR-V tomain.K=8FP16 rounding sequence (OpCooperativeMatrixMulAddKHRonB_lothenB_hi), use0extra shared memory, useOpCompositeConstruct(c_type, f16_zero)(avoidingOpConstantNullonTypeCooperativeMatrixKHRfor Mesa RADV< 25.0.2), enforce entry-barrier protection onregion_cfor non-zero-C helpers, and verifyglobal_usesacross all blocks before skipping any K-chain producer or extract.RX_VK_MMA_WMMA16_FUSE=0disables all fused WMMA16 helpers immediately; a revert is also clean. No save orlongshot_options.inichanges.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (tests/run_all.py --changed forge/mainon Windows: 33 passed, 3 pre-existing Windows-onlymainfailures named in#2304:test_crash_dialog,test_dev_ab,test_input_movie; targeted--strictsuite 6/6 passed;test_wmma16_spirv_val.pyC++ Sirit fixture compiled and passed 11/11 cases locally,spirv-valon Linux CI).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened (tests/test_wmma16_spirv_val.pyupdated to coverPairZeroC/QuadZeroC/PairK2ZeroC;tests/test_wmma16.pypasses unchanged).Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.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.
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 fusionto 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@Jer9 only members of
BigBeanscan start the farm.One of them can approve this request by reacting 👍 to it or to this comment.This request was for7816c6e, and the PR has changed since (88d69f5), so a 👍 no longer approves it. Comment@Beanstalkagain to ask for the new commit.7816c6ebc688d69f50c4@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.@Jer9 only members of
BigBeanscan 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]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.
I haven't run a GPU buffer-to-buffer comparison against
mainon 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_typeisTypeCooperativeMatrixKHR(f16, Subgroup, 16, 16, MatrixAccumulatorKHR)(v_wmma_f16_16x16x16_f16on RDNA 3/3.5/4), so eachOpCooperativeMatrixMulAddKHRalready rounds its output tof16inc_type.mma_wmma16_fast == false(the default exact-K=8path),pair_k2_zero_c_fnruns the exact same fourOpCooperativeMatrixMulAddKHRops in the exact same order as two back-to-backpair_fncalls onmain(and the same holds in fastK=16mode with 2 ops):pd = A0 * B0_lo + 0(rounded tof16)pd = A0 * B0_hi + pd(rounded tof16)pd = A1 * B1_lo + pd(rounded tof16)pd = A1 * B1_hi + pd(rounded tof16)mainwasn't doing any extra rounding or conversion — it just stored the already-f16pdto LDS (OpCooperativeMatrixStoreKHR), read the rawu32words into lane registers, passed them to the nextpair_fn, wrote those exact sameu32words back to LDS, and reloadedc_type(OpCooperativeMatrixLoadKHR). Keepingpdin cooperative-matrix VGPRs just cuts out that raw bit round-trip while keeping all fourf16rounding boundaries identical. (Andis_zero_c()checks for exact rawu32 == 0, so-0.0isn't folded intof16_zero.)@Jer9 only members of
BigBeanscan start the farm. One of them can approve this request by reacting 👍 to it or to this comment.@review
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.
python -I -B tests/test_wmma16_zero_c_kchain.pyas instructed exits in argument parsing because--headersis 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)
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.@fixcan 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:
88d69f50c4against0e32bc100d: 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:
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.
@ -804,0 +1013,4 @@}}// Pass 1: Fuse pure 2-step K-chains (zero-C producer pair -> consuming accumulator pair) into PairK2ZeroC.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.
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.
windows+amdlinux+radvwindows+nvidiaintelsteamdeckigpuWhy it failed
linux+radv:upscaler-tourfield.frametime_p99_ms.max_delta_pct:24.9 → 32.6 (+30.5%); limit 15.0linux+radv:upscaler-tourfield.frametime_1pct_low_ms.max_delta_pct:28.8 → 40.3 (+39.9%); limit 15.0windows+nvidia:upscaler-tourscreenshot.max_diff:0.3 → 0.5; limit 0.2windows+nvidia:upscaler-tourmarket.frametime_1pct_low_ms.max_delta_pct:20.1 → 24.7 (+22.7%); limit 15.0Couldn'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 0intel, 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 foundigpu, 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 foundWhat 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.
market-entrance(switchesRX_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.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.416AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM; 2: windows+amd+amd-proprietary+dgpuAMD Radeon RX 7900 XT, 2.0.416AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)0e32bc188d69f5Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
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.8AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpuAMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)0e32bc188d69f5Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
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.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpuNVIDIA GeForce RTX 3080 Ti, 621.24.0AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)0e32bc188d69f5Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
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.713th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAMScene: 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 (
@Beanstalkon 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 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.99AMD Custom APU 0932, 16 GB RAM; 2: linux+amd+radv+igpu+handheldAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 12 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)0e32bc188d69f5Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
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.99AMD Custom APU 0932, 16 GB RAM; 2: linux+amd+radv+igpuAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMScene: 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 (
@Beanstalkon this PR runs it again)0e32bc188d69f5Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
The testers' hardware
windows+amdAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 7 7700 8-Core Processor, 32 GB RAMwindows+amdAMD Radeon RX 7900 XT, 2.0.416AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAMlinux+radvAMD Radeon RX 9070 (RADV GFX1201), 26.0.8AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAMlinux+radvAMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAMwindows+nvidiaNVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAMwindows+nvidiaNVIDIA GeForce RTX 3080 Ti, 621.24.0AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAMintelIntel(R) Arc(tm) A770 Graphics (DG2), 26.2.713th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAMsteamdeckAMD Custom GPU 0932 (RADV VANGOGH), 26.1.99AMD Custom APU 0932, 16 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 12 GB RAMigpuAMD Custom GPU 0932 (RADV VANGOGH), 26.1.99AMD Custom APU 0932, 16 GB RAMigpuAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAM@fix
88d69f50c42cef34814fBeanstalk test farm
Commit
2cef348· approved by nobody yet · dashboardA member of
BigBeanscan review this commit and comment@Beanstalkto test it.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
@fixchangedI changed this pull request: the new head is
2cef34814f. I rebased it ontomain(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)
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)
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:
2cef34814fagainst79d192c655: 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:
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.