Tests: a console MS in the AS slot is refused by its MS translation #2778
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2788"
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 MarcosMDev on 2026-11-26T12:43:52Z.
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 (#2770; the two-pass one counts twice) and the 2texture_uploadoverflow 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
crates/xcl/tests/changes.Not tested
AI use
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-26T13:36:29Z.
AMD run (listed as untested), plus an RTX 3060: on
nvidia-devthe test fails on both cards, and with this PR it passes on both.Base
nvidia-devaf2cecc, then head2331f2eapplied, debug, Windows 11 Pro 26200, card chosen withXCL_ADAPTER,cargo test -p xcl --test d3d12_mesh_stream -- --nocapture --test-threads=1:nvidia-devconsole_ms_in_as_slot_and_ms_with_as_are_refused_cleanly)The same test also failed on both cards in our
amd-dev6a0bb5brun (#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.
Imported from ivall/xcl. Originally posted by retrope13 on 2026-11-26T14:02:47Z.
Independent Intel + WARP + NVIDIA (
--release& debug) verification of#2788(2331f2ea) against basenvidia-dev(af2cecc4): covers the previously untested Intel, WARP, and release targets — all pass with 0 skips. No title was run.Environment
XCL_ADAPTER):32.0.101.7092)XCL_ADAPTER=WARP,Selector::Warp)32.0.16.2140)26300.9818),rustc 1.100.0(stable-x86_64-pc-windows-msvc), Windows SDK10.0.26100.0DXC1.9.2602.17.d3d12_mesh_streamMatrix (--test-threads=1 --nocapture)af2cecc4(debug)#27882331f2ea(debug)#27882331f2ea(--release)expected AS-slot refusal in translation_errors: ["MS: no NGG hardware variant"])0.23 s, no skips)0.22 s, no skips)0.18 s, no skips)0.20 s, no skips)0.42 s, no skips)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:af2cecc4: 1748 passed, 6 failed, 48 ignored#2788(2331f2ea): 1749 passed, 5 failed, 48 ignoredconsole_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).Diff Check (
af2cecc4..2331f2ea)crates/xcl/tests/d3d12_mesh_stream.rs, +7/-5) matchingreal.rs::mesh_shader_slots(#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
AI disclosure: Antigravity (Gemini 4 Neon, XHigh) ran the adapter/build test matrix, checked the diff against
real.rs, and drafted this report.Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T04:27:58Z.
Independent desktop NVIDIA verification of PR #2788 at head
2331f2ea810c4c32d4915e1654ba7c02ddc9a06d(1commit targetingnvidia-dev; exact parent & merge-base:af2cecc40886a8682ecf3267f5328c6dc4b66ad7, pre-#2555ancestor ofnvidia-dev).Environment
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseBefore/after GPU integration test & build (
af2cecc4->2331f2ea)af2cecc4:cargo test --release -p xcl --test d3d12_mesh_stream -- --nocapture2 passed; 1 failed; 0 ignored(0.45s) —console_ms_in_as_slot_and_ms_with_as_are_refused_cleanlypanicked atcrates/xcl/tests/d3d12_mesh_stream.rs:96:5withexpected AS-slot refusal in translation_errors: ["MS: no NGG hardware variant"]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,0skipped; live RTX 4060 D3D12 execution ofconsole_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,concurrent_mesh_stream_refusals_across_five_threads_survive, andmalformed_and_truncated_pipeline_streams_do_not_panic_or_crash)cargo build --release -p xcl0.09sincremental after--testbuild, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
af2cecc40886a8682ecf3267f5328c6dc4b66ad7,nvidia-dev, cached baseline on the same machine):PR #2788 (
2331f2ea810c4c32d4915e1654ba7c02ddc9a06d,nvidia-dev):Runtime log observations (
xcl.log)9391log lines,0[ERROR]/ device-removal / panic lines (dxil_cache:116286hits,37misses,37compilations,0failures;4324background pipelines,0failures).19063 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14712 MB committed by the process; video memory 6119 MB local, 4748 MB non-local.Limits of coverage
crates/xcl/tests/d3d12_mesh_stream.rs,+7/-5,0production-code changes); the exact pre-PR failure onnvidia-devparentaf2cecc4was reproduced on the live RTX 4060 D3D12 adapter and resolved (3/3passing runs) on PR #2788.nvidia-devruntime 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).
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-27T17:29:34Z.
merge-check
base:
d1be810364(nvidia-dev)head:
2331f2ea81merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1823 passed, 9 failed, 48 ignored (the harness lines summed; two of the failing tests re-run themselves in a child process and count twice). Failing, 7 distinct, all also failing on the base with the same names: lib
gpu::recomp::link_tests::gpu_linked_memory_accessors,gpu::recomp::link_tests::linked_programs_keep_their_declarations,hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays,hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels(the last two are #2771's);gpu_compute_e2e:async_compute_pso_registers_real_pso_and_not_standin,split_compute_prefers_the_offline_whole_pipeline;gpu_two_pass_cache_e2e:two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs. The base fails one more,d3d12_mesh_stream::console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, which passes with this PR.review: none. Test-only (one file): the expectation follows what the MS-in-AS-slot case does since #541 (taken as the mesh shader, refused for having no NGG variant,
E_INVALIDARG, a translation error startingMS:), and the module comment says so. Read the whole diff.performance: none, test-only.
verdict: safe to merge. With #2837, #2771 and #2773 it makes
nvidia-dev'sBuild and test (Windows, no GPU)pass (fork run of the four: https://github.com/Kalmarv/xcl/actions/runs/46032822388).hardware / tool and model: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Ryzen 9 9950X, Windows 11 Pro 26200, rustc 1.99.0; Claude Code (Claude Opus 5.5) ran the build and tests and wrote this check.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:28:19Z.
merge-check claim
head:
2331f2ea81Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:49:02Z.
merge-check
base:
d1be8103(nvidia-dev)head:
2331f2ea81merge: clean (alone, and together with the other three)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1824 passed, 8 failed, 48 ignored: console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, which fails on the base, passes with it. One test failed in this run that did not fail on the base or in the other four trees: gpu::recomp::dxc::cache_tests::concurrent_cache_misses_compile_once; the PR touches only tests/d3d12_mesh_stream.rs, so I read it as a flaky test of the branch, not as this PR's. base (nvidia-dev
d1be8103) alone on this GPU: 1824 passed, 8 failed, 48 ignored; failing there: async_compute_pso_registers_real_pso_and_not_standin, split_compute_prefers_the_offline_whole_pipeline, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, and two texture_upload tests. All four test fixes together (#2837 + #2771 + #2788 + #2773): 1827 passed, 5 failed, 48 ignored; only the first three names remain, and they fail on the base too.review: none. The test now expects the refusal from the mesh-shader translation (no NGG variant) instead of the old slot refusal, matching the behaviour since #541; the assertion is on the error text's prefix.
performance: none (test only).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code (Claude Fable 5.2): merge, build, suite and the review of this small diff; nothing run on the GPU beyond the suite.