Tests: cover split-wave64 mask liveness and mesh_wave analysis #1637
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!1637
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1637"
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?
@kilvynsilveira-tech on GitHub · 2026-11-24 18:27 UTC · original
kilvynsilveira-tech:tests/recomp-split-masks-and-mesh-wave→main· +420 −0 · 1 files · 1 commits · openAdd an integration test suite (
crates/xcl/tests/recomp_wave64_contract.rs) covering previously untested public contracts inx64_masks(paired withtranslate+ DXCcs_6_6compilation in split-wave64 compute mode) andmesh_wave::analyze.What is in it
crates/xcl/tests/recomp_wave64_contract.rs: 4 integration tests covering:V_SUB_CO_CI_U32/V_SUBREV_CO_CI_U32borrow chains and scalarNULL(125) staying half-local (xcl_x_ballot_local, zeroxcl_x_ballot) inx64_masks::by_pcand emittedsplit_wave64HLSL, validated with DXCcs_6_6.src_execz(252) vssrc_vccz(251) whole-mask liveness and cross-half ballot emission, plus unresolvedS_SWAPPC_B64conservative liveness (!(3 << 30)).mesh_wave::analyzeacross all 6LaneValueProvenancevariants (Entry,Memory,MaskSelect,Move,PrefixCount,Arithmetic) and all 3LaneReadKindvariants (ReadFirst,ReadLane,WriteLane, including SGPR-sourcedV_WRITELANE_B32).mesh_wave::analyzeacross all 4BranchMaskvariants (ExecZero,ExecNonZero,VccZero,VccNonZero),S_SENDMSGnibble filtering (SIMM16 & 0xf == 9), and unreachableS_CBRANCH_SCC1suppression afterS_ENDPGM.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), DXCdxcompiler 1.8.2502.11(dxil 1.8.2502.11), debug build.cargo test -p xcl --test recomp_wave64_contract -- --nocaptureonb8d92f9: 4 passed, 0 failed, 0 ignored (DXCcs_6_6compiled all emitted shaders).cargo test --workspace --no-fail-fast -- --test-threads=4ond7be554(same runtime base;b8d92f9adds the1u128 << 125assertion): 779 passed, 1 failed, 41 ignored (219 SKIPPED SM 6.6 GPU tests on RX 580; the 1 failure is pre-existing onmainingpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top, addressed in #1736). WithXCL_ADAPTER=warp,cargo test -p xcl --lib -- --test-threads=4: 727 passed, 0 failed, 21 ignored.Regression run
crates/xcl/tests/.Not tested
AI use
x64_masksandmesh_wavecoverage, wrotecrates/xcl/tests/recomp_wave64_contract.rsand this PR description, and ran the test suite on the user's machine under the user's direction.@mantavisual on GitHub · 2026-11-24 20:28 UTC · original
Test report for
d7be554ad18b5abb1e7ad70ccfdc9317ee9692d6.Tested
cargo test --workspace --locked --no-fail-fast -- --test-threads=4: 780 passed, 0 failed, 41 ignored. All 4 new tests ran.b9b6ea6: 893 passed, 0 failed, 42 ignored.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).Do the tests notice a broken analysis?
split_wave64_sub_borrow_chains_and_null_operands_stay_half_localstill passes when NULL (125) is treated as an SGPR (the125 => 0arm ofscalar_coderemoved).assert_eq!(live_by_pc[&decoded[3].pc] & (1u128 << 125), 0);passes normally and fails with that break.x64_masks.rsandmesh_wave.rswere caught.Not tested: AMD, native wave64, retail title.
AI use: Claude Code (Claude Opus 5.5) ran this on my machine, wrote the report and posted it for me.
@IgorAntunes66 on GitHub · 2026-11-24 20:37 UTC · original
Test report on an SM 6.6 GPU (the author's RX 580 could not run the GPU tests):
RTX 5070 12 GB (wave32 only), driver 621.24, Windows 11 26H2, rustc 1.100.0, DXC 1.9.2602.17, PR head d7be554.
cargo test -p xcl --test recomp_wave64_contract: 4 passed, 0 failed..\scripts\test.ps1: 780 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 no wave64, 1 no heap windows); no TDR ordevice removal.
gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top, which failed on the RX 580, passes here.Not tested: AMD / native wave64, release build.
AI use: Claude Code (claude-opus-5-5) ran the tests and drafted this comment; I reviewed it.
@kilvynsilveira-tech on GitHub · 2026-11-24 20:50 UTC · original
Added the \live_by_pc[&decoded[3].pc] & (1u128 << 125) == 0\ check in \split_wave64_sub_borrow_chains_and_null_operands_stay_half_local\ (squashed into \8d92f9). Thanks @mantavisual and @IgorAntunes66 for the SM 6.6 runs!
@DavidM1911 on GitHub · 2026-11-24 20:56 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
@DavidM1911 on GitHub · 2026-11-26 05:58 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.