Repository navigation
D3D12-TEST-MESH-PIPELINE-ROOT-SIG: omit SM 6.6 heap flags in mesh pipeline library test - #2938
bobcatchris wants to merge 1 commit into
Conversation
|
Mesh root signature and library cross-check under Wine on On Wine 11.22 / VKD3D-Proton 3.1.0, both PSO requests returned on both trees, then the pre-existing library-hit assertion failed 3/3 per tree and adapter. The observed failure was earlier in the cache path: That verifies the empty flags and the combined Wine library path. The Windows 10 inbox D3D12 runtime was outside this run. MEASURED with synthetic shader inputs, OpenAI Codex and a separate read-only review. |
KelboLive
left a comment
There was a problem hiding this comment.
The Win10 premise does not hold for this test: a_mesh_pipeline_loads_from_the_library returns at host.rs:1544 when mesh_shaders() is false, and inbox Win10 tops out at SM 6.5 while that check requires 6.6 (src/host.rs:6268-6270) — so it never reaches CreateRootSignature there, and on Win11 26200 the old call already passed. The Wine CreatePipelineLibrary failure is #2654's problem, not this one.
The change is still defensible as hygiene (a zero-descriptor test shouldn't promise SM 6.6 heap indexing), and the new CPU-side deserializer test is a genuine small complement — but #2855's current head now subsumes this PR: 31752c4da factors root_signature_with_flags() and uses it for both this test and the depth-bounds test, keeping ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT and the production serializer. The two conflict in pipeline/host.rs (merge-tree exit 1), and #2938's "without touching this test" line is stale since #2855's second commit landed at 21:01Z.
Please drop this branch, or rebase onto #2855 and keep only empty_test_root_signature_omits_sm66_heap_flags. In that case assert flags & (CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED) == 0 rather than == NONE, since the input-assembler flag is harmless and #2855 keeps it.
Separately: no test fails if production loses its SM 6.6 flags — I replaced Flags: input in root_signature() and all 10 host tests stayed green — so that guarantee remains review-only. If it matters, it needs its own assertion.
|
Heads-up on a small overlap with #2855: following review feedback from Your pure-CPU deserialization test ( |
|
Closing in favor of #2855 (31752c4), which now subsumes the �_mesh_pipeline_loads_from_the_library SM 6.6 flag removal via |
Claimed in the coordination issue as: D3D12-TEST-MESH-PIPELINE-ROOT-SIG (#2570 (comment); ref finding #2570 (comment))
What and why
pipeline::host::tests::a_mesh_pipeline_loads_from_the_library(d3d12/crates/leonida-gpu/src/pipeline/host.rs:1529) calledroot_signature(&host.device, &[], &[], false), which unconditionally setsD3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDandD3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED(SM 6.6). Because the test'sms_6_5/ps_6_5shaders bind no descriptors, inbox Windows 10d3d12.dllrejects the root signature withE_INVALIDARG(the same issue #2855 fixed fordepth_bounds_pipeline_loads_and_filters_draws, without touching this test).Fix:
empty_root_signature_blob()serializing an empty v1.1 root signature withD3D12_ROOT_SIGNATURE_FLAG_NONEand used it ina_mesh_pipeline_loads_from_the_library.empty_test_root_signature_omits_sm66_heap_flagsdeserializing the blob viaD3D12CreateVersionedRootSignatureDeserializerand assertingD3D12_ROOT_SIGNATURE_FLAG_NONE(runs even on runners withoutdxc.exeor mesh shader hardware).Tested
cargo test --locked -p leonida-gpu --lib pipeline::host::tests: 10 passed, 0 failed (including livea_mesh_pipeline_loads_from_the_libraryon RX 7900 XTX with PCdxc.exeandempty_test_root_signature_omits_sm66_heap_flags).python -I scripts/check_no_game_data.py d3d12/crates/leonida-gpu/src/pipeline/host.rs: clean.GPUs tested: AMD Radeon RX 7900 XTX 24 GB (driver 32.0.32029.2010, Windows 11, profile L).
AI-assisted: yes — Gemini 4 Neon (implementation and an independent read-only reviewer pass).
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).