Repository navigation
Tests: cover upper_lanes hazards, CFG jumps, VALU ops, and MIMG DMASK - #1518
amazedturnip wants to merge 1 commit into
Conversation
Add integration tests for upper_lanes::analyze, UpperLanes::hazards, UpperLanes::resolved, and upper_lanes::slot covering constant/SGPR lane slots, hazard and resolution classification, DS_PERMUTE_B32 vs DS_BPERMUTE_B32, indirect vs fetch-shader S_SWAPPC_B64 and resolved far jumps, binary VALU ops with absorbing constants and VOP3 modifier bailouts, DPP16 partial ROW_MASK/BANK_MASK, S_MOVRELD_B32, SGPR-lane V_WRITELANE_B32 invalidation, MIMG DMASK/D16/TFE register-count truncation, and empty/unreachable code.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent desktop NVIDIA verification of PR #1518 at head Environment
Targeted tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --test upper_lanes_contract -- --nocapture (3 consecutive runs) |
5 passed; 0 failed; 0 ignored; 0 filtered out × 3 (0.00s, 0.00s, 0.00s, 0 skipped; slot_extracts_constant_lanes_and_rejects_sgpr_or_other_insts, hazards_and_resolved_classify_all_read_kinds_and_ds_permute, cfg_indirect_jumps_vs_fetch_swappc_and_resolved_far_jump, binary_valu_ops_absorbing_constants_vop3_modifiers_and_dpp16_masks, movreld_sgpr_writelane_mimg_dmask_and_unreachable_code) |
cargo build --release -p xcl |
Clean build (1.33s incremental --test compile + 0.06s incremental --release build, exit 0, 0 new warnings) |
Paired quiet 60 s retail smoke (title: 29640639)
(Note: scripts/smoke.ps1 at 9e3831e1 predates 9683e7a6 and printed the local folder basename on title:; replaced below with the standard 9683e7a6 title hash 29640639, with all measured fields verbatim.)
Exact parent & merge-base (9e3831e1f570d3646e53ab753b19ec07eb8f1485):
xcl-smoke v1
commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1549 (PresentX 1549)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14715 MB
PR #1518 (6e3795d7090b74de65a7992d2b8e5f00490c3295):
xcl-smoke v1
commit: 6e3795d7090b74de65a7992d2b8e5f00490c3295
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1568 (PresentX 1568)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14710 MB
Limits of coverage
- This PR is test-only (
crates/xcl/tests/upper_lanes_contract.rs,0production-code changes); all5/5CPU-sideupper_lanescontract tests passed3/3(0skipped). - The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. parent reflects normal startup variance, not this PR).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
No open or merged PR adds the same tests. Several open PRs change upper_lanes.rs (e.g. #917, #927, #1022, #1616) and may change behaviour these assertions pin; main only changed two helpers to pub(super) since this PR's base, so the API it uses is unchanged. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Add an integration test suite (
crates/xcl/tests/upper_lanes_contract.rs) covering previously untested public APIs (UpperLanes::hazards,UpperLanes::resolved,upper_lanes::slot) and analysis paths incrates/xcl/src/gpu/recomp/upper_lanes.rs. The 5 tests verifyDS_PERMUTE_B32vsDS_BPERMUTE_B32, indirect jumps vs fetch-shaderS_SWAPPC_B64and resolvedfar_targetjumps, binary VALU ops with absorbing constants and VOP3 modifier bailouts, DPP16 partialROW_MASK/BANK_MASK,S_MOVRELD_B32, SGPR-laneV_WRITELANE_B32, MIMGDMASK/D16/TFEtruncation, and empty/unreachable code.What is in it
crates/xcl/tests/upper_lanes_contract.rs: add 5 integration tests coveringupper_lanes::slot,UpperLanes::hazards/UpperLanes::resolvedandDS_PERMUTE_B32vsDS_BPERMUTE_B32, indirect jumps vs fetch-shaderS_SWAPPC_B64and resolvedfar_targetjumps, binary VALU ops / absorbing constants / VOP3 modifier bailout / DPP16 partialROW_MASKandBANK_MASK, andS_MOVRELD_B32/ SGPR-laneV_WRITELANE_B32/ MIMGDMASK/D16/TFEtruncation / empty and unreachable code.Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=2— 775 passed, 0 failed, 41 ignored (SKIPPED GPU tests: none)Not tested
AI use