Tests: cover split-wave64 mask liveness and mesh_wave analysis #1627
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by kilvynsilveira-tech on 2026-11-24T18:27:46Z.
Add 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.Imported from ivall/xcl. Originally posted by mantavisual on 2026-11-24T20:28:23Z.
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.
Imported from ivall/xcl. Originally posted by IgorAntunes66 on 2026-11-24T20:37:52Z.
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.
Imported from ivall/xcl. Originally posted by kilvynsilveira-tech on 2026-11-24T20:50:52Z.
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!
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:56:15Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:58:09Z.
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
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T14:26:14Z.
Independent desktop NVIDIA verification of PR #1637 at head
b8d92f997eba2f313609968d25e827e1244340a6(1commit; exact parent & merge-base:9e3831e1f570d3646e53ab753b19ec07eb8f1485, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted tests & build (
b8d92f99)cargo test --release -p xcl --test recomp_wave64_contract -- --nocapture(3 consecutive runs)4 passed; 0 failed; 0 ignored; 0 filtered out× 3 (0.06s,0.05s,0.05s,0skipped; livedxcompiler 1.9.2609.5/dxil 1.9.2609.5compiled emittedcs_6_6HLSL on all 3 runs)cargo build --release -p xcl0.08sincremental after1m 15srelease lib/bin compile duringrecomp_wave64_contract, exit0,0new warnings; test-only PR modifyingcrates/xcl/tests/recomp_wave64_contract.rs)Paired quiet 60 s retail smoke (
title: 29640639)(Note:
scripts/smoke.ps1at9e3831e1predates9683e7a6and printed the local folder basename ontitle:; replaced below with the standard9683e7a6title hash29640639, with all measured fields verbatim.)Exact parent & merge-base (
9e3831e1f570d3646e53ab753b19ec07eb8f1485, cached baseline on the same machine):PR #1637 (
b8d92f997eba2f313609968d25e827e1244340a6):Limits of coverage
4integration tests inrecomp_wave64_contract(split_wave64_sub_borrow_chains_and_null_operands_stay_half_local,split_wave64_src_vccz_src_execz_and_swappc_whole_mask_liveness,mesh_wave_lane_provenance_and_write_lane_sources,mesh_wave_branch_masks_sendmsg_nibble_and_unreachable_scc) passed3/3with0skips and exercised liveDXC 1.9.2609.5cs_6_6compilation of the emitted split-wave64 HLSL.0production files modified), the tests verify HLSL emission, analysis invariants, and DXC compilation rather than GPU execution of the synthetic shaders, and the 60 s retail smoke serves as a regression sanity check against the cached parent (0device removals,0crashes, steady 60 Hz).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:21:34Z.
Triage (#1607) – head
b8d92f9No open or merged PR makes the same change. The test uses only APIs public on main (
x64_masks::by_pc,mesh_wave::analyzeand its report fields).No problems found in the diff. Minor: a leftover thinking-aloud comment in
mesh_wave_branch_masks_sendmsg_nibble_and_unreachable_scc("8 bytes? No, ...") should go. The S_SWAPPC case pins the exact live set!(3 << 30), so it will need updating whenever that analysis changes.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.