Tests: pin mesh dispatcher scratch and wave32-on-wave64 contract #1766
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by amazedturnip on 2026-11-24T20:34:28Z.
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
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
Imported from ivall/xcl. Originally posted by Ctrl-Alt-Haze on 2026-11-24T21:20:40Z.
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.
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T22:22:13Z.
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
Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-24T22:24:12Z.
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.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:24:39Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:18:23Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by amazedturnip on 2026-11-28T20:36:45Z.
Still merges cleanly onto main (
765b2c5b) with passing checks; pins mesh dispatcher ScratchLayout arithmetic and wave32-on-wave64 reference invariants — waiting on maintainer / post-goal review.Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:20:06Z.
merge-check claim
head:
3546d8dea0Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:25:39Z.
merge-check
base:
d52ff48caahead:
3546d8dea0merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2880 passed, 2 failed, 51 ignored; 29 SKIPPED lines
failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017
correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base".
gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16fails on based52ff48cby itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T09:53:49Z.
merge-check claim
head:
3546d8dea0Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:01:29Z.
merge-check
base:
9dfbe3ea66head:
3546d8dea0merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2890 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test binary
tests/mesh_dispatch_contract.rsran 5 tests, all passed.review: no blocking finding; one new file, read in full; test-only, CPU only, no file or process access. It uses the public items of
gpu::recomp::mesh_dispatchto pin the scratch layout arithmetic (record offsets, rejection of invalid geometry), the fixed-wave32 model against the native-wave64 reference on deterministic inputs, and that the validation HLSL uses only unconditional rendezvous and scratch. One of the five checks substrings of generated HLSL, so it will need touching when that text changes.performance: none; tests only.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:45:10Z.
Triage (#1607) – head
3546d8dNo open or merged PR makes the same change. Main's
mesh_dispatch.rsalready has unit tests for the same contract (layout_is_external_aligned_and_bounded,paired_halves_match_independent_native_wave64_references,validation_shader_has_only_unconditional_rendezvous). This file repeats them through the public API and adds the record-internal ordering, more rejection cases and the per-wave VCC/epoch state.No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T18:42:36Z.
merge-check
base:
c53e969602head:
3546d8dea0verdict: safe to merge
Windows — mesh dispatch reference-model tests on
3546d8dClean merge onto
main(merge commit6908beda22b653c62c26e68d0325a41822a67f1f).git diff --checkwas clean.Setup
Windows 10 21H2 build 19044.6332, Rust 1.100.0, debug profile. The added integration tests are CPU reference-model checks.
Tested
cargo test -p xcl --test mesh_dispatch_contract -- --test-threads=1 --show-output --nocapture— 5 passed, 0 failed, 0 ignored, 0 skip notices.Diff review
Read the full test-only diff. The checks cover record layout and invalid input, wave epoch state, agreement between the fixed-wave32 and native-wave64 CPU models, and unconditional rendezvous in the validation HLSL.
Not tested
Native GPU execution, the full workspace suite, or retail smoke. The added test target does not invoke the GPU.
AI use
Codex (GPT-6) merged the PR, reviewed the diff, ran the tests, and drafted this report.
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.