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

Open
amazedturnip wants to merge 1 commit from upstream-pr/1776 into main
amazedturnip commented 2026-11-24 20:34:28 +00:00 (Migrated from github.com)

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

  • 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).
<!-- greyfinch-sync:ivall/xcl:issue:5479882285 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776). Originally posted by [amazedturnip](https://github.com/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** - 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).
Ctrl-Alt-Haze commented 2026-11-24 21:30:01 +00:00 (Migrated from github.com)

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, 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.

<!-- greyfinch-sync:ivall/xcl:comment:7144804066 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7144804066). Originally posted by [Ctrl-Alt-Haze](https://github.com/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`, 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.
futurepro62 commented 2026-11-24 23:08:16 +00:00 (Migrated from github.com)

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 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.
<!-- greyfinch-sync:ivall/xcl:comment:7146145086 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7146145086). Originally posted by [futurepro62](https://github.com/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 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.
LocranKing commented 2026-11-24 23:08:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-24T22:24:12Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7146185676 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7146185676). Originally posted by [LocranKing](https://github.com/LocranKing) on 2026-11-24T22:24:12Z. --- 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.
DavidM1911 commented 2026-11-25 00:08:53 +00:00 (Migrated from github.com)

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

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7147367567 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7147367567). Originally posted by [DavidM1911](https://github.com/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 unmodified `main`.) Thanks!
github-actions[bot] commented 2026-11-28 20:18:23 +00:00 (Migrated from github.com)

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 stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7245188913 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7245188913). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T20:18:23Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
amazedturnip commented 2026-11-28 20:36:45 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:ivall/xcl:comment:7245413281 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7245413281). Originally posted by [amazedturnip](https://github.com/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.
brainhay5 commented 2026-11-30 08:20:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:20:06Z.


merge-check claim
head: 3546d8dea0

<!-- greyfinch-sync:ivall/xcl:comment:7272775679 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7272775679). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T08:20:06Z. --- merge-check claim head: 3546d8dea0951553b3e12fb13d0de5b4c2434524
brainhay5 commented 2026-11-30 08:25:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:25:39Z.


merge-check
base: d52ff48caa
head: 3546d8dea0
merge: 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_d16 fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.

<!-- greyfinch-sync:ivall/xcl:comment:7272894880 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7272894880). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T08:25:39Z. --- merge-check base: d52ff48caade1f5350d513bfffd370396dadfeb6 head: 3546d8dea0951553b3e12fb13d0de5b4c2434524 merge: 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_d16` fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.
BBareth commented 2026-11-30 09:53:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T09:53:49Z.


merge-check claim
head: 3546d8dea0

<!-- greyfinch-sync:ivall/xcl:comment:7274833391 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7274833391). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T09:53:49Z. --- merge-check claim head: 3546d8dea0951553b3e12fb13d0de5b4c2434524
BBareth commented 2026-11-30 10:01:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:01:29Z.


merge-check
base: 9dfbe3ea66
head: 3546d8dea0
merge: 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.rs ran 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_dispatch to 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.

<!-- greyfinch-sync:ivall/xcl:comment:7275007645 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7275007645). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T10:01:29Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: 3546d8dea0951553b3e12fb13d0de5b4c2434524 merge: 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.rs` ran 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_dispatch` to 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.
Foniass commented 2026-12-01 06:45:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:45:10Z.


Triage (#1607) – head 3546d8d

No open or merged PR makes the same change. Main's mesh_dispatch.rs already 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.

<!-- greyfinch-sync:ivall/xcl:comment:7303230066 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7303230066). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:45:10Z. --- **Triage (#1607)** – head 3546d8d No open or merged PR makes the same change. Main's `mesh_dispatch.rs` already 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.
stijn-boer commented 2026-12-02 18:42:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T18:42:36Z.


merge-check
base: c53e969602
head: 3546d8dea0
verdict: safe to merge

Windows — mesh dispatch reference-model tests on 3546d8d

Clean merge onto main (merge commit 6908beda22b653c62c26e68d0325a41822a67f1f). git diff --check was 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.

<!-- greyfinch-sync:ivall/xcl:comment:7355034741 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1776#issuecomment-7355034741). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-02T18:42:36Z. --- merge-check base: c53e96960265a82477a9c98677afb0402e98d486 head: 3546d8dea0951553b3e12fb13d0de5b4c2434524 verdict: safe to merge **Windows — mesh dispatch reference-model tests on `3546d8d`** Clean merge onto `main` (merge commit `6908beda22b653c62c26e68d0325a41822a67f1f`). `git diff --check` was 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1776:upstream-pr/1776'
git switch 'upstream-pr/1776'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1776'
git switch 'upstream-pr/1776'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1776'
git switch 'upstream-pr/1776'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1776'
git switch 'main'
git merge --squash 'upstream-pr/1776'
git switch 'main'
git merge --ff-only 'upstream-pr/1776'
git switch 'main'
git merge 'upstream-pr/1776'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1766
No description provided.