Tests: pin mesh dispatcher scratch and wave32-on-wave64 contract #1776
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!1776
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1776"
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?
@amazedturnip on GitHub · 2026-11-24 20:34 UTC · original
amazedturnip:xcl/tests-mesh-dispatch-scratch-layout-contract-201205→main· +171 −0 · 1 files · 1 commits · openNew external contract test pins the ScratchLayout arithmetic (alignment, stride, overflow, ordering) and wave32-on-wave64 reference-model invariants for the mesh dispatcher. No src changes. CPU-only; not GPU-validated.
What is in it
crates/xcl/tests/mesh_dispatch_contract.rs: new external integration test suite pinning the ScratchLayout arithmetic (alignment/stride/overflow errors, record-internal offset ordering and bounds) and the wave32-on-wave64 reference-model invariants (fixed_wave32 == native_wave64, per-wave epoch/pc/scc/vcc/scalar/exec state, unconditional rendezvous barriers in the validation HLSL). No src changes.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— 894 passed, 0 failed, 42 ignored (SKIPPED GPU tests: 1 (cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)), 1 (no heap windows))Not tested
AI use
@Ctrl-Alt-Haze on GitHub · 2026-11-24 21:20 UTC · original
Tested (head
3546d8dea0951553b3e12fb13d0de5b4c2434524, NVIDIA GeForce RTX 5070 Ti, driver 32.0.16.2135, Wave32, AMD Ryzen 9 5950X, Windows 11 Build 26340,rustc 1.99.1, DXC1.8.2502.11, debug, synthetic tests only):.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 896 passed, 0 failed, 42 ignored (includestests\mesh_dispatch_contract.rs:5 passed, 0 failed;SKIPPEDGPU tests:2 (no wave64)—gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware;1 (no heap windows)—heap_window_out_of_memory_falls_back_to_the_switch_form).AI use: Antigravity (Google DeepMind; exact model version not exposed to agent) ran the test suite and formatted the results.
@futurepro62 on GitHub · 2026-11-24 22:22 UTC · original
Adding an AMD GPU (RDNA2, native wave64) to the report above, which has none, with an NVIDIA run alongside. Tested exact head
3546d8d(on its base4178e88).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 894 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.layout_arithmetic_and_record_offsets,layout_rejects_invalid_geometry,fixed_wave32_model_matches_native_wave64_reference,fixed_wave32_model_invariants_and_wave_epoch_state,validation_hlsl_uses_only_unconditional_rendezvous_and_scratch.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 896 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskipped because Developer Mode was off. Developer Mode was turned on before the AMD run, and therepso_measurement_compiles_an_exact_synthetic_recordran and passed.Not tested
AI use
@LocranKing on GitHub · 2026-11-24 22:24 UTC · original
Independent Windows 11 + RTX 3060 Ti (Ampere, wave32, mesh shaders)
--releaseverification of exact head3546d8dea0951553b3e12fb13d0de5b4c2434524(merge-base4178e88): all 5 new contract tests and the full workspace suite pass.Tested
26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, Ampere, wave32, mesh shaders supported), driver32.0.16.2101(621.01),rustc 1.100.0 (0ef1bc386 2026-11-09)(x86_64-pc-windows-msvc), DXC1.9.2602.17 (21d28f72),--release.cargo test -p xcl --test mesh_dispatch_contract --release -- --nocapture --test-threads=1): 5 passed, 0 failed, 0 ignored (0.00 s,0 SKIPPED; pure CPU/reference-model contract assertions):fixed_wave32_model_invariants_and_wave_epoch_state—okfixed_wave32_model_matches_native_wave64_reference—oklayout_arithmetic_and_record_offsets—oklayout_rejects_invalid_geometry—okvalidation_hlsl_uses_only_unconditional_rendezvous_and_scratch—okcargo test --workspace --release --no-fail-fast -- --test-threads=4 --nocapture): 896 passed, 0 failed, 42 ignored (+5over exact base4178e88's891/0/42). Expected hostSKIPPEDlines:2wave64,1driver cache disable,2D3D12 debug layer,1heap windows.Not tested: native wave64 hardware, D3D12 debug layer, or retail title smoke (test-only PR).
AI use: Antigravity (
Gemini 4 Neon) built and ran the--releasetargeted and workspace test suites locally and drafted this report from the captured logs.@DavidM1911 on GitHub · 2026-11-24 23:24 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
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.