Recompiler: write split-wave helpers into the entry, not as functions #3707

Merged
lucsoft merged 4 commits from upstream-pr/3707 into main 2026-12-03 12:48:35 +00:00
lucsoft commented 2026-12-02 16:24:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-02T16:24:45Z.


Since #3655, every title whose compute shaders use the split-wave64 rendezvous or the safe group barrier ends a few seconds after start under Wine (vkd3d-proton), on any GPU. #3655 writes these two loops as internal DXIL functions (xcl.spin.wait, xcl.barrier.arrive) that take groupshared pointers, and dxil-spirv can't type a pointer parameter: it calls std::terminate(). This change writes the helpers' bodies into the entry when the bitcode is written, which is what DXC does for a non-library shader. Planning, optimisation and dispatch-chain cuts are unchanged.

What is in it

  • Cause. The vkd3d-proton log (VKD3D_LOG_FILE, main 5eaadb54) ends with dxil-spirv: Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private. That is dxil_converter.cpp get_type_id (dxil-spirv b540c8a2, vkd3d-proton master's), which calls std::terminate() for any pointer type outside physical node I/O. Leaf-function parameters go through it, so a pointer parameter ends the process. XCL's log shows the abort on an xcl-pso-ahead thread right after it built a translated console CS (process ends with status 0x3, msvcrt abort in d3d12core.dll).
  • Bisect (RX 7800 XT, 60–180 s smoke runs): df0cfef6 (before #3655) runs (1449 frames in 60 s, 0 faults); d71578f8 (df0cfef6 + #3655 only), 1fdb11f7 and 5eaadb54 all end at ~3.5 s with exit 0x3. The same happens with stock vkd3d-proton 3.1 and with a build on dxil-spirv b540c8a2.
  • Fix (module.rs): Module::inline_helpers, called by try_to_bitcode before writing. For every call to a function with a helper body: the calling block is cut at the call, the helper's blocks follow it (arguments mapped to the call's operands, its values renumbered), the helper's last block branches to a new block holding the rest of the cut block and its terminator, the phis of that block's successors now name the new block, and uses of the call take the helper's result. The helper functions are then neither called nor written. Everything before writing (optimize, split_compute's budgets and features, which count a rendezvous as one indivisible call) is as #3655 has it.
  • Rendezvous with every lane (second commit, module.rs spin_wait, after review): the loop let one elected lane signal and poll while the other lanes went straight to the end and waited there for it before loading the peer's slots. Written into the caller, NVIDIA's compiler does not keep that wait (gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads read the upper half's values at 48–128 threads on an RTX 5070 Ti, see the merge-check). Now every participating lane goes round the loop; the arrival add, the counter load and the timeout CAS stay with the first lane, and the values that decide the outcome are read from it with waveReadLaneFirst, so all lanes leave together. It is a plain while loop (one back edge, one exit, outcome selected): a version with the old loop's several exits plus the per-lane branches inside made dxil-spirv's translation spin on the GPU (robustness_tests, mask_exchange, idioms hung under Wine). Same atomics and outcomes; a failed (negative) counter still wins over "reached".
  • Merged with main 078358a0 (7b19e27d), which brought #3652 (a half leaving the program sets bit 30 on its spin counter; a waiting half then gives up at once). Its changes are carried into the every-lane loop: the arrived count is compared under 0x3FFF_FFFF before the exited bit, a peer's exit leads into the same CAS path as the poll budget, and the bounds check looks at bits 30..31. #3652's gpu_spin_exchange_early_exit_bails_immediately looked for the constants in the helper's body; it now checks that no helper is left and finds them in the entry (its GPU cases pass here: 256 groups bail out in 0.0006 ms, the bound is 2 ms), and split_lds_reads_meet_after_writes counts the exit's atomicrmw or once and not as an exchange.
  • Tests (third commit, after review): split_lds_reads_meet_after_writes checks the inlined rendezvous again (one poll and one timeout CAS per exchange on the same partner counter, one arrival per exchange on one own counter, a fence before and after each, a first lane per exchange); a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly checks that no helper is left and counts the inlined CAS loops. New inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics (IR level) pins the loop shape: one back edge, one exit, every atomic behind the first-lane branch, both fences on the participating path only. inline_helpers walks the module once. New split_compute_rendezvous_and_barriers_have_no_helper_functions: a split compute program (64 and 256 threads) with LDS writes and reads, a group barrier inside a loop and one after it validates and has one function.
  • Cost: #3655's DXIL size saving from sharing the loops goes away (each rendezvous carries its own copy again, as before #3655). The exchanges and barriers #3655's passes removed stay removed. The second commit changes the GPU code of each rendezvous: every lane runs the polling loop, so a poll costs two waveReadLaneFirst, two short first-lane branches and some ALU work more than the elected-lane loop did, and a partner that never arrives takes correspondingly longer to time out (still 1 << 20 polls). Not measured as frame time; the smoke runs below are at main's level where main runs.

Tested

  • hardware (GPU + driver, CPU), Rust version, debug / release: AMD Radeon RX 7800 XT, Mesa 26.3.1 RADV, Linux 7.3, Wine 11.21 (staging), vkd3d-proton 3.1 with dxil-spirv b540c8a2; AMD Ryzen 7 7800X3D; rustc 1.95.0; release, cross-built for x86_64-pc-windows-gnu, test binaries run under Wine.
  • cargo test --workspace (lib tests, at the merge 7b19e27d): 2829 passed, 17 failed, 32 ignored, 2 died; main 5eaadb54: 2771 passed, 17 failed, 13 ignored, 30 died. The 29 GPU tests that die on main (dxil-spirv terminate) pass. The 17 failures and one death are the same as on main. The other death, hle::netoff::tests::a_sockaddr_in6_under_28_bytes_is_left_alone, is a test added on main after 5eaadb54 (ddcf5394) and crashes in Wine's socket code, not in the recompiler.
    • Run under Wine on this machine, one module per process, 2 threads (a failing module rerun with 1 thread, that result counted); the uma_driver group (~32 GB of address space under Wine) left out, and serialize_root_signature_strips_console_flags_and_preserves_pc_flags removes the device and ends its process (the 1 died), both the same on main.
    • main 5eaadb54 the same way: 2771 passed, 17 failed, 13 ignored, 30 died. 29 of those are split-wave64 / dispatch-chain / safe-barrier GPU tests (mask_exchange, idioms, module::split, robustness_tests, recomp::lower_dxil, recomp::lower, recomp) that end their process in dxil-spirv's std::terminate() on main; they pass here. No test fails only with this PR; the 17 failures are the same on both (gpu::dxil fuzz/round and recomp f32/f64/FMA GPU tests, device_x, list_x, real::*, and the title_textures group, all known under Wine on this machine).
    • The dxil modules at 912ff558 alone: core_tests 36/0/1, robustness_tests 15/0/0, module 59/0/0 (incl. module::split and the new IR test), mask_exchange 20/0/0, idioms 9/0/1 (incl. gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads); the new test runs (not skipped).

Regression run

main:

xcl-smoke v1
commit: 5eaadb54c14e0fc29597b2a1689d7dbd83491303
gpu: AMD Radeon RX 7800 XT (RADV NAVI32)
title: f651e787
seconds: 180
exit: 0x3
frames shown: 0 (smoke.ps1 printed "none logged (the run did not reach its end)": exit 0x3 at ~3.5 s, 0 presents in the log's only activity line)
presents per 2 s (last 3): 0
device removals: 0
crashes: 1
peak commit: n/a MB

PR:

xcl-smoke v1
commit: 7b19e27d8a986c69c84200198d2c80318652c749
gpu: AMD Radeon RX 7800 XT (RADV NAVI32)
title: f651e787
seconds: 180
exit: 0x0
frames shown: 2197 (PresentX 2197)
presents per 2 s (last 3): 0 2 1
device removals: 0
crashes: 0
peak commit: 0 MB

No amdgpu page fault, ring timeout or reset in the kernel log during the PR's run, and no dxil-spirv error. peak commit reads 0 MB under Wine. Both runs with the same Wine, vkd3d-proton and environment.

NVIDIA: needs #3748 first
On NVIDIA the split halves can fall out of step through the mask-skipping bug (#505). On main the wave then reads zeros (dark frames). With this PR the rendezvous keeps polling, so the same bug shows up as a GPU queue watchdog stop in the world (@throny, RTX 4080). With XCL_X64_ALL_MASKS=1 there was no stop in 2 of 2 runs, so the cause is the out-of-step halves, not a new loop. #3748 makes exchanging every mask the default; this PR should be merged after it, and @throny will rerun it on top of #3748.

Not tested

  • NVIDIA and Intel under Wine (same dxil-spirv path, so expected to crash on main the same way); Windows (no dxil-spirv; DXC-style output is the safe form for native drivers too, but not measured).
  • DXIL size and translation time against main.

AI use

  • Claude Code, Claude Opus 5.5: bisect, reading dxil-spirv's source, the inlining pass, tests and this description; reviewed by me.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5610540472 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-02T16:24:45Z. --- Since #3655, every title whose compute shaders use the split-wave64 rendezvous or the safe group barrier ends a few seconds after start under Wine (vkd3d-proton), on any GPU. #3655 writes these two loops as internal DXIL functions (`xcl.spin.wait`, `xcl.barrier.arrive`) that take groupshared pointers, and dxil-spirv can't type a pointer parameter: it calls `std::terminate()`. This change writes the helpers' bodies into the entry when the bitcode is written, which is what DXC does for a non-library shader. Planning, optimisation and dispatch-chain cuts are unchanged. **What is in it** - **Cause.** The vkd3d-proton log (`VKD3D_LOG_FILE`, `main` 5eaadb54) ends with `dxil-spirv: Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private.` That is `dxil_converter.cpp` `get_type_id` (dxil-spirv b540c8a2, vkd3d-proton master's), which calls `std::terminate()` for any pointer type outside physical node I/O. Leaf-function parameters go through it, so a pointer parameter ends the process. XCL's log shows the abort on an `xcl-pso-ahead` thread right after it built a translated console CS (`process ends with status 0x3`, msvcrt `abort` in `d3d12core.dll`). - **Bisect** (RX 7800 XT, 60–180 s smoke runs): df0cfef6 (before #3655) runs (1449 frames in 60 s, 0 faults); d71578f8 (df0cfef6 + #3655 only), 1fdb11f7 and 5eaadb54 all end at ~3.5 s with exit 0x3. The same happens with stock vkd3d-proton 3.1 and with a build on dxil-spirv b540c8a2. - **Fix** (`module.rs`): `Module::inline_helpers`, called by `try_to_bitcode` before writing. For every call to a function with a helper body: the calling block is cut at the call, the helper's blocks follow it (arguments mapped to the call's operands, its values renumbered), the helper's last block branches to a new block holding the rest of the cut block and its terminator, the phis of that block's successors now name the new block, and uses of the call take the helper's result. The helper functions are then neither called nor written. Everything before writing (`optimize`, `split_compute`'s budgets and features, which count a rendezvous as one indivisible call) is as #3655 has it. - **Rendezvous with every lane** (second commit, `module.rs` `spin_wait`, after review): the loop let one elected lane signal and poll while the other lanes went straight to the end and waited there for it before loading the peer's slots. Written into the caller, NVIDIA's compiler does not keep that wait (`gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` read the upper half's values at 48–128 threads on an RTX 5070 Ti, see the merge-check). Now every participating lane goes round the loop; the arrival add, the counter load and the timeout CAS stay with the first lane, and the values that decide the outcome are read from it with `waveReadLaneFirst`, so all lanes leave together. It is a plain while loop (one back edge, one exit, outcome selected): a version with the old loop's several exits plus the per-lane branches inside made dxil-spirv's translation spin on the GPU (`robustness_tests`, `mask_exchange`, `idioms` hung under Wine). Same atomics and outcomes; a failed (negative) counter still wins over "reached". - **Merged with `main` 078358a0** (7b19e27d), which brought #3652 (a half leaving the program sets bit 30 on its spin counter; a waiting half then gives up at once). Its changes are carried into the every-lane loop: the arrived count is compared under `0x3FFF_FFFF` before the exited bit, a peer's exit leads into the same CAS path as the poll budget, and the bounds check looks at bits 30..31. #3652's `gpu_spin_exchange_early_exit_bails_immediately` looked for the constants in the helper's body; it now checks that no helper is left and finds them in the entry (its GPU cases pass here: 256 groups bail out in 0.0006 ms, the bound is 2 ms), and `split_lds_reads_meet_after_writes` counts the exit's `atomicrmw or` once and not as an exchange. - **Tests** (third commit, after review): `split_lds_reads_meet_after_writes` checks the inlined rendezvous again (one poll and one timeout CAS per exchange on the same partner counter, one arrival per exchange on one own counter, a fence before and after each, a first lane per exchange); `a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly` checks that no helper is left and counts the inlined CAS loops. New `inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics` (IR level) pins the loop shape: one back edge, one exit, every atomic behind the first-lane branch, both fences on the participating path only. `inline_helpers` walks the module once. New `split_compute_rendezvous_and_barriers_have_no_helper_functions`: a split compute program (64 and 256 threads) with LDS writes and reads, a group barrier inside a loop and one after it validates and has one function. - **Cost:** #3655's DXIL size saving from sharing the loops goes away (each rendezvous carries its own copy again, as before #3655). The exchanges and barriers #3655's passes removed stay removed. The second commit changes the GPU code of each rendezvous: every lane runs the polling loop, so a poll costs two `waveReadLaneFirst`, two short first-lane branches and some ALU work more than the elected-lane loop did, and a partner that never arrives takes correspondingly longer to time out (still `1 << 20` polls). Not measured as frame time; the smoke runs below are at `main`'s level where `main` runs. **Tested** - hardware (GPU + driver, CPU), Rust version, debug / release: AMD Radeon RX 7800 XT, Mesa 26.3.1 RADV, Linux 7.3, Wine 11.21 (staging), vkd3d-proton 3.1 with dxil-spirv b540c8a2; AMD Ryzen 7 7800X3D; rustc 1.95.0; release, cross-built for x86_64-pc-windows-gnu, test binaries run under Wine. - `cargo test --workspace` (lib tests, at the merge 7b19e27d): 2829 passed, 17 failed, 32 ignored, 2 died; `main` 5eaadb54: 2771 passed, 17 failed, 13 ignored, 30 died. The 29 GPU tests that die on `main` (dxil-spirv terminate) pass. The 17 failures and one death are the same as on `main`. The other death, `hle::netoff::tests::a_sockaddr_in6_under_28_bytes_is_left_alone`, is a test added on `main` after 5eaadb54 (ddcf5394) and crashes in Wine's socket code, not in the recompiler. - Run under Wine on this machine, one module per process, 2 threads (a failing module rerun with 1 thread, that result counted); the `uma_driver` group (~32 GB of address space under Wine) left out, and `serialize_root_signature_strips_console_flags_and_preserves_pc_flags` removes the device and ends its process (the 1 died), both the same on `main`. - `main` 5eaadb54 the same way: 2771 passed, 17 failed, 13 ignored, **30 died**. 29 of those are split-wave64 / dispatch-chain / safe-barrier GPU tests (`mask_exchange`, `idioms`, `module::split`, `robustness_tests`, `recomp::lower_dxil`, `recomp::lower`, `recomp`) that end their process in dxil-spirv's `std::terminate()` on `main`; they pass here. No test fails only with this PR; the 17 failures are the same on both (`gpu::dxil` fuzz/round and `recomp` f32/f64/FMA GPU tests, `device_x`, `list_x`, `real::*`, and the `title_textures` group, all known under Wine on this machine). - The dxil modules at 912ff558 alone: `core_tests` 36/0/1, `robustness_tests` 15/0/0, `module` 59/0/0 (incl. `module::split` and the new IR test), `mask_exchange` 20/0/0, `idioms` 9/0/1 (incl. `gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads`); the new test runs (not skipped). **Regression run** main: ``` xcl-smoke v1 commit: 5eaadb54c14e0fc29597b2a1689d7dbd83491303 gpu: AMD Radeon RX 7800 XT (RADV NAVI32) title: f651e787 seconds: 180 exit: 0x3 frames shown: 0 (smoke.ps1 printed "none logged (the run did not reach its end)": exit 0x3 at ~3.5 s, 0 presents in the log's only activity line) presents per 2 s (last 3): 0 device removals: 0 crashes: 1 peak commit: n/a MB ``` PR: ``` xcl-smoke v1 commit: 7b19e27d8a986c69c84200198d2c80318652c749 gpu: AMD Radeon RX 7800 XT (RADV NAVI32) title: f651e787 seconds: 180 exit: 0x0 frames shown: 2197 (PresentX 2197) presents per 2 s (last 3): 0 2 1 device removals: 0 crashes: 0 peak commit: 0 MB ``` No amdgpu page fault, ring timeout or reset in the kernel log during the PR's run, and no dxil-spirv error. `peak commit` reads 0 MB under Wine. Both runs with the same Wine, vkd3d-proton and environment. **NVIDIA: needs #3748 first** On NVIDIA the split halves can fall out of step through the mask-skipping bug (#505). On `main` the wave then reads zeros (dark frames). With this PR the rendezvous keeps polling, so the same bug shows up as a GPU queue watchdog stop in the world (@throny, RTX 4080). With `XCL_X64_ALL_MASKS=1` there was no stop in 2 of 2 runs, so the cause is the out-of-step halves, not a new loop. #3748 makes exchanging every mask the default; this PR should be merged after it, and @throny will rerun it on top of #3748. **Not tested** - NVIDIA and Intel under Wine (same dxil-spirv path, so expected to crash on `main` the same way); Windows (no dxil-spirv; DXC-style output is the safe form for native drivers too, but not measured). - DXIL size and translation time against `main`. **AI use** - Claude Code, Claude Opus 5.5: bisect, reading dxil-spirv's source, the inlining pass, tests and this description; reviewed by me. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Kalmarv commented 2026-12-02 16:27:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-12-02T16:27:12Z.


Thanks for jumping on this, @lucsoft — inlining HelperBody in try_to_bitcode is much cleaner than reverting b995046b6 (keeps all of #3655's ~91% exchange/barrier reductions, optimize, and split_compute budgets untouched).

Cross-linking #3694 (Windows AMD amdxc64.dll 0xc0000409 on RX 9070 XT and 0x887A0005 device removal on RX 6700 XT / RDNA2 iGPU since #3655): this removes the exact same internal functions taking addrspace(3)* groupshared pointers from emitted bitcode, so it likely fixes #3694 too. cc @Chrysana @ArtuArtaza if you can give #3707 a quick run on RX 9070 XT / RX 6700 XT.

(Also moved #3654 to Draft since its outlined xcl.sbuf.* helpers pass i32* output pointers and emit internal DXIL functions.)

AI use: Antigravity (Gemini 4 Neon) reviewed #3707's diff against #3694 and drafted this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7351968289 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7351968289). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-12-02T16:27:12Z. --- Thanks for jumping on this, @lucsoft — inlining `HelperBody` in `try_to_bitcode` is much cleaner than reverting `b995046b6` (keeps all of #3655's ~91% exchange/barrier reductions, `optimize`, and `split_compute` budgets untouched). Cross-linking #3694 (Windows AMD `amdxc64.dll` `0xc0000409` on RX 9070 XT and `0x887A0005` device removal on RX 6700 XT / RDNA2 iGPU since #3655): this removes the exact same internal functions taking `addrspace(3)*` groupshared pointers from emitted bitcode, so it likely fixes #3694 too. cc @Chrysana @ArtuArtaza if you can give #3707 a quick run on RX 9070 XT / RX 6700 XT. *(Also moved #3654 to Draft since its outlined `xcl.sbuf.*` helpers pass `i32*` output pointers and emit internal DXIL functions.)* AI use: Antigravity (Gemini 4 Neon) reviewed #3707's diff against #3694 and drafted this comment.
Kalmarv commented 2026-12-02 16:32:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-12-02T16:32:07Z.


merge-check
base: 5eaadb54c1
head: b2e6f239d4
merge: clean
build: cargo build --workspace -> ok (cargo build --release -p xcl -> ok)
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2974 passed, 1 failed, 52 ignored; SKIPPED: 24 (22 no wave64, 2 no heap windows); failing: gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads (passes on base 5eaadb54c)
review:

  • [FAILING GPU TEST ON NVIDIA] gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads fails deterministically on RTX 5070 Ti (driver 610.74) for every split thread count > 32 (48, 64, 96, 128; passes at 32 threads and passes with idioms=false; passes all thread counts on main 5eaadb54c).
    • Example (threads=48, idioms=true): every thread (t0..t47) outputs [0x48848442, 0x00004c84] ([1216644162, 19588]) instead of [0x48644442, 0x00004c64] ([1214530626, 19556]), i.e. every lane gets the upper half's values [66, 132, 132, 72, 132, 76] for j = 1, 2, 4 even though lower half had j=1 -> 68 (has=1) and j=2,4 -> 100.
    • Audited the full diff (module.rs, core_tests.rs, robustness_tests.rs) and the disassembled 48-thread DXIL: Module::inline_helpers / inline_call is clean and the emitted DXIL IR is mathematically valid (and a separate local revert of b995046b6 hit the exact same wrong output on RTX 5070 Ti, even with XCL_DXIL_NO_OPT disabling all opt passes). That strongly suggests an NVIDIA shader-compiler miscompilation triggered when @xcl.spin.wait is inlined into six_first_lanes's 10-word lazy meet.
  • Minor diff note: inline_helpers calls self.replace_uses(...) once per inlined call site (O(calls * insts)), which is fine for small shaders but easy to batch into one pass if needed.
  • Note on PR description CI failure: scripts/pr_check.py:66 rejects frames shown: none logged (the run did not reach its end) in the main smoke block because it expects a leading digit (^(\d+)). Changing that line to frames shown: 0 (crashed at ~3.5 s before first frame) (or maintainer override) clears it.
  • Not tested yet: AMD Windows (#3694), Linux/vkd3d-proton, wave64 GPU tests, heap-window GPU tests.
    performance: 60 s smoke of a retail title (ea3b5e4d), main 5eaadb54c vs #3707 b2e6f239d: 1693 -> 1419 frames shown (cold XCL_DIRECT_DXIL_SOURCE_ID translation cache on #3707 since module.rs changed; steady-state last presents per 2 s: 60 61 60 -> 60 60 60), peak commit 16723 -> 15881 MB, 0 device removals, 0 crashes.
    verdict: not yet: gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads fails deterministically on RTX 5070 Ti (48/64/96/128 threads, passes on main 5eaadb54c)
    hardware / tool and model: RTX 5070 Ti (driver 610.74), Ryzen 9 9950X, Windows 11 26200, rustc 1.99.0, DXC 1.9.2609.5 / Antigravity (Gemini 4 Neon)

AI use: Antigravity (Gemini 4 Neon) ran the build, full test suite, paired 60 s smoke, and diff/DXIL audit and drafted this merge-check.

<!-- greyfinch-sync:ivall/xcl:comment:7352086312 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7352086312). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-12-02T16:32:07Z. --- merge-check base: 5eaadb54c14e0fc29597b2a1689d7dbd83491303 head: b2e6f239d46b6d7e5b6cb118dbe38248cf2951d0 merge: clean build: cargo build --workspace -> ok (`cargo build --release -p xcl` -> ok) tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2974 passed, 1 failed, 52 ignored; SKIPPED: 24 (22 no wave64, 2 no heap windows); failing: `gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` (passes on base `5eaadb54c`) review: - **[FAILING GPU TEST ON NVIDIA]** `gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` fails deterministically on RTX 5070 Ti (driver 610.74) for every split thread count > 32 (`48`, `64`, `96`, `128`; passes at `32` threads and passes with `idioms=false`; passes all thread counts on `main` `5eaadb54c`). - Example (`threads=48`, `idioms=true`): every thread (`t0..t47`) outputs `[0x48848442, 0x00004c84]` (`[1216644162, 19588]`) instead of `[0x48644442, 0x00004c64]` (`[1214530626, 19556]`), i.e. every lane gets the upper half's values `[66, 132, 132, 72, 132, 76]` for `j = 1, 2, 4` even though lower half had `j=1 -> 68 (has=1)` and `j=2,4 -> 100`. - Audited the full diff (`module.rs`, `core_tests.rs`, `robustness_tests.rs`) and the disassembled 48-thread DXIL: `Module::inline_helpers` / `inline_call` is clean and the emitted DXIL IR is mathematically valid (and a separate local revert of `b995046b6` hit the exact same wrong output on RTX 5070 Ti, even with `XCL_DXIL_NO_OPT` disabling all opt passes). That strongly suggests an NVIDIA shader-compiler miscompilation triggered when `@xcl.spin.wait` is inlined into `six_first_lanes`'s 10-word lazy meet. - **Minor diff note:** `inline_helpers` calls `self.replace_uses(...)` once per inlined call site (`O(calls * insts)`), which is fine for small shaders but easy to batch into one pass if needed. - **Note on `PR description` CI failure:** `scripts/pr_check.py:66` rejects `frames shown: none logged (the run did not reach its end)` in the `main` smoke block because it expects a leading digit (`^(\d+)`). Changing that line to `frames shown: 0 (crashed at ~3.5 s before first frame)` (or maintainer override) clears it. - **Not tested yet:** AMD Windows (`#3694`), Linux/vkd3d-proton, wave64 GPU tests, heap-window GPU tests. performance: 60 s smoke of a retail title (`ea3b5e4d`), `main` `5eaadb54c` vs `#3707` `b2e6f239d`: 1693 -> 1419 frames shown (cold `XCL_DIRECT_DXIL_SOURCE_ID` translation cache on `#3707` since `module.rs` changed; steady-state last presents per 2 s: `60 61 60` -> `60 60 60`), peak commit `16723` -> `15881` MB, 0 device removals, 0 crashes. verdict: not yet: `gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` fails deterministically on RTX 5070 Ti (48/64/96/128 threads, passes on `main` `5eaadb54c`) hardware / tool and model: RTX 5070 Ti (driver 610.74), Ryzen 9 9950X, Windows 11 26200, rustc 1.99.0, DXC 1.9.2609.5 / Antigravity (Gemini 4 Neon) AI use: Antigravity (Gemini 4 Neon) ran the build, full test suite, paired 60 s smoke, and diff/DXIL audit and drafted this merge-check.
lucsoft commented 2026-12-02 17:31:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-02T17:31:15Z.


Thanks for the run and the numbers. I think the failing test is real rather than a driver bug: the inlined rendezvous let one elected lane signal and poll while the other lanes jumped to the end and relied on waiting there for it before loading the peer's slots. As a separate function NVIDIA's compiler evidently kept that wait; written into the caller it does not, so the other lanes read the slots before the partner half wrote them (which matches every lane getting the upper half's values).

886f9057 (second commit) makes every participating lane go round the polling loop: the arrival add, the counter load and the timeout CAS stay with the first lane, and every value that decides the outcome comes from it through waveReadLaneFirst, so all lanes leave the loop together and only then fence and load. The loop is a plain while loop with one exit; a first try that kept the old loop's several exits made dxil-spirv's translation spin on the GPU under Wine, so that shape is gone.

On RX 7800 XT / RADV under Wine at 886f9057: core_tests 36/0/1, robustness_tests 15/0, mask_exchange 20/0, idioms 9/0/1, module 58/0; the 180 s smoke block is in the description. Could you rerun gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads (and the suite) on the RTX 5070 Ti?

PR description check: the main block says frames shown: none logged because main ends at ~3.5 s under Wine; that is smoke.ps1's own output for a run that never reaches its end, so I left it as printed rather than writing a number it did not log.

AI use: Claude Code (Claude Opus 5.5) found the cause, wrote the change and drafted this reply; reviewed by me.

<!-- greyfinch-sync:ivall/xcl:comment:7353384609 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7353384609). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-02T17:31:15Z. --- Thanks for the run and the numbers. I think the failing test is real rather than a driver bug: the inlined rendezvous let one elected lane signal and poll while the other lanes jumped to the end and relied on waiting there for it before loading the peer's slots. As a separate function NVIDIA's compiler evidently kept that wait; written into the caller it does not, so the other lanes read the slots before the partner half wrote them (which matches every lane getting the upper half's values). 886f9057 (second commit) makes every participating lane go round the polling loop: the arrival add, the counter load and the timeout CAS stay with the first lane, and every value that decides the outcome comes from it through `waveReadLaneFirst`, so all lanes leave the loop together and only then fence and load. The loop is a plain while loop with one exit; a first try that kept the old loop's several exits made dxil-spirv's translation spin on the GPU under Wine, so that shape is gone. On RX 7800 XT / RADV under Wine at 886f9057: `core_tests` 36/0/1, `robustness_tests` 15/0, `mask_exchange` 20/0, `idioms` 9/0/1, `module` 58/0; the 180 s smoke block is in the description. Could you rerun `gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` (and the suite) on the RTX 5070 Ti? PR description check: the `main` block says `frames shown: none logged` because `main` ends at ~3.5 s under Wine; that is smoke.ps1's own output for a run that never reaches its end, so I left it as printed rather than writing a number it did not log. AI use: Claude Code (Claude Opus 5.5) found the cause, wrote the change and drafted this reply; reviewed by me.
cj-tomlin commented 2026-12-02 17:38:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-12-02T17:38:59Z.


Test report, head 886f9057a7ba3ed33c5b6418af62d51f68c336cf on main 5eaadb54c14e0fc29597b2a1689d7dbd83491303 (the head is based on it: the merge is a fast-forward).

  • Hardware: NVIDIA GeForce RTX 3080 10 GB (Ampere, wave32 only), driver 621.40, AMD Ryzen 7 7800X3D, Windows 11 build 26300, debug build.
  • cargo build --workspace: ok.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 2975 passed, 0 failed, 52 ignored; SKIPPED: 27 (22 no wave64, 2 no heap windows, 3 no D3D12 debug layer / d3d12SDKLayers.dll), the same 27 as plain main (2974 passed, 0 failed, 52 ignored) on this machine.
  • gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads, gpu_split_wave64_local_votes_leave_what_the_exchange_leaves, the new split_compute_rendezvous_and_barriers_have_no_helper_functions and console_wave64_compute_through_the_pso_hook_dispatch_and_read_back pass in that run, with no SKIPPED line for them.
  • On the first head b2e6f239 the uniform-first-lanes test also passed here: alone, 3 of 3 runs, and in a full suite (2975 passed, 0 failed). So the failure reported on the RTX 5070 Ti did not show on this card at either head.

Diff read (both commits, +202/-59 in module.rs, core_tests.rs, robustness_tests.rs). This says nothing about #3694 itself: no AMD GPU and no Wine here, and no title run.

Tool and model: Claude Code (Claude Opus 5.5) merged, built, ran the tests and drafted this; I checked it.

<!-- greyfinch-sync:ivall/xcl:comment:7353510033 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7353510033). Originally posted by [cj-tomlin](https://github.com/cj-tomlin) on 2026-12-02T17:38:59Z. --- Test report, head `886f9057a7ba3ed33c5b6418af62d51f68c336cf` on `main` `5eaadb54c14e0fc29597b2a1689d7dbd83491303` (the head is based on it: the merge is a fast-forward). - Hardware: NVIDIA GeForce RTX 3080 10 GB (Ampere, wave32 only), driver 621.40, AMD Ryzen 7 7800X3D, Windows 11 build 26300, debug build. - `cargo build --workspace`: ok. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 2975 passed, 0 failed, 52 ignored; SKIPPED: 27 (22 no wave64, 2 no heap windows, 3 no D3D12 debug layer / d3d12SDKLayers.dll), the same 27 as plain `main` (2974 passed, 0 failed, 52 ignored) on this machine. - `gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads`, `gpu_split_wave64_local_votes_leave_what_the_exchange_leaves`, the new `split_compute_rendezvous_and_barriers_have_no_helper_functions` and `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back` pass in that run, with no SKIPPED line for them. - On the first head `b2e6f239` the uniform-first-lanes test also passed here: alone, 3 of 3 runs, and in a full suite (2975 passed, 0 failed). So the failure reported on the RTX 5070 Ti did not show on this card at either head. Diff read (both commits, +202/-59 in `module.rs`, `core_tests.rs`, `robustness_tests.rs`). This says nothing about #3694 itself: no AMD GPU and no Wine here, and no title run. Tool and model: Claude Code (Claude Opus 5.5) merged, built, ran the tests and drafted this; I checked it.
Royalflamejlh commented 2026-12-02 17:44:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-12-02T17:44:50Z.


Edited: the narrowing below is wrong. With only pointer-taking helpers written in, the title still ended at start under Wine (exit 0x3 in d3d12core.dll, 2.4 s, 1 run); with every helper written in, as this PR does, it got past that (shader preparation ran on with no worker ending, 1 run). So this PR's inline-everything is what works; on a branch with #3654 the fix is to update #3654's tests to the written-in form, not to narrow this.

A note for when this meets #3654 (open, Kalmarv), which outlines more helpers (f16 rounding, raw heap loads and others) as internal functions with helper bodies.

We carry both on an integration branch (main 5eaadb54 + #3654 + other PRs). With this PR merged in as it is, Module::inline_helpers writes every function that has a helper body into its callers, which also undoes #3654's outlining. 11 of that branch's gpu::dxil tests then failed, all of them #3654's tests that check the outlined helpers in the written module (e.g. module::tests::legacy_products_share_one_zero_preserving_function, helper_and_entry_inherit_function_abbreviations, compute_fmad_outlines_word_results_and_keeps_float_consumers).

Since dxil-spirv only fails on pointer parameters, we narrowed it: only helpers whose function type takes a pointer are written into their callers; the rest stay functions:

let inline: Vec<bool> = self.funcs.iter().map(|f| f.helper_body.is_some() && self.takes_pointer(f.ty)).collect();
// ... inline only calls to `inline[f]`, and clear helper_body only for those

/// dxil-spirv cannot type a pointer parameter: only such helpers are written into their callers.
fn takes_pointer(&self, ty: Ty) -> bool {
    matches!(&self.types[ty.0 as usize], TypeDef::Func(_, params) if params.iter().any(|p| matches!(self.types[p.0 as usize], TypeDef::Ptr(..))))
}

With that, 7 of the 11 pass again. Four still fail because they count calls of helpers that do take a pointer and are now written in (xcl.spin.wait, xcl.raw.word4): lane_spill::tests::a_forwarded_readlane_exchanges_nothing_in_the_split_form and three lower_mem::stage_guard_tests. Those need the inlined form counted instead; the behaviour they guard is unchanged. Under Wine on CPU Vulkan, 1 run.

On main alone this does not come up, since only #3655's two helpers have bodies there. If #3654 lands first, the pointer check (or #3654's tests counting the inlined form) is what keeps both.

AI use: Claude Code (Claude Opus 5.5) found the interaction, made the change and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7353604337 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7353604337). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-12-02T17:44:50Z. --- **Edited: the narrowing below is wrong. With only pointer-taking helpers written in, the title still ended at start under Wine (exit 0x3 in `d3d12core.dll`, 2.4 s, 1 run); with every helper written in, as this PR does, it got past that (shader preparation ran on with no worker ending, 1 run). So this PR's inline-everything is what works; on a branch with #3654 the fix is to update #3654's tests to the written-in form, not to narrow this.** A note for when this meets #3654 (open, Kalmarv), which outlines more helpers (f16 rounding, raw heap loads and others) as internal functions with helper bodies. We carry both on an integration branch (`main` `5eaadb54` + #3654 + other PRs). With this PR merged in as it is, `Module::inline_helpers` writes **every** function that has a helper body into its callers, which also undoes #3654's outlining. 11 of that branch's `gpu::dxil` tests then failed, all of them #3654's tests that check the outlined helpers in the written module (e.g. `module::tests::legacy_products_share_one_zero_preserving_function`, `helper_and_entry_inherit_function_abbreviations`, `compute_fmad_outlines_word_results_and_keeps_float_consumers`). Since dxil-spirv only fails on pointer parameters, we narrowed it: only helpers whose function type takes a pointer are written into their callers; the rest stay functions: ```rust let inline: Vec<bool> = self.funcs.iter().map(|f| f.helper_body.is_some() && self.takes_pointer(f.ty)).collect(); // ... inline only calls to `inline[f]`, and clear helper_body only for those /// dxil-spirv cannot type a pointer parameter: only such helpers are written into their callers. fn takes_pointer(&self, ty: Ty) -> bool { matches!(&self.types[ty.0 as usize], TypeDef::Func(_, params) if params.iter().any(|p| matches!(self.types[p.0 as usize], TypeDef::Ptr(..)))) } ``` With that, 7 of the 11 pass again. Four still fail because they count calls of helpers that do take a pointer and are now written in (`xcl.spin.wait`, `xcl.raw.word4`): `lane_spill::tests::a_forwarded_readlane_exchanges_nothing_in_the_split_form` and three `lower_mem::stage_guard_tests`. Those need the inlined form counted instead; the behaviour they guard is unchanged. Under Wine on CPU Vulkan, 1 run. On `main` alone this does not come up, since only #3655's two helpers have bodies there. If #3654 lands first, the pointer check (or #3654's tests counting the inlined form) is what keeps both. AI use: Claude Code (Claude Opus 5.5) found the interaction, made the change and wrote this comment.
Edgaras0404 commented 2026-12-02 17:49:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Edgaras0404 on 2026-12-02T17:49:18Z.


merge-check claim
head: 886f9057a7

<!-- greyfinch-sync:ivall/xcl:comment:7353676858 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7353676858). Originally posted by [Edgaras0404](https://github.com/Edgaras0404) on 2026-12-02T17:49:18Z. --- merge-check claim head: 886f9057a7ba3ed33c5b6418af62d51f68c336cf
lucsoft commented 2026-12-02 18:03:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-02T18:03:19Z.


Thanks for running it against #3654, that interaction is real. I'd still keep this PR writing every helper into its callers, not only the ones that take a pointer:

  • The pointer parameter is what is proven to crash dxil-spirv (std::terminate() in get_type_id). Whether value-only internal functions are fine on every consumer is not known yet: DXC never writes internal functions in a non-library shader, so drivers see them only from us. #3694 (AMD's amdxc64.dll on Windows since #3655) hasn't been narrowed down to pointers either.
  • This PR is the fix for a crash at start, so I'd rather it make no assumption about which function shapes a compiler takes, and emit what DXC emits.
  • On main it makes no difference today (#3655's two helpers both take pointers).

So for #3654: if its outlined value-only helpers are shown to work where it matters (dxil-spirv under Wine on AMD and NVIDIA, and AMD on Windows given #3694), narrowing inline_helpers to pointer-taking helpers is the one-line change you posted (takes_pointer), and #3654 can carry it together with that evidence. Until then its tests would count the inlined form.

(Separately, correcting what I wrote above about the description check: the main block's frames shown now reads 0 with smoke.ps1's own words next to it, since that run logged 0 presents before it ended at ~3.5 s and the check needs a number.)

AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.

<!-- greyfinch-sync:ivall/xcl:comment:7353898536 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7353898536). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-02T18:03:19Z. --- Thanks for running it against #3654, that interaction is real. I'd still keep this PR writing every helper into its callers, not only the ones that take a pointer: - The pointer parameter is what is proven to crash dxil-spirv (`std::terminate()` in `get_type_id`). Whether value-only internal functions are fine on every consumer is not known yet: DXC never writes internal functions in a non-library shader, so drivers see them only from us. #3694 (AMD's `amdxc64.dll` on Windows since #3655) hasn't been narrowed down to pointers either. - This PR is the fix for a crash at start, so I'd rather it make no assumption about which function shapes a compiler takes, and emit what DXC emits. - On `main` it makes no difference today (#3655's two helpers both take pointers). So for #3654: if its outlined value-only helpers are shown to work where it matters (dxil-spirv under Wine on AMD and NVIDIA, and AMD on Windows given #3694), narrowing `inline_helpers` to pointer-taking helpers is the one-line change you posted (`takes_pointer`), and #3654 can carry it together with that evidence. Until then its tests would count the inlined form. (Separately, correcting what I wrote above about the description check: the `main` block's `frames shown` now reads `0` with smoke.ps1's own words next to it, since that run logged 0 presents before it ended at ~3.5 s and the check needs a number.) AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.
Edgaras0404 commented 2026-12-02 18:07:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Edgaras0404 on 2026-12-02T18:07:15Z.


merge-check
base: 817eb1fc9f
head: 886f9057a7
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> non-lib targets: 151 passed, 1 failed, 20 ignored. The lib binary aborts with 0x80004005 in hle::d3d12x::list_x on both trees and prints no test result: line: merge 1433 ok / 6 FAILED / 26 ignored, base 1158 ok / 280 FAILED / 26 ignored (2885 scheduled, so the lib run is incomplete). SKIPPED: 2 (no heap windows).
Merge failures: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu, gpu::recomp::tests::gpu_f32_compares_with_nan and gpu::recomp::tests::gpu_float_compares_random fail with the same values on base alone; hle::d3d12x::bind::tests::gpu_two_pass_pooled_scratch_respects_remaining_budget and hle::d3d12x::list_x::tests::a_reset_while_the_last_submit_runs_records_on_another_pc_list pass alone on both (parallel-run failures); two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs fails at gpu_two_pass_cache_e2e.rs:584 on both. Base additionally fails the split-wave64 tests (see review); they pass on the merge.
title run: merge 2e3184ec, 60 s smoke (Enter injected to clear the menu), title 1778c2d9: 1578 frames shown (PresentX 1578), last-3 presents 61/60/33, 0 device removals, 0 crashes, peak commit 17629 MB, exit 0x0. Base 817eb1fc: exit 0x887a0020, 0 frames, 1 device removal, 2 crashes, peak commit 5300 MB.
review:

  • AMD Windows regression from #3655 is fixed here. On base 817eb1fc, gpu::dxil::idioms::tests::gpu_split_wave64_local_votes_leave_what_the_exchange_leaves, ...::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads and gpu::dxil::module::split::tests::dispatch_chain_safe_barrier_crosses_cuts fail 2 of 2 runs each with CreateComputePipelineState: The GPU device instance has been suspended ... (0x887A0005), and the base gpu_compute_e2e binary dies with 0x887a0020 after 2 of its 9 tests. On the merge all three pass 2 of 2, gpu_compute_e2e is 9/9, and every module::split test passes. This is the RDNA2 device-removal symptom of #3694 and the AMD Windows coverage the PR listed as not tested.
  • inline_helpers writes every function with a helper body into its callers. On current main only xcl.spin.wait and xcl.barrier.arrive have bodies, so the scope is right. Royalflamejlh's edited comment says narrowing to pointer-taking helpers is not enough (the title still died under Wine with only those written in), so inline-everything is the intended form; if #3654 lands first, its tests must count the written-in form (or carry its takes_pointer variant with separate evidence). Merge-order note, not a defect here.
  • inline_call is hand-written CFG surgery: block cut, tail move, successor-phi rewrite, call operands mapped to helper arguments, helper values renumbered. I traced both helper bodies (11 and 7 blocks; neither ends with a terminator, so the appended Br(tail) is the only one) and found no wrong mapping. replace_uses runs once per call site (O(calls * insts)); fine here, easy to batch later.
  • debug_assert_eq! on the block layout only runs in debug/test builds; release trusts it. The new split_compute_rendezvous_and_barriers_have_no_helper_functions (64 and 256 threads, barrier in a loop and after it) validates the emitted DXIL and would fail without the change (two defines and the helper names); the two updated tests now assert no helper function and count the inlined atomics/CAS.
  • Gate note: PR description failed on the 17:58 run, which used the pre-edit body (frames shown: none logged); the body now reads frames shown: 0, so it should clear when it reruns. Build and test (Windows, no GPU) was still in progress when this check was made. Both must be green before merge.
    performance: base crashed before the world (0 frames), so a base/merge frame ratio is not meaningful. Merge 1578 frames / 17629 MB is at this machine's known clean 60 s main level (1615 frames / 16487 MB; +6.9 % peak) and close to the earlier clean merge (1618 / 17726). Writing each rendezvous into its caller gives up #3655's DXIL-size sharing, so DXIL grows; drivers inline before code generation, and the measured GPU work is unchanged within run-to-run noise.
    verdict: safe to merge
    hardware / tool and model: AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003; AMD Ryzen 5 5600X; Windows 10 build 19045 / DeepSeek V4.1 Flash 1017 (OpenCode)
<!-- greyfinch-sync:ivall/xcl:comment:7353966659 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7353966659). Originally posted by [Edgaras0404](https://github.com/Edgaras0404) on 2026-12-02T18:07:15Z. --- merge-check base: 817eb1fc9fb0763008ae5d8de1f7f586f442b51d head: 886f9057a7ba3ed33c5b6418af62d51f68c336cf merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> non-lib targets: 151 passed, 1 failed, 20 ignored. The lib binary aborts with 0x80004005 in `hle::d3d12x::list_x` on both trees and prints no `test result:` line: merge 1433 ok / 6 FAILED / 26 ignored, base 1158 ok / 280 FAILED / 26 ignored (2885 scheduled, so the lib run is incomplete). SKIPPED: 2 (no heap windows). Merge failures: `gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form`, `gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu`, `gpu::recomp::tests::gpu_f32_compares_with_nan` and `gpu::recomp::tests::gpu_float_compares_random` fail with the same values on base alone; `hle::d3d12x::bind::tests::gpu_two_pass_pooled_scratch_respects_remaining_budget` and `hle::d3d12x::list_x::tests::a_reset_while_the_last_submit_runs_records_on_another_pc_list` pass alone on both (parallel-run failures); `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` fails at `gpu_two_pass_cache_e2e.rs:584` on both. Base additionally fails the split-wave64 tests (see review); they pass on the merge. title run: merge `2e3184ec`, 60 s smoke (Enter injected to clear the menu), title 1778c2d9: 1578 frames shown (PresentX 1578), last-3 presents 61/60/33, 0 device removals, 0 crashes, peak commit 17629 MB, exit 0x0. Base `817eb1fc`: exit 0x887a0020, 0 frames, 1 device removal, 2 crashes, peak commit 5300 MB. review: - **AMD Windows regression from #3655 is fixed here.** On base `817eb1fc`, `gpu::dxil::idioms::tests::gpu_split_wave64_local_votes_leave_what_the_exchange_leaves`, `...::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` and `gpu::dxil::module::split::tests::dispatch_chain_safe_barrier_crosses_cuts` fail 2 of 2 runs each with `CreateComputePipelineState: The GPU device instance has been suspended ... (0x887A0005)`, and the base `gpu_compute_e2e` binary dies with `0x887a0020` after 2 of its 9 tests. On the merge all three pass 2 of 2, `gpu_compute_e2e` is 9/9, and every `module::split` test passes. This is the RDNA2 device-removal symptom of #3694 and the AMD Windows coverage the PR listed as not tested. - `inline_helpers` writes every function with a helper body into its callers. On current `main` only `xcl.spin.wait` and `xcl.barrier.arrive` have bodies, so the scope is right. Royalflamejlh's edited comment says narrowing to pointer-taking helpers is not enough (the title still died under Wine with only those written in), so inline-everything is the intended form; if #3654 lands first, its tests must count the written-in form (or carry its `takes_pointer` variant with separate evidence). Merge-order note, not a defect here. - `inline_call` is hand-written CFG surgery: block cut, tail move, successor-phi rewrite, call operands mapped to helper arguments, helper values renumbered. I traced both helper bodies (11 and 7 blocks; neither ends with a terminator, so the appended `Br(tail)` is the only one) and found no wrong mapping. `replace_uses` runs once per call site (`O(calls * insts)`); fine here, easy to batch later. - `debug_assert_eq!` on the block layout only runs in debug/test builds; release trusts it. The new `split_compute_rendezvous_and_barriers_have_no_helper_functions` (64 and 256 threads, barrier in a loop and after it) validates the emitted DXIL and would fail without the change (two `define`s and the helper names); the two updated tests now assert no helper function and count the inlined atomics/CAS. - Gate note: `PR description` failed on the 17:58 run, which used the pre-edit body (`frames shown: none logged`); the body now reads `frames shown: 0`, so it should clear when it reruns. `Build and test (Windows, no GPU)` was still in progress when this check was made. Both must be green before merge. performance: base crashed before the world (0 frames), so a base/merge frame ratio is not meaningful. Merge 1578 frames / 17629 MB is at this machine's known clean 60 s main level (1615 frames / 16487 MB; +6.9 % peak) and close to the earlier clean merge (1618 / 17726). Writing each rendezvous into its caller gives up #3655's DXIL-size sharing, so DXIL grows; drivers inline before code generation, and the measured GPU work is unchanged within run-to-run noise. verdict: safe to merge hardware / tool and model: AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003; AMD Ryzen 5 5600X; Windows 10 build 19045 / DeepSeek V4.1 Flash 1017 (OpenCode)
Foniass commented 2026-12-02 18:08:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T18:08:46Z.


Test report (not a merge-check: PR description red)
base: 5eaadb54c1
head: 886f9057a7
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2975 passed, 0 failed, 52 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (b2e6f239, +146/-31) and the follow-up commit 886f9057 ("poll the split-wave rendezvous with every lane", module.rs ~538-660, +56/-28). Since #3655 the split-wave64 rendezvous (xcl.spin.wait) and the safe group barrier (xcl.barrier.arrive) are internal DXIL functions with groupshared pointer parameters, which dxil-spirv can't handle (titles under vkd3d-proton end at about 3.5 s); this PR inlines every helper body into the entry in try_to_bitcode, on every module. The reported NVIDIA failure: a merge-check on b2e6f239 (RTX 5070 Ti, driver 610.74) had idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads failing at 48/64/96/128 threads, most likely because only the first lane entered the loop and the other lanes branched straight to exit, so once the loop sits in the caller NVIDIA's independent thread scheduling doesn't keep their wait at the merge. 886f9057 makes every participating lane go round the loop, with only the arrival add, the counter load and the timeout CAS behind first, each result broadcast with waveReadLaneFirst right after the branch rejoins, so the loop exit is uniform and the fence and slot loads come only after the exchange completed or failed; under split wave64 each half is its own hardware wave with its own first lane and own counter; by reading, the phis and dominance across the 11 blocks hold and the outcomes match the old loop (a negative counter still fails ahead of done, a timeout fails only when the CAS saw the peer unchanged or failed, otherwise it succeeds or polls again as the old raced edge did). This run (below) passes that test at 886f9057 on an RTX 5070 Ti (driver 621.14), along with the whole suite. Still open: (1) rendezvous structure assertions deleted, not ported. split_lds_reads_meet_after_writes (core_tests.rs ~150-170) lost the checks for shared arrival counters, one TGSM fence before and after the broadcast, the no-partner edge skipping both fences, leader election by waveIsFirstLane and the broadcast phi, all still true of the inlined code; only a no-helper check and an atomic count are left, close to the rule against weakening assertions; and nothing at IR level pins the new every-lane loop shape (one back edge, one exit), though the commit message says a version with several exits hung dxil-spirv. (2) inline_helpers inlines every helper_body, not only the two its doc names, which undoes #3654's outlining, leaves Op::CallOutput unhandled, and breaks #3645's new helper test after a clean textual merge. (3) Cost: each poll now runs two to three times as many instructions (two branches, two waveReadLaneFirst, about 20 ALU ops), so a partner that never arrives takes correspondingly longer to fail (1 << 20 polls); unmeasured on Windows. (4) Minor: each inline rescans from block 0 (find_map ~704) and runs replace_uses over the whole module (~793), O(sites × module); the new test turns any disassemble error into SKIPPED no DXC (~201), which would hide malformed bitcode; the description's "the GPU code should not change" no longer holds after 886f9057. Fine: the CFG splice, phi and argument remapping (forward refs included), shifted branch and switch targets, the tail's successor phis (self-loop included), the RPO layout, dropping the helper declarations, inlining per piece module after split_compute, the source-hash cache key, and a new test that fails on main.
performance: 60 s smoke of a retail title, main 5eaadb54 vs this merge (886f9057): 1422 -> 1576 frames shown (110 %; last presents per 2 s: 60 60 60), peak commit 17184 -> 16037 MB, 0 device removals, 0 crashes.
assessment: merges, builds and passes the whole suite on current main (including the test the earlier RTX 5070 Ti report had failing), and the smoke run is clean; the blocking point is in the review: the rendezvous structure assertions in split_lds_reads_meet_after_writes were deleted rather than ported, and inline_helpers inlines every helper (undoing #3654's outlining); the reported RTX 5070 Ti failure itself passes in this run
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7354005343 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7354005343). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T18:08:46Z. --- Test report (not a merge-check: `PR description` red) base: 5eaadb54c14e0fc29597b2a1689d7dbd83491303 head: 886f9057a7ba3ed33c5b6418af62d51f68c336cf merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2975 passed, 0 failed, 52 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read the whole diff (b2e6f239, +146/-31) and the follow-up commit 886f9057 ("poll the split-wave rendezvous with every lane", `module.rs` ~538-660, +56/-28). Since #3655 the split-wave64 rendezvous (`xcl.spin.wait`) and the safe group barrier (`xcl.barrier.arrive`) are internal DXIL functions with groupshared pointer parameters, which dxil-spirv can't handle (titles under vkd3d-proton end at about 3.5 s); this PR inlines every helper body into the entry in `try_to_bitcode`, on every module. **The reported NVIDIA failure:** a merge-check on b2e6f239 (RTX 5070 Ti, driver 610.74) had `idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` failing at 48/64/96/128 threads, most likely because only the first lane entered the loop and the other lanes branched straight to `exit`, so once the loop sits in the caller NVIDIA's independent thread scheduling doesn't keep their wait at the merge. 886f9057 makes every participating lane go round the loop, with only the arrival add, the counter load and the timeout CAS behind `first`, each result broadcast with `waveReadLaneFirst` right after the branch rejoins, so the loop exit is uniform and the fence and slot loads come only after the exchange completed or failed; under split wave64 each half is its own hardware wave with its own first lane and `own` counter; by reading, the phis and dominance across the 11 blocks hold and the outcomes match the old loop (a negative counter still fails ahead of `done`, a timeout fails only when the CAS saw the peer unchanged or failed, otherwise it succeeds or polls again as the old `raced` edge did). **This run (below) passes that test at 886f9057 on an RTX 5070 Ti (driver 621.14)**, along with the whole suite. Still open: (1) **rendezvous structure assertions deleted, not ported.** `split_lds_reads_meet_after_writes` (`core_tests.rs` ~150-170) lost the checks for shared arrival counters, one TGSM fence before and after the broadcast, the no-partner edge skipping both fences, leader election by `waveIsFirstLane` and the broadcast phi, all still true of the inlined code; only a no-helper check and an atomic count are left, close to the rule against weakening assertions; and nothing at IR level pins the new every-lane loop shape (one back edge, one exit), though the commit message says a version with several exits hung dxil-spirv. (2) **`inline_helpers` inlines every `helper_body`, not only the two its doc names**, which undoes #3654's outlining, leaves `Op::CallOutput` unhandled, and breaks #3645's new helper test after a clean textual merge. (3) Cost: each poll now runs two to three times as many instructions (two branches, two `waveReadLaneFirst`, about 20 ALU ops), so a partner that never arrives takes correspondingly longer to fail (1 << 20 polls); unmeasured on Windows. (4) Minor: each inline rescans from block 0 (`find_map` ~704) and runs `replace_uses` over the whole module (~793), O(sites × module); the new test turns any `disassemble` error into `SKIPPED no DXC` (~201), which would hide malformed bitcode; the description's "the GPU code should not change" no longer holds after 886f9057. Fine: the CFG splice, phi and argument remapping (forward refs included), shifted branch and switch targets, the tail's successor phis (self-loop included), the RPO layout, dropping the helper declarations, inlining per piece module after `split_compute`, the source-hash cache key, and a new test that fails on main. performance: 60 s smoke of a retail title, main 5eaadb54 vs this merge (886f9057): 1422 -> 1576 frames shown (110 %; last presents per 2 s: 60 60 60), peak commit 17184 -> 16037 MB, 0 device removals, 0 crashes. assessment: merges, builds and passes the whole suite on current main (including the test the earlier RTX 5070 Ti report had failing), and the smoke run is clean; the blocking point is in the review: the rendezvous structure assertions in `split_lds_reads_meet_after_writes` were deleted rather than ported, and `inline_helpers` inlines every helper (undoing #3654's outlining); the reported RTX 5070 Ti failure itself passes in this run hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
Royalflamejlh commented 2026-12-02 18:09:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-12-02T18:09:43Z.


Agreed, and our own run backs it: with only the pointer-taking helpers written in, the title still ended at start under Wine (exit 0x3 in d3d12core.dll, 2.4 s, 1 run); with every helper written in, as here, it got past that. I edited my comment above to say so; on our branch #3654's tests are what change.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7354033046 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7354033046). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-12-02T18:09:43Z. --- Agreed, and our own run backs it: with only the pointer-taking helpers written in, the title still ended at start under Wine (exit 0x3 in `d3d12core.dll`, 2.4 s, 1 run); with every helper written in, as here, it got past that. I edited my comment above to say so; on our branch #3654's tests are what change. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Foniass commented 2026-12-02 18:14:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T18:14:57Z.


merge-check
base: 5eaadb54c1
head: 886f9057a7
merge: clean
build: ok
tests: 2975 passed, 0 failed, 52 ignored; 28 skipped, the same as on main
review: 2 high, 2 medium, 2 nits (below)
performance: 60 s smoke run: 1422 → 1576 frames (110 % of main), peak commit 17184 → 16037 MB, no device removal, no crash
title run: not run
verdict: not yet: 2 high findings (1 and 2 below), and PR description is red: its main smoke block says frames shown: none logged, so it needs a smoke pair from runs that finish. The earlier RTX 5070 Ti failure of gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads passes in this run
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5


In short: The PR fixes titles that stop at about 3.5 s under vkd3d-proton: it copies the split-wave rendezvous and barrier helpers into the shader entry, because dxil-spirv cannot handle helper functions that take groupshared pointers. The NVIDIA failure from the last check is fixed (the split-wave test now passes on an RTX 5070 Ti) and the whole suite passes. Two findings should be fixed before merging: deleted test assertions, and the inlining reaching every helper instead of the two it is meant for. The PR description check is also red (see the verdict).

High

  1. Rendezvous assertions deleted, not ported. split_lds_reads_meet_after_writes (core_tests.rs ~150-170) lost its checks for the shared arrival counters, the fences around the broadcast, the no-partner edge, the leader election and the broadcast phi, though all of these are still true of the inlined code. Only a no-helper check and an atomic count remain, and nothing pins the new loop shape (one back edge, one exit), which the commit message says matters for dxil-spirv. Port the checks to the inlined form instead of deleting them.
  2. Every helper is inlined, not only the two the doc names. inline_helpers inlines every helper_body. That undoes #3654's outlining, leaves Op::CallOutput unhandled, and breaks #3645's new helper test after a clean textual merge. Limit it to xcl.spin.wait and xcl.barrier.arrive, or say why all of them must go.

Medium

  1. The wait loop costs 2-3x more per poll. Every lane now goes round the loop (two branches, two waveReadLaneFirst, about 20 ALU ops per poll), so a partner that never arrives takes that much longer to time out (1 << 20 polls). Not measured on Windows.
  2. The new test can hide malformed bitcode. It turns any disassemble error into SKIPPED no DXC (~201), so bitcode DXC rejects would show as a skip, not a failure. Skip only when DXC is missing.

Nit

  1. Quadratic inlining. Each inline rescans from block 0 (find_map ~704) and runs replace_uses over the whole module (~793): O(call sites × module size).
  2. Description out of date. "the GPU code should not change" no longer holds after 886f9057.
Checked and fine
  • The CFG splice, phi and argument remapping (forward references included), shifted branch and switch targets, the tail's successor phis (self-loop included), the RPO layout and dropping the helper declarations.
  • The new every-lane loop: by reading, the phis and dominance across its 11 blocks hold, and its outcomes match the old loop's (a negative counter still fails ahead of done, a timeout fails only when the CAS saw the peer unchanged).
  • Inlining per piece module after split_compute, the source-hash cache key, and a new test that fails on main.
How this was tested
  • Merged onto main 5eaadb54, then cargo build --workspace and cargo test --workspace --no-fail-fast -- --test-threads=4.
  • The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar).
  • scripts/smoke.ps1: 60 s of a retail title on main 5eaadb54 and on this merge; presents per 2 s at the end: 60 60 60.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7354212784 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7354212784). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T18:14:57Z. --- merge-check base: 5eaadb54c14e0fc29597b2a1689d7dbd83491303 head: 886f9057a7ba3ed33c5b6418af62d51f68c336cf merge: clean build: ok tests: 2975 passed, 0 failed, 52 ignored; 28 skipped, the same as on main review: 2 high, 2 medium, 2 nits (below) performance: 60 s smoke run: 1422 → 1576 frames (110 % of main), peak commit 17184 → 16037 MB, no device removal, no crash title run: not run verdict: not yet: 2 high findings (1 and 2 below), and `PR description` is red: its main smoke block says `frames shown: none logged`, so it needs a smoke pair from runs that finish. The earlier RTX 5070 Ti failure of `gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` passes in this run hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 --- **In short:** The PR fixes titles that stop at about 3.5 s under vkd3d-proton: it copies the split-wave rendezvous and barrier helpers into the shader entry, because dxil-spirv cannot handle helper functions that take groupshared pointers. The NVIDIA failure from the last check is fixed (the split-wave test now passes on an RTX 5070 Ti) and the whole suite passes. Two findings should be fixed before merging: deleted test assertions, and the inlining reaching every helper instead of the two it is meant for. The `PR description` check is also red (see the verdict). #### High 1. **Rendezvous assertions deleted, not ported.** `split_lds_reads_meet_after_writes` (`core_tests.rs` ~150-170) lost its checks for the shared arrival counters, the fences around the broadcast, the no-partner edge, the leader election and the broadcast phi, though all of these are still true of the inlined code. Only a no-helper check and an atomic count remain, and nothing pins the new loop shape (one back edge, one exit), which the commit message says matters for dxil-spirv. Port the checks to the inlined form instead of deleting them. 2. **Every helper is inlined, not only the two the doc names.** `inline_helpers` inlines every `helper_body`. That undoes #3654's outlining, leaves `Op::CallOutput` unhandled, and breaks #3645's new helper test after a clean textual merge. Limit it to `xcl.spin.wait` and `xcl.barrier.arrive`, or say why all of them must go. #### Medium 3. **The wait loop costs 2-3x more per poll.** Every lane now goes round the loop (two branches, two `waveReadLaneFirst`, about 20 ALU ops per poll), so a partner that never arrives takes that much longer to time out (1 << 20 polls). Not measured on Windows. 4. **The new test can hide malformed bitcode.** It turns any `disassemble` error into `SKIPPED no DXC` (~201), so bitcode DXC rejects would show as a skip, not a failure. Skip only when DXC is missing. #### Nit 5. **Quadratic inlining.** Each inline rescans from block 0 (`find_map` ~704) and runs `replace_uses` over the whole module (~793): O(call sites × module size). 6. **Description out of date.** "the GPU code should not change" no longer holds after 886f9057. <details><summary>Checked and fine</summary> - The CFG splice, phi and argument remapping (forward references included), shifted branch and switch targets, the tail's successor phis (self-loop included), the RPO layout and dropping the helper declarations. - The new every-lane loop: by reading, the phis and dominance across its 11 blocks hold, and its outcomes match the old loop's (a negative counter still fails ahead of `done`, a timeout fails only when the CAS saw the peer unchanged). - Inlining per piece module after `split_compute`, the source-hash cache key, and a new test that fails on main. </details> <details><summary>How this was tested</summary> - Merged onto main `5eaadb54`, then `cargo build --workspace` and `cargo test --workspace --no-fail-fast -- --test-threads=4`. - The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar). - `scripts/smoke.ps1`: 60 s of a retail title on main `5eaadb54` and on this merge; presents per 2 s at the end: 60 60 60. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
lucsoft commented 2026-12-02 18:53:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-02T18:53:00Z.


Thanks for the 5070 Ti run and the close read. On the points:

  1. Rendezvous assertions: fair, the helper commit cut them to an atomic count. 912ff558 (third commit) ports them to the inlined form in split_lds_reads_meet_after_writes (one poll and one timeout CAS per exchange on the same partner counter, one arrival per exchange on one own counter, a fence before and after each, a first lane per exchange) and adds inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics at IR level: one back edge, one exit, all three atomics behind the first-lane branch, both fences on the participating path and the no-partner edge around them.
  2. Every helper inlined: intended. Royalflamejlh's run above has the title still ending at start under Wine with only the pointer-taking helpers written in, and with all of them it gets past; DXC writes none in a non-library shader either. On main only #3655's two have bodies. Op::CallOutput and #3645's helper test aren't on main, so whichever of #3654 / #3645 lands after this counts the inlined form (or carries a narrowing with its own evidence).
  3. PR description: that run read the body before the edit; the main block now says frames shown: 0 with smoke.ps1's own words next to it. main can't produce a run that reaches its end under Wine (it ends at ~3.5 s), so that is the honest number.
  4. Minor: inline_helpers now walks the module once and replaces the results in one walk; the new test skips only when DXC is missing; the description no longer says the GPU code is unchanged and states the per-poll cost.

912ff558: dxil modules green under Wine (RX 7800 XT), smoke block in the description.

AI use: Claude Code (Claude Opus 5.5) made the changes and drafted this reply; reviewed by me.

<!-- greyfinch-sync:ivall/xcl:comment:7355296231 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7355296231). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-02T18:53:00Z. --- Thanks for the 5070 Ti run and the close read. On the points: 1. **Rendezvous assertions:** fair, the helper commit cut them to an atomic count. 912ff558 (third commit) ports them to the inlined form in `split_lds_reads_meet_after_writes` (one poll and one timeout CAS per exchange on the same partner counter, one arrival per exchange on one own counter, a fence before and after each, a first lane per exchange) and adds `inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics` at IR level: one back edge, one exit, all three atomics behind the first-lane branch, both fences on the participating path and the no-partner edge around them. 2. **Every helper inlined:** intended. Royalflamejlh's run above has the title still ending at start under Wine with only the pointer-taking helpers written in, and with all of them it gets past; DXC writes none in a non-library shader either. On `main` only #3655's two have bodies. `Op::CallOutput` and #3645's helper test aren't on `main`, so whichever of #3654 / #3645 lands after this counts the inlined form (or carries a narrowing with its own evidence). 3. **PR description:** that run read the body before the edit; the `main` block now says `frames shown: 0` with smoke.ps1's own words next to it. `main` can't produce a run that reaches its end under Wine (it ends at ~3.5 s), so that is the honest number. 4. **Minor:** `inline_helpers` now walks the module once and replaces the results in one walk; the new test skips only when DXC is missing; the description no longer says the GPU code is unchanged and states the per-poll cost. 912ff558: dxil modules green under Wine (RX 7800 XT), smoke block in the description. AI use: Claude Code (Claude Opus 5.5) made the changes and drafted this reply; reviewed by me.
stijn-boer commented 2026-12-02 19:04:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T19:04:01Z.


merge-check
base: c53e969602
head: 912ff558e9
verdict: not yet: the focused AMD barrier tests and retail completion checks passed, and the workspace aborts affected both trees. The fresh-data smoke pair on this head showed fewer frames and higher peak commit on the merge. That performance signal needs a repeat. The later merge check covers a newer head.

Windows / AMD RDNA4 — split-wave barriers and retail smoke on 912ff55

Clean merge onto main (merge commit 88d11dc839c66baaab6c01d671a431156a45361b). git diff --check was clean. GitHub's PR description check was green and the Windows CI job was still in progress when checked.

Setup

  • AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332
  • Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching d3d12SDKLayers.dll, DXC 1.9.2609.5

Tested

cargo build --workspace passed on both builds. cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output exited 101 on both.

Build Passed Failed Ignored SKIPPED notices
main 338 3 23 0
Merged PR 1584 9 47 2

Counts are partial because the library aborted on each build. The merge reached more tests before aborting.

  • Focused AMD tests — 5 passed, 0 failed, 0 ignored, 0 skip notices with --test-threads=1 --show-output --nocapture. Both new tests passed, as did split_lds_reads_meet_after_writes, a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly, and gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads.
  • Debug-layer coverage — both debug-layer E2E tests, including DRED, and uploads_start_from_each_subresources_state passed on both builds.
Workspace failures, aborts, and skips
  • Both runs reported fuzz_validate_and_gpu_1, fuzz_validate_and_gpu_3, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs. The latter reported two failures on the merge and one on base.
  • The other five named failures from the merged suite also failed in a focused rerun on base (0 passed, 5 failed, 0 ignored): gpu_smem_flat_descriptor_windows_and_limits, f32_programs_on_the_gpu, gpu_f32_compares_with_nan, gpu_float_compares_random, and gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends.
  • The library process exited 0xc0000409 on base and 0x80004005 on the merge. Base also aborted gpu_compute_e2e with 0xc0000409. The merge logged two heap-window skips, for two_pass_binds_set_the_shared_view_heap and heap_window_out_of_memory_falls_back_to_the_switch_form.

Retail smoke

Ran scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary> with XCL_UMA_DRIVER=mixed for title hash 2c508222.

Build / attempt Exit Frames logged Device removals logged Peak commit
main, initial 0xc0000409 None 0 1320 MB
Merged PR, initial shared data root 0x0 1173 0 15062 MB
Merged PR, fresh data root 0x0 962 0 15897 MB
main, fresh data root 0x0 1299 0 11242 MB

Both fresh-data runs finished without a logged crash. The merge showed 26% fewer frames and 41% higher peak commit in that pair. Startup outcomes varied across attempts, so the pair records a performance difference without establishing its cause.

Diff review

The focused checks exercised the latest head's inlined rendezvous shape, fences, and arrival atomics. The AMD GPU test that previously failed on NVIDIA passed here.

Not tested

Remaining tests after the workspace aborts, NVIDIA on this head, and repeated fresh-data performance pairs.

AI use

Codex (GPT-6) merged and built the PR, ran the tests and smoke comparisons, reviewed the changed paths, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7355570187 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7355570187). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-02T19:04:01Z. --- merge-check base: c53e96960265a82477a9c98677afb0402e98d486 head: 912ff558e932264511f386eb8b7e97cbf7cf46e2 verdict: not yet: the focused AMD barrier tests and retail completion checks passed, and the workspace aborts affected both trees. The fresh-data smoke pair on this head showed fewer frames and higher peak commit on the merge. That performance signal needs a repeat. The [later merge check](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7377593043) covers a newer head. **Windows / AMD RDNA4 — split-wave barriers and retail smoke on `912ff55`** Clean merge onto `main` (merge commit `88d11dc839c66baaab6c01d671a431156a45361b`). `git diff --check` was clean. GitHub's PR description check was green and the Windows CI job was still in progress when checked. **Setup** - AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332 - Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching `d3d12SDKLayers.dll`, DXC 1.9.2609.5 **Tested** `cargo build --workspace` passed on both builds. `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` exited 101 on both. | Build | Passed | Failed | Ignored | `SKIPPED` notices | |---|---:|---:|---:|---:| | `main` | 338 | 3 | 23 | 0 | | Merged PR | 1584 | 9 | 47 | 2 | Counts are partial because the library aborted on each build. The merge reached more tests before aborting. - **Focused AMD tests** — 5 passed, 0 failed, 0 ignored, 0 skip notices with `--test-threads=1 --show-output --nocapture`. Both new tests passed, as did `split_lds_reads_meet_after_writes`, `a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly`, and `gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads`. - **Debug-layer coverage** — both debug-layer E2E tests, including DRED, and `uploads_start_from_each_subresources_state` passed on both builds. <details><summary>Workspace failures, aborts, and skips</summary> - Both runs reported `fuzz_validate_and_gpu_1`, `fuzz_validate_and_gpu_3`, and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`. The latter reported two failures on the merge and one on base. - The other five named failures from the merged suite also failed in a focused rerun on base (0 passed, 5 failed, 0 ignored): `gpu_smem_flat_descriptor_windows_and_limits`, `f32_programs_on_the_gpu`, `gpu_f32_compares_with_nan`, `gpu_float_compares_random`, and `gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends`. - The library process exited `0xc0000409` on base and `0x80004005` on the merge. Base also aborted `gpu_compute_e2e` with `0xc0000409`. The merge logged two heap-window skips, for `two_pass_binds_set_the_shared_view_heap` and `heap_window_out_of_memory_falls_back_to_the_switch_form`. </details> **Retail smoke** Ran `scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary>` with `XCL_UMA_DRIVER=mixed` for title hash `2c508222`. | Build / attempt | Exit | Frames logged | Device removals logged | Peak commit | |---|---|---:|---:|---:| | `main`, initial | `0xc0000409` | None | 0 | 1320 MB | | Merged PR, initial shared data root | `0x0` | 1173 | 0 | 15062 MB | | Merged PR, fresh data root | `0x0` | 962 | 0 | 15897 MB | | `main`, fresh data root | `0x0` | 1299 | 0 | 11242 MB | Both fresh-data runs finished without a logged crash. The merge showed 26% fewer frames and 41% higher peak commit in that pair. Startup outcomes varied across attempts, so the pair records a performance difference without establishing its cause. **Diff review** The focused checks exercised the latest head's inlined rendezvous shape, fences, and arrival atomics. The AMD GPU test that previously failed on NVIDIA passed here. **Not tested** Remaining tests after the workspace aborts, NVIDIA on this head, and repeated fresh-data performance pairs. **AI use** Codex (GPT-6) merged and built the PR, ran the tests and smoke comparisons, reviewed the changed paths, and drafted this report.
Kalmarv commented 2026-12-02 19:43:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-12-02T19:43:30Z.


merge-check
base: 5ad98adbc3
head: 912ff558e9
merge: clean (75b9667fae0a1c82823f0e330ba73bfea5985e8a; git diff --check clean; 3 files, +315/-59)
build: cargo test -p xcl --lib --no-run -> ok (19 lib-test warnings, same as origin/main 5ad98adbc; full workspace/release build skipped after targeted GPU regression failed)
tests: targeted split-wave64 and barrier GPU/DXIL suite (cargo test -p xcl --lib -- gpu_split_wave64 split_lds_reads_meet_after_writes a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics split_compute_rendezvous_and_barriers_have_no_helper_functions --nocapture, DXC 1.9.2609.5) -> 24 passed, 1 failed, 0 ignored; SKIPPED: 0; failing: gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads (fails 5/5 deterministically on merged PR, passes 5/5 on origin/main 5ad98adbc). Full scripts/test.ps1 skipped after this deterministic failure.
title run: skipped (targeted split-wave64 GPU regression test failed 5/5 on this driver before reaching retail title run)
review: Read the full diff (core_tests.rs, module.rs, robustness_tests.rs). The CFG splice in inline_helpers/inline_call, phi/successor updates, and the single-loop every-lane spin_wait logic look sound by reading (single back edge, single exit, waveReadLaneFirst broadcasts after each first-lane atomic/CAS, failure still takes priority over unsigned >= need, and the restored assertions in core_tests.rs / robustness_tests.rs plus inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics all pass with DXC 1.9.2609.5). However, on NVIDIA RTX 5070 Ti with driver 610.74, gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads still fails 5/5 deterministically on 912ff558e while passing 5/5 on origin/main 5ad98adbc:

  • Panic: crates\xcl\src\gpu\dxil\idioms.rs:638:17: assertion left == right failed: thread 0 of 48
    • left: [1216644162, 19588] (0x4884_4442, 0x4C84)
    • right: [1214530626, 19556] (0x4864_4442, 0x4C64)
  • Byte breakdown: j=0,1,3,5 match (0x42, 0x44, 0x48, 0x4C), while the two all-inactive-EXEC cases j=2 (t == 200, lo=0, hi=0) and j=4 (t > 100, lo=0, hi=0) return 0x84 (132 = 100 + 32, upper-half lane 0) instead of 0x64 (100 = 100 + 0, lower-half lane 0) on thread 0 of 48 (threads=32 with Partner::Missing passes; threads=48 is the first size using spin_wait). Note that this same test passed on @Foniass's RTX 5070 Ti with newer driver 621.14, so this appears to be an NVIDIA driver 610.74 codegen/reconvergence issue specific to the inlined form of spin_wait (it does not reproduce on origin/main 5ad98adbc where @xcl.spin.wait stays an internal function).
  • Minor note from reading: inline_helpers replaces call results in a single non-transitive replace_uses pass (fine for spin_wait and barrier_arrive which return fresh Phis, but worth keeping in mind if a future helper ever returned an argument directly).
    performance: Not measured (stopped at the failing targeted GPU regression test).
    verdict: not yet: gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads still fails 5/5 deterministically on RTX 5070 Ti driver 610.74 (thread 0 of 48: j=2 and j=4 read 132 instead of 100), whereas origin/main 5ad98adbc passes 5/5 on the exact same machine and driver.
    hardware / tool and model: NVIDIA GeForce RTX 5070 Ti (driver 610.74 / 32.0.16.1074), AMD Ryzen 9 9950X 16-Core, Windows 11 Pro 26200, rustc 1.99.0 (b940084d7 2026-09-28), DXC 1.9.2609.5 / Antigravity (Gemini 4 Neon)
<!-- greyfinch-sync:ivall/xcl:comment:7356622709 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7356622709). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-12-02T19:43:30Z. --- merge-check base: 5ad98adbc360225ac8a57ad9661e16fe8df9d8dd head: 912ff558e932264511f386eb8b7e97cbf7cf46e2 merge: clean (75b9667fae0a1c82823f0e330ba73bfea5985e8a; `git diff --check` clean; 3 files, +315/-59) build: `cargo test -p xcl --lib --no-run` -> ok (19 lib-test warnings, same as `origin/main` `5ad98adbc`; full workspace/release build skipped after targeted GPU regression failed) tests: targeted split-wave64 and barrier GPU/DXIL suite (`cargo test -p xcl --lib -- gpu_split_wave64 split_lds_reads_meet_after_writes a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics split_compute_rendezvous_and_barriers_have_no_helper_functions --nocapture`, DXC 1.9.2609.5) -> 24 passed, 1 failed, 0 ignored; SKIPPED: 0; failing: `gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` (fails 5/5 deterministically on merged PR, passes 5/5 on `origin/main` `5ad98adbc`). Full `scripts/test.ps1` skipped after this deterministic failure. title run: skipped (targeted split-wave64 GPU regression test failed 5/5 on this driver before reaching retail title run) review: Read the full diff (`core_tests.rs`, `module.rs`, `robustness_tests.rs`). The CFG splice in `inline_helpers`/`inline_call`, phi/successor updates, and the single-loop every-lane `spin_wait` logic look sound by reading (single back edge, single exit, `waveReadLaneFirst` broadcasts after each first-lane atomic/CAS, failure still takes priority over unsigned `>= need`, and the restored assertions in `core_tests.rs` / `robustness_tests.rs` plus `inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics` all pass with DXC 1.9.2609.5). However, on NVIDIA RTX 5070 Ti with driver 610.74, `gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` still fails 5/5 deterministically on `912ff558e` while passing 5/5 on `origin/main` `5ad98adbc`: - Panic: `crates\xcl\src\gpu\dxil\idioms.rs:638:17`: `assertion left == right failed: thread 0 of 48` - `left: [1216644162, 19588]` (`0x4884_4442`, `0x4C84`) - `right: [1214530626, 19556]` (`0x4864_4442`, `0x4C64`) - Byte breakdown: `j=0,1,3,5` match (`0x42`, `0x44`, `0x48`, `0x4C`), while the two all-inactive-EXEC cases `j=2` (`t == 200`, `lo=0, hi=0`) and `j=4` (`t > 100`, `lo=0, hi=0`) return `0x84` (`132 = 100 + 32`, upper-half lane 0) instead of `0x64` (`100 = 100 + 0`, lower-half lane 0) on thread 0 of 48 (`threads=32` with `Partner::Missing` passes; `threads=48` is the first size using `spin_wait`). Note that this same test passed on `@Foniass`'s RTX 5070 Ti with newer driver 621.14, so this appears to be an NVIDIA driver 610.74 codegen/reconvergence issue specific to the inlined form of `spin_wait` (it does not reproduce on `origin/main` `5ad98adbc` where `@xcl.spin.wait` stays an internal function). - Minor note from reading: `inline_helpers` replaces call results in a single non-transitive `replace_uses` pass (fine for `spin_wait` and `barrier_arrive` which return fresh `Phi`s, but worth keeping in mind if a future helper ever returned an argument directly). performance: Not measured (stopped at the failing targeted GPU regression test). verdict: not yet: `gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` still fails 5/5 deterministically on RTX 5070 Ti driver 610.74 (`thread 0 of 48`: `j=2` and `j=4` read `132` instead of `100`), whereas `origin/main` `5ad98adbc` passes 5/5 on the exact same machine and driver. hardware / tool and model: NVIDIA GeForce RTX 5070 Ti (driver 610.74 / 32.0.16.1074), AMD Ryzen 9 9950X 16-Core, Windows 11 Pro 26200, `rustc 1.99.0 (b940084d7 2026-09-28)`, DXC 1.9.2609.5 / Antigravity (Gemini 4 Neon)
lucsoft commented 2026-12-02 19:47:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-02T19:47:22Z.


Thanks for the RDNA4 run. Good to see the split-wave tests pass there, and main's first attempt ending with 0xc0000409 is the #3694 picture.

On the frame/commit pair, I'm measuring before drawing a conclusion, but I don't think that pair can show a regression on its own:

  • A fresh data root is not the normal case. It has no save game, so the title takes a new-game path (other menus, intro) instead of loading one. It also empties XCL's own shaders/ and cache/ along with the PSO data, so "cold shader caches" and "a different path through the title" are mixed together. Players have a save, and a warm cache after the first start.
  • Frames from start with fixed-time presses aren't comparable once one side loads slower. The presses land at fixed seconds since start. If one build spends longer compiling on a cold cache, the same presses hit different screens, so the frame count mixes compile time with where the presses happened to land. In 60 s from start that is most of the run.
  • What I do expect: writing the rendezvous into each caller makes the DXIL larger again (each split shader carries its own copy instead of sharing #3655's function), so a cold start compiles more. That cost is real and should show up as compile time, not as in-world frame rate. (Edit: measured below, against the pre-#3655 state it is the other way round; against main with the helpers as functions it can't be measured under Wine, since main ends at start.)

Edit, measured (RX 7800 XT / RADV under Wine, 300 s each, release builds). Baseline A is main 5eaadb54 with #3655 reverted (the loops inline as before #3655, everything else as main; plain main ends at ~3.5 s here), B is this PR at 912ff558. Each arm has its own data root (a copy of the player's save and settings, without XCL's shader/DXIL caches, so the title takes its usual path) and its own vkd3d and Mesa caches; first cold, then warm.

run frames 0–90 s 90–150 s 150–300 s (world) frames shown DXIL per translated PSO PSO build per translated PSO
A cold 2197 339 7 2659 53 KB 403 ms
B cold 2135 414 78 2629 40 KB 264 ms
A warm 1961 372 99 2433 47 KB 24 ms
B warm 1965 418 101 2484 41 KB 4 ms
  • frames shown is mostly the first 90 s of loading and menu screens (> 80 %); the same build differs by 9 % between its cold and warm runs (and the warm run has fewer). A and B are within that. In the world the title runs below 1 frame/s here, too few frames in 150 s to compare.
  • What the change does show up in is compilation, and there B is smaller and faster per PSO than the pre-#3655 state, cold and warm: #3655's elimination passes stay, only the shared helper functions go. Averages per PSO, since each run compiles a somewhat different set depending on how far it gets.
  • No page fault, ring timeout or device removal in any of the four runs.

So I don't see a regression here. A single 60 s pair from start, cold, in a debug build is within this noise. If you see it again on RDNA4, 2–3 pairs from the same data root would tell.

AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.

<!-- greyfinch-sync:ivall/xcl:comment:7356724502 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7356724502). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-02T19:47:22Z. --- Thanks for the RDNA4 run. Good to see the split-wave tests pass there, and `main`'s first attempt ending with `0xc0000409` is the #3694 picture. On the frame/commit pair, I'm measuring before drawing a conclusion, but I don't think that pair can show a regression on its own: - **A fresh data root is not the normal case.** It has no save game, so the title takes a new-game path (other menus, intro) instead of loading one. It also empties XCL's own `shaders/` and `cache/` along with the PSO data, so "cold shader caches" and "a different path through the title" are mixed together. Players have a save, and a warm cache after the first start. - **Frames from start with fixed-time presses aren't comparable once one side loads slower.** The presses land at fixed seconds since start. If one build spends longer compiling on a cold cache, the same presses hit different screens, so the frame count mixes compile time with where the presses happened to land. In 60 s from start that is most of the run. - What I do expect: writing the rendezvous into each caller makes the DXIL larger again (each split shader carries its own copy instead of sharing #3655's function), so a cold start compiles more. That cost is real and should show up as compile time, not as in-world frame rate. *(Edit: measured below, against the pre-#3655 state it is the other way round; against `main` with the helpers as functions it can't be measured under Wine, since `main` ends at start.)* **Edit, measured** (RX 7800 XT / RADV under Wine, 300 s each, release builds). Baseline A is `main` 5eaadb54 with #3655 reverted (the loops inline as before #3655, everything else as `main`; plain `main` ends at ~3.5 s here), B is this PR at `912ff558`. Each arm has its own data root (a copy of the player's save and settings, without XCL's shader/DXIL caches, so the title takes its usual path) and its own vkd3d and Mesa caches; first cold, then warm. | run | frames 0–90 s | 90–150 s | 150–300 s (world) | frames shown | DXIL per translated PSO | PSO build per translated PSO | |---|---:|---:|---:|---:|---:|---:| | A cold | 2197 | 339 | 7 | 2659 | 53 KB | 403 ms | | B cold | 2135 | 414 | 78 | 2629 | 40 KB | 264 ms | | A warm | 1961 | 372 | 99 | 2433 | 47 KB | 24 ms | | B warm | 1965 | 418 | 101 | 2484 | 41 KB | 4 ms | - `frames shown` is mostly the first 90 s of loading and menu screens (> 80 %); the same build differs by 9 % between its cold and warm runs (and the warm run has fewer). A and B are within that. In the world the title runs below 1 frame/s here, too few frames in 150 s to compare. - What the change does show up in is compilation, and there B is smaller and faster per PSO than the pre-#3655 state, cold and warm: #3655's elimination passes stay, only the shared helper functions go. Averages per PSO, since each run compiles a somewhat different set depending on how far it gets. - No page fault, ring timeout or device removal in any of the four runs. So I don't see a regression here. A single 60 s pair from start, cold, in a debug build is within this noise. If you see it again on RDNA4, 2–3 pairs from the same data root would tell. AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.
lucsoft commented 2026-12-02 19:50:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-02T19:50:24Z.


Thanks for the 5×5 and the byte breakdown, that pins it well. A few observations, then two asks:

  • It is only j=2 and j=4, the cases with no lane active, and only from 48 threads on, where spin_wait runs at all. The upper half returns its own lane 0 (132) rather than stale or mixed data. That is the "exchange failed, keep your own value" outcome, so on 610.74 the rendezvous reports failure or times out for the upper half. It does not look like a wrong value arriving through the slots.
  • It fails the same way on b2e6f239 (leader-only loop) and 912ff558 (every-lane loop), so the loop shape isn't what 610.74 objects to; being written into the caller is.
  • The same test passes at these heads on @Foniass's RTX 5070 Ti with 621.14 (886f9057, whole suite), on @cj-tomlin's RTX 3080 with 621.40 (both heads, 3/3 alone and in the suite), on RX 6700 XT / RX 9060 XT on Windows and on RADV. So it looks like 610.74's compiler rather than the code, but that isn't proven, and main does pass on 610.74 with the helper as a function.

Two asks:

  1. Could you run the same test once on 621.14 (Foniass's driver) on that machine? Green there would make it a 610.74 issue; red would mean something about the machine I can't reproduce.
  2. If 610.74 should be supported, I'll push a diagnostic branch that also writes each half's exchange status (completed / failed / timed out, and the poll count) to the output buffer, so a single run on 610.74 shows whether the upper half times out, never sees the partner's arrival, or something else. I'll link it here.

AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.

<!-- greyfinch-sync:ivall/xcl:comment:7356807510 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7356807510). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-02T19:50:24Z. --- Thanks for the 5×5 and the byte breakdown, that pins it well. A few observations, then two asks: - It is only `j=2` and `j=4`, the cases with no lane active, and only from 48 threads on, where `spin_wait` runs at all. The upper half returns its **own** lane 0 (`132`) rather than stale or mixed data. That is the "exchange failed, keep your own value" outcome, so on 610.74 the rendezvous reports failure or times out for the upper half. It does not look like a wrong value arriving through the slots. - It fails the same way on `b2e6f239` (leader-only loop) and `912ff558` (every-lane loop), so the loop shape isn't what 610.74 objects to; being written into the caller is. - The same test passes at these heads on @Foniass's RTX 5070 Ti with **621.14** (886f9057, whole suite), on @cj-tomlin's RTX 3080 with **621.40** (both heads, 3/3 alone and in the suite), on RX 6700 XT / RX 9060 XT on Windows and on RADV. So it looks like 610.74's compiler rather than the code, but that isn't proven, and `main` does pass on 610.74 with the helper as a function. Two asks: 1. Could you run the same test once on 621.14 (Foniass's driver) on that machine? Green there would make it a 610.74 issue; red would mean something about the machine I can't reproduce. 2. If 610.74 should be supported, I'll push a diagnostic branch that also writes each half's exchange status (completed / failed / timed out, and the poll count) to the output buffer, so a single run on 610.74 shows whether the upper half times out, never sees the partner's arrival, or something else. I'll link it here. AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.
lucsoft commented 2026-12-02 20:32:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-02T20:32:23Z.


@Kalmarv the two asks for your 610.74 machine are in my comment above: a rerun of gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads on 621.14, and whether a diagnostic branch for 610.74 (exchange status per half) would help.

<!-- greyfinch-sync:ivall/xcl:comment:7357898409 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7357898409). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-02T20:32:23Z. --- @Kalmarv the two asks for your 610.74 machine are in my comment above: a rerun of `gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` on 621.14, and whether a diagnostic branch for 610.74 (exchange status per half) would help.
lucsoft commented 2026-12-02 20:35:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-02T20:35:21Z.


@throny @Foniass i would be intrested in your merge checks.

<!-- greyfinch-sync:ivall/xcl:comment:7357982340 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7357982340). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-02T20:35:21Z. --- @throny @Foniass i would be intrested in your merge checks.
Chrysana commented 2026-12-02 20:44:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Chrysana on 2026-12-02T20:44:51Z.


merge-check
base: 5ad98adbc3
head: 912ff558e9
merge: clean (local fcfc1ca9; git diff --check clean)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2999 passed, 9 failed, 52 ignored; SKIPPED: 4 (2 × no heap windows, 1 × driver cache can't be disabled without Developer Mode, 1 × no D3D12 debug layer); failing: the 8 known AMD failures on this card (fuzz_validate_and_gpu_1/_3, gpu_smem_flat_descriptor_windows_and_limits, f32_programs_on_the_gpu, gpu_f32_compares_with_nan, gpu_float_compares_random, gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (counted twice)), the same list as main before #3655. The base can't give a full count: its lib binary and gpu_compute_e2e both end with 0xc0000409 (#3694), 142/1/20 counted.
title run: retail title, RX 9070 XT, 4 × 40 s from start, 0 removals, 0 crashes (main exits 0xc0000409 at 1.6–1.9 s, 2/2); RDNA 2 iGPU 40 s clean; 120 s with #3455 also merged, into the world, 0 removals, 0 crashes (details below)
review: Read the full diff (3 files, +315/−59). inline_call's cut is sound by reading: the cut block's terminator moves to the tail and its successors' phis are renamed, a self-loop included; the tail is scanned later, so a second call in the same block is inlined too. In the every-lane spin_wait, every branch inside the loop depends only on waveReadLaneFirst values or the poll count, so the lanes stay together; the zero actual on the no-CAS path only counts when timed_out is set. No findings. Not tested here: NVIDIA (the 610.74 failure Kalmarv reported) and Wine.
performance: measured, 40 s from start, warm caches, normal data root, interleaved in one session: PR 1,089 / 1,091 frames, peak 17,057 / 17,286 MB; df0cfef6 (main before #3655, loops inline then too) 1,087 / 1,081 frames, peak 17,399 / 17,766 MB. No difference beyond run-to-run spread. Record 73ffa0b705ae2cc0 is 14,772 B of DXIL here (13,432 B on main, 15,144 B before #3655), 182 ms on its first driver compile. Not measured: a fresh data root (stijn-boer's pair) or in-world frame rate.
verdict: safe to merge
hardware / tool and model: AMD Radeon RX 9070 XT (driver 32.0.32015.2008) and RDNA 2 iGPU (9800X3D, gfx1036, driver 32.0.21045.11001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro 26200; rustc 1.100.1, DXC 1.9.2602.17, debug test builds, release title builds / Claude Code (Claude Opus 5.5)

The #3694 cases, each test alone in its own process, 3 rounds per GPU (main = 5ad98adb, PR = the merge above):

test main RX 9070 XT main iGPU PR RX 9070 XT PR iGPU
gpu_split_wave64_local_votes_leave_what_the_exchange_leaves (32/48/64/128 threads, idioms on and off) 0xc0000409 3/3 device removed (0x887A0005) 3/3 ok 3/3 ok 3/3
gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads 0xc0000409 3/3 ok 3/3 ok 3/3 ok 3/3
console_wave64_compute_through_the_pso_hook_dispatch_and_read_back (e2e) 0xc0000409 3/3 failed 3/3: thread 0 through LDS reads 0, expected 4096 ok 3/3 ok 3/3
offline_compute_pipeline_is_reused_by_a_second_process (e2e) failed 3/3 ok 3/3 ok 3/3 ok 3/3
synchronous_compute_manifest_records_first_bind (e2e) failed 3/3 failed 3/3 ok 3/3 ok 3/3

The PR's three new tests, split_lds_reads_meet_after_writes and a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly pass too (in the suite and alone). On the iGPU, main's console_wave64 e2e test doesn't crash but reads back a wrong value; with the PR it's right.

Title runs (scripts/smoke.ps1, release, default settings, XCL_PSO_TRACE=1). 40 s keeps clear of #3544, which ends the title at 42–48 s on this card on default settings. The record main never finishes compiling is the one from #3694:

D3D12.X: driver compile start #5: compute PSO, 13432 B DXIL, record 73ffa0b705ae2cc0, driver blob absent

main, 2 of 2 runs the same way:

xcl-smoke v1
commit: 5ad98adbc360225ac8a57ad9661e16fe8df9d8dd
gpu: AMD Radeon RX 9070 XT
title: 21222967
seconds: 40
exit: 0xc0000409
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 
device removals: 0
crashes: 0
peak commit: n/a MB

PR (first run, cold for the new DXIL):

xcl-smoke v1
commit: fcfc1ca9457104f081faf00af4995902b94d13c2
gpu: AMD Radeon RX 9070 XT
title: 21222967
seconds: 40
exit: 0x0
frames shown: 1086 (PresentX 1086)
presents per 2 s (last 3): 59 60 60
device removals: 0
crashes: 0
peak commit: 16422 MB
run build exit frames peak commit
1 main 0xc0000409 at 1.9 s – –
2 PR 0 1,086 16,422 MB
3 main 0xc0000409 at 1.6 s – –
4 PR 0 1,077 17,284 MB
5 PR, RDNA 2 iGPU 0 1,034 16,478 MB
6 df0cfef6 0 1,087 17,399 MB
7 PR 0 1,089 17,057 MB
8 df0cfef6 0 1,081 17,766 MB
9 PR 0 1,091 17,286 MB

No device removal, no crash and no guard trip in any PR run.

Into the world, with #3455 too. To get past #3544, I also merged #3455 (1895d9e8, its fix for #3544, clean on top) and ran 120 s. Record 73ffa0b705ae2cc0 compiles, PS 7381166e806847c9 compiles in 282 ms at 42.7 s, and the world streams in from ~66 s: 2,398 frames, exit 0, 0 removals, 0 crashes, peak 30,607 MB. Presents fall to 0 from ~106 s (#101 88.2 s) while draws are still recorded. That matches the AMD stall after world load that main already shows on this card (#2996), so I don't count it against this PR, but I can't run a pair without #3707 on current main (it ends at 1.5 s).

Not tested: NVIDIA, Wine, a fresh data root, frame rate in the world.

AI use: Claude Code (Claude Opus 5.5) ran the merge, suite, per-test runs and title runs, read the diff, and drafted this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7358249990 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7358249990). Originally posted by [Chrysana](https://github.com/Chrysana) on 2026-12-02T20:44:51Z. --- merge-check base: 5ad98adbc360225ac8a57ad9661e16fe8df9d8dd head: 912ff558e932264511f386eb8b7e97cbf7cf46e2 merge: clean (local `fcfc1ca9`; `git diff --check` clean) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2999 passed, 9 failed, 52 ignored; SKIPPED: 4 (2 × no heap windows, 1 × driver cache can't be disabled without Developer Mode, 1 × no D3D12 debug layer); failing: the 8 known AMD failures on this card (`fuzz_validate_and_gpu_1`/`_3`, `gpu_smem_flat_descriptor_windows_and_limits`, `f32_programs_on_the_gpu`, `gpu_f32_compares_with_nan`, `gpu_float_compares_random`, `gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends`, `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` (counted twice)), the same list as `main` before #3655. The base can't give a full count: its lib binary and `gpu_compute_e2e` both end with `0xc0000409` (#3694), 142/1/20 counted. title run: retail title, RX 9070 XT, 4 × 40 s from start, 0 removals, 0 crashes (`main` exits `0xc0000409` at 1.6–1.9 s, 2/2); RDNA 2 iGPU 40 s clean; 120 s with #3455 also merged, into the world, 0 removals, 0 crashes (details below) review: Read the full diff (3 files, +315/−59). `inline_call`'s cut is sound by reading: the cut block's terminator moves to the tail and its successors' phis are renamed, a self-loop included; the tail is scanned later, so a second call in the same block is inlined too. In the every-lane `spin_wait`, every branch inside the loop depends only on `waveReadLaneFirst` values or the poll count, so the lanes stay together; the zero `actual` on the no-CAS path only counts when `timed_out` is set. No findings. Not tested here: NVIDIA (the 610.74 failure Kalmarv reported) and Wine. performance: measured, 40 s from start, warm caches, normal data root, interleaved in one session: PR 1,089 / 1,091 frames, peak 17,057 / 17,286 MB; `df0cfef6` (main before #3655, loops inline then too) 1,087 / 1,081 frames, peak 17,399 / 17,766 MB. No difference beyond run-to-run spread. Record `73ffa0b705ae2cc0` is 14,772 B of DXIL here (13,432 B on `main`, 15,144 B before #3655), 182 ms on its first driver compile. Not measured: a fresh data root (stijn-boer's pair) or in-world frame rate. verdict: safe to merge hardware / tool and model: AMD Radeon RX 9070 XT (driver 32.0.32015.2008) and RDNA 2 iGPU (9800X3D, gfx1036, driver 32.0.21045.11001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro 26200; rustc 1.100.1, DXC 1.9.2602.17, debug test builds, release title builds / Claude Code (Claude Opus 5.5) **The #3694 cases, each test alone in its own process, 3 rounds per GPU** (`main` = `5ad98adb`, PR = the merge above): | test | `main` RX 9070 XT | `main` iGPU | PR RX 9070 XT | PR iGPU | |---|---|---|---|---| | `gpu_split_wave64_local_votes_leave_what_the_exchange_leaves` (32/48/64/128 threads, idioms on and off) | `0xc0000409` 3/3 | device removed (`0x887A0005`) 3/3 | ok 3/3 | ok 3/3 | | `gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` | `0xc0000409` 3/3 | ok 3/3 | ok 3/3 | ok 3/3 | | `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back` (e2e) | `0xc0000409` 3/3 | failed 3/3: thread 0 through LDS reads 0, expected 4096 | ok 3/3 | ok 3/3 | | `offline_compute_pipeline_is_reused_by_a_second_process` (e2e) | failed 3/3 | ok 3/3 | ok 3/3 | ok 3/3 | | `synchronous_compute_manifest_records_first_bind` (e2e) | failed 3/3 | failed 3/3 | ok 3/3 | ok 3/3 | The PR's three new tests, `split_lds_reads_meet_after_writes` and `a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly` pass too (in the suite and alone). On the iGPU, `main`'s `console_wave64` e2e test doesn't crash but reads back a wrong value; with the PR it's right. **Title runs** (`scripts/smoke.ps1`, release, default settings, `XCL_PSO_TRACE=1`). 40 s keeps clear of #3544, which ends the title at 42–48 s on this card on default settings. The record `main` never finishes compiling is the one from #3694: ``` D3D12.X: driver compile start #5: compute PSO, 13432 B DXIL, record 73ffa0b705ae2cc0, driver blob absent ``` `main`, 2 of 2 runs the same way: ``` xcl-smoke v1 commit: 5ad98adbc360225ac8a57ad9661e16fe8df9d8dd gpu: AMD Radeon RX 9070 XT title: 21222967 seconds: 40 exit: 0xc0000409 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): device removals: 0 crashes: 0 peak commit: n/a MB ``` PR (first run, cold for the new DXIL): ``` xcl-smoke v1 commit: fcfc1ca9457104f081faf00af4995902b94d13c2 gpu: AMD Radeon RX 9070 XT title: 21222967 seconds: 40 exit: 0x0 frames shown: 1086 (PresentX 1086) presents per 2 s (last 3): 59 60 60 device removals: 0 crashes: 0 peak commit: 16422 MB ``` | run | build | exit | frames | peak commit | |---|---|---|---|---| | 1 | `main` | `0xc0000409` at 1.9 s | – | – | | 2 | PR | 0 | 1,086 | 16,422 MB | | 3 | `main` | `0xc0000409` at 1.6 s | – | – | | 4 | PR | 0 | 1,077 | 17,284 MB | | 5 | PR, RDNA 2 iGPU | 0 | 1,034 | 16,478 MB | | 6 | `df0cfef6` | 0 | 1,087 | 17,399 MB | | 7 | PR | 0 | 1,089 | 17,057 MB | | 8 | `df0cfef6` | 0 | 1,081 | 17,766 MB | | 9 | PR | 0 | 1,091 | 17,286 MB | No device removal, no crash and no guard trip in any PR run. **Into the world, with #3455 too.** To get past #3544, I also merged #3455 (`1895d9e8`, its fix for #3544, clean on top) and ran 120 s. Record `73ffa0b705ae2cc0` compiles, PS `7381166e806847c9` compiles in 282 ms at 42.7 s, and the world streams in from ~66 s: 2,398 frames, exit 0, 0 removals, 0 crashes, peak 30,607 MB. Presents fall to 0 from ~106 s (`#101` 88.2 s) while draws are still recorded. That matches the AMD stall after world load that `main` already shows on this card (#2996), so I don't count it against this PR, but I can't run a pair without #3707 on current `main` (it ends at 1.5 s). **Not tested:** NVIDIA, Wine, a fresh data root, frame rate in the world. AI use: Claude Code (Claude Opus 5.5) ran the merge, suite, per-test runs and title runs, read the diff, and drafted this comment.
throny commented 2026-12-02 21:55:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T21:55:07Z.


Test report for #3707 at 912ff558e (lucsoft asked for tests; not a merge check). On Windows with NVIDIA (wave32, split wave64), the title stops on a GPU queue wait in 2 of 2 world runs.

Tested

  • RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0. Trial merge 6c5ecdff7 into main 5ad98adbc.
  • cargo test --workspace -- --test-threads=4 on the trial merge: 3007 passed, 0 failed, 52 ignored; 25 SKIPPED lines (no wave64 and similar).
  • Retail title, two 300 s world runs (XCL_RESIDENCY_PRIORITY=1):
    • run 499 (cold: every shader compiled again): first frame at 798 s, then about 135 s later a GPU queue wait exceeded its watchdog without a graph-proven cycle – the title is stopped before its remaining GPU submission.
    • run 500 (warm): first frame at 23 s, the same watchdog stop about 100 s later.
    • No device removal and no Aftermath dump in either; presents stop before the watchdog fires.
  • The same base without this PR runs clean: two 900 s world runs of a branch on the same main 5ad98adbc ran the full time (3.13 and 3.01 presents/s, no stop).

So on wave32 hardware something in the inlined split-wave rendezvous / safe-barrier path seems to leave a GPU queue waiting forever, likely a compute shader that never finishes. I haven't narrowed it to a program. If you want me to, I can bisect it with a switch or try a per-program trace on this GPU.

Not tested

  • AMD, and Wine (the case this PR fixes).

AI use: Claude Code (Claude Opus 5.5) ran the builds, suite and world runs, and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7359967562 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7359967562). Originally posted by [throny](https://github.com/throny) on 2026-12-02T21:55:07Z. --- Test report for #3707 at `912ff558e` (lucsoft asked for tests; not a merge check). **On Windows with NVIDIA (wave32, split wave64), the title stops on a GPU queue wait in 2 of 2 world runs.** **Tested** - RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0. Trial merge `6c5ecdff7` into main `5ad98adbc`. - `cargo test --workspace -- --test-threads=4` on the trial merge: 3007 passed, 0 failed, 52 ignored; 25 `SKIPPED` lines (no wave64 and similar). - Retail title, two 300 s world runs (`XCL_RESIDENCY_PRIORITY=1`): - run 499 (cold: every shader compiled again): first frame at 798 s, then about 135 s later `a GPU queue wait exceeded its watchdog without a graph-proven cycle – the title is stopped before its remaining GPU submission`. - run 500 (warm): first frame at 23 s, the same watchdog stop about 100 s later. - No device removal and no Aftermath dump in either; presents stop before the watchdog fires. - **The same base without this PR runs clean:** two 900 s world runs of a branch on the same main `5ad98adbc` ran the full time (3.13 and 3.01 presents/s, no stop). So on wave32 hardware something in the inlined split-wave rendezvous / safe-barrier path seems to leave a GPU queue waiting forever, likely a compute shader that never finishes. I haven't narrowed it to a program. If you want me to, I can bisect it with a switch or try a per-program trace on this GPU. **Not tested** - AMD, and Wine (the case this PR fixes). *AI use: Claude Code (Claude Opus 5.5) ran the builds, suite and world runs, and wrote this.*
Lum7nt commented 2026-12-02 22:12:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Lum7nt on 2026-12-02T22:12:11Z.


Windows 11 + NVIDIA GeForce RTX 3060 (driver 581.42) test report for PR #3707

Tested clean merge of PR #3707 (912ff558e932264511f386eb8b7e97cbf7cf46e2) onto origin/main (5ad98adbc360225ac8a57ad9661e16fe8df9d8dd), git diff --check clean, cargo build --workspace -> ok (39 warnings, 0 new vs base).

Environment

  • GPU: NVIDIA GeForce RTX 3060 12 GB (Ampere, native wave32), driver 32.0.15.8142 (581.42, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-10400 @ 2.90 GHz, 32 GB RAM, Windows 11 Build 22631
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, Windows SDK DXC 1.8.2502.11 / dxil 1.8.2502.11

Test Results

  1. Targeted split-wave64 uniform-first-lanes check (5 consecutive runs):

    cargo test -p xcl --lib -- gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads --exact --nocapture
    
    • 5 / 5 passed (0.36s–0.40s each, 0 skips). The deterministic failure reported on RTX 5070 Ti driver 610.74 did not reproduce on Ampere RTX 3060 with older driver 581.42.
  2. Full gpu:: subsystem (gpu::dxil, gpu::recomp, gpu::bvh, gpu::tiling, gpu::texture, gpu::uma, gpu::xbox):

    cargo test -p xcl --lib -- gpu:: --nocapture --test-threads=4
    
    • 1,054 passed, 0 failed, 27 ignored (22 SKIPPED: no wave64 — RTX 3060 is native wave32).
    • Includes gpu::dxil:: (355 passed, 0 failed, 4 ignored, 1 SKIPPED no wave64), gpu_split_wave64_local_votes_leave_what_the_exchange_leaves, split_compute_rendezvous_and_barriers_have_no_helper_functions, inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics, and a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly.
  3. Full workspace run (cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture):

    • Non-lib targets: 135 passed, 4 failed, 20 ignored (5 SKIPPED: 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 driver could not export every fixture PSO). The 4 failures are in gpu_compute_e2e (a_preparation_worker_keeps_a_split_programs_abi_whole, split_compute_prefers_the_offline_whole_pipeline, offline_compute_pipeline_is_reused_by_a_second_process, offline_split_compute_pipeline_is_reused_by_a_second_process), all confirmed failing identically on origin/main 5ad98adbc on driver 581.42 (driver blobs saved 0, unavailable).
    • --lib at --test-threads=4 aborted in hle::d3d12x::list_x with exit 0x80004005 (sparse upload preparation still failed after bounded retries, pre-existing parallel test contention); rerunning cargo test -p xcl --lib -- hle::d3d12x::list_x:: --test-threads=1 passed 116 passed, 0 failed.

Scope & Not Tested

  • No retail title run (no retail title on this machine), no AMD/Wine run, and no wave64 hardware tests (22 SKIPPED).

AI disclosure: OpenCode (google/antigravity-gemini-4-hydrogen-low) merged, built, ran the tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7360367005 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7360367005). Originally posted by [Lum7nt](https://github.com/Lum7nt) on 2026-12-02T22:12:11Z. --- ### Windows 11 + NVIDIA GeForce RTX 3060 (driver `581.42`) test report for PR #3707 Tested clean merge of PR #3707 (`912ff558e932264511f386eb8b7e97cbf7cf46e2`) onto `origin/main` (`5ad98adbc360225ac8a57ad9661e16fe8df9d8dd`), `git diff --check` clean, `cargo build --workspace` -> ok (`39` warnings, `0` new vs base). ### Environment - **GPU:** NVIDIA GeForce RTX 3060 12 GB (Ampere, native wave32), driver `32.0.15.8142` (`581.42`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-10400 @ 2.90 GHz, 32 GB RAM, Windows 11 Build 22631 - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, Windows SDK DXC `1.8.2502.11` / dxil `1.8.2502.11` ### Test Results 1. **Targeted split-wave64 uniform-first-lanes check (5 consecutive runs):** ```powershell cargo test -p xcl --lib -- gpu::dxil::idioms::tests::gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads --exact --nocapture ``` - **5 / 5 passed** (`0.36s–0.40s` each, `0` skips). The deterministic failure reported on RTX 5070 Ti driver `610.74` did **not** reproduce on Ampere RTX 3060 with older driver `581.42`. 2. **Full `gpu::` subsystem (`gpu::dxil`, `gpu::recomp`, `gpu::bvh`, `gpu::tiling`, `gpu::texture`, `gpu::uma`, `gpu::xbox`):** ```powershell cargo test -p xcl --lib -- gpu:: --nocapture --test-threads=4 ``` - **1,054 passed, 0 failed, 27 ignored** (`22 SKIPPED`: `no wave64` — RTX 3060 is native wave32). - Includes `gpu::dxil::` (**355 passed, 0 failed, 4 ignored**, `1 SKIPPED no wave64`), `gpu_split_wave64_local_votes_leave_what_the_exchange_leaves`, `split_compute_rendezvous_and_barriers_have_no_helper_functions`, `inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics`, and `a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly`. 3. **Full workspace run (`cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture`):** - Non-lib targets: **135 passed, 4 failed, 20 ignored** (`5 SKIPPED`: `2 no d3d12SDKLayers.dll`, `1 no D3D12 debug layer`, `1 no heap windows`, `1 driver could not export every fixture PSO`). The 4 failures are in `gpu_compute_e2e` (`a_preparation_worker_keeps_a_split_programs_abi_whole`, `split_compute_prefers_the_offline_whole_pipeline`, `offline_compute_pipeline_is_reused_by_a_second_process`, `offline_split_compute_pipeline_is_reused_by_a_second_process`), all confirmed failing identically on `origin/main` `5ad98adbc` on driver `581.42` (`driver blobs saved 0, unavailable`). - `--lib` at `--test-threads=4` aborted in `hle::d3d12x::list_x` with exit `0x80004005` (`sparse upload preparation still failed after bounded retries`, pre-existing parallel test contention); rerunning `cargo test -p xcl --lib -- hle::d3d12x::list_x:: --test-threads=1` passed **116 passed, 0 failed**. ### Scope & Not Tested - No retail title run (no retail title on this machine), no AMD/Wine run, and no wave64 hardware tests (`22 SKIPPED`). *AI disclosure: OpenCode (`google/antigravity-gemini-4-hydrogen-low`) merged, built, ran the tests, and drafted this report.*
throny commented 2026-12-02 22:15:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T22:15:44Z.


merge-check
base: 5ad98adbc3
head: 912ff558e9
merge: clean (trial merge 6c5ecdff7)
build: cargo build --workspace -> ok; cargo build --release -p xcl -> ok
tests: cargo test --workspace -- --test-threads=4 -> 3007 passed, 0 failed, 52 ignored; 25 SKIPPED (no wave64 and similar); failing: none
title run: retail title, RTX 4080, 300 s runs did not reach their time: the title stopped on the GPU queue wait watchdog 100-135 s after the first frame in 2 of 2 runs (details in my comment above)
review: diff read (gpu/dxil/module.rs helpers written into the entry, tests); nothing found in the code itself, but the runs above
performance: not measured (the runs stopped)
verdict: not yet: on Windows/NVIDIA (wave32, split wave64) the title stops on a GPU queue wait in 2 of 2 world runs; main 5ad98adbc ran two 900 s runs clean. Possibly related to the split-wave swap issue on #505 (XCL_X64_ALL_MASKS); I'll try this PR with XCL_X64_ALL_MASKS=1 next.
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300 / Claude Code with Claude Opus 5.5

<!-- greyfinch-sync:ivall/xcl:comment:7360449342 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7360449342). Originally posted by [throny](https://github.com/throny) on 2026-12-02T22:15:44Z. --- merge-check base: 5ad98adbc360225ac8a57ad9661e16fe8df9d8dd head: 912ff558e932264511f386eb8b7e97cbf7cf46e2 merge: clean (trial merge 6c5ecdff7) build: cargo build --workspace -> ok; cargo build --release -p xcl -> ok tests: cargo test --workspace -- --test-threads=4 -> 3007 passed, 0 failed, 52 ignored; 25 SKIPPED (no wave64 and similar); failing: none title run: retail title, RTX 4080, 300 s runs did not reach their time: the title stopped on the GPU queue wait watchdog 100-135 s after the first frame in 2 of 2 runs (details in my comment above) review: diff read (gpu/dxil/module.rs helpers written into the entry, tests); nothing found in the code itself, but the runs above performance: not measured (the runs stopped) verdict: not yet: on Windows/NVIDIA (wave32, split wave64) the title stops on a GPU queue wait in 2 of 2 world runs; main 5ad98adbc ran two 900 s runs clean. Possibly related to the split-wave swap issue on #505 (XCL_X64_ALL_MASKS); I'll try this PR with XCL_X64_ALL_MASKS=1 next. hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300 / Claude Code with Claude Opus 5.5
throny commented 2026-12-03 00:38:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-03T00:38:08Z.


Follow-up to my check above: with XCL_X64_ALL_MASKS=1 (keep every split-wave exchange) the watchdog stop did not happen, in 2 of 2 runs of the same trial merge on the RTX 4080. Run 510 (cold) reached the world; run 511 (warm) ran its 300 s at 2.02 presents/s, with 0 exceeded its watchdog lines. So the hang looks like the out-of-step halves from #505. #3748 makes every exchange the default; with it, this PR may be fine on NVIDIA too. I'll re-run it on top of #3748 once that is in.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7363414514 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7363414514). Originally posted by [throny](https://github.com/throny) on 2026-12-03T00:38:08Z. --- Follow-up to my check above: **with `XCL_X64_ALL_MASKS=1` (keep every split-wave exchange) the watchdog stop did not happen**, in 2 of 2 runs of the same trial merge on the RTX 4080. Run 510 (cold) reached the world; run 511 (warm) ran its 300 s at 2.02 presents/s, with 0 `exceeded its watchdog` lines. So the hang looks like the out-of-step halves from #505. #3748 makes every exchange the default; with it, this PR may be fine on NVIDIA too. I'll re-run it on top of #3748 once that is in. *AI use: Claude Code (Claude Opus 5.5).*
throny commented 2026-12-03 03:10:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-03T03:10:24Z.


Update with your new head 7b19e27d, on top of #3748 (every split-wave exchange by default, no switch set): main 395405e4c + #3748 + this PR, RTX 4080. The warm 300 s world run (519) ran the full time at 2.78 presents/s, with 0 GPU queue watchdog stops, no crash and no device removal. The cold run before it (518) was cut short by our own memory guard (a local commit limit, not the title). So on NVIDIA the hang I reported looks like #505's out-of-step halves, and it goes away with #3748. AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7366279617 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7366279617). Originally posted by [throny](https://github.com/throny) on 2026-12-03T03:10:24Z. --- Update with your new head `7b19e27d`, on top of #3748 (every split-wave exchange by default, no switch set): main `395405e4c` + #3748 + this PR, RTX 4080. The warm 300 s world run (519) ran the full time at 2.78 presents/s, with 0 GPU queue watchdog stops, no crash and no device removal. The cold run before it (518) was cut short by our own memory guard (a local commit limit, not the title). So on NVIDIA the hang I reported looks like #505's out-of-step halves, and it goes away with #3748. *AI use: Claude Code (Claude Opus 5.5).*
Foniass commented 2026-12-03 04:01:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T04:01:14Z.


merge-check
base: 078358a058
head: 7b19e27d8a
merge: clean
build: ok
tests: 3008 passed, 0 failed, 52 ignored; 28 skipped, the same as on main
review: 2 medium, 1 nit (below)
performance: 60 s smoke run: 1669 → 1671 frames (100 % of main), peak commit 17577 → 17093 MB, no device removal, no crash
title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 224 s there, 0 device removals, 0 crashes, 3.8 presents/s; run with XCL_SKIP_CS=95cc13288a27a96e (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590)
verdict: not yet: PR description is red; otherwise no blocking finding, the suite passes and the smoke run is clean
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5


In short: Writes the split-wave rendezvous and safe-barrier helper bodies into the entry when the bitcode is written (inline_helpers), so no internal function with groupshared pointer parameters reaches dxil-spirv or the driver; the polling loop now runs on every lane. The earlier high findings are addressed: the assertions are ported, an IR test pins the loop shape, and inlining every helper is the same as inlining the two named ones on main. Nothing in the code blocks it, but the new loop relies on lanes reconverging after first-lane branches, and two NVIDIA reports (a test failure on driver 610.74, watchdog stops on an RTX 4080) are unexplained, so the title run should reach the world.

Medium

  1. Loop relies on reconvergence after first-lane branches. In module.rs spin_wait ~600-660, the arrival add, the poll and the CAS run on the first lane only, and the other lanes read the results with waveReadLaneFirst right after the branch joins. If a driver does not reconverge the lanes there, the other lanes read their own zero phi value, never see the partner arrive, and spin 1 << 20 polls before failing. That matches Kalmarv's 610.74 failure (the upper half reports a failed exchange) and could explain throny's RTX 4080 watchdog stops. Consider issuing the poll load (atomicrmw add 0) from every lane without a branch, so the loop exit does not depend on reconvergence, or get the per-half diagnostic the author offered.
  2. Every helper inlined, conflicts with #3654. inline_helpers (~743) inlines any helper_body, not only the two its doc names. On main that is the same set, and Royalflamejlh's run shows the title needs all of them inlined, but #3654 adds eight more helpers and conflicts textually in module.rs; one of the two has to change after the other lands.

Nit

  1. main merged into the branch. 7b19e27d merges main into the PR instead of rebasing onto it; CONTRIBUTING asks for a rebase, and this merge commit would end up in main's history.
Checked and fine
  • Earlier finding fixed: split_lds_reads_meet_after_writes again checks one poll and one timeout CAS per exchange on the same partner counter, one arrival per exchange on one own counter, the fences, and a first lane per exchange (core_tests.rs ~162-185)
  • Earlier finding fixed: inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics pins one back edge, one exit, all three atomics behind the first-lane branch, and the no-partner edge going around both fences (module.rs ~2175)
  • Earlier finding fixed: the new split-compute test skips only when DXC is missing, and panics on any disassemble or validate error (core_tests.rs ~222)
  • Earlier finding fixed: inline_helpers walks the blocks once and replaces all call results in one replace_uses pass
  • Earlier finding fixed: the description no longer says the GPU code is unchanged and states the per-poll cost; Chrysana measured no frame or commit difference on an RX 9070 XT
  • The every-lane loop keeps the old outcomes: a negative counter fails before done is checked; a timeout fails only when the CAS saw the peer unchanged or already failed, and otherwise succeeds or polls again. The poll phi has exactly the signalled and after edges
  • inline_call's splice is sound by reading: arguments and values are remapped, branch, switch and phi targets are shifted, and the tail block takes the cut block's terminator and the phis of its successors
  • #3652's exit-bit handling is carried into the loop, and its test now finds the constants in the entry (lanes.rs ~1477)
  • Merges cleanly onto main and with #3656, #3646 and #3633; conflicts with #3654 in module.rs
How this was tested
  • Merged onto main 078358a0, then cargo build --workspace and cargo test --workspace --no-fail-fast -- --test-threads=4.
  • The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar).
  • scripts/smoke.ps1: 60 s of a retail title on main 078358a0 and on this merge; presents per 2 s at the end: 60 60 60.
  • Title run: the release build of this merge launched the retail title with XCL_RUN_SECONDS=300 and scripted A presses counted from the first frame (XCL_PRESS_BASE=frame, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7367177832 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7367177832). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T04:01:14Z. --- merge-check base: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a head: 7b19e27d8a986c69c84200198d2c80318652c749 merge: clean build: ok tests: 3008 passed, 0 failed, 52 ignored; 28 skipped, the same as on main review: 2 medium, 1 nit (below) performance: 60 s smoke run: 1669 → 1671 frames (100 % of main), peak commit 17577 → 17093 MB, no device removal, no crash title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 224 s there, 0 device removals, 0 crashes, 3.8 presents/s; run with `XCL_SKIP_CS=95cc13288a27a96e` (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590) verdict: not yet: `PR description` is red; otherwise no blocking finding, the suite passes and the smoke run is clean hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 --- **In short:** Writes the split-wave rendezvous and safe-barrier helper bodies into the entry when the bitcode is written (inline_helpers), so no internal function with groupshared pointer parameters reaches dxil-spirv or the driver; the polling loop now runs on every lane. The earlier high findings are addressed: the assertions are ported, an IR test pins the loop shape, and inlining every helper is the same as inlining the two named ones on main. Nothing in the code blocks it, but the new loop relies on lanes reconverging after first-lane branches, and two NVIDIA reports (a test failure on driver 610.74, watchdog stops on an RTX 4080) are unexplained, so the title run should reach the world. #### Medium 1. **Loop relies on reconvergence after first-lane branches.** In module.rs spin_wait ~600-660, the arrival add, the poll and the CAS run on the first lane only, and the other lanes read the results with waveReadLaneFirst right after the branch joins. If a driver does not reconverge the lanes there, the other lanes read their own zero phi value, never see the partner arrive, and spin 1 << 20 polls before failing. That matches Kalmarv's 610.74 failure (the upper half reports a failed exchange) and could explain throny's RTX 4080 watchdog stops. Consider issuing the poll load (atomicrmw add 0) from every lane without a branch, so the loop exit does not depend on reconvergence, or get the per-half diagnostic the author offered. 2. **Every helper inlined, conflicts with #3654.** inline_helpers (~743) inlines any helper_body, not only the two its doc names. On main that is the same set, and Royalflamejlh's run shows the title needs all of them inlined, but #3654 adds eight more helpers and conflicts textually in module.rs; one of the two has to change after the other lands. #### Nit 3. **main merged into the branch.** 7b19e27d merges main into the PR instead of rebasing onto it; CONTRIBUTING asks for a rebase, and this merge commit would end up in main's history. <details><summary>Checked and fine</summary> - Earlier finding fixed: split_lds_reads_meet_after_writes again checks one poll and one timeout CAS per exchange on the same partner counter, one arrival per exchange on one own counter, the fences, and a first lane per exchange (core_tests.rs ~162-185) - Earlier finding fixed: inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics pins one back edge, one exit, all three atomics behind the first-lane branch, and the no-partner edge going around both fences (module.rs ~2175) - Earlier finding fixed: the new split-compute test skips only when DXC is missing, and panics on any disassemble or validate error (core_tests.rs ~222) - Earlier finding fixed: inline_helpers walks the blocks once and replaces all call results in one replace_uses pass - Earlier finding fixed: the description no longer says the GPU code is unchanged and states the per-poll cost; Chrysana measured no frame or commit difference on an RX 9070 XT - The every-lane loop keeps the old outcomes: a negative counter fails before done is checked; a timeout fails only when the CAS saw the peer unchanged or already failed, and otherwise succeeds or polls again. The poll phi has exactly the signalled and after edges - inline_call's splice is sound by reading: arguments and values are remapped, branch, switch and phi targets are shifted, and the tail block takes the cut block's terminator and the phis of its successors - #3652's exit-bit handling is carried into the loop, and its test now finds the constants in the entry (lanes.rs ~1477) - Merges cleanly onto main and with #3656, #3646 and #3633; conflicts with #3654 in module.rs </details> <details><summary>How this was tested</summary> - Merged onto main `078358a0`, then `cargo build --workspace` and `cargo test --workspace --no-fail-fast -- --test-threads=4`. - The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar). - `scripts/smoke.ps1`: 60 s of a retail title on main `078358a0` and on this merge; presents per 2 s at the end: 60 60 60. - Title run: the release build of this merge launched the retail title with `XCL_RUN_SECONDS=300` and scripted A presses counted from the first frame (`XCL_PRESS_BASE=frame`, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
lucsoft commented 2026-12-03 08:17:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-03T08:17:46Z.


Thanks for the run.

  • PR description red: that is the PR checks workflow failing to start (startup_failure) on every PR since 22:56 UTC yesterday, not a finding on this description; scripts/pr_check.py on this body and head reports description ok. So by your own read nothing blocks. Could the verdict be safe to merge, or do you want to wait for the check to run?
  • 1 (reconvergence): throny's run on this head on top of #3748 (RTX 4080, 300 s warm, 0 watchdog stops) shows the stops were #505's out-of-step halves. If lanes stayed apart after the first-lane branches, #3748 would not have helped. Kalmarv's 610.74 failure is still open; I've offered the per-half diagnostic there.
  • 2 (#3654): agreed, whichever lands second adapts inline_helpers (or its doc) to the other.
  • 3 (merge commit): I kept the merge commit so the checks already running stay on this head; happy to rebase before the merge if a maintainer wants it (same diff).

AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.

<!-- greyfinch-sync:ivall/xcl:comment:7372079506 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7372079506). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-03T08:17:46Z. --- Thanks for the run. - **`PR description` red:** that is the `PR checks` workflow failing to start (`startup_failure`) on every PR since 22:56 UTC yesterday, not a finding on this description; `scripts/pr_check.py` on this body and head reports `description ok`. So by your own read nothing blocks. Could the verdict be `safe to merge`, or do you want to wait for the check to run? - **1 (reconvergence):** throny's run on this head on top of #3748 (RTX 4080, 300 s warm, 0 watchdog stops) shows the stops were #505's out-of-step halves. If lanes stayed apart after the first-lane branches, #3748 would not have helped. Kalmarv's 610.74 failure is still open; I've offered the per-half diagnostic there. - **2 (#3654):** agreed, whichever lands second adapts `inline_helpers` (or its doc) to the other. - **3 (merge commit):** I kept the merge commit so the checks already running stay on this head; happy to rebase before the merge if a maintainer wants it (same diff). AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.
CharlyRien commented 2026-12-03 10:08:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CharlyRien on 2026-12-03T10:08:31Z.


Test report: RTX 3090 and WARP, split compute fuzz programs, head 7b19e27d (not a merge-check)

Setup: RTX 3090 (driver 621.47, 32-lane waves only), Windows 11 22631, DXC 1.9.2602.17, debug build. WARP: d3d10warp.dll 1.0.23 with the Agility SDK 1.621.0. The programs are the split compute programs of the #3716 fuzzer: 12 that are wrong on NVIDIA ("G6"), and 4 controls. Both sides are probe/direct-split-nv (main 5ad98adb + #3716 d2293dcb + a test-only probe), merged with this PR's base 078358a0 or with this PR, so they differ only by this PR's diff. One process per program.

WARP, base WARP, this PR RTX 3090, base RTX 3090, this PR
seed 188 (no helper call) right right right right
seeds 2, 10, 11 crash at the dispatch (exit 139) right right right
12 G6 seeds crash at the dispatch (exit 139) 11 right, 1 wrong (1001676: 4 words) 12 wrong 12 wrong
  • WARP: without this PR, WARP crashes at the dispatch on every program that calls @xcl.spin.wait or @xcl.barrier.arrive. With it, 15 of 16 run right. The DXIL of 1001676 under this PR gives the reference words in a CPU interpreter, so its 4 wrong words on WARP are not explained yet.
  • RTX 3090: no change. The 12 G6 programs are wrong with and without this PR. They come right with XCL_X64_ALL_MASKS=1 (#3748's default) on this PR's tree too, so that is the mask-exchange issue (#3758), not the helpers.
  • DXIL size (translation and DXC's validator, no device), the same 16 programs, direct split form: 124,116 → 173,588 bytes in all (×1.40); per program ×1.00 (188, no helper) to ×1.59. All valid. Helper calls go from 2-21 per program to 0.
  • 8,000 fuzz seeds (direct split form, RTX 3090), this PR's tree against main 5ad98adb + #3716 on the same driver: 201 of the 8,000 seeds differ from the RDNA2 reference on both trees, and no seed differs with this PR only. (The 201 are other known issues: groups of 96 threads, #3779, a signed zero, and the 12 above.)

AI use: Claude Code (Claude Opus 5.5) set up the trees, ran the WARP and 3090 checks and wrote this; checked and posted by me.

<!-- greyfinch-sync:ivall/xcl:comment:7374795696 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7374795696). Originally posted by [CharlyRien](https://github.com/CharlyRien) on 2026-12-03T10:08:31Z. --- **Test report: RTX 3090 and WARP, split compute fuzz programs**, head `7b19e27d` (not a merge-check) Setup: RTX 3090 (driver 621.47, 32-lane waves only), Windows 11 22631, DXC 1.9.2602.17, debug build. WARP: `d3d10warp.dll` 1.0.23 with the Agility SDK 1.621.0. The programs are the split compute programs of the #3716 fuzzer: 12 that are wrong on NVIDIA ("G6"), and 4 controls. Both sides are [`probe/direct-split-nv`](https://github.com/CharlyRien/xcl/tree/probe/direct-split-nv) (`main` `5ad98adb` + #3716 `d2293dcb` + a test-only probe), merged with this PR's base `078358a0` or with this PR, so they differ only by this PR's diff. One process per program. | | WARP, base | WARP, this PR | RTX 3090, base | RTX 3090, this PR | |---|---|---|---|---| | seed 188 (no helper call) | right | right | right | right | | seeds 2, 10, 11 | crash at the dispatch (exit 139) | right | right | right | | 12 G6 seeds | crash at the dispatch (exit 139) | 11 right, 1 wrong (1001676: 4 words) | 12 wrong | 12 wrong | - **WARP:** without this PR, WARP crashes at the dispatch on every program that calls `@xcl.spin.wait` or `@xcl.barrier.arrive`. With it, 15 of 16 run right. The DXIL of 1001676 under this PR gives the reference words in a CPU interpreter, so its 4 wrong words on WARP are not explained yet. - **RTX 3090:** no change. The 12 G6 programs are wrong with and without this PR. They come right with `XCL_X64_ALL_MASKS=1` (#3748's default) on this PR's tree too, so that is the mask-exchange issue (#3758), not the helpers. - **DXIL size** (translation and DXC's validator, no device), the same 16 programs, direct split form: 124,116 → 173,588 bytes in all (×1.40); per program ×1.00 (188, no helper) to ×1.59. All valid. Helper calls go from 2-21 per program to 0. - **8,000 fuzz seeds** (direct split form, RTX 3090), this PR's tree against `main` `5ad98adb` + #3716 on the same driver: 201 of the 8,000 seeds differ from the RDNA2 reference on both trees, and no seed differs with this PR only. (The 201 are other known issues: groups of 96 threads, #3779, a signed zero, and the 12 above.) AI use: Claude Code (Claude Opus 5.5) set up the trees, ran the WARP and 3090 checks and wrote this; checked and posted by me.
Foniass commented 2026-12-03 11:13:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T11:13:47Z.


merge-check
base: 078358a058
head: 7b19e27d8a
merge: clean
build: ok
tests: 3008 passed, 0 failed, 52 ignored; 28 skipped, the same as on main
review: 2 medium, 1 nit (below)
performance: 60 s smoke run: 1669 → 1671 frames (100 % of main), peak commit 17577 → 17093 MB, no device removal, no crash
title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 224 s there, 0 device removals, 0 crashes, 3.8 presents/s; run with XCL_SKIP_CS=95cc13288a27a96e (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590)
verdict: safe to merge: no blocking finding (the points below are medium or nits), the suite passes and the smoke run is clean
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5


In short: Writes the split-wave rendezvous and safe-barrier helper bodies into the entry when the bitcode is written (inline_helpers), so no internal function with groupshared pointer parameters reaches dxil-spirv or the driver; the polling loop now runs on every lane. The earlier high findings are addressed: the assertions are ported, an IR test pins the loop shape, and inlining every helper is the same as inlining the two named ones on main. Nothing in the code blocks it, but the new loop relies on lanes reconverging after first-lane branches, and two NVIDIA reports (a test failure on driver 610.74, watchdog stops on an RTX 4080) are unexplained, so the title run should reach the world.

Medium

  1. Loop relies on reconvergence after first-lane branches. In module.rs spin_wait ~600-660, the arrival add, the poll and the CAS run on the first lane only, and the other lanes read the results with waveReadLaneFirst right after the branch joins. If a driver does not reconverge the lanes there, the other lanes read their own zero phi value, never see the partner arrive, and spin 1 << 20 polls before failing. That matches Kalmarv's 610.74 failure (the upper half reports a failed exchange) and could explain throny's RTX 4080 watchdog stops. Consider issuing the poll load (atomicrmw add 0) from every lane without a branch, so the loop exit does not depend on reconvergence, or get the per-half diagnostic the author offered.
  2. Every helper inlined, conflicts with #3654. inline_helpers (~743) inlines any helper_body, not only the two its doc names. On main that is the same set, and Royalflamejlh's run shows the title needs all of them inlined, but #3654 adds eight more helpers and conflicts textually in module.rs; one of the two has to change after the other lands.

Nit

  1. main merged into the branch. 7b19e27d merges main into the PR instead of rebasing onto it; CONTRIBUTING asks for a rebase, and this merge commit would end up in main's history.
Checked and fine
  • Earlier finding fixed: split_lds_reads_meet_after_writes again checks one poll and one timeout CAS per exchange on the same partner counter, one arrival per exchange on one own counter, the fences, and a first lane per exchange (core_tests.rs ~162-185)
  • Earlier finding fixed: inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics pins one back edge, one exit, all three atomics behind the first-lane branch, and the no-partner edge going around both fences (module.rs ~2175)
  • Earlier finding fixed: the new split-compute test skips only when DXC is missing, and panics on any disassemble or validate error (core_tests.rs ~222)
  • Earlier finding fixed: inline_helpers walks the blocks once and replaces all call results in one replace_uses pass
  • Earlier finding fixed: the description no longer says the GPU code is unchanged and states the per-poll cost; Chrysana measured no frame or commit difference on an RX 9070 XT
  • The every-lane loop keeps the old outcomes: a negative counter fails before done is checked; a timeout fails only when the CAS saw the peer unchanged or already failed, and otherwise succeeds or polls again. The poll phi has exactly the signalled and after edges
  • inline_call's splice is sound by reading: arguments and values are remapped, branch, switch and phi targets are shifted, and the tail block takes the cut block's terminator and the phis of its successors
  • #3652's exit-bit handling is carried into the loop, and its test now finds the constants in the entry (lanes.rs ~1477)
  • Merges cleanly onto main and with #3656, #3646 and #3633; conflicts with #3654 in module.rs
How this was tested
  • Merged onto main 078358a0, then cargo build --workspace and cargo test --workspace --no-fail-fast -- --test-threads=4.
  • The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar).
  • scripts/smoke.ps1: 60 s of a retail title on main 078358a0 and on this merge; presents per 2 s at the end: 60 60 60.
  • Title run: the release build of this merge launched the retail title with XCL_RUN_SECONDS=300 and scripted A presses counted from the first frame (XCL_PRESS_BASE=frame, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7376395756 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7376395756). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T11:13:47Z. --- merge-check base: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a head: 7b19e27d8a986c69c84200198d2c80318652c749 merge: clean build: ok tests: 3008 passed, 0 failed, 52 ignored; 28 skipped, the same as on main review: 2 medium, 1 nit (below) performance: 60 s smoke run: 1669 → 1671 frames (100 % of main), peak commit 17577 → 17093 MB, no device removal, no crash title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 224 s there, 0 device removals, 0 crashes, 3.8 presents/s; run with `XCL_SKIP_CS=95cc13288a27a96e` (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590) verdict: safe to merge: no blocking finding (the points below are medium or nits), the suite passes and the smoke run is clean hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 --- **In short:** Writes the split-wave rendezvous and safe-barrier helper bodies into the entry when the bitcode is written (inline_helpers), so no internal function with groupshared pointer parameters reaches dxil-spirv or the driver; the polling loop now runs on every lane. The earlier high findings are addressed: the assertions are ported, an IR test pins the loop shape, and inlining every helper is the same as inlining the two named ones on main. Nothing in the code blocks it, but the new loop relies on lanes reconverging after first-lane branches, and two NVIDIA reports (a test failure on driver 610.74, watchdog stops on an RTX 4080) are unexplained, so the title run should reach the world. #### Medium 1. **Loop relies on reconvergence after first-lane branches.** In module.rs spin_wait ~600-660, the arrival add, the poll and the CAS run on the first lane only, and the other lanes read the results with waveReadLaneFirst right after the branch joins. If a driver does not reconverge the lanes there, the other lanes read their own zero phi value, never see the partner arrive, and spin 1 << 20 polls before failing. That matches Kalmarv's 610.74 failure (the upper half reports a failed exchange) and could explain throny's RTX 4080 watchdog stops. Consider issuing the poll load (atomicrmw add 0) from every lane without a branch, so the loop exit does not depend on reconvergence, or get the per-half diagnostic the author offered. 2. **Every helper inlined, conflicts with #3654.** inline_helpers (~743) inlines any helper_body, not only the two its doc names. On main that is the same set, and Royalflamejlh's run shows the title needs all of them inlined, but #3654 adds eight more helpers and conflicts textually in module.rs; one of the two has to change after the other lands. #### Nit 3. **main merged into the branch.** 7b19e27d merges main into the PR instead of rebasing onto it; CONTRIBUTING asks for a rebase, and this merge commit would end up in main's history. <details><summary>Checked and fine</summary> - Earlier finding fixed: split_lds_reads_meet_after_writes again checks one poll and one timeout CAS per exchange on the same partner counter, one arrival per exchange on one own counter, the fences, and a first lane per exchange (core_tests.rs ~162-185) - Earlier finding fixed: inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics pins one back edge, one exit, all three atomics behind the first-lane branch, and the no-partner edge going around both fences (module.rs ~2175) - Earlier finding fixed: the new split-compute test skips only when DXC is missing, and panics on any disassemble or validate error (core_tests.rs ~222) - Earlier finding fixed: inline_helpers walks the blocks once and replaces all call results in one replace_uses pass - Earlier finding fixed: the description no longer says the GPU code is unchanged and states the per-poll cost; Chrysana measured no frame or commit difference on an RX 9070 XT - The every-lane loop keeps the old outcomes: a negative counter fails before done is checked; a timeout fails only when the CAS saw the peer unchanged or already failed, and otherwise succeeds or polls again. The poll phi has exactly the signalled and after edges - inline_call's splice is sound by reading: arguments and values are remapped, branch, switch and phi targets are shifted, and the tail block takes the cut block's terminator and the phis of its successors - #3652's exit-bit handling is carried into the loop, and its test now finds the constants in the entry (lanes.rs ~1477) - Merges cleanly onto main and with #3656, #3646 and #3633; conflicts with #3654 in module.rs </details> <details><summary>How this was tested</summary> - Merged onto main `078358a0`, then `cargo build --workspace` and `cargo test --workspace --no-fail-fast -- --test-threads=4`. - The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar). - `scripts/smoke.ps1`: 60 s of a retail title on main `078358a0` and on this merge; presents per 2 s at the end: 60 60 60. - Title run: the release build of this merge launched the retail title with `XCL_RUN_SECONDS=300` and scripted A presses counted from the first frame (`XCL_PRESS_BASE=frame`, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
stijn-boer commented 2026-12-03 12:04:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-03T12:04:59Z.


merge-check
base: 0c725d5da2
head: 7b19e27d8a
merge: clean (local merge a41fb2036494e9210e478ada4a433e0f7965089e; git diff --check clean)
build: cargo build --workspace and cargo build --release -p xcl passed on both trees
tests: The AMD workspace runs exited 101 with incomplete coverage. Both hit the same memory-grooming stall, SM 6.6 skips and two-pass driver-cache E2E failure. Main exited 0xc0000409 in gpu_compute_e2e and both smoke attempts, consistent with #3694. With #3707, gpu_compute_e2e and smoke completed and all five focused checks passed. The independent same-head merge-check on the RTX 5070 Ti reported 3,008 passed, 0 failed, 52 ignored and 28 skips, with a completed smoke comparison. See the partial AMD counts below.
review: the focused DXIL and split-wave checks passed on AMD. The full suite did not establish GPU coverage because many tests reported no usable SM 6.6 device after Agility initialization errors. Wine and other GPUs were outside this run.
performance: #3707 completed the 60 s smoke with 1,439 frames and 16,381 MB peak commit. Main exited 0xc0000409 on both attempts before a completed frame count or peak commit was logged, so there is no matched performance delta.
verdict: safe to merge: this head addresses the observed AMD crash and independently passed the workspace suite and smoke comparison. The AMD workspace coverage remains incomplete due to the stall shared by both trees.
hardware / tool and model: AMD Radeon RX 9060 XT (32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332 / OpenAI Codex (GPT-6, exact variant unavailable)

Workspace suite

Build Passed Failed Ignored SKIPPED log notices
Main 145 2 20 456
Main + #3707 155 2 20 457

Counts are from completed libtest summaries only. I stopped both library harnesses after grooming_leaves_a_window_under_1_gib_only_its_hole stalled, so their unreported counts are excluded. GPU skip notices can repeat in captured output. The debug-layer root-signature E2E failed on main and passed with #3707. The DRED E2E passed on both. The gpu_compute_e2e target exited 0xc0000409 on main and completed with #3707. In a supplemental PR run with the grooming test filtered out, the library eventually finished. Completed targets reported 2,938 passed, 16 failed, and 40 ignored when I interrupted the rerun before the remaining targets finished.

The earlier isolated tests on the same merged source tree still stand. I ran cargo test -p xcl --lib <filter> -- --test-threads=1 --show-output --nocapture for each of the five filters:

  • split_compute_rendezvous_and_barriers_have_no_helper_functions
  • inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics
  • split_lds_reads_meet_after_writes
  • a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly
  • gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads

5 passed, 0 failed, 0 ignored, 0 skips.

Retail smoke

Ran scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <release binary> with XCL_UMA_DRIVER=mixed, separate fresh data roots, Agility SDK 1.620.2 with matching debug layer, and DXC 1.9.2609.5. The second main attempt produced the same block as the first. Maintainer follow-up on the baseline crash · Independent same-head merge check

xcl-smoke v1
commit: 0c725d5da298b90797993b568e30e6ff6b16e8b6
gpu: AMD Radeon RX 9060 XT
title: 2c508222
seconds: 60
exit: 0xc0000409
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 
device removals: 0
crashes: 0
peak commit: n/a MB
xcl-smoke v1
commit: a41fb2036494e9210e478ada4a433e0f7965089e
gpu: AMD Radeon RX 9060 XT
title: 2c508222
seconds: 60
exit: 0x0
frames shown: 1439 (PresentX 1439)
presents per 2 s (last 3): 34 32 43
device removals: 0
crashes: 0
peak commit: 16381 MB

AI use: OpenAI Codex (GPT-6, exact variant unavailable) prepared the two builds, ran the tests and smoke comparisons, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7377593043 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7377593043). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-03T12:04:59Z. --- merge-check base: 0c725d5da298b90797993b568e30e6ff6b16e8b6 head: 7b19e27d8a986c69c84200198d2c80318652c749 merge: clean (local merge a41fb2036494e9210e478ada4a433e0f7965089e; git diff --check clean) build: cargo build --workspace and cargo build --release -p xcl passed on both trees tests: The AMD workspace runs exited 101 with incomplete coverage. Both hit the same memory-grooming stall, SM 6.6 skips and two-pass driver-cache E2E failure. Main exited 0xc0000409 in gpu_compute_e2e and both smoke attempts, consistent with #3694. With #3707, gpu_compute_e2e and smoke completed and all five focused checks passed. The independent same-head merge-check on the RTX 5070 Ti reported 3,008 passed, 0 failed, 52 ignored and 28 skips, with a completed smoke comparison. See the partial AMD counts below. review: the focused DXIL and split-wave checks passed on AMD. The full suite did not establish GPU coverage because many tests reported no usable SM 6.6 device after Agility initialization errors. Wine and other GPUs were outside this run. performance: #3707 completed the 60 s smoke with 1,439 frames and 16,381 MB peak commit. Main exited 0xc0000409 on both attempts before a completed frame count or peak commit was logged, so there is no matched performance delta. verdict: safe to merge: this head addresses the observed AMD crash and independently passed the workspace suite and smoke comparison. The AMD workspace coverage remains incomplete due to the stall shared by both trees. hardware / tool and model: AMD Radeon RX 9060 XT (32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332 / OpenAI Codex (GPT-6, exact variant unavailable) **Workspace suite** | Build | Passed | Failed | Ignored | `SKIPPED` log notices | |---|---:|---:|---:|---:| | Main | 145 | 2 | 20 | 456 | | Main + #3707 | 155 | 2 | 20 | 457 | Counts are from completed libtest summaries only. I stopped both library harnesses after `grooming_leaves_a_window_under_1_gib_only_its_hole` stalled, so their unreported counts are excluded. GPU skip notices can repeat in captured output. The debug-layer root-signature E2E failed on main and passed with #3707. The DRED E2E passed on both. The `gpu_compute_e2e` target exited `0xc0000409` on main and completed with #3707. In a supplemental PR run with the grooming test filtered out, the library eventually finished. Completed targets reported 2,938 passed, 16 failed, and 40 ignored when I interrupted the rerun before the remaining targets finished. The earlier isolated tests on the same merged source tree still stand. I ran `cargo test -p xcl --lib <filter> -- --test-threads=1 --show-output --nocapture` for each of the five filters: - `split_compute_rendezvous_and_barriers_have_no_helper_functions` - `inlined_rendezvous_is_one_loop_with_one_exit_and_first_lane_atomics` - `split_lds_reads_meet_after_writes` - `a_group_barrier_of_several_hardware_waves_uses_safe_barrier_directly` - `gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_reads` **5 passed, 0 failed, 0 ignored, 0 skips.** **Retail smoke** Ran `scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <release binary>` with `XCL_UMA_DRIVER=mixed`, separate fresh data roots, Agility SDK 1.620.2 with matching debug layer, and DXC 1.9.2609.5. The second main attempt produced the same block as the first. [Maintainer follow-up on the baseline crash](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7378538669) · [Independent same-head merge check](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7376395756) ``` xcl-smoke v1 commit: 0c725d5da298b90797993b568e30e6ff6b16e8b6 gpu: AMD Radeon RX 9060 XT title: 2c508222 seconds: 60 exit: 0xc0000409 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): device removals: 0 crashes: 0 peak commit: n/a MB ``` ``` xcl-smoke v1 commit: a41fb2036494e9210e478ada4a433e0f7965089e gpu: AMD Radeon RX 9060 XT title: 2c508222 seconds: 60 exit: 0x0 frames shown: 1439 (PresentX 1439) presents per 2 s (last 3): 34 32 43 device removals: 0 crashes: 0 peak commit: 16381 MB ``` AI use: OpenAI Codex (GPT-6, exact variant unavailable) prepared the two builds, ran the tests and smoke comparisons, and wrote this report.
lucsoft commented 2026-12-03 12:35:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-03T12:35:41Z.


Thanks for running both trees. Two notes on the verdict:

  • main exiting 0xc0000409 is the bug this PR fixes, not a missing baseline: since #3655, AMD's Windows compiler (amdxc64) crashes on the split-wave64 helper functions (#3694, RX 9070 XT, the same exit code). Your run shows it on an RX 9060 XT too: main crashes in the smoke twice and in gpu_compute_e2e; with #3707 the smoke runs to the end (1439 frames, 0 crashes) and gpu_compute_e2e completes.
  • The stall (grooming_leaves_a_window_under_1_gib_only_its_hole) and the SM 6.6 skips happen on both trees, so they don't separate the two; your filtered rerun (2938 passed, 16 failed) has no failure that is new with this PR as far as the report shows.

Since main cannot run the title on AMD Windows at all, would you consider the PR side's clean smoke as the comparison and the verdict safe to merge? If the template needs a full suite, a rerun with --skip grooming_leaves_a_window_under_1_gib_only_its_hole should finish on both trees.

AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.

<!-- greyfinch-sync:ivall/xcl:comment:7378538669 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7378538669). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-03T12:35:41Z. --- Thanks for running both trees. Two notes on the verdict: - **`main` exiting `0xc0000409` is the bug this PR fixes**, not a missing baseline: since #3655, AMD's Windows compiler (amdxc64) crashes on the split-wave64 helper functions (#3694, RX 9070 XT, the same exit code). Your run shows it on an RX 9060 XT too: `main` crashes in the smoke twice and in `gpu_compute_e2e`; with #3707 the smoke runs to the end (1439 frames, 0 crashes) and `gpu_compute_e2e` completes. - **The stall** (`grooming_leaves_a_window_under_1_gib_only_its_hole`) and the SM 6.6 skips happen on both trees, so they don't separate the two; your filtered rerun (2938 passed, 16 failed) has no failure that is new with this PR as far as the report shows. Since `main` cannot run the title on AMD Windows at all, would you consider the PR side's clean smoke as the comparison and the verdict `safe to merge`? If the template needs a full suite, a rerun with `--skip grooming_leaves_a_window_under_1_gib_only_its_hole` should finish on both trees. AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.
stijn-boer commented 2026-12-03 12:40:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-03T12:40:51Z.


@lucsoft Thanks for connecting the baseline failure to #3694. Given that context and the independent passing suite and smoke on the same head, I’m comfortable recommending 7b19e27d as safe to merge.

On my RX 9060 XT, main exited 0xc0000409 in both smoke attempts and in gpu_compute_e2e. With #3707, gpu_compute_e2e and the 60-second smoke completed, and all five focused checks passed. The memory-grooming stall and SM 6.6 skips occurred on both trees. My AMD workspace runs remain incomplete, and the two baseline exits leave the performance delta unmeasured.

Your follow-up · Independent same-head merge check

AI use: OpenAI Codex (GPT-6, exact variant unavailable) drafted and posted this reply on my behalf.

<!-- greyfinch-sync:ivall/xcl:comment:7378677232 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7378677232). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-03T12:40:51Z. --- @lucsoft Thanks for connecting the baseline failure to #3694. Given that context and the independent passing suite and smoke on the same head, I’m comfortable recommending `7b19e27d` as **safe to merge**. On my RX 9060 XT, `main` exited `0xc0000409` in both smoke attempts and in `gpu_compute_e2e`. With #3707, `gpu_compute_e2e` and the 60-second smoke completed, and all five focused checks passed. The memory-grooming stall and SM 6.6 skips occurred on both trees. My AMD workspace runs remain incomplete, and the two baseline exits leave the performance delta unmeasured. [Your follow-up](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7378538669) · [Independent same-head merge check](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7376395756) AI use: OpenAI Codex (GPT-6, exact variant unavailable) drafted and posted this reply on my behalf.
lucsoft commented 2026-12-03 12:43:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-03T12:43:29Z.


Thanks! Could you change the verdict: line in your merge-check comment itself to safe to merge (e.g. safe to merge: main crashes with 0xc0000409 (#3694); with #3707 the smoke and gpu_compute_e2e complete)? The merge queue reads the verdict from the merge-check block, so the reply alone doesn't count yet.

AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.

<!-- greyfinch-sync:ivall/xcl:comment:7378740470 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3707#issuecomment-7378740470). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-03T12:43:29Z. --- Thanks! Could you change the `verdict:` line in your merge-check comment itself to `safe to merge` (e.g. `safe to merge: main crashes with 0xc0000409 (#3694); with #3707 the smoke and gpu_compute_e2e complete`)? The merge queue reads the verdict from the `merge-check` block, so the reply alone doesn't count yet. AI use: Claude Code (Claude Opus 5.5) drafted this reply; reviewed by me.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3707
No description provided.