Skip to content

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

Open
MarcosMDev wants to merge 1 commit into
xcl-dev:nvidia-devfrom
MarcosMDev:tests-ms-in-as-slot
Open

MarcosMDev wants to merge 1 commit into
xcl-dev:nvidia-devfrom
MarcosMDev:tests-ms-in-as-slot

Conversation

@MarcosMDev

Copy link
Copy Markdown

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 (Tests: wait for late release before checking released pipelines are gone #2770; the two-pass one counts twice) and the 2 texture_upload overflow tests (Tests: some_ranges in texture_upload wraps its generator instead of overflowing #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 (xcl-dev#2015) expects
the "in the AS slot" refusal. xcl-dev#541 (70f9185) 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 <noreply@anthropic.com>
@DarkPanda69

Copy link
Copy Markdown

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.

@Prime1997 Prime1997 mentioned this pull request Nov 26, 2026
@retrope13

Copy link
Copy Markdown

Independent Intel + WARP + NVIDIA (--release & debug) verification of #2788 (2331f2ea) against base nvidia-dev (af2cecc4): covers the previously untested Intel, WARP, and release targets — all pass with 0 skips. No title was run.

Environment

  • Adapters tested (via XCL_ADAPTER):
    • Intel: Intel UHD Graphics (driver 32.0.101.7092)
    • WARP: Microsoft Basic Render Driver (XCL_ADAPTER=WARP, Selector::Warp)
    • NVIDIA: NVIDIA GeForce RTX 4060 Laptop GPU (8 GB, driver 32.0.16.2140)
  • Host / Toolchain: Intel Core i5-14500HX (14C/20T), 24 GB RAM, Windows 11 26H2 (build 26300.9818), rustc 1.100.0 (stable-x86_64-pc-windows-msvc), Windows SDK 10.0.26100.0 DXC 1.9.2602.17.

d3d12_mesh_stream Matrix (--test-threads=1 --nocapture)

Adapter Base af2cecc4 (debug) PR #2788 2331f2ea (debug) PR #2788 2331f2ea (--release)
Intel UHD Graphics 2 passed, 1 failed (expected AS-slot refusal in translation_errors: ["MS: no NGG hardware variant"]) 3 passed, 0 failed (0.23 s, no skips) 3 passed, 0 failed (0.22 s, no skips)
WARP 2 passed, 1 failed (same) 3 passed, 0 failed (0.18 s, no skips) 3 passed, 0 failed (0.20 s, no skips)
NVIDIA RTX 4060 Laptop 2 passed, 1 failed (same) 3 passed, 0 failed (0.42 s, no skips) 3 passed, 0 failed (0.52 s, no skips)

Full Workspace Suite (XCL_ADAPTER=NVIDIA, debug)

  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4:
    • Base af2cecc4: 1748 passed, 6 failed, 48 ignored
    • PR #2788 (2331f2ea): 1749 passed, 5 failed, 48 ignored
    • console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly now passes; the 5 remaining failures are the unrelated pre-existing nvidia-dev ones (texture_upload::tests ×2, async_compute_pso_registers_real_pso_and_not_standin, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs ×2).

Diff Check (af2cecc4..2331f2ea)

  • Confirmed test-only diff (crates/xcl/tests/d3d12_mesh_stream.rs, +7/-5) matching real.rs::mesh_shader_slots (D3D12.X: a console MS in the AS slot is translated as the mesh shader it is #541), which promotes (None, Some(console_ms)) to (Some(console_ms), None) so Case 1 hits MS translation (MS: no NGG hardware variant) while Case 2 (AsAndMs) leaves both slots untouched and still returns E_INVALIDARG.

Not Tested

  • Linux/Wine and live retail title runs.

AI disclosure: Antigravity (Gemini 4 Neon, XHigh) ran the adapter/build test matrix, checked the diff against real.rs, and drafted this report.

@Decodere

Copy link
Copy Markdown
Contributor

Independent desktop NVIDIA verification of PR #2788 at head 2331f2ea810c4c32d4915e1654ba7c02ddc9a06d (1 commit targeting nvidia-dev; exact parent & merge-base: af2cecc40886a8682ecf3267f5328c6dc4b66ad7, pre-#2555 ancestor of nvidia-dev).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Before/after GPU integration test & build (af2cecc4 -> 2331f2ea)

Command Result
Exact parent af2cecc4: cargo test --release -p xcl --test d3d12_mesh_stream -- --nocapture Reproduced failure: 2 passed; 1 failed; 0 ignored (0.45s) — console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly panicked at crates/xcl/tests/d3d12_mesh_stream.rs:96:5 with expected AS-slot refusal in translation_errors: ["MS: no NGG hardware variant"]
PR #2788 2331f2ea: cargo test --release -p xcl --test d3d12_mesh_stream -- --nocapture (3 consecutive runs) 3 passed; 0 failed; 0 ignored; 0 filtered out × 3 (0.35s, 0.39s, 0.39s, 0 skipped; live RTX 4060 D3D12 execution of console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, concurrent_mesh_stream_refusals_across_five_threads_survive, and malformed_and_truncated_pipeline_streams_do_not_panic_or_crash)
cargo build --release -p xcl Clean build (0.09s incremental after --test build, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (af2cecc40886a8682ecf3267f5328c6dc4b66ad7, nvidia-dev, cached baseline on the same machine):

xcl-smoke v1
commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1547 (PresentX 1547)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16342 MB

PR #2788 (2331f2ea810c4c32d4915e1654ba7c02ddc9a06d, nvidia-dev):

xcl-smoke v1
commit: 2331f2ea810c4c32d4915e1654ba7c02ddc9a06d
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1582 (PresentX 1582)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14712 MB

Runtime log observations (xcl.log)

  • 9391 log lines, 0 [ERROR] / device-removal / panic lines (dxil_cache: 116286 hits, 37 misses, 37 compilations, 0 failures; 4324 background pipelines, 0 failures).
  • Final draw/memory telemetry in log: 19063 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14712 MB committed by the process; video memory 6119 MB local, 4748 MB non-local.

Limits of coverage

  • This PR is test-only (crates/xcl/tests/d3d12_mesh_stream.rs, +7/-5, 0 production-code changes); the exact pre-PR failure on nvidia-dev parent af2cecc4 was reproduced on the live RTX 4060 D3D12 adapter and resolved (3/3 passing runs) on PR Tests: a console MS in the AS slot is refused by its MS translation #2788.
  • The 60 s retail smoke confirms non-regression of the unchanged nvidia-dev runtime binary (single-run frame/commit delta vs. cached parent reflects normal background pipeline/startup variance, not this PR).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants