Repository navigation
root_signature_oracle_test: Windows 10 can't serialize the heap-direct flags; check the other flags there - #4731
Conversation
…ct bits where the host can't serialize them "1.1 with every root-signature flag" (ItsNotRexed#3340) sets CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED and SAMPLER_HEAP_DIRECTLY_INDEXED, which came with Shader Model 6.6. Windows 10's built-in d3d12.dll refuses them ("Unsupported bit-flag set (root signature flags c7f)"), so the test failed on every Windows 10 PC. As for the 1.2 cases, the test now asks the host first. Where it can't serialize the heap-direct bits, it prints SKIP for them and round-trips the other seven flags, so a parser reading the wrong header word is still caught there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD
|
Tested d1b1d0d on Windows 10-compatible path elsewhere? Not quite: RTX 5090, Windows 11 (10.0.26300), 621.24, MSVC 19.44: pass. Built So the oracle still works where the host can serialise; the new "can't serialise here" branch is the one I cannot exercise on this OS build. |
Kam471
left a comment
There was a problem hiding this comment.
Built and ran root_signature_oracle_test at d1b1d0dbc on Windows 11: exit 0 (the run includes the 1.2 non-normalized-coordinates cases: version, two-range table, root SRV, samplers, field round-trips, canonical codec). git diff --check clean.
On a host that cannot serialize the heap-direct flags, the test now compares the flag word with those bits masked out and still checks the rest, instead of failing the whole row. No blocking issue.
|
Full ctest on this branch (
The incremental rebuild of the changed test had no warnings. AI-assisted (Claude Code). |
|
Re-ran at head
AI-assisted (Devin). |
|
Reviewed on Linux: the capability probe is well-shaped — it isolates exactly the two SM6.6 heap-direct bits, and on a host that cannot serialize them the remaining flag word is still round-trip checked rather than the whole test skipping. The Windows run itself could not be executed here; CI legs were still queued at check time. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Thanks @dcastell1, @Atomic258 and @Kam471 for the Windows 11 runs (the probe succeeds there and the full flag word is checked, as on |
Claimed in the coordination issue as: new TEST item (claim).
What and why
root_signature_oraclefails on every Windows 10 PC. The case1.1 with every root-signature flag(added in #3340) setsCBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDandSAMPLER_HEAP_DIRECTLY_INDEXED. Those came with Shader Model 6.6, and Windows 10's built-ind3d12.dllrefuses them:The test already skips the 1.2 cases on such a host, and this change does the same here:
SKIP 1.1 with every root-signature flag: the heap-direct bits (...)and round-trips the flag word without them.Hosts that serialize the heap-direct bits (Windows 11, an Agility SDK runtime) run the case unchanged.
Tested
NVIDIA GeForce RTX 5060 Ti, driver 621.14, Windows 10 19045, MSVC (VS 2022 Build Tools), RelWithDebInfo, branch on
main98fa503f.main98fa503f:root_signature_oraclefails with the output above. Fullctest -j2was 163/166, with and withoutLEONIDA_VK_VALIDATION=1. The failures wereroot_signature_oracle,d3d12_indirect_dispatch_count(d3d12_indirect_dispatch_count_test: check the layer against the expected count (WARP 22621 reuses a stale count) #4653) andd3d12_conservative_raster(TEST-907).root_signature_oracle_test.exeexits 0, with 53 PASS lines and the two SKIP lines (heap-direct bits; 1.2), and the four1.1 with every root-signature flagchecks pass.parse_rts0reading the flags from header offset 16 instead of 20 (runtime/src/root_signature.cpp:284), the bug the case is for. On this Windows 10 host the test then fails,FAIL 1.1 with every root-signature flag: the whole PC flag word round-trips ...plus 3 more,4 FAILURES, exit 1. Restored.ctestwith and without validation: running now; I'll post the results here.Not tested: a host that serializes the heap-direct bits (Windows 11). There the probe succeeds and the case is the same as on
main.AI-assisted: yes (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (not a translator change)🤖 Generated with Claude Code
https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD