Recompiler: keep DispatchX rendezvous branch wave-uniform #3157
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3157"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by bmjask on 2026-11-28T13:50:18Z.
Stacked on #3150; only
ad19a1c1belongs to this PR.A partial DispatchX limit put the split-wave64 entry ballot behind control flow that the shader compiler treated as lane-divergent. On NVIDIA wave32 hardware the two halves could miss their bounded rendezvous, mark the group dead, and write nothing for the partially live X group.
What is in it
crates/xcl/src/gpu/recomp/emit.rs: make the uniform DispatchX-limit branch explicitly wave-uniform withWaveActiveAllTrue.crates/xcl/src/gpu/recomp/tests.rs: require that wave-uniform form in the generated HLSL fixture.Tested
ad19a1c1.cargo test -p xcl --lib gpu::recomp::tests::dispatch_thread_limits_seed_compute_exec_for_native_and_remapped_groups -- --exact --test-threads=1: 1 passed, 0 failed, 0 ignored; no skips.cargo test -p xcl --lib gpu::recomp::tests::gpu_compute_mode_dispatch_abi -- --exact --test-threads=1: 1 passed, 0 failed, 0 ignored; no skips. Without the top commit, the HLSL fallback times out its first split-wave rendezvous and leaves the partially live X group unwritten.cargo test -p xcl --lib -- --test-threads=4: 2,001 passed, 0 failed, 28 ignored; 25 reported GPU skips (no wave64, nodxil.dll, and four explicitly refused unsupported instruction forms).Regression run
Not run. This remains a draft until the required clean main/head smoke blocks are available after #3150 is updated and this stack is rebased.
Not tested
AI use
Codex with GPT-5 diagnosed the failed rendezvous, implemented the two-line generated-HLSL change and assertion update, and ran the tests above.