Tests: a console MS in the AS slot is refused by its MS translation #2788

Open
github-bot wants to merge 1 commit from github-bot/gh-2788 into nvidia-dev AGit
Owner

@⁠MarcosMDev on GitHub · 2026-11-26 12:43 UTC · original
MarcosMDev:tests-ms-in-as-slot → nvidia-dev · +7 −5 · 1 files · 1 commits · open

console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly came with #2015 and expects a console MS alone in the AS slot to be refused with the "in the AS slot" error. #541 (70f91859) removed that refusal on purpose: such an MS is now translated as the mesh shader it is. nvidia-dev has both, so the test fails on every GPU run, as in #2632 and the RTX 5080, RTX 2070 SUPER and RTX 4060 Laptop reports in #42. CI has no GPU, so it never ran there. The test's synthetic container has no NGG variant, so it is still refused with E_INVALIDARG, now by the MS translation (MS: no NGG hardware variant). The test now expects that. The runtime is unchanged.

main has the test but not #541, so it passes there. #541 will need the same change when it lands on main.

What is in it

  • crates/xcl/tests/d3d12_mesh_stream.rs: case 1 checks for a MS: translation error instead of the AS-slot refusal; the file's header comment says so. Case 2 (an AS and an MS) is unchanged and still refused.

Tested

  • NVIDIA GeForce RTX 4060 8 GB (driver 621.01), Ryzen 7 5700X, 24 GB, Windows 11 26200, Rust 1.100.0, DXC 1.9.2609.5, debug.
  • cargo test -p xcl --test d3d12_mesh_stream -- --test-threads=4, 10 runs: 3 passed, 0 failed each time. The test alone (--exact), 10 runs: passed each time, so the MS: error is its own and not the concurrent test's.
  • To check the test still catches a change: with mesh_shader_slots changed locally to leave the MS in the AS slot (not part of this PR), it fails with expected the MS translation's refusal in translation_errors: [].
  • cargo test --workspace --locked --no-fail-fast -- --test-threads=4: 1746 passed, 5 failed, 48 ignored. Base af2cecc4 on the same machine: 1745 passed, 6 failed, 48 ignored. The 5 left are the 2 late-release tests (#2770; the two-pass one counts twice) and the 2 texture_upload overflow tests (#2771). The same 30 SKIPPED lines on both: wave64, heap windows, the D3D12 debug layer, the driver cache, f16 per-lane forms.

Regression run

  • Not needed: only crates/xcl/tests/ changes.

Not tested

  • AMD, Intel, WARP, Linux/Wine, a release build, any title.

AI use

  • Claude Code (Claude Opus 5.5) found the cause, wrote the change and ran the tests. I read every line of the diff.
**@⁠MarcosMDev** on GitHub · 2026-11-26 12:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/2788) `MarcosMDev:tests-ms-in-as-slot` → `nvidia-dev` · +7 −5 · 1 files · 1 commits · open `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly` came with #2015 and expects a console MS alone in the AS slot to be refused with the `"in the AS slot"` error. #541 (`70f91859`) removed that refusal on purpose: such an MS is now translated as the mesh shader it is. `nvidia-dev` has both, so the test fails on every GPU run, as in #2632 and the RTX 5080, RTX 2070 SUPER and RTX 4060 Laptop reports in #42. CI has no GPU, so it never ran there. The test's synthetic container has no NGG variant, so it is still refused with `E_INVALIDARG`, now by the MS translation (`MS: no NGG hardware variant`). The test now expects that. The runtime is unchanged. `main` has the test but not #541, so it passes there. #541 will need the same change when it lands on `main`. **What is in it** - `crates/xcl/tests/d3d12_mesh_stream.rs`: case 1 checks for a `MS: ` translation error instead of the AS-slot refusal; the file's header comment says so. Case 2 (an AS and an MS) is unchanged and still refused. **Tested** - NVIDIA GeForce RTX 4060 8 GB (driver 621.01), Ryzen 7 5700X, 24 GB, Windows 11 26200, Rust 1.100.0, DXC 1.9.2609.5, debug. - `cargo test -p xcl --test d3d12_mesh_stream -- --test-threads=4`, 10 runs: 3 passed, 0 failed each time. The test alone (`--exact`), 10 runs: passed each time, so the `MS: ` error is its own and not the concurrent test's. - To check the test still catches a change: with `mesh_shader_slots` changed locally to leave the MS in the AS slot (not part of this PR), it fails with `expected the MS translation's refusal in translation_errors: []`. - `cargo test --workspace --locked --no-fail-fast -- --test-threads=4`: 1746 passed, 5 failed, 48 ignored. Base `af2cecc4` on the same machine: 1745 passed, 6 failed, 48 ignored. The 5 left are the 2 late-release tests (#2770; the two-pass one counts twice) and the 2 `texture_upload` overflow tests (#2771). The same 30 SKIPPED lines on both: wave64, heap windows, the D3D12 debug layer, the driver cache, f16 per-lane forms. **Regression run** - Not needed: only `crates/xcl/tests/` changes. **Not tested** - AMD, Intel, WARP, Linux/Wine, a release build, any title. **AI use** - Claude Code (Claude Opus 5.5) found the cause, wrote the change and ran the tests. I read every line of the diff.
console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly (#2015) expects
the "in the AS slot" refusal. #541 (70f91859) removed that refusal on
purpose: a console MS alone in the AS slot is now translated as the mesh
shader it is. nvidia-dev has both, so the test failed on every GPU run.
The synthetic container has no NGG variant, so it is still refused with
E_INVALIDARG, now by the MS translation ("MS: no NGG hardware variant").
The test now expects that.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 12:45:51 +00:00
Author
Owner

@⁠DarkPanda69 on GitHub · 2026-11-26 13:36 UTC · original

AMD run (listed as untested), plus an RTX 3060: on nvidia-dev the test fails on both cards, and with this PR it passes on both.

Base nvidia-dev af2cecc, then head 2331f2e applied, debug, Windows 11 Pro 26200, card chosen with XCL_ADAPTER, cargo test -p xcl --test d3d12_mesh_stream -- --nocapture --test-threads=1:

RX 9070 XT (RDNA4, 32.0.32029.2010) RTX 3060 (32.0.16.1088)
nvidia-dev 2 passed, 1 failed (console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly) 2 passed, 1 failed (same)
this PR 3 passed, 0 failed, no SKIPPED 3 passed, 0 failed, no SKIPPED

The same test also failed on both cards in our amd-dev 6a0bb5b run (#2632).

Not tested: Intel, WARP, Linux / Wine, a release build, a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

**@⁠DarkPanda69** on GitHub · 2026-11-26 13:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/2788#issuecomment-7193586000) AMD run (listed as untested), plus an RTX 3060: on `nvidia-dev` the test fails on both cards, and with this PR it passes on both. Base `nvidia-dev` `af2cecc`, then head `2331f2e` applied, debug, Windows 11 Pro 26200, card chosen with `XCL_ADAPTER`, `cargo test -p xcl --test d3d12_mesh_stream -- --nocapture --test-threads=1`: | | RX 9070 XT (RDNA4, 32.0.32029.2010) | RTX 3060 (32.0.16.1088) | |---|---|---| | `nvidia-dev` | 2 passed, **1 failed** (`console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly`) | 2 passed, **1 failed** (same) | | this PR | 3 passed, 0 failed, no SKIPPED | 3 passed, 0 failed, no SKIPPED | The same test also failed on both cards in our `amd-dev` `6a0bb5b` run (#2632). Not tested: Intel, WARP, Linux / Wine, a release build, a title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
This pull request can be merged automatically.
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/2788/head:github-bot/gh-2788'
git switch 'github-bot/gh-2788'

Merge

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