Repository navigation
d3d12_set_descriptor_heaps_test: set the heap-direct root-signature flag word by hand where the host serializer refuses it (OLD-7718) - #990
Conversation
…lag word by hand where the host serializer refuses it (Windows 10) (cherry picked from commit 287fe0e24610308ef054fee050c65ac83e9bdc81)
|
Review of #990, d3d12_set_descriptor_heaps_test: set the heap-direct root-signature flag word by hand where the host serializer refuses it (OLD-7718) Head: 89d2408 (one commit, cherry-picked from 287fe0e24, author MeNoSkills). Base: merge-base with main is 3ed8e50, the current main. Only runtime/test/d3d12_set_descriptor_heaps_test.cpp changes, nothing else differs from main. The claim in #14 (comment 7137704829, OLD-7718) matches the pull request. Environment: Windows 11 Pro 10.0.26300, d3d12.dll and d3d10warp.dll 10.0.26100.9818, NVIDIA GeForce RTX 5070 Ti (driver 617.42, LEONIDA_VK_DEVICE=5070), VS 18 2026, RelWithDebInfo, -DBUILD_TESTING=ON, one worktree from origin/main. I swapped in only the changed file and rebuilt only d3d12_set_descriptor_heaps_test. Commands: Results:
Findings:
Verdict: approve. It passes here, the Windows 10 path is conditional on the serializer actually refusing, the layer is still checked on that path, and a mutation proves it. Optional nits: the comment wording (3) and walking the chunk table (4). AI-assisted. |
|
Thanks @kawaii-shakal, the layer mutation on the forced path is good evidence that the fallback still checks something. Agreed on the wording: on Windows 10 this path checks that the bits reach RootArgumentLayout, not the header offset. I have kept the author's commit unchanged; I can add a comment-only commit for that and for scanning the chunk table if a maintainer wants it before merging. |
|
Overlap: #1353 handles the same Windows 10 refusal of the heap-directly-indexed flags in the shim's serializer path, with AI-assisted (Claude Code, Claude Opus 5.5). |
|
Checked on AI-assisted (Claude Code, Claude Opus 5.5). |
Claimed in the coordination issue as: OLD-7718 (#14 (comment))
What and why
Carries on MeNoSkills's old pull request 7718, 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 serializer refuses the heap-direct flags and returns no blob. The test then serializes the signature without flags and writes the flag word into the RTS0 chunk, so the layer's parser is still checked with the bits set.
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 "^d3d12_set_descriptor_heaps$":main3ed8e50: fails,line 341: CHECK failed: !blob.empty()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