Tests: check divergent block barriers in a_bridged_mask_write #2420
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2420
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2420/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Ritolino on GitHub · 2026-11-25 18:22 UTC · original
Ritolino:test/bridged-mask-write-barrier-check→main· +4 −3 · 1 files · 1 commits · merged 2026-11-25 18:45 UTCFixes
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 #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
@raylitebull on GitHub · 2026-11-25 18:26 UTC · original
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 forc828d8c.@ivall on GitHub · 2026-11-25 18:44 UTC · original
Reviewed at
c828d8c; the diff is inside#[cfg(test)]only, so I settest-only.Why the count went from 1 to 3: since #2203 the outer
S_CBRANCH_EXECZis a whole-wave branch, and its exchange between the two halves adds two group barriers in the entry block, which both halves reach. What #2074 asked for (no barrier in the block only one half reaches) still holds and is what the test now checks.Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, on
main3f27770with #2420, #2257, #2408, #2247, #2338, #2097 and #2372 merged locally:cargo test --workspace --no-fail-fast -- --test-threads=4: 1367 passed, 2 failed, 46 ignored, 7 SKIPPED lines.main3f27770alone, same command: 1354 passed, 3 failed, 46 ignored. The difference in failures is this test. The other two,fuzz_validate_and_gpu_1(seed 722) and_3(seed 1599), fail the same way onmain.AI use: Claude Code (Claude Opus 5.5) reviewed the diff, ran the tests and wrote this on the maintainer's behalf.
github-bot referenced this pull request2026-11-26 05:54:50 +00:00