Recompiler: a per-lane form for the direct DXIL backend (XCL_PER_LANE) #1745
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1745
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1745/head"
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?
@gefydev on GitHub · 2026-11-24 20:09 UTC · original
gefydev:direct-on-1426→main· +7596 −136 · 14 files · 51 commits · merged 2026-11-24 21:10 UTCA per-lane form for the direct DXIL backend (#1426): where a lane-mask analysis proves EXEC, console code is lowered without EXEC guards. Each lane carries its own bit of every mask, mask branches become per-lane branches, and guards stay only where EXEC is not proven. Instructions it has no lowering of go through #1426's
Lw::inst_guardedwith the analysis's guard. It is opt-in: withXCL_DIRECT_DXIL=1 XCL_PER_LANE=1, a compute program tries the per-lane form, then #1426's per-instruction form, then the HLSL path. WithoutXCL_PER_LANEnothing changes. Part of #1269.It is one PR at the maintainer's request: the size rule is waived for this feature (asked of the maintainer by @gefydev; the plan is on #1269, the waiver itself was not posted on GitHub). About 2 600 of the 7 460 added lines are tests.
Result so far, for the maintainer to judge. Whole-pack sweep of a retail title (
xcl shaders --direct --lanes --sample 0 --max-bytes 0 --split 0 --windows 4 --timeout 120): the per-lane form translates 316 of 2 689 compute programs (with the stricter rules from the reviews below; 321 before). On those, its DXIL is 4 020 436 B against 3 988 440 B for #1426's per-instruction form (+0.8 %): no size gain. After bmjask's cleanups, #1426 emits few guards on these programs. Measurements on #1269 point the same way: removing every EXEC select takes about 9 % off driver time on one RTX 3080 program, against 85 % for the window switch, which #1693 now addresses. The large programs, where a gain would matter, are still refused. The main refusals are structural: a branch on whether any lane of a mask is set, with lanes in EXEC that lack the bit (the first refusal of 1 771 programs; the console decides those for the whole wave), and stale values (154). Driver time, measured by Raghav314 on an RTX 4090 (#1269), on the 310 programs that build in all four forms: per-lane 10.0 s, #1426 per-instruction 10.5 s, HLSL 14.1 s driver + 21.9 s DXC, and HLSL with heap windows 10.8 s + 17.2 s. Per-lane against #1426 is a median ratio of 0.98, so again no real gain on what it covers. So this PR is the infrastructure plus measurements. It does not deliver a speedup today.What is in it (51 commits; authors kept)
gpu/recomp/lane_masks.rs: the lane-mask analysis (BDD over lane / SCC / opaque atoms, worklist dataflow, loop heads, irreducible flow refused). The launch EXEC can be an atom for VS / PS (teidenzero).gpu/recomp/ssa.rs: on-the-fly SSA (Braun et al.), with a number view and a lane-bit view per SGPR.gpu/recomp/lower.rs,lower/wave.rs: the lowering behind anIrtrait, with a CPU interpreter for tests. It covers SALU / VALU / memory, mask ops,s_cselect/s_wqm/v_cmpx, far jumps, and cross-lane ops (Sr-0w). It refuses stale values written where some lanes are elsewhere. Also guard coalescing (MiguelMachado-dev) and VS / PS stages (teidenzero). The bridge to #1426 refuses an instruction when #1426 would read a register it was not passed.gpu/recomp/lower_dxil.rs: theIron #1426'sLw. It handles head / tail blocks, so #1426 can make blocks inside an instruction, plus several and heap memory windows, the split wave64 form (upipibi) and batched trivial-phi replacement (Itsmetibo).gpu/dxil/kernel.rs:Lw::new/Lw::finishout of the kernel translator, with no change to #1426's output (Sr-0w).gpu/recomp/pso.rs: the runtime hookup behindXCL_PER_LANE=1, with its own translated-cache identity.gpu/recomp/dxil/assemble.rs: IR text to a signed container, as a test oracle (Sr-0w).shaders.rs:xcl shaders --direct --lanes(coverage and size against #1426), plus the per-lane refusal survey (Kalmarv).s0in the mask-pair check (nobodyttk);WaveSize(64)(MiguelMachado-dev);Lw's lanes (vladbondarenko97);v_cvt_f16_f32,v_mul_f16,v_pk_mul_f16round toward zero) stay on the fallback (DIFFERS_ON_1426); itsSio is fixing them onmain.Tested
cargo test --workspace -- --test-threads=4on the head (bfb8133, onmain4178e88): 955 passed, 0 failed, 42 ignored. WithXCL_ADAPTER=warp(the CI adapter, no sized waves) the lib gives 876 passed, 0 failed, 22 ignored: the per-lane GPU tests skip there.V_CVT_F16_F32,V_MUL_F16,V_PK_MUL_F16, see above).d5fd85d, before the rebase ontomainand the last four commits): numbers as in the result paragraph; 577 s.Regression run
main:This PR's head:
Both with
XCL_PER_LANEoff (the default), so they check that nothing changes. The machine was short of memory: runs of earlier head builds gave 508 to 931 frames, so the frame counts vary a lot run to run here.Not tested
XCL_PER_LANE=1; the regression runs below are with it off, the default.AI use
Assisted-by: Antigravity (Gemini 4 Neon); the other helpers name their tools on #1269.`s_load_dword{,x2,x4,x8,x16}` and `global_` / `flat_` `load` / `store_dword {,x2,x3,x4}` on the flat memory, with the addressing of the HLSL path's single-window form. A guarded load runs in every lane and keeps the old register where the lane's EXEC bit is clear (a raw buffer read out of range is 0, so an inactive lane's address can't fault). A guarded store gets a block of its own that only the lanes with their bit enter, and the rest of the console block continues after it; the blocks are reserved before the SSA form is built, so the predecessor lists stay exact. The CPU interpreter in the tests gets the memory too, and the comparison with the HLSL path on the GPU now also checks the memory after the run: a program with an SMEM load, a per-lane load, a guarded store and an unguarded one agrees word for word (GTX 1650, wave32).@Raghav314 on GitHub · 2026-11-24 20:26 UTC · original
DXC and cold driver times for the per-lane form against #1426 and the HLSL path, NVIDIA Windows (as asked on #1269, comment). Counts and timings only.
Setup: RTX 4090 24 GB, driver 617.14, Windows 11, DXC 1.8.2502.11, release.
direct-on-14263ca3633+ @Itsmetibo's4c3fe1e(now1c9477ahere), retail 1.0.2.1 pack, split wave64, 4 windows, as the runtime does on a 32-lane GPU. Each pipeline made one at a time, no concurrency, no XCL cache, the driver's shader cache off for the process (ID3D12Device9::ShaderCacheControl(IMPLICIT_DRIVER_MANAGED, DISABLE)). Two full runs agree within 1 %.Programs: the per-lane form takes 311 of 2 689 compute programs in the split form. 310 built in all four forms, 0 failures (first row dropped as driver warm-up). Median 212 B of console code, largest 2.6 KB.
Harness:
Raghav314/xclshaders/time-forms, one commitc17ed53on this PR's headcf29f8a(shaders.rs+155,pso.rs+6):xcl shaders <pack> --time-forms [--split 1] [--windows 4] [--timeout 120] [--limit N] [--warm] [--out file.csv]. One CSV row per program, record index only. Needs Windows developer mode for the cache switch;--warmskips it. Re-checked onc17ed53: builds, and--limit 3gives cold times (9–41 ms) against 0.5–2 ms with--warm.AI use: Claude Code (Claude Opus 5.5) wrote the harness, ran the measurements and drafted this.
@Kalmarv on GitHub · 2026-11-24 20:28 UTC · original
@gefydev: the stale-value work is ready as a follow-up on this PR's head, not for #1745 itself. It is four commits on 43cb32c in Kalmarv/xcl
per-lane-stale(head f5bfab2e):note_instmissed VOPC / VOP2 writes of VCC, which have no field, so a refusedv_cmp_*_f32left an older VCC that later showed up as a stale value.Summaryexports the dominators and the loop bodies. Same-block reads stay withdef_owner/use_owner.Module::optimizekeeps wave ops. A value written in two such blocks is refused by its own name.ran && bit. A mask a scalar instruction wrote is refused by its own name.Recount:
xcl shaders <pack> --direct --lanes --sample 0 --max-bytes 0 --split 0 --windows 4, the first refusal of each of 2689 compute programs, no timeouts in any run:The stale rule takes 114 more programs (321 to 435). Case A takes none in this sweep; it only renames 11 of the 151. Whatever the remaining stale values hit, it is not the single-write join that case A repairs. I'm classifying the 140 next (loops that lanes leave one by one, reads inside a region, or joins it skips) to decide what comes next. In a 60 s game run on 43cb32c, the stale value was the top fallback reason too: 17 of 73.
Tested on an RTX 5070 Ti (wave32 only) under Windows 11, release builds:
lower,lane_masks,lower_dxil), run by exact name: 43 passed at f5bfab2e, 42 at 595dd348. The new tests fail with the join repair switched off.SKIPPED ... no wave64(one of them only in part), and six skip only the validation step (DXC 1.7 < 1.8), so the split-form runs still happen.The quadratic
replace_all_usesis Itsmetibo's 4c3fe1e (1c9477a here); we dropped our own fix for it.Not tested: the whole workspace suite, AMD, native wave64, a game run with these commits.
AI use: Claude Code (Claude Opus 5.5) wrote the commits, ran the tests and the recount, and wrote this note.
@gefydev on GitHub · 2026-11-24 20:30 UTC · original
A fact about the follow-up, not a change to this PR. @Kalmarv has the stale-value work ready as a follow-up on top of this PR's head: four commits on
43cb32c, branchKalmarv/xclper-lane-stale(headf5bfab2e). In his recount (xcl shaders <pack> --direct --lanes --sample 0 --max-bytes 0 --split 0 --windows 4, the first refusal of each of the 2 689 compute programs), the dominance rule for stale values (a write that dominates its read, with every loop containing the write also containing the read) takes the per-lane form from 321 to 435 programs; the repair of a value written in a region some lanes skip (case A) takes none more in that sweep. It is not part of #1745 and would go on top of it, or as a stacked PR, as the maintainer prefers. Thank you, Kalmarv.AI use: Claude Code (Claude Opus 5.5) wrote this comment for @gefydev.
@FIJI1299 on GitHub · 2026-11-24 20:31 UTC · original
Test report on NVIDIA GeForce RTX 5070 (12 GB)
43cb32c)621.35), 32 GB DDR5 6000MT/s26300),rustc 1.100.0 (0ef1bc386 2026-11-09), Windows SDK10.0.26100.0(debug build).\scripts\test.ps1(cargo test --workspace -- --test-threads=4)xcl --lib:876 passed; 0 failed; 22 ignored(14.29s)8 passed; 0 failed; 12 ignored(1 + 1 + 6)884 passed; 0 failed; 34 ignored7 (no wave64)1 (no heap windows)1 (f32 rounding, wave64: no wave64)1 (integer arithmetic, wave64: no wave64)1 (f64, wave64: no wave64)1 (integer carries, wave64: no wave64)1 (f32 three-source, wave64: no wave64)1 (f32 transcendentals, wave64: no wave64)1 (f32 conversions, wave64: no wave64)1 (f16 arithmetic, wave64: no wave64)1 (f16 packed, wave64: no wave64)1 (f32 compares, wave64: no wave64)1 (f32 arithmetic, wave64: no wave64)1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)))1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)))1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)))smoke.ps1), release build, AMD / native wave64 GPUs.@HKEY-Funk-Machine on GitHub · 2026-11-24 20:31 UTC · original
@gefydev native wave64 and title results on AMD RDNA4 for
43cb32c: the suite passes, including every wave64 half. In the title, the per-lane form took 90 of 300 compute programs with no failures, but they are all small, and there is no size or driver-time gain on them. That's the same as your pack numbers, now measured in the AMD driver.Tested
43cb32c:cargo test --release --workspace --no-fail-fast -- --test-threads=4: 925 passed, 0 failed, 42 ignored.gpu::dxil+recomp::lower: 125 passed, 0 failed, 1 ignored. Nono wave64skips:f32_programs_on_the_gpu(wave32 and wave64),the_split_form_agrees_with_the_wave64_lowering_on_the_gpuandthe_runtime_path_takes_the_split_formran and passed. SKIPPED:f16_programs_on_the_gpu×4 (V_MUL_F16/V_PK_MUL_F16refused),f32_programs_on_the_gpu×2 (V_CVT_F16_F32refused),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).cf29f8a(test-only on top):gpu::dxil+recomp::loweragain 125 passed, 0 failed, 1 ignored, the same 6 SKIPPED. The new 32-lane skip doesn't trigger on this card. The title runs below are on43cb32c;cf29f8achanges only tests.Title A/B (retail title;
43cb32c+ #751, plus two local-only changes: skipInitializeApiImplEx2inxgameruntime/api.rs, which hangs here, and a log line before and after each computeCreateComputePipelineState):XCL_DIRECT_DXIL=1. B:XCL_DIRECT_DXIL=1 XCL_PER_LANE=1. Both withXCL_TRANSLATED_CACHE=0 XCL_PSO_DISK_CACHE=0 XCL_NETWORK=0, and each run'sxcl.execopied under a new name, so the AMD driver's cache was cold for both. A pressed on the title screen.cs 56c0cd3b82a00c6e(ActivateProbes, 15 042 740 B of per-instruction DXIL, refused by the per-lane form) had been in the driver for over a minute with process memory past 90 GB. In earlier runs on this card it ran out of memory at ~105 GB (#1426).0x8007000E, crashTop per-lane refusals in B (count of programs): "a value written while some lanes were elsewhere, read after they met again" 55,
IMAGE_LOAD(reads a register the per-lane form did not pass) 31,IMAGE_SAMPLE_LZ19, "a mask read as a number where some lanes are elsewhere" 12,IMAGE_STORE11,DS_ADD_U3210,BUFFER_ATOMIC_ADD8,IMAGE_LOAD_MIP6.So on this card the per-lane form is correct on what it takes, and neutral on cost. The programs the world load waits on (
ActivateProbesand the other ~1 MB+ programs) all stay on the per-instruction form, mostly for the stale-value refusal and the image / LDS register plumbing.Not tested
ActivateProbes(it runs out of memory on the direct path here), more than one run per form, heap windows (XCL_HEAP_WINDOWS=1), split wave64 in the title, and output correctness beyond "no failure" (no frame comparison).AI use: Claude Code (Claude Opus 5.5) ran the tests and the two runs, matched the programs with a script and wrote this comment.
@gefydev on GitHub · 2026-11-24 20:32 UTC · original
Thank you both for the test reports on this PR.
43cb32con an RTX 5070 gives 876 passed, 0 failed in the lib, with the wave64 halves and the three per-lane refusals reported as SKIPPED. That is a clean second NVIDIA card.no wave64skips) and the title A/B are the first AMD driver-side measurement of the per-lane form. On the 90 of 300 programs the per-lane form takes, it is correct and neutral on cost (DXIL +0.4 %, driver time +4.7 %, within the noise you measured), and the programs the world load waits on stay on #1426's form. That agrees with the numbers in the description.AI use: Claude Code (Claude Opus 5.5) wrote this comment for @gefydev.
@teidenzero on GitHub · 2026-11-24 20:34 UTC · original
Test report for
cf29f8aon Windows 10 (where SM 6.6 comes from the Agility SDK), NVIDIA RTX 4090.Tested
stable-x86_64-pc-windows-msvc, debug; DXC 1.8.2502.11 from the Windows SDK 10.0.26100.0, withoutdxil.dll..\scripts\test.ps1atcf29f8a: 925 passed, 0 failed, 42 ignored over the workspace (lib: 876 passed, 0 failed, 22 ignored), the same totals as the GTX 1650 run in the description.V_CVT_F16_F32,V_MUL_F16,V_PK_MUL_F16).Not tested
XCL_PER_LANEoff or on).The VS / PS adapter half, which the description lists as missing:
43d5851from #1269 applies ontocf29f8a(one trivial conflict: the newreplacedfield next to itsgraphicsfield) asteidenzero/xclvsps-dxil-on-174513dd18b. There the workspace gives 926 passed, 0 failed, 42 ignored on this machine, the one more being its draw test, which passes. It waits for the maintainer's call on this PR, as you said.AI use: Claude Code (Claude Opus 5.5) ran the tests, rebased the commit and drafted this report.
@gefydev on GitHub · 2026-11-24 20:34 UTC · original
@teidenzero thank you: the report on
cf29f8a(925 passed, 0 failed, 42 ignored on an RTX 4090 under Windows 10 with the Agility SDK, with the split wave64 tests running for real) is the same total as the description's. Your VS / PS adapter half rebased on the head (teidenzero/xclvsps-dxil-on-1745,13dd18b, 926 passed) is noted: it waits for the maintainer's call on this PR, as you say.AI use: Claude Code (Claude Opus 5.5) wrote this comment for @gefydev.
@oni-swr on GitHub · 2026-11-24 20:38 UTC · original
Test report for #1745 on native wave64 (AMD RDNA3). The second part is with #1742 merged in, to check that the
DIFFERS_ON_1426f16 entries can go.Tested
43cb32c, as is:cargo test --workspace -- --test-threads=4 --nocapturegives 925 passed, 0 failed, 42 ignored. 7 tests SKIPPED: the 6 per-lane refusalsV_MUL_F16/V_PK_MUL_F16/V_CVT_F16_F32(f16_programs_on_the_gpuf16 arithmetic and f16 packed,f32_programs_on_the_gpuf32 conversions, each in wave32 and wave64), plusheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows). Everything else inrecomp::lower/lower_dxil/lane_maskspasses in native wave64.43cb32cmerged with #174235355a2(no conflicts), andDIFFERS_ON_1426emptied (local edit inrecomp/lower.rs, not pushed):cargo test -p xcl --lib recomp::lower -- --test-threads=1: 44 passed, 0 failed, 0 ignored, no SKIPPED.f16_programs_on_the_gpu(f16 arithmetic, f16 packed) andf32_programs_on_the_gpu(f32 conversions) now run per lane in wave32 and native wave64, and agree with the HLSL path.cargo test --workspace -- --test-threads=4 --nocapture: 938 passed, 0 failed, 42 ignored. The extra tests come frommain85e3826, which #1742 is based on. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows) andpso_measurement_compiles_an_exact_synthetic_record(Developer Mode off).Not tested
XCL_PER_LANE) here. No release build. Nothing on NVIDIA or Intel.AI use: Claude Code (Claude Opus 5.5) ran these tests on @oni-swr's machine and wrote this report.
@gefydev on GitHub · 2026-11-24 20:40 UTC · original
43cb32cmerged with #1742 andDIFFERS_ON_1426emptied, withrecomp::lowerat 44 passed and no SKIPPED, and the workspace at 938 passed, 0 failed, is the evidence that the three f16 entries can go. The removal waits for #1742 to land inmain.AI use: Claude Code (Claude Opus 5.5) wrote this comment for @gefydev.
@Pipodi on GitHub · 2026-11-24 20:53 UTC · original
Review of #1745 at
0570037: static, nothing built or run. I read the diff againstmain6c89285in three parts: the lane-mask analysis and SSA, the lowering, and the DXIL adapter and runtime wiring. Nothing below was run: each correctness point comes with the program that would show it, compared with the HLSL path (EXEC emulated). They all needXCL_DIRECT_DXIL=1 XCL_PER_LANE=1, except where I say otherwise.0570037answers @Kalmarv's points 1 and 2, and I leave out his point 3. Line numbers are at0570037.Correctness of the per-lane form
0570037. I read the commit:uniform_overrefuses a lane branch, or ans_cselect/s_cmov/s_addc/s_subbof a mask op's SCC, unless the condition is the same in every lane in EXEC. That is the rule I would have suggested.lane), so point 2's case still gets through it.lane_masks.rs:528-549); otherwise SCC is anAtom::Sccwithlane = false(lane_masks.rs:574-578).reads_mask,lower.rs:545andlower.rs:566), and writes SCC per lane;condthen branches on it lane by lane (lower.rs:963).v_cmp … vcc; s_and_b64 s[4:5], vcc, s[8:9](s8:9 is user data), thens_cbranch_scc0 J; s_mov_b32 s6, 1; J: v_mov_b32 v3, s6.lane = false, so neither0570037'suniform_overcheck norpartial_blocks(lower.rs:1063) sees the branch.s_barrierrefusals don't run, and the lanes that skipped read their old s6.v_cmpx_*can turn on lanes that had EXEC off.lower.rs:1647passesguard = truefor every cmpx. #1426'swrite_maskbuildsact() & cond, andact()returns that guard (dxil/lower.rs:773,dxil/lower.rs:849-851).cond, notcond & EXEC. The native integer path is right (lower.rs:791-794).v_cmp_gt_u32 vcc, 16, v0; s_and_saveexec_b32 s0, vcc(no execz), thenv_cmpx_le_f32 0, v1; v_mov_b32 v2, 7; s_or_b32 exec, exec, s0. Lanes 16 and up get v2 = 7.per-lane-stalefollow-up reworks this rule; from its description, same-block reads "stay withdef_owner/use_owner", so the loop case below would still be taken there. I haven't read that branch.def_owner[b] != use_owner[c],lower.rs:1004), so a scalar written and read in the same partial block on different loop iterations is accepted.s1 = 0; s3 = 0; L: v_cmp_eq_u32 vcc, s3, v0; s_and_saveexec s2, vcc; s_cbranch_execz J; s_add_u32 s1, s1, 1; v_mov v1, s1; J: s_or exec, exec, s2; s_add s3, s3, 1; s_cmp_lt_u32 s3, 4; s_cbranch_scc1 L.own(lower.rs:370-380) copies only values already indef_block, and a phi never is one.stalefollows the phi's operands, not the phi.s_and_saveexec; s_cbranch_execz J; s_mov_b32 s6, s5; J: s_or exec; v_mov v1, s6.a_mask_left_behind_by_lanes_that_skipped_its_writecopies an older mask from before the split, so it doesn't cover this.s_bcnt0/1of a mask. It writes SCC throughssa.write(wave.rs:464), notwrite_scc/own, sostalenever sees it. Example:s_bcnt1_i32_b64 s2, execin an execz arm, thens_cbranch_scc0after the join.lower.rs:1648) has noall_lanes-style check for instructions that #1426 lowers with an exchange between the halves.v_cmp*andv_add_co_*whose mask is read as a whole goes throughwrite_mask→ballot→exchange_n→meet(), a group barrier (dxil/lanes.rs:221-256).Partner::Present), the other hardware wave never reaches that barrier: a hang, or barriers paired with the wrong partner.wave.rs:53,wave.rs:122).lower.rs:1259-1270andlower.rs:1502-1512send those lanes straight to the exit, and lane 0 stores every SGPR.0xFFFFFFFE,s_mov_b32 s0, 5leavesres[0]at its input value.lower.rs:1268), wheres_notors_orn2of a v_cmp mask leaves those lanes at 1 on the console.lanes_outside_exec_at_launch_keep_their_registerskeeps lane 0 active.s_or_saveexec_b64 s, -1ands_mov_b64 exec, -1(whole-wave mode) inside a block some lanes don't reach give EXEC = TRUE (lane_masks.rs:464-467,lane_masks.rs:519-526). On the console that turns on the lanes that branched away, and here they are elsewhere. What's left after the cross-lane refusals is a write in that region read by those lanes after the join. I haven't checked whether real code does that.Runtime and caching
xcl shaders --recompchanges with no flag.RecompAgg::add(shaders.rs:445-503) now runslower_dxil::compute_code,survey_compute_code, a secondtranslate_compute/translate_meshandlane_masks::analyze_codeon every program, without--lanes.compute_with's 256 MB stack and panic catch. A panic in the new code would hith.join().unwrap()(shaders.rs:767) and end the sweep.lower.rs,lower/wave.rs,lower_dxil.rs,lane_masks.rsandssa.rsare not inTRANSLATOR_SOURCES(build.rs).TRANSLATOR_VERSIONcoversgpu/dxilonly, and the per-lane identity isidentity_for(id, "xcl-per-lane")(pso.rs:245).XCL_PER_LANE=1users, unless someone bumps a version by hand.Tests
programs_on_the_gpu(lower_dxil.rs:600-606) turns anyErrfrom the per-lane form intoskip_test, not only the programs inDIFFERS_ON_1426. A change that makes the form refuse the f32/f64/int/f16 programs still passes. An allow-list of the expected refusals would keep the assertion._B32paths;*_WREXEC,v_cmpx, VOP3 sdst = EXEC, or separateexec_lo/exec_hiwrites;step_bounded/cond_boundedfallbacks.Interphas noforeign, so bridged instructions are only covered by GPU runs.CONTRIBUTING
cf29f8asays every per-lane GPU test failed on WARP (the CI adapter) before it, so the commits before it don't each pass CI.DxilIr.Assisted-by: Antigravity (Gemini 4 Neon), which the AI use section doesn't name.XCL_PER_LANEoff and, from the description, withoutXCL_DIRECT_DXIL, so they don't exercise thekernel.rsrefactor (Lw::new/Lw::finish) underXCL_DIRECT_DXIL=1. Reading it, I think it emits the same DXIL. A byte diff ofxcl shaders --direct --dumpon6c89285and oncf29f8awould show it, and Not tested could say it wasn't run.XCL_PER_LANE,XCL_RECOMP_STAGESandXCL_RECOMP_NO_HLSLaren't documented anywhere, as withXCL_DIRECT_DXILtoday.Nits
pso.rs:238:let id = identity_with(.ssa.rs:150-158doesn't moveusers[phi]tousers[same], so a trivial phi can be left behind. The results are unaffected: a leftover phi over the marker is still refused.wave.rs:298-300:v_readfirstlanewhere no lane has EXEC reads lane 0.recomp/dxil/assemble.rsis called only from its own test. It finds dxil.dll throughGetModuleHandleW, so it works only once DXC has loaded it.Checked and fine
exec_lo/exec_hiwrites turning EXEC opaque;v_permlane(x)16,ds_swizzlequad-perm and bitmask modes (rotate mode not checked);v_cndmask/carry-in lane bit (c7caa1d);kernel.rsrefactor: by reading, the module calls run in the same order, so the DXIL should be the same.runner::skip_test; no#[ignore], no game data, no new dependency, no ported code.AI use: Claude Code. Three Claude Opus 5.5 subagents reviewed the three parts. Claude Opus 5.5 (the main session) then read the code path of every numbered point itself, at
cf29f8aand again at0570037, and wrote this review; the Checked and fine list is from the subagents' reading. Points 5 and 7 are not traced to the end, as they say.@FIJI1299 on GitHub · 2026-11-24 20:53 UTC · original
Test report on NVIDIA GeForce RTX 5070 (12 GB)
**cf29f8a**)621.35), 32 GB DDR5 6000MT/s26300),rustc 1.100.0 (0ef1bc386 2026-11-09), Windows SDK10.0.26100.0(debug build).\scripts\test.ps1(cargo test --workspace -- --test-threads=4)xcl --lib:876 passed; 0 failed; 22 ignored(14.76s)8 passed; 0 failed; 12 ignored(1 + 1 + 6)884 passed; 0 failed; 34 ignored7 (no wave64)1 (no heap windows)1 (f32 rounding, wave64: no wave64)1 (integer arithmetic, wave64: no wave64)1 (f64, wave64: no wave64)1 (integer carries, wave64: no wave64)1 (f32 three-source, wave64: no wave64)1 (f32 transcendentals, wave64: no wave64)1 (f32 conversions, wave64: no wave64)1 (f16 arithmetic, wave64: no wave64)1 (f16 packed, wave64: no wave64)1 (f32 compares, wave64: no wave64)1 (f32 arithmetic, wave64: no wave64)1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)))1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)))1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)))smoke.ps1), release build, AMD / native wave64 GPUs.@mgrein on GitHub · 2026-11-24 20:54 UTC · original
Test report for the head
0570037(not yet reported on), NVIDIA RTX 4070.Tested
stable-x86_64-pc-windows-msvc, debug; DXC 1.9.2609.5. A clean worktree of0570037, its own target dir..\scripts\test.ps1at0570037: 927 passed, 0 failed, 42 ignored over the workspace (lib: 878 passed, 0 failed, 22 ignored), two more than the description's 925 / 876 oncf29f8a.V_CVT_F16_F32in f32 conversions,V_MUL_F16in f16 arithmetic,V_PK_MUL_F16in f16 packed, wave32 per-lane form).XCL_SAMPLE_*variables were not set, so the game-data tests did nothing.Not tested: native wave64; a title run with
XCL_PER_LANE=1;--direct --laneson the pack; release.AI use: Claude Code (Claude Opus 5.5) ran the suite and wrote this report.
@Kalmarv on GitHub · 2026-11-24 20:38 UTC · original · edited 2026-11-24 20:55 UTC
Test report and review, on an RTX 5070 Ti (32-lane waves only). The suite passes on
43cb32cand on the current headcf29f8a, and a 60 s title pair withXCL_PER_LANE=1is clean. Reading the per-lane parts gave two cases where the per-lane form takes a program and gives other results than the HLSL path (review points 1 and 2, each with small programs run here), and one wrong label in the summary line.Tested
XCL_DXC_DIR); a privateXCL_DXIL_CACHE, new for the first run and kept for the second.cargo test --workspace -- --test-threads=4, clean trees, once per commit:43cb32ccf29f8ano wave64, 3 per-lane halves refused on purpose (V_CVT_F16_F32,V_MUL_F16,V_PK_MUL_F16), 1no heap windows. The description counts 25 with 21no wave64; the RTX 5070 report above has the same 22 as here.the 22 lines
a_bridged_instruction_may_write_to_the_entry_block,per_lane_kernels_run_on_the_gpu(9 programs),a_per_lane_compute_program_runs_on_the_gpu,a_per_lane_program_with_four_memory_windows_runs_on_the_gpu, the wave32 shapes ofa_per_lane_2d_or_3d_group_runs_on_the_gpu, the wave32 part ofcoalesced_foreign_runs_agree_on_the_gpu, and the wave32 halves ofinteger_programs_on_the_gpu(2 of 2),f32_programs_on_the_gpu(5 of 6) andf64_programs_on_the_gpu(1 of 1).lower::tests::the_split_form_agrees_with_the_wave64_lowering_on_the_gpu,the_runtime_path_takes_the_split_form, and the(wave64, split)part ofcoalesced_foreign_runs_agree_on_the_gpu.f16_programs_on_the_gpupasses without running any per-lane DXIL here: both wave32 halves are refused and both wave64 halves skip.programs_on_the_gpudoes not try the split form, so in the suite the f32 / f64 / integer programs never run as wave64 on a 32-lane GPU.lower_dxil::kernel_splitagainst the HLSL path's split form (Options { wave64: true, split_wave64: true }), every SGPR and VGPR the program names in all 64 lanes,f32_closewhere the suite uses it. All 8 programs the per-lane form takes agree: f32 arithmetic, compares, rounding, transcendentals, three-source; f64; integer arithmetic, carries. The other 3 are the same refusals as in wave32.XCL_DIRECT_DXIL=1 XCL_PER_LANE=1on both sides (XCL_DIRECT_DXIL_STATS=1for the summary line),43cb32cagainst its merge-base withmain:main:This PR (
43cb32c):CS direct 102 / HLSL fallback 0; CS per-lane direct 29 / HLSL fallback 73;. So 29 of 102 compute programs ran in the per-lane form and 73 were refused and went to #1426's per-instruction form (73[SHADER] per-lane fallback ... – per-instruction formlines). None went to the HLSL path; see point 3 for the label.mainside:CS direct 99 / HLSL fallback 0;.Review (the per-lane parts; line numbers at
cf29f8a)lane_masks::cond(lane_masks.rs:604) treatss_cbranch_vccz/vccnzand a branch on the SCC of a mask op as each lane's own bit, andLower::cond(lower.rs:971) branches on it;S_CSELECT_B32(lower.rs:624) selects on the same per-lane SCC. On the console these test the whole wave, and every lane goes the same way. The module doc says so as an assumption (lane_masks.rs:17, "it jumps over work that inactive lanes would not change anyway, or it tests a uniform value"), but nothing checks it, so a program outside it is taken and not refused. Shown with wave32 kernel programs that start withv_cmp_gt_u32 vcc, 16, v0(VCC = lanes 0–15, EXEC = all 32) and writev1on the fall-through, per-lane DXIL (lower_dxil::kernel) against the HLSL path on the GPU:v1in lane 16v1in lane 16s_and_b32 s0, vcc, exec; s_cbranch_scc1 L; v_mov_b32 v1, 7; L:s_cbranch_vccnz L; v_mov_b32 v1, 7; L:s_cbranch_vccz L; v_mov_b32 v1, 7; L:s_cmp_lg_u32 vcc, 0; s_cbranch_scc1 L; v_mov_b32 v1, 7; L:s_and_b32 s0, vcc, exec; s_cselect_b32 s1, 5, 7; v_mov_b32 v1, s1SKIPPED_IF(s_and_saveexec,s_cbranch_execz)In each of the first five rows the two paths differ in all of lanes 16–31 and agree in lanes 0–15 (the HLSL path has the same
v1in lanes 0 and 31). A branch on "any lane" is whatif (WaveActiveAnyTrue(x))or an early-out on "no lane needs this" asks for. Checked on the pack sweep since: of the 321 compute programs the per-lane form takes, 166 have a lane branch, and a local analysis pass (is there a lane here, in EXEC, without the bit?) marks 7 branches in 5 of them, alls_and_b64 vcc, exec, <mask>; s_cbranch_vccnz; no branch on the SCC of another mask op and nos_cselecton one. Read by hand, all 7 test a value that is the same in every active lane (the compiler's uniform branch), so none of the 321 gives other results through this. The point stands as an unchecked assumption, not as a wrong result in this pack. Not checked: the 29 programs of the title run on their own.A non-default rounding mode is dropped where #1426 and the HLSL path refuse the program. This may be what @erickbobd's MODE guard (asked for on #1269) already covers; we haven't checked their branch. If it covers only
s_setreg, the second way in below needs its own check. Two ways in:lower.rs:720takes everys_setreg*of MODE as a no-op. Its comment (lower.rs:718) says the lowering refuses every float instruction, which was true before the bridge; float instructions now go throughIr::foreign.s_round_modegoes through the bridge to #1426'sLw::sopp(gpu/dxil/lower.rs:955), which refuses a non-default f32 mode but decides f64 and f16 fromhas_f64_round_opanddyn_rm.Lw::newleaves bothfalse(gpu/dxil/kernel.rs:314), and onlytranslate_on_this_threadsets them (kernel.rs:183), which the per-lane form does not go through.Shown with wave32 kernel programs, a sum of
1 + lane ulpand0.75 ulp, on the GPU (lane 0):s_setreg_imm32_b32 hwreg(MODE, 0, 2), 3; v_add_f320x3F800001(to nearest; toward zero is0x3F800000)s_round_mode 0xC; v_add_f64s_setreg_imm32_b32 hwreg(MODE, 2, 2), 3; v_add_f64s_round_mode 0x3; v_add_f320x3F800001; 1The f16 side (
dyn_rm,s_round_mode 0xCwith an f16 instruction, whichrecomp/tests.rs:6627calls the retail pattern) is from reading only: a run here cannot show it, because an f16 sum comes out rounded toward zero on this driver on all three paths, with or without the mode write.pso.rs:617records a refusal under the stageCS per-laneand goes on totranslate_compute(pso.rs:622), andcoverage::fallback_summaryprints every stage asdirect N / HLSL fallback M(gpu/dxil/coverage.rs:317). In the title run above,CS per-lane direct 29 / HLSL fallback 73are 73 programs in the per-instruction form;CS direct 102 / HLSL fallback 0is the line that counts the HLSL path. Label only.The three local tests behind this (split-form programs, the branch programs, the rounding programs; they print, they don't assert) are about 230 lines on
cf29f8a; say if you want them as a follow-up PR or a patch here.Not tested
cf29f8ain the title (it changes test code only).xcl shaders --direct --lanes(the pack sweep), DXC and driver times.gpu/dxil/kernel.rs(Lw::new/Lw::finish): its output was not compared withmain's, and of its diff onlyLw::newwas read.lower_dxil.rs,ssa.rs,lower/wave.rs, thepso.rsandmodule.rsdiffs, and oflower.rsthe scalar, vector and memory instructions, the branches, the stale check, the bridge and the block driver. Not read:assemble.rs,shaders.rs, the VS / PS parts and the tests oflower.rs;lane_masks.rsonly where point 1 needed it.AI use: Claude Code (Claude Fable 5.2) ran the tests, read the diff and drafted this. Claude Code (Claude Opus 5.5) reviewed it before posting.
@gefydev on GitHub · 2026-11-24 20:56 UTC · original
@thehollowedone thank you for the fixture and the readbacks on
0570037(HLSL all 5, per-lane 5 in lanes 0-15 and 7 in lanes 16-31). Received. It looks like the same area as the SCC-from-a-mask review point above (the form treats the SCC as per lane where the check does not see it); I have passed your program to the session that writes the code and will answer here once there is a decision. I am not promising a fix yet.AI use: Claude Code (Claude Opus 5.5) wrote this comment for @gefydev.
@moombathepilot on GitHub · 2026-11-24 20:57 UTC · original
RX 7800 XT review of #1745
I reviewed the shader sweep's validation and size reporting and ran the tests below on clean head
0570037d0247978205e786057cadbdc85dded0ca. Both test commands exited successfully.Review findings
--validateto the per-lane output in release sweeps.--validatereaches the per-instruction translator, but the per-lane call doesn't use it. The validator inLw::finishruns only in debug or test builds. A release--direct --lanes --validatesweep can therefore count per-lane output without passing it through the DXIL validator. Could the sweep validate both paths when the flag is set, or label which path it validates?Tested
RX 7800 XT (RDNA3), driver
32.0.32029.2010, Ryzen 7 5700X3D, Windows build26300.9974, Rust1.100.0MSVC, SDK DXC/DXIL1.9.2602.17, debug. No source changes.scripts/test.ps1 --test-threads=4, flags unsetcargo test --locked -p xcl --lib -- gpu::recomp::lower --test-threads=1 --nocapture, withXCL_DIRECT_DXIL=1andXCL_PER_LANE=1Both runs logged the six documented f16 cases (arithmetic, packed multiply and conversion on wave32 and wave64). The full suite also skipped
heap_window_out_of_memory_falls_back_to_the_switch_formbecause heap windows were unavailable. The focused set includes the split-path and four-memory-window GPU tests, which passed.Not tested
Retail startup on this PR, a release shader sweep, the whole-pack size result, compile speed, or opt-in game-data tests (
XCL_SAMPLE_*unset). The two reporting findings were verified by reading the source and are separate from the passing debug tests.AI use
Codex (GPT-6.2-sol) reviewed the relevant code, ran the tests on this PC, and drafted this report from the results.
@gefydev on GitHub · 2026-11-24 20:58 UTC · original
@moombathepilot thank you for the RX 7800 XT report on
0570037(927 passed, 0 failed, 42 ignored; 46 passed withXCL_DIRECT_DXIL=1 XCL_PER_LANE=1, six documented f16 skips) and for the two review points on the sweep (paired size totals,--validatefor the per-lane output). Received and passed to the session that writes the code; I will answer here once there is a decision. I am not promising a change yet.AI use: Claude Code (Claude Opus 5.5) wrote this comment for @gefydev.
@vitor127wt on GitHub · 2026-11-24 20:58 UTC · original
RTX 5070 Ti / Proton — per-lane retail run on
0570037With
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PER_LANE=1, the 150 s run on0570037d0247978205e786057cadbdc85dded0catranslated 10 of 24 compute shaders per lane. The other 14 used per-instruction direct DXIL. Eleven per-lane refusals logged the new whole-wave mask branch rule, two logged numeric EXEC in the split form, and one logged anIMAGE_LOADregister restriction. There were zero HLSL fallbacks.The earlier 150 s run on
cf29f8a6a7e4e64cfaf17dd929e5334a7d5cf193also routed 10 shaders per lane and 14 per instruction. All 24 translated compute cache keys and their DXIL bytes matched across the two revisions. Earlier 60 s runs on6c89285andcf29f8awith per-lane off showed 1,236 and 1,235 frames, respectively. Enabling per-lane oncf29f8ain the 60 s run sent all three startup compute shaders through the per-instruction path. All three runs produced byte-identical compute DXIL.Tested
7.3.5-2-cachyos, Proton Experimental 11.0 (experimental-11.0-20261112-x86_64). vkd3d-protonec207194with the #257 patch, dxil-spirv7c048638, and DXC 1.9.2609.5. Clean x64 Windows release builds using Rust 1.100.0 and LLVM-MinGW 20261117 (x86_64-pc-windows-gnullvm).cargo build --locked --release --target x86_64-pc-windows-gnullvm -p xcl --bin xcl. Ranscripts/linux/smoke.sh "$PROTON" "$PREFIX" "$GAME" 150from #257 for the longer runs. Each run used the same retail title, a separate fresh Wine prefix and shader cache, networking off, and A presses scheduled every three seconds. XCL PSO cache blobs and vkd3d-proton/NVIDIA disk shader caches were disabled. Both usedXCL_DXC_THREADS=2,XCL_PSO_TRACE=1, andXCL_DIRECT_DXIL_STATS=1. The smoke scope was capped at 16 GiB RAM with no swap.cargo test --locked --release --target x86_64-pc-windows-gnullvm -p xcl --lib --no-run. Ran the Windows test binary in Proton Wine with the filtersgpu::recomp::lower_dxil::tests::anda_whole_wave_decision_on_a_mask_some_lanes_lack_is_refused,--test-threads=1 --nocapture. The updated head returned 13 passed, 0 failed, 0 ignored. This includes the whole-wave mask and rounding-mode regression tests. The run logged 15 skipped subcases (12 requiring native wave64 and three intentionally refused f16 cases). The split wave64 and four-memory-window GPU tests ran.150 s smoke on
0570037The Wine smoke script generated the block. I abbreviated the local folder name in
title. The last two-second bin with presents ended at 94.1 s. Wine reported 0 MB in the Windows peak-commit field. Linux cgroup peak was 15.07 GiB, with no OOM kill. Coverage is the retail loading interval on Proton and the focused suite.AI use — OpenAI Codex (GPT-6, exact variant unavailable) built and ran the checks, verified the logs, and drafted this report.
@thehollowedone on GitHub · 2026-11-24 20:55 UTC · original · edited 2026-11-24 21:10 UTC
Retest on
bfb8133dConfirmed the loop SCC fix on the same RTX 3080 Ti setup. The per-lane compiler now refuses the original loop at the scalar select. I dispatched the same shader separately through per-instruction direct DXIL and HLSL. Each returned
5in all 32 lanes. In a control that set the loop condition with a uniform scalar compare, per-lane DXIL still compiled and returned5in all 32 lanes.Using
cargo test --offline --locked -p xcl --lib <filter> -- --nocapture --test-threads=1, the stockgpu::recomp::lower::tests::suite reported 34 passed, 0 failed, 0 ignored, with four native-wave64 subcases skipped. The addedscratch_wave32_loop_refusal_and_reference_readbackfixture passed 1/1 with zero skips. This checks kernel compilation and readback. Retail and runtime routing were outside the test.Tested
On
0570037d, a synthetic two-iteration wave32 loop gave different GPU readbacks. HLSL returnedv1 = 5in all 32 lanes. Per-lane DXIL returned5in lanes 0–15 and7in lanes 16–31. Both dispatched successfully. This exercises a mask-derived SCC reaching the next iteration's scalar select, with both mask operands known.Initialize
EXECto all 32 lanes andv0to the lane index.RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC debug, DXC 1.8.2502.11.
cargo test --offline --locked -p xcl --lib scratch_loop_carried_scc -- --test-threads=1 --nocaptureran one added fixture with zero skips and failed at the direct DXIL vs. HLSL comparison. The HLSL readback passed the all-5 assertion. The fixture uses the existing kernel runners.Not tested
This fixture covers wave32 kernel lowering. Retail behavior, native wave64 and runtime fallback were outside the run.
AI-assisted. Codex (GPT-6 family, exact variant unavailable) wrote and ran the fixture and drafted this report.
@gefydev on GitHub · 2026-11-24 21:10 UTC · original
#1745 is rebased onto
main4178e88(one conflict inkernel.rswith #1748's newLwfields, resolved). Headbfb8133, 51 commits, both checks green. Suite 955 passed, 0 failed, 42 ignored; smoke 915 frames against 889 formain. Replies, one per reviewer:66879ef. A branch or scalar select on whether any lane of a mask is set is taken per lane only where the condition is the same in every lane in EXEC, and is refused otherwise. MODE writes go through #1426, and the adapter setsdyn_rm/has_f64_round_op. Each has a test that failed before. Point 3 (the "HLSL fallback" label) is noted and not changed.9dcf2f6, with a test that failed before. Thank you for the fixture.bfb8133), 12 (size waiver, in the description), 13 (commit count, now 51) and 14 (the Antigravity trailer on two of MiguelMachado-dev's commits, now named in AI use) are done. Points 2, 3, 4-8, 10, 11, 15 and 16 are noted as follow-ups for after the maintainer's call. For 15, @vitor127wt's byte-identical DXIL run covers one title.--validatefor the per-lane output) are noted for the--lanesfollow-up.The description now says 316 / 2 689 compute programs with the stricter rules, +0.8 % size against #1426's per-instruction form, so the earlier 321 figure no longer applies.
AI use: Claude Code (Claude Opus 5.5) wrote this comment for @gefydev.
@DavidM1911 on GitHub · 2026-11-24 22:55 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@BetterJdue on GitHub · 2026-11-24 23:40 UTC · original
Test report after the merge, on native wave64 AMD RDNA2 (the reports above are RDNA3, RDNA4 and NVIDIA):
mainc4d37be, which has #1745 as7f7e768.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4: 956 passed, 3 failed, 43 ignored. SKIPPED (8): the six per-lane refusals (V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32, wave32 and wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows) andpso_measurement_compiles_an_exact_synthetic_record(Developer Mode off). Nono wave64skips.placed_title_textures_share_vram_and_preserve_pixels("3D 64x64x64 4 mips: subresource 2 mismatch") also fails alone onmainb9b6ea6, before the merge, and the other two fail on the lock it poisons. It is the RDNA2 failure reported fixed by #1028.cargo test -p xcl --lib -- gpu::dxil recomp::lower --test-threads=4: 130 passed, 0 failed, 1 ignored; the same six refusals SKIPPED.wave_ops_match_cpu,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu,the_split_form_agrees_with_the_wave64_lowering_on_the_gpu,a_wave64_mask_left_behind_is_reported_in_both_halves,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,f32_programs_on_the_gpu,the_runtime_path_takes_the_split_form. On this cardwave_ops_match_cpuremoved the device (0x887A0005, also alone) on164050eearlier today; it passes now.XCL_ADAPTER=warp cargo test -p xcl --lib -- --test-threads=4: 907 passed, 3 failed, 23 ignored. The 3 failures are the same texture tests; withXCL_ADAPTER=warpthat test fails onb9b6ea6too, so it seems to run on the hardware adapter rather than WARP (inferred, not checked).0570037, before the merge, gave the same picture: 924 passed, 3 failed (the same three), 42 ignored;gpu::dxil+recomp::lower127 passed, 0 failed; the 21 runs passed.XCL_REQUIRE_GPU=wave64: it turns the six deliberate per-lane refusals into failures (runner.rs:469), so with itgpu::dxil+recomp::lowergives 128 passed, 2 failed. It cannot show here that the wave64 halves ran; that the plain run reports nono wave64skip does.Not tested
XCL_PER_LANE=1at run time (no game data here).AI use: Claude Code (Claude Opus 5.5) ran these tests on my machine and wrote this report.
AI-assisted verification using synthetic inputs.