Tests: pin mesh dispatcher scratch and wave32-on-wave64 contract #1776

Open
github-bot wants to merge 1 commit from github-bot/gh-1776 into main AGit
Owner

@⁠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 · open

New 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

  • Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build
  • AMD (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))
  • Verification / negative control: New test suite — verified 3x deterministic (5/5 pass each run). No src change is made, so there is no failing-on-unpatched path to demonstrate; the suite pins the documented contract against the existing public API.

Not tested

  • retail Xbox Series X|S title (not available on this host)
  • GPU execution of the validation shader (the suite is CPU-only; the dispatcher contract is data-independent)
  • NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64)

AI use

  • Local AI (thinkingmachines_inkling-2-mini) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).
**@⁠amazedturnip** on GitHub · 2026-11-24 20:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/1776) `amazedturnip:xcl/tests-mesh-dispatch-scratch-layout-contract-201205` → `main` · +171 −0 · 1 files · 1 commits · open New 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** - Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build - AMD (`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)) - Verification / negative control: New test suite — verified 3x deterministic (5/5 pass each run). No src change is made, so there is no failing-on-unpatched path to demonstrate; the suite pins the documented contract against the existing public API. **Not tested** - retail Xbox Series X|S title (not available on this host) - GPU execution of the validation shader (the suite is CPU-only; the dispatcher contract is data-independent) - NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64) **AI use** - Local AI (thinkingmachines_inkling-2-mini) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).
Add crates/xcl/tests/mesh_dispatch_contract.rs covering the ScratchLayout arithmetic
(alignment/stride/overflow/offset ordering, bounds errors), model_fixed_wave32 ==
model_native_wave64 reference equivalence, per-wave epoch/pc/scc/vcc/scalar invariants,
and the validation_hlsl rendezvous-shape contract. No src changes; external path only.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:04:41 +00:00
Author
Owner

@⁠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, DXC 1.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 (includes tests\mesh_dispatch_contract.rs: 5 passed, 0 failed; SKIPPED GPU 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.

**@⁠Ctrl-Alt-Haze** on GitHub · 2026-11-24 21:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7144804066) **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`, DXC `1.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** (includes `tests\mesh_dispatch_contract.rs`: `5 passed, 0 failed`; `SKIPPED` GPU 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.
Author
Owner

@⁠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 base 4178e88).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_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.
  • The new tests ran and passed: 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.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, 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).
  • Two tests were skipped with --skip on NVIDIA. Both fail on main 7f7e768 too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns their skips into failures. heap_window_out_of_memory_falls_back_to_the_switch_form skips when XCL_HEAP_WINDOWS is unset (#1651), and shaders::tests::pso_measurement_compiles_an_exact_synthetic_record skipped because Developer Mode was off. Developer Mode was turned on before the AMD run, and there pso_measurement_compiles_an_exact_synthetic_record ran and passed.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 22:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7146145086) 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 base `4178e88`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_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`. - The new tests ran and passed: `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`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `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). - Two tests were skipped with `--skip` on NVIDIA. Both fail on main `7f7e768` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns their skips into failures. `heap_window_out_of_memory_falls_back_to_the_switch_form` skips when `XCL_HEAP_WINDOWS` is unset (#1651), and `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` skipped because Developer Mode was off. Developer Mode was turned on before the AMD run, and there `pso_measurement_compiles_an_exact_synthetic_record` ran and passed. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠LocranKing on GitHub · 2026-11-24 22:24 UTC · original

Independent Windows 11 + RTX 3060 Ti (Ampere, wave32, mesh shaders) --release verification of exact head 3546d8dea0951553b3e12fb13d0de5b4c2434524 (merge-base 4178e88): all 5 new contract tests and the full workspace suite pass.

Tested

  • Hardware / toolchain: Windows 11 Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, Ampere, wave32, mesh shaders supported), driver 32.0.16.2101 (621.01), rustc 1.100.0 (0ef1bc386 2026-11-09) (x86_64-pc-windows-msvc), DXC 1.9.2602.17 (21d28f72), --release.
  • Targeted (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 — ok
    • fixed_wave32_model_matches_native_wave64_reference — ok
    • layout_arithmetic_and_record_offsets — ok
    • layout_rejects_invalid_geometry — ok
    • validation_hlsl_uses_only_unconditional_rendezvous_and_scratch — ok
  • Full workspace suite (cargo test --workspace --release --no-fail-fast -- --test-threads=4 --nocapture): 896 passed, 0 failed, 42 ignored (+5 over exact base 4178e88's 891/0/42). Expected host SKIPPED lines: 2 wave64, 1 driver cache disable, 2 D3D12 debug layer, 1 heap 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 --release targeted and workspace test suites locally and drafted this report from the captured logs.

**@⁠LocranKing** on GitHub · 2026-11-24 22:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7146185676) Independent Windows 11 + RTX 3060 Ti (Ampere, wave32, mesh shaders) `--release` verification of exact head `3546d8dea0951553b3e12fb13d0de5b4c2434524` (merge-base `4178e88`): **all 5 new contract tests and the full workspace suite pass**. **Tested** - **Hardware / toolchain:** Windows 11 Build `26200`, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, Ampere, wave32, mesh shaders supported), driver `32.0.16.2101` (`621.01`), `rustc 1.100.0 (0ef1bc386 2026-11-09)` (`x86_64-pc-windows-msvc`), DXC `1.9.2602.17 (21d28f72)`, `--release`. - **Targeted (`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` — `ok` - `fixed_wave32_model_matches_native_wave64_reference` — `ok` - `layout_arithmetic_and_record_offsets` — `ok` - `layout_rejects_invalid_geometry` — `ok` - `validation_hlsl_uses_only_unconditional_rendezvous_and_scratch` — `ok` - **Full workspace suite (`cargo test --workspace --release --no-fail-fast -- --test-threads=4 --nocapture`):** **896 passed, 0 failed, 42 ignored** (`+5` over exact base `4178e88`'s `891/0/42`). Expected host `SKIPPED` lines: `2` wave64, `1` driver cache disable, `2` D3D12 debug layer, `1` heap 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 `--release` targeted and workspace test suites locally and drafted this report from the captured logs.
Author
Owner

@⁠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 unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 23:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7147367567) 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 unmodified `main`.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1776/head:github-bot/gh-1776'
git switch 'github-bot/gh-1776'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1776'
git switch 'github-bot/gh-1776'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1776'
git switch 'github-bot/gh-1776'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1776'
git switch 'main'
git merge --squash 'github-bot/gh-1776'
git switch 'main'
git merge --ff-only 'github-bot/gh-1776'
git switch 'main'
git merge 'github-bot/gh-1776'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.