Repository navigation
Tests: check divergent block barriers in a_bridged_mask_write - #2420
Conversation
|
Diff review on c828d8c (�_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier in crates/xcl/src/gpu/recomp/lower_dxil.rs): check after \n br cleanly isolates barriers past the entry terminator (divergent_barriers == 0) while keeping the test GPU execution check intact, and I have approved CI run 45674546417. Two items needed before merge: (1) complete the truncated PR description with What is in it, Tested (GPU suite counts), Not tested, and AI use (and est-only label if applicable) so PR description passes; (2) add AMD + NVIDIA verification counts for c828d8c. |
|
Reviewed at Why the count went from 1 to 3: since #2203 the outer Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, on AI use: Claude Code (Claude Opus 5.5) reviewed the diff, ran the tests and wrote this on the maintainer's behalf. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… block xcl-dev#2420 fixed this test after xcl-dev#2203 (whole-wave branches in split wave64) put the exchange of the `s_cbranch_execz` condition into the entry block, by counting only the barriers past the entry block's branch. A program that is no longer the split form (no barrier anywhere) passes that check too, so also require at least one group barrier in the entry block, as xcl-dev#2379 did, and drop the doc comment's "the only barrier left is the one at the start", which has not held since xcl-dev#2203. With `Lw::local_masks` forced off (xcl-dev#2074's fix switched off) the test still fails, on 2 barriers past the branch. Assisted-by: Claude Code (Claude Opus 5.5)
Fixes
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierfailing onmain(left: 3, right: 1).After whole-wave branches (
#2178), the entry block before\n brlegitimately contains thexcl_xwsetup barrier and the two split-wavexcl_xsexchange barriers (total3barriers in the module), while the divergent half-only block (<label>:46) still emits0group barriers — which is the invariant introduced by#2074.What is in it
crates/xcl/src/gpu/recomp/lower_dxil.rs(#[cfg(test)]only): updatea_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierto assert0dx.op.barriercalls after the entry\n brterminator instead of1barrier across the whole module, while keeping the GPU dispatch check intact (test-only).Tested
wave32), DXC1.9.2602.17,rustc 1.100.0(stable-x86_64-pc-windows-msvc), debug (c828d8c)cargo test -p xcl --lib a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier:1 passed, 0 failed(0.93s).\scripts\test.ps1(cargo test --workspace -- --test-threads=4):xcl --lib1253 passed, 1 failed, 26 ignored(the single failure is the pre-existing NTFSblob_enumeration_sees_one_submitted_updateissue tracked in XGameRuntime: blob_enumeration_sees_one_submitted_update fails on Windows NTFS (DirEntry::metadata cache) #2421;23/24other targets passed)..\scripts\test.ps1 --skip blob_enumeration_sees_one_submitted_update:1328 passed, 0 failed, 46 ignored, 1 filtered out(SKIPPED GPU tests across workspace:23no wave64,3per-lane form: refused,1no heap windows,1no D3D12 debug layer,1cannot disable the driver cache (Windows Developer Mode is required)).Not tested
wave64/ RDNA2–4) — no AMD adapter available locally.scripts/smoke.ps1(xcl-smoke) —test-onlychange (#[cfg(test)]only, no runtime files touched) and no Xbox GDK title available locally.AI use