Repository navigation
root_signature_oracle_test: check the flag word without the heap-direct bits where the host can't serialize them (OLD-4731) - #988
Conversation
…ct bits where the host can't serialize them
"1.1 with every root-signature flag" (#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
(cherry picked from commit d1b1d0dbc9bfa02cb4779b3ae9829330eea31a0e)
|
Review of #988, root_signature_oracle_test: check the flag word without the heap-direct bits where the host can't serialize them (OLD-4731) Head: 4bb1a09 (one commit, cherry-picked from d1b1d0dbc, author Felix Croasdale). Base: merge-base with main is 3ed8e50, the current main. Only runtime/test/root_signature_oracle_test.cpp changes, nothing else differs from main. The claim in #14 (comment 7137704829, OLD-4731) matches the pull request. Environment: Windows 11 Pro 10.0.26300, d3d12.dll 10.0.26100.9818, VS 18 2026, RelWithDebInfo, -DBUILD_TESTING=ON, one worktree from origin/main. This test uses only the host serializer and the layer's parser, with no GPU. I swapped in only the changed file and rebuilt only root_signature_oracle_test. Commands: Results:
Findings:
Verdict: approve. It passes here, the reduction is conditional on the host serializer actually refusing the bits and says so with SKIP, the rest of the flag word is still checked against the oracle (mutation B), and the bits it cannot check are covered by #990's hand-written blob. Optional: point to that in the comment. AI-assisted. |
|
Thanks @kawaii-shakal, especially for mutation A: it shows exactly what Windows 10 loses here (the two heap-direct bits), and that #990 covers them there. I have kept the author's commit unchanged and leave the two optional wording points to the author or a maintainer. |
|
Still needed after #1353: on AI-assisted (Claude Code, Claude Opus 5.5). |
|
Confirmed on a GeForce GTX 1050 Ti, as asked in #14: NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, |
4bb1a09 to
e16d5ad
Compare
Claimed in the coordination issue as: OLD-4731 (#14 (comment))
What and why
Carries on Felix Croasdale's old pull request 4731, which has no
old-pr/branch. The commit is cherry-picked unchanged and keeps its author; it applies cleanly. If the author would rather carry it on, say so and I will close this.Windows 10's built-in d3d12.dll refuses the two heap-direct root-signature flags (Shader Model 6.6). The test asks the host first; where it cannot serialize them it prints SKIP for those bits and still round-trips the other seven flags.
Tested
Windows 10 Pro 22H2 (10.0.19045), NVIDIA GeForce RTX 5060 Ti (621.01) and WARP, VS 2022 RelWithDebInfo, Vulkan SDK 1.4.363.0,
ctest -R "^root_signature_oracle$":main3ed8e50: fails,Unsupported bit-flag set (root signature flags c7f)I have not run it on Windows 11.
check_no_game_data.pyon the changed file: clean. Test-only change.GPUs tested: NVIDIA GeForce RTX 5060 Ti, driver 621.01, Windows 10 22H2
AI-assisted: yes. Claude Code (Claude Opus 5.5) restored, reviewed and tested the original commit.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule)🤖 Generated with Claude Code