root_sig_test: the versioned corrupt-checksum check asks the host first, as the unversioned one does (TEST-ROOT-SIG-VERSIONED-WIN10) #1719

Closed
leonida/mandy
qhukz13 wants to merge 0 commits from cont/root-sig-versioned-win10 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

qhukz13 commented 2026-11-25 09:33:46 +00:00

Claimed in the coordination issue as: TEST-ROOT-SIG-VERSIONED-WIN10 (claim)

What and why

On Windows 10 19045 root_sig fails one check, versioned shim rejects Xbox flags with corrupt checksum. The
shim's helper refuses to rewrite and re-sign a blob whose DXBC checksum is corrupted and passes it to the host
unchanged, and that in-box D3D12CreateVersionedRootSignatureDeserializer accepts it. The unversioned deserializer
check further down already handles exactly this: it asks the host first and prints
SKIP host-vs-shim corrupted checksum rejection (this host accepts bad checksums) where the host accepts.

The versioned check now does the same: it probes the host's versioned deserializer with the same blob, asserts that
the shim rejects it where the host does, and prints a SKIP line otherwise. The shim is not changed.

(#235, carried over from old-pr/9968, targeted two other checks of this test; its change is already on main.)

Tested

GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, ctest -R "^root_sig$": fails on
main (FAIL versioned shim rejects Xbox flags with corrupt checksum), passes 3 of 3 with this branch, printing
SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums) and
root_sig_test: OK (0 failures). A host that rejects bad checksums keeps the assertion.

GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.66, Windows 10 19045. No game files.

AI-assisted: yes (Claude Code, with Antigravity for the implementation and the runs)

🤖 Generated with Claude Code

Claimed in the coordination issue as: TEST-ROOT-SIG-VERSIONED-WIN10 ([claim](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158508340)) ### What and why On Windows 10 19045 `root_sig` fails one check, `versioned shim rejects Xbox flags with corrupt checksum`. The shim's helper refuses to rewrite and re-sign a blob whose DXBC checksum is corrupted and passes it to the host unchanged, and that in-box `D3D12CreateVersionedRootSignatureDeserializer` accepts it. The unversioned deserializer check further down already handles exactly this: it asks the host first and prints `SKIP host-vs-shim corrupted checksum rejection (this host accepts bad checksums)` where the host accepts. The versioned check now does the same: it probes the host's versioned deserializer with the same blob, asserts that the shim rejects it where the host does, and prints a SKIP line otherwise. The shim is not changed. (#235, carried over from old-pr/9968, targeted two other checks of this test; its change is already on `main`.) ### Tested GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, `ctest -R "^root_sig$"`: fails on `main` (`FAIL versioned shim rejects Xbox flags with corrupt checksum`), passes 3 of 3 with this branch, printing `SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums)` and `root_sig_test: OK (0 failures)`. A host that rejects bad checksums keeps the assertion. GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.66, Windows 10 19045. No game files. AI-assisted: yes (Claude Code, with Antigravity for the implementation and the runs) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
PierreEbele commented 2026-11-25 18:04:22 +00:00

Reviewed 61bf6033 on arm64 Linux; root_sig_test itself needs Windows/MSVC/d3d12.dll, so it could not run here -
I ran the repo gates plus the probe below instead. Compiled the unmodified d3d12_xs_rootsig.cpp against a stub
header to confirm the premise (the helper refuses a corrupted-checksum blob, so the shim forwards it and mirrors
the host), then ran the check block extracted verbatim from your tree under two mock hosts: a rejecting host
asserts exactly as on main (PASS), and your 19045 host turns main's FAIL into the SKIP with no assertion lost.
check_no_game_data and the Linux configure pass. No findings.
AI-assisted review.
Recommendation: Merge

Reviewed 61bf6033 on arm64 Linux; root_sig_test itself needs Windows/MSVC/d3d12.dll, so it could not run here - I ran the repo gates plus the probe below instead. Compiled the unmodified d3d12_xs_rootsig.cpp against a stub header to confirm the premise (the helper refuses a corrupted-checksum blob, so the shim forwards it and mirrors the host), then ran the check block extracted verbatim from your tree under two mock hosts: a rejecting host asserts exactly as on main (PASS), and your 19045 host turns main's FAIL into the SKIP with no assertion lost. check_no_game_data and the Linux configure pass. No findings. AI-assisted review. **Recommendation:** Merge
zmasi commented 2026-11-28 21:24:54 +00:00

#1719 | head 61bf603378ba6cb52cf1d6bdb7211d8abde26174 (merged cleanly with main 1bc055e6c2dedaa0de23ec79d8c4007c1dff1fb3) | ctest --test-dir runtime/build -C RelWithDebInfo -R "^root_sig$" --output-on-failure + simulated Win10 S_OK host-probe control | baseline & control: Windows 11 26200's in-box D3D12CreateVersionedRootSignatureDeserializer rejects the corrupted-checksum blob (FAILED(host_bad_hr)), keeping the versioned shim rejection assertion active, while under a S_OK host-accepting control main's unguarded check fails whereas this PR cleanly prints SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums) | green on PR+main: root_sig passes (0 failures) on both native Windows 11 D3D12 and the S_OK host-accepting control; check_no_game_data.py 0 violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes

#1719 | head 61bf603378ba6cb52cf1d6bdb7211d8abde26174 (merged cleanly with main 1bc055e6c2dedaa0de23ec79d8c4007c1dff1fb3) | `ctest --test-dir runtime/build -C RelWithDebInfo -R "^root_sig$" --output-on-failure` + simulated Win10 `S_OK` host-probe control | baseline & control: Windows 11 26200's in-box `D3D12CreateVersionedRootSignatureDeserializer` rejects the corrupted-checksum blob (`FAILED(host_bad_hr)`), keeping the versioned shim rejection assertion active, while under a `S_OK` host-accepting control `main`'s unguarded check fails whereas this PR cleanly prints `SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums)` | green on PR+main: `root_sig` passes (`0` failures) on both native Windows 11 D3D12 and the `S_OK` host-accepting control; `check_no_game_data.py` `0` violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes
OreoFR commented 2026-11-28 21:53:24 +00:00

Verified by OreoFR

  • Base: main c1ecf04ed + PR head 61bf60337; green run in a merge package of 15 PRs, no new ctest failure vs main
  • Test: ctest -R ^root_sig$
  • Red on main: OK
  • Green with the PR: OK
  • Verdict: NO RED (test-only PR; D3D12 on this host (Windows 11) already refuses the blob with a corrupt checksum, the Windows 10 19045 case is not exercised)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

**Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `61bf60337`; green run in a merge package of 15 PRs, no new ctest failure vs main - Test: `ctest -R ^root_sig$` - Red on main: OK - Green with the PR: OK - Verdict: NO RED (test-only PR; D3D12 on this host (Windows 11) already refuses the blob with a corrupt checksum, the Windows 10 19045 case is not exercised) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Tauwni commented 2026-11-29 13:07:50 +00:00

Windows 10 + AMD complement. The runs above are Linux (static), Windows 11 and a merge package; none is on Windows 10's in-box D3D12, where this check is red.

Radeon RX 9060 XT (RDNA4), driver 32.0.23033.1002, Windows 10 Pro 22H2 19045.7846, in-box d3d12.dll, MSVC 14.44 RelWithDebInfo. Head 61bf60337 merged (no commit) into current main 3535eb5c4, merges cleanly. MEASURED, 3 runs each, ctest -R "^root_sig$":

  • main 3535eb5c4: fails 3/3, FAIL versioned shim rejects Xbox flags with corrupt checksum, root_sig_test: FAILED (1 failure).
  • main + 61bf60337: passes 3/3.

The same red and green held on the older main b6bf3aa0b. MEASURED, 3 runs each.

Verdict: READY. Conclusive A/B on Windows 10, test-only change.

Not checked by a second agent or human yet. AI-assisted: yes (Claude Code).

Windows 10 + AMD complement. The runs above are Linux (static), Windows 11 and a merge package; none is on Windows 10's in-box D3D12, where this check is red. Radeon RX 9060 XT (RDNA4), driver 32.0.23033.1002, Windows 10 Pro 22H2 19045.7846, in-box `d3d12.dll`, MSVC 14.44 RelWithDebInfo. Head `61bf60337` merged (no commit) into current `main` `3535eb5c4`, merges cleanly. MEASURED, 3 runs each, `ctest -R "^root_sig$"`: - `main` `3535eb5c4`: fails 3/3, `FAIL versioned shim rejects Xbox flags with corrupt checksum`, `root_sig_test: FAILED (1 failure)`. - `main` + `61bf60337`: passes 3/3. The same red and green held on the older `main` `b6bf3aa0b`. MEASURED, 3 runs each. Verdict: READY. Conclusive A/B on Windows 10, test-only change. Not checked by a second agent or human yet. AI-assisted: yes (Claude Code).
OreoFR commented 2026-11-29 22:11:08 +00:00

CI check by OreoFR on a GitHub runner (windows-latest, no GPU) from fork OreoFR/leonida, main 060c47160 + this PR's test file, PR head 61bf60337 — run https://github.com/OreoFR/leonida/actions/runs/46311176915

  • This PR only changes runtime/test/root_sig_test.cpp, so main + its test file is the whole change.
  • runtime.yml job windows: build OK, ctest 100% passed out of 514 (MEASURED n=1). root_sig_test builds and passes with the new cases (MSVC warning C4456 "declaration of 'desc' hides previous local declaration" at root_sig_test.cpp:529 and :633, harmless but worth a rename).
  • No red is possible for a tests-only PR (the new cases pass on main's code). Vulkan/GPU tests are not covered on this runner.
  • Merges cleanly; does not force a rebase of #2566.

Verdict: NO RED (test-only; passes on main, 514/514).

AI-assisted: Claude Code

CI check by OreoFR on a GitHub runner (windows-latest, no GPU) from fork OreoFR/leonida, main 060c47160 + this PR's test file, PR head 61bf60337 — run https://github.com/OreoFR/leonida/actions/runs/46311176915 - This PR only changes `runtime/test/root_sig_test.cpp`, so main + its test file is the whole change. - `runtime.yml` job `windows`: build OK, **`ctest` 100% passed out of 514** (MEASURED n=1). `root_sig_test` builds and passes with the new cases (MSVC warning C4456 "declaration of 'desc' hides previous local declaration" at `root_sig_test.cpp:529` and `:633`, harmless but worth a rename). - No red is possible for a tests-only PR (the new cases pass on main's code). Vulkan/GPU tests are not covered on this runner. - Merges cleanly; does not force a rebase of #2566. **Verdict: NO RED** (test-only; passes on main, 514/514). AI-assisted: Claude Code
aslan2142 commented 2026-12-01 16:37:22 +00:00

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.
Sign in to join this conversation.
No description provided.