Skip to content

wave64_emulate_opt: fold a region at most one lane of the wave runs (SHADER-W64-ONE-LANE-FOLD) - #2447

Merged
MoonEyes merged 4 commits into
ProjectLeonida:mainfrom
DadaCap:w64-one-lane-fold
Nov 27, 2026
Merged

MoonEyes merged 4 commits into
ProjectLeonida:mainfrom
DadaCap:w64-one-lane-fold

Conversation

@DadaCap

@DadaCap DadaCap commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as SHADER-W64-ONE-LANE-FOLD (jointly with @OreoFR): #1608 (comment) (narrowed from SHADER-W64-UNIFORM-EXECZ-BARRIER).

Depends on: none (#2102, which it was built on, is merged).

What and why

Under --wave64-emulate, a compute program that picks one thread for a tail (clear LDS, then after a barrier sum it up and store) does it with v_cmpx_eq_u32 c, v0 or v_cmp_eq_u32 m, c, v0 + s_and_saveexec_b64 _, m. Such an s_cbranch_execz region could not be folded: it has several stores, sometimes a loop, and v_readfirstlane_b32 inside, so it went through the emulated rounds. On one 1,024-thread library program this takes the round switch from 639 cases to 33 (spirv-val valid). A program it changes, lib_cs_00962, was the one active in 3 of 4 compute TDR timeouts @OreoFR saw on NVIDIA.

A region whose EXEC holds at most one lane of the workgroup can be folded: no other lane exists to order against, and a v_readfirstlane_b32 in it reads that lane's own value.

The rule

_one_lane_in (tools/wave64_emulate_opt.py) is a forward must-analysis that proves EXEC holds at most one lane, intersected at joins:

  • Seed: v_cmp(x)_eq_{i,u}32 <constant>, v0, only while v0 (LocalInvocationId.x) has not been written since entry, and only when no two lanes of a wave can share v0 (a one-row group, or rows of whole waves). Compares with modifiers or SDWA are excluded.
  • Kept through: s_mov/s_and/s_andn2_b64 of that mask, saveexecs and later compares.
  • Killed by: any write to that SGPR pair or VCC (a wave32-printed vcc_lo destination counts), any VGPR write to v0 (movrel, swaps, memory results), and any EXEC write that is not a recognised narrowing.
  • In a folded one-lane region: no x_order_barrier between its accesses, and v_readfirstlane_b32 copies the lane's own value when the region writes no EXEC. Scalar and VCC results of the region must already be dead at its end. The memory kinds it touches still go into x_dirty, so the next conflicting access after the fold still splits.
  • The constant lane may be in the upper half (32-63): masks are per-lane bits, and each invocation runs the fold behind its own %active.

The contract row is in docs/design.md.

Tested

  • tests/semantic/test_wave64_one_lane_fold.py (hand-written programs, 128 threads in two waves, no game data): the workgroup interpreter of test_wave64_emulate_opt.py, both invocation orders, compared with the plain round emulation; the constant picks a lane of wave 0, of wave 1, or none, through v_cmpx_eq_u32 and through v_cmp_eq_u32 + s_and_saveexec_b64. Negatives (a compare against another VGPR than the thread id, an overwritten v0, a compare that is not an equality, rows of 32 threads) must not take the one-lane path and must still match.
  • Whole translator suite, python -I scripts/run_semantic_tests.py tests/semantic: 501 files, 6,377 tests, 0 failed (351 s, 24 jobs, Windows 11).
  • Library corpus (2,684 listings, --no-asm --wave64-emulate, 8 shards, spirv-val on), main against this branch: 2,479 translated and spirv-val-valid both times, the same set; exactly 20 modules change, the other 2,459 are byte-identical.
  • Equivalence on the 20 library programs @OreoFR swapped (local CPU differential, not in the PR): all 20 translate and pass spirv-val on both; 36 one-lane folds in total. A lockstep interpreter run at each program's real workgroup size, comparing memory writes, image texels and LDS between main and this branch, found no divergence in any completed run; 16 of the 20 programs reached a fold (the rest rely on the static argument).
  • Retail measurements by others on the same library (thanks!):
  • python -I scripts/check_no_game_data.py on the changed files: clean.

GPUs tested: the measurements above (RTX 4070 Laptop, RTX 4080); my own runs on an RTX 5080 (621.24) used a library with this change. No GPU fixture is added: the rule is checked on the CPU interpreter against the round emulation.

AI-assisted: yes (Claude Code, Opus 5.5)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr

DadaCap and others added 3 commits November 26, 2026 00:53
…SHADER-W64-ONE-LANE-FOLD)

A forward must-analysis proves EXEC at most one lane after v_cmp(x)_eq_{i,u}32 <constant>, v0 (v0 the thread id,
not written since entry; the group one row of x or rows of whole waves) and through copies, ANDs and saveexecs of
that mask. Such an s_cbranch_execz region folds with several stores and in a cycle, orders no accesses inside, and
when it writes no EXEC its v_readfirstlane_b32 is the lane's own value. One 1024-thread library compute program:
639 -> 33 OpSwitch cases, spirv-val valid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwRYcpySx4P4ncQ3wD5
@OreoFR

OreoFR commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Retail test of this exact head (7ccbbd8): the 20 library modules this rule changes, swapped into an otherwise current pack. RTX 4070 Laptop 8 GB (profile M), NVIDIA 621.40, Windows 11, TdrDelay=60.

RUN onelane3 vs std3 | 2026-11-27 | OreoFR | AI-assisted: Claude Code (Claude Opus 5.5)
BASE:      main d1dff7949 + #2412 #2418 #2260 #2020 #2166 #1851 #2432 (+ #2440 in later runs) | shaders: current pack, library A = current, B = this PR
MACHINE:   RTX 4070 Laptop 8 GB | NVIDIA 621.40 | Windows 11 | 40 GB RAM
RECIPE:    DEVIATIONS: ASYNC_PIPELINES=1, VALUE_WAIT_TIMEOUT_MS=30000, MAP_READBACK=1, HOST_IMAGE_COPY=0, DEVICE_TYPE=6, SERIAL_BIG_COMPILES=0, PIPELINE_PREWARM_ORDER=1, LEONIDA_DEBUG_TIME_SHADER=lib_cs_00962 (local timer)
INSTRUMENTS: GPU timestamps around each dispatch of one program, memory probe; no Aftermath
TARGET:    lib_cs_00962 GPU time per dispatch
MEASURED:  A 1,412 ms mean / 1,754 max (12 dispatches) | B 212 ms mean / 231 max (9 dispatches)
END:       A time limit 900 s | B memory guard at 640 s
CACHES:    warm | RUN 1 of 1 each

Caveats:

  • The timing is n=1 per side.
  • The baseline run didn't lose the device either, so this run shows speed, not survival.
  • Every run had the other open PRs listed in BASE.

AI-assisted (Claude Code, Claude Opus 5.5).

@zmasi zmasi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows x64 / RTX 3090 GPU and semantic check of #2447 (7ccbbd876).

Environment: Windows 11 x64, NVIDIA GeForce RTX 3090 (driver 610.88, Vulkan 1.4.341, compute subgroup 32..32), VK_LAYER_KHRONOS_validation 1.4.363, llvm-mc 21.1.8, SPIRV-Tools 1.4.363.1.

Code & invariant check

  • Entry tid uniqueness (tools/rdna2spirv.py:18873): assemble() unconditionally initializes %vgpr[0] (v0) to LocalInvocationId.x (c = 0 in range(gen.cs["tid"] + 1)). With linear invocation index t = x + sx * y + sx * sy * z and 64-lane waves [64w, 64w + 63], sy * sz == 1 gives x = t, and sx % 64 == 0 keeps y, z, and x // 64 constant within each wave, so v0 is distinct across all 64 lanes of a wave in both cases (and can collide only when sy * sz > 1 and sx % 64 != 0, such as 32 x 4 x 1).
  • Forward must-analysis (_one_lane_step / _one_lane_in in tools/wave64_emulate_opt.py):
    • v_movrel/v_swaprel clear tid, v_swap kills both VGPR operands, and non-v_ VGPR-writing ops kill n + 1 registers so tfe destinations cannot leave v0 live in tid.
    • _TID_EQ rejects mods and _sdwa (which also excludes _dpp, as DPP ops carry modifier tokens and take VGPR sources), requires an integer immediate paired with a single-VGPR tid operand, and kills any tracked scalar pair when either half (3 << k) or VCC (1 << _BIT_VCC) may be written.
    • s_andn2_b64 and s_andn2_saveexec_b64 propagate single-lane status only from src0 (src0 & ~src1 / ssrc & ~exec), while s_and_b64 accepts either source.
  • Memory ordering & v_readfirstlane_b32 (tools/rdna2spirv.py:6139, 8106, 18945):
    • emit_folded_region still emits g.x_order_barrier() in uniform control flow before lbl_do when g.x_dirty conflicts with fd["mem_reads"] / fd["mem_writes"], and x_memory_order continues recording (kind, "r"/"w") in g.x_dirty inside the fold so subsequent wave accesses after lbl_end remain ordered.
    • v_readfirstlane_b32 is permitted only when one_lane_in[run] holds and no block in region writes EXEC (any(blk_info[u][3] for u in region) is false); because lbl_do executes only when %active is true, EXEC contains solely the executing lane throughout the fold, making self.dst(a[0], self.src_u(a[1])) exact for both SGPR and vcc_lo/vcc_hi destinations.

GPU verification on RTX 3090 (subgroup 32, VK_LAYER_KHRONOS_validation)

Adapted the 128-thread two-wave synthetic program from tests/semantic/test_wave64_one_lane_fold.py (3 LDS writes including two to one address, s_barrier, LDS readback, v_readfirstlane_b32 into s12 and vcc_lo, and two buffer stores to s[0:3] offset 0, plus lane 127's control store to offset 4) and ran all four cases through spirv-as, spirv-val --target-env vulkan1.2, and vk_compute_test <spv> 1 dump under VK_LAYER_KHRONOS_validation:

  • v_cmpx_eq_u32_e32 0, v0 (wave 0 lane 0, 2 one_lane folds): out[0..1] = 25, 134 — PASS (0 validation errors).
  • v_cmpx_eq_u32_e32 65, v0 (wave 1 lane 1, 2 one_lane folds): out[0..1] = 90, 134 — PASS (0 validation errors).
  • v_cmpx_eq_u32_e32 200, v0 (no active lane, 2 one_lane folds): out[0..1] = 0xeeeeeeee (untouched sentinel), 134 — PASS (0 validation errors).
  • v_cmp_eq_u32_e64 s[42:43], 3, v0 + s_and_saveexec_b64 s[44:45], s[42:43] (2 one_lane folds): out[0..1] = 28, 134 — PASS (0 validation errors).

Semantic suites, negative controls & SPIR-V size check

  • python -I tests/semantic/test_wave64_one_lane_fold.py -v: 3/3 OK.
  • python -I tests/semantic/test_wave64_emulate_opt.py: OK.
  • Negative control: dropping and (sy * sz == 1 or sx % 64 == 0) in tools/rdna2spirv.py makes test_not_one_lane_keeps_the_rounds (rows of 32 threads) fail immediately (FAILED (failures=1)), confirming the multi-row wave-sharing guard is pinned. Restored.
  • Assembled SPIR-V size: across two 1.32 MB emulated wave64 compute modules in a local build, assembled SPIR-V drops from 1,323,800 B to 850,816 B (-35.7%, 235 total OpSwitch cases) and 1,320,680 B to 847,712 B (-35.8%, 235 total OpSwitch cases), both spirv-val clean.
  • python -I scripts/check_no_game_data.py on all 4 changed files: clean.

No game data. AI-assisted.

@timbot103

Copy link
Copy Markdown
Contributor

Independently checked head 7ccbbd876 on Windows 11 Pro 26200, Vulkan SDK 1.4.363.0, WSL llvm-mc 21.1.8, across NVIDIA GeForce RTX 5080 (616.64) and AMD Radeon(TM) Graphics (25.10.30.02), no game files.

What passed:

  • Semantic suites (52/52 OK): test_wave64_one_lane_fold.py (3/3), test_wave64_emulate_opt.py (34/34), test_loop_ballot_barrier.py (15/15).
  • Dual-GPU run_gpu_tests.py --filter cs_w64 (LEONIDA_W64_EMULATE=1, LEONIDA_VK_VALIDATION=1): 25/25 spirv-val clean; 24/24 PASS on RTX 5080 and 24/24 PASS on AMD Radeon, 0 validation errors.
  • Dual-GPU valu_fuzz.py --family mem --wave 64 --emulate --programs 120 --seed 20261126: 120/120 match on RTX 5080 and 120/120 match on AMD Radeon.

Three soundness bugs reproduced live (spirv_mini_interp at 7ccbbd876 vs origin/main 50ce8f51a):

  1. A one-block self-loop inside a single-lane region loses its back-edge (tools/wave64_emulate_opt.py:1428-1443, 1457-1471; tools/rdna2spirv.py:18905-18911):

    • Cyclic stores are now admitted under singleton EXEC, but a single-block region gets no loop tree and its emitter stops at the branch.
    • Live repro: select lane 0 (v_cmpx_eq_u32_e32 vcc, 0, v0; s_cbranch_execz .join), then in one .loop: block increment v1 (init 10), store to mem[0], decrement s10 (init 2), s_cmp_lg_u32 s10, 0; s_cbranch_scc1 .loop:
      • origin/main (50ce8f51a): mem[0] = 12 (2 iterations)
      • PR #2447 (7ccbbd876): mem[0] = 11 (2nd iteration silently dropped)
    • Fix: reject single-block singleton regions with a self-edge, or emit their loop.
  2. A compare writing exec_lo certifies all 64 lanes as a singleton (tools/wave64_emulate_opt.py:1165-1169, 1176-1202; tools/rdna2spirv.py:6315-6319, 6944-6948, 8106-8109):

    • Starting from full 64-lane EXEC, v_cmp_eq_u32_e64 exec_lo, 0, v0 leaves lane 0 and lanes 32–63 active (the emitter preserves exec_hi), but the analysis marks all of EXEC as single-lane so a folded v_readfirstlane_b32 s14, v0 reads each upper lane's own v0 instead of 0.
    • Live repro (store s14 per lane):
      • origin/main (50ce8f51a): lane0=0, lane1=0xee, lane32=0, lane33=0
      • PR #2447 (7ccbbd876): lane0=0, lane1=0xee, lane32=32, lane33=33
    • Fix: only record whole-EXEC singleton when the untouched half is also proven empty (or the compare writes full 64-bit exec).
  3. Implicit VCC carry writes leave stale singleton VCC facts (tools/wave64_emulate_opt.py:528-534, 1165-1169, 1189-1191; tools/rdna2spirv.py:10376-10383, 10421-10426):

    • After v_cmp_eq_u32_e32 vcc, 0, v0, the accepted shorthand v_add_co_ci_u32 v3, v1, v2 (v1=0xffffffff, v2=1) implicitly updates VCC for every carrying lane in the emitter, while the analysis only tracks the VGPR destination; a subsequent s_and_saveexec_b64 then misclassifies full EXEC as single-lane. (Specific to the accepted shorthand; canonical LLVM disassembly prints explicit VCC operands.)
    • Live repro (v_readfirstlane_b32 s14, v0 stored per lane):
      • origin/main (50ce8f51a): lane0=0, lane1=0, lane32=0
      • PR #2447 (7ccbbd876): lane0=0, lane1=1, lane32=32
    • Fix: model implicit VCC writes for shorthand carry ops (or invalidate VCC facts on those forms).

Adding these three cases (plus a positive selector from lanes 32–63, e.g. lane 65 in a 2-wave workgroup) to test_wave64_one_lane_fold.py would make the fold airtight. AI-assisted.

@DadaCap

DadaCap commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@timbot103 thank you, these are real gaps in the analysis, and the repros make them easy to pin. I'm fixing all three in the rule itself (a self-edge region is rejected or gets its loop, a compare that writes only exec_lo/exec_hi no longer certifies the whole EXEC unless the other half is proven empty, and the shorthand carry ops invalidate VCC facts), with your three cases plus a positive selector in lanes 32-63 added to test_wave64_one_lane_fold.py. I'll also report how many corpus modules each fix changes, so it is clear whether @OreoFR's and @quartz-heron-58's retail numbers still apply to the same 20 modules. @zmasi thanks for the GPU and invariant check. AI-assisted (Claude Code).

…mplicit carry VCC

Three soundness gaps the review reproduced against the round emulation:

- A region that is one block branching back to itself was emitted straight,
  so it ran once. It now gets a sub-CFG like a multi-block region and is
  emitted as a loop through cfg_structure.structure. This also covers the
  read-only self-loop that was already folded before the one-lane rule.
- A write of one half of EXEC (v_cmp_eq_u32_e64 exec_lo, 0, v0) marked EXEC
  at most one lane, though the emitter keeps the other half's lanes. A half
  write now keeps the fact only when EXEC already had it and the half
  written is within it (a compare).
- The short form v_add_co_ci_u32 vD, src0, src1 (also sub, subrev) wrote VCC
  only in the emitter. explicit_carry_vcc now gives it its VCC carry-out and
  carry-in operands when the listing is read, so every analysis sees the
  write, and the emitter's special case is removed.

tests/semantic/test_wave64_one_lane_fold.py adds each case (8 subtests fail
before) and picks in lanes 32-63 of both waves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr

@MSedgeMC MSedgeMC left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified on the PR branch: python3 -I scripts/run_semantic_tests.py tests/semantic -p test_wave64_one_lane_fold.py -> 1 file, 3 tests, 0 files failed (3 s, 6 jobs). Not approving yet: the branch is 596 commits behind current main, so a rebase is needed before the final diff can be reviewed.

@DadaCap

DadaCap commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@timbot103 all three are fixed in a78040b, each with a test that fails on 7ccbbd8 and passes now:

  1. Single-block self-loop. A region of one block that branches back to itself now goes through cfg_structure.structure like a multi-block region, so the emitter keeps the back-edge as an OpLoopMerge loop. Before, the back-edge was dropped. That was already true on main for a read-only one-block loop, which ran once. Test: self-loop with and without a store, selector lane 0, 40 and 100. Before: a lane got 11 instead of 12, in 6 cases.
  2. Compare into exec_lo / exec_hi. A half write of EXEC keeps "at most one lane" only if EXEC already was at most one lane and the value written is a compare, which is 0 in inactive lanes. A thread-id compare into one half no longer certifies the other half. Test: lane 40 read its own value (32) where 0 was expected; it now matches the round emulation.
  3. Short-form carry ops. v_{add,sub,subrev}_co_ci_u32 vD, src0, src1 is now rewritten where the listing is read (explicit_carry_vcc in tools/rdna2spirv.py, before widen_wave64_masks) into the explicit form with VCC as carry-out and carry-in. The emitter's special case is gone, and every analysis sees the VCC write, not only this one. I checked the other implicit-VCC writers the translator accepts; this short form was the only one not modelled. Test: lane 1 read 1 instead of 0 with the short form; the explicit form already passed.

docs/design.md's row for SHADER-W64-ONE-LANE-FOLD now states the three rules.

Tested:

  • test_wave64_one_lane_fold.py: 6/6 pass (8 subtests failed on 7ccbbd8). The upper-half selectors and the self-loop with a store still fold as one lane and match.
  • Whole translator suite (python -I scripts/run_semantic_tests.py tests/semantic): 501 files, 6,380 tests, 0 failed (Windows 11).
  • Library corpus (--no-asm --wave64-emulate, spirv-val on): 2,479 translated and valid on main, on 7ccbbd8 and on a78040b. a78040b against 7ccbbd8: 0 modules differ. None of the corpus programs hits the three cases, so the modules @OreoFR and @quartz-heron-58 measured on retail are byte-identical to what this head produces.
  • Merges cleanly with current main. check_no_game_data.py on the changed files: clean.
  • Not GPU-tested: checked on the CPU interpreter against the round emulation, and with spirv-val.

Found on the way, not changed here: in wave64 the emitter treats v_cmp ... exec_lo as a half write but vcc_lo as a full write of the pair. The analysis matches the emitter; whether the hardware writes the whole EXEC pair for the first form is not checked.

This comment was AI-assisted (Claude Code, Opus 5.5).

@Tauwni

Tauwni commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Retested the new head a78040bb1 (with the three self-loop fixes), merged onto main ec91d695c, on a Mac, where wave64 is always emulated: Apple M3, macOS 26.5.1. No game files.

Driver main main + this PR
MoltenVK 1.4.2 196/269 196/269
MoltenVK, LEONIDA_W64_EMULATE=1 230/269 230/269
KosmicKrisp (Mesa 26.3.1) 191/269 191/269
llvmpipe 177/269 177/269

The failures are the same on both sides. Translator suite: 503 files, 6393 tests, 0 failed. MEASURED, 1 run each. This says nothing about the game.

AI-assisted (Claude Code, Claude Opus 5.5).

@kawaii-shakal

Copy link
Copy Markdown
Contributor

CPU review on Linux, head a78040b merged with main c0201a8:

AI-assisted (Claude Code); I ran the tests and checked the results.


Generated by Claude Code

@OreoFR

OreoFR commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Merge test on an 8 GB laptop (profile M): game runs and this PR's own tests. A second agent on the same machine recomputed the numbers from the raw logs. AI-assisted (Claude Code, Claude Opus 5.5).

RUN onelane3 / std3 | 2026-11-27 | OreoFR | AI-assisted: Claude Code (Claude Opus 5.5)
BASE:        main of that morning + our then-open PRs + a GPU timer build | shaders: library translated with this PR at 7ccbbd876 vs the original library
MACHINE:     RTX 4070 Laptop 8 GB, laptop (profile M) | NVIDIA 621.40 | Windows 11 | 40 GB
RECIPE:      documented + DEVIATIONS: ASYNC_PIPELINES=1 VALUE_WAIT_TIMEOUT_MS=30000 MAP_READBACK=1 DEVICE_TYPE=6 ARENA_MB=4095 DEVICE_FAULT=1
TARGET:      GPU time per dispatch of the library program this PR folds most | PREDICTED: lower with the PR
MEASURED:    212 ms mean (9 dispatches, max 231) with the PR | 1412 ms mean (12 dispatches, max 1754) without | world reached in both, 0 device lost
CACHES:      warm | RUN 1 of 1 each
VERDICT:     held: x6.7 on that program

RUN lib0 / regA | main ec91d695c, no timer | same build, recipe, caches and input script; only the library pack differs (without / with this PR at 7ccbbd876)
MEASURED:    world entry 223 s in both | the known display stop right after world entry in both | 0 device lost, 0 exceptions in both | gpu-stall lines 9 / 10
VERDICT:     no in-game regression seen (n=1 each); the stop hides any frame-rate effect
  • This PR's tests at the current head a78040b, Windows 11: python -m unittest discover -s tests/semantic -p test_wave64_one_lane_fold.py: 6/6 OK.
  • The game runs used a pack translated with 7ccbbd8, not the current head a78040b (later fixes). The new head has not been run in game here.
  • An earlier one-lane version (night of the 26th) crashed early in 2 of 3 runs (0 of 2 with the original library). The 7ccbbd8 pack has not crashed in any of the 15 runs made with it since (0 device lost, 0 exceptions).

@DadaCap

DadaCap commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Full-corpus check of the review fixes, asked by @MoonEyes before merging: whole shaders/dxbc corpus (wave32 and wave64, not only the library), --no-asm --wave64-emulate, spirv-val on, 7ccbbd8 (the head OreoFR ran in the game) against a78040b (this head).

  • 26,503 modules translated and valid on both heads.
  • 0 modules differ (byte comparison of every .spv), and none is only on one side. MEASURED.

So the game runs on 7ccbbd8 (OreoFR's, and quartz-heron-58's on the library) also cover this head: the three fixes change no module the game uses. They only matter for programs the corpus does not contain.

Windows 11, Vulkan SDK 1.4.363.1, 8 shards. This comment was AI-assisted (Claude Code, Opus 5.5).

@MoonEyes

Copy link
Copy Markdown
Collaborator

Merge-tested a78040b + main 43a9d56 (clean; also merges cleanly onto current main, including #2435 merged just before): test_wave64_one_lane_fold.py 6/6, 14 fail with the code reverted to main; full pytest + semantic suites show no new failure vs main; check_no_game_data clean. CPU-only tests on Windows 11 / Ryzen 5 3600. In game: OreoFR's runs on an RTX 4070 Laptop 8 GB at 7ccbbd8 (#2447 (comment)), which carry over to this head: 0 modules differ in the full corpus (#2447 (comment)), spot-checked here on two library programs. The short-form carry fix overlaps #2357; whichever lands second should drop the duplicate.

AI-assisted (Claude Code, Claude Opus 5.5)

@MoonEyes
MoonEyes merged commit 587bb6f into ProjectLeonida:main Nov 27, 2026
6 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants