Repository navigation
Tests: a console MS in the AS slot is refused by its MS translation - #2788
MarcosMDev wants to merge 1 commit into
Conversation
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>
|
AMD run (listed as untested), plus an RTX 3060: on Base
The same test also failed on both cards in our Not tested: Intel, WARP, Linux / Wine, a release build, a title. |
|
Independent Intel + WARP + NVIDIA ( Environment
|
| 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, thencargo 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_cleanlynow passes; the 5 remaining failures are the unrelated pre-existingnvidia-devones (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).
- Base
Diff Check (af2cecc4..2331f2ea)
- Confirmed test-only diff (
crates/xcl/tests/d3d12_mesh_stream.rs, +7/-5) matchingreal.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 returnsE_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.
console_ms_in_as_slot_and_ms_with_as_are_refused_cleanlycame 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-devhas 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 withE_INVALIDARG, now by the MS translation (MS: no NGG hardware variant). The test now expects that. The runtime is unchanged.mainhas the test but not #541, so it passes there. #541 will need the same change when it lands onmain.What is in it
crates/xcl/tests/d3d12_mesh_stream.rs: case 1 checks for aMS: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
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 theMS:error is its own and not the concurrent test's.mesh_shader_slotschanged locally to leave the MS in the AS slot (not part of this PR), it fails withexpected the MS translation's refusal in translation_errors: [].cargo test --workspace --locked --no-fail-fast -- --test-threads=4: 1746 passed, 5 failed, 48 ignored. Baseaf2cecc4on 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 2texture_uploadoverflow 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
crates/xcl/tests/changes.Not tested
AI use