Repository navigation
tests: give the compute e2e root a table range for the Windows 10 runtime - #2336
Merged
Merged
Conversation
…time The Windows 10 in-box D3D12 runtime (10.0.19041) corrupts its heap in CreateRootSignature for a version 1.1 root signature whose descriptor table has no ranges. startup_compute_translate_e2e passed such a blob to the stand-in consumer, which forwards it to the desktop device, so all four e2e tests failed there with E_INVALIDARG or STATUS_HEAP_CORRUPTION. root_blob(table_range=True) adds one SRV range (t0, one descriptor) and the e2e test uses it. The default bytes are unchanged; they are part of pinned request keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tedin7
reviewed
Nov 25, 2026
tedin7
left a comment
Collaborator
There was a problem hiding this comment.
Review of head c9d2f5282878c36efcd6d3c79985286ce4a8b981 (tests only, 2 files).
Findings: 0 P1, 0 P2.
root_blob(table_range=True)adds one SRV range (type 0, 1 descriptor, t0, space 0, flags 0, offset append = 0xffffffff). The 24-byte range layout, the tableNumDescriptorRanges/offset pair and the end offset (table_at + 8 + len(ranges)) are consistent with a version 1.1 RTS0 blob.- Default bytes are unchanged (
table_range=False), so the pinned request keys stay valid. - Only the e2e path in
startup_compute_translate_check.pyuses the new blob, and that path needs the Windows runner and dxc.
Commands executed locally (Linux):
python3 tests/startup_compute_translate_check.pyandpython3 tests/startup_gfx2hlsl_compute_check.py: both pass.python3 tests/docs_links_check.py: 18 files, 451 links OK.python3 tests/bidi_controls_check.py: OK.git diff --check origin/main...HEAD: clean.- Loaded both blobs (
table_rangeFalse and True) throughComputePipeline: both parse.
Mutation: flipping the default to table_range=True was NOT caught by the Linux tests (the new path only runs in the Windows e2e), so no mutation could be killed on Linux. CI Build and test on Windows was still pending when this was written; the real proof is that job going green.
AI-assisted; commands listed were executed locally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
startup_compute_translate_e2e(from #2223) passed a version 1.1 root signature whose descriptor table has noranges to the stand-in consumer, which forwards it to the desktop device. The Windows 10 in-box D3D12 runtime
corrupts its heap in
CreateRootSignaturefor such a table, so all four e2e tests failed there (#2335).root_blob(table_range=True)intests/startup_gfx2hlsl_compute_check.pygives the table one SRV range (t0, onedescriptor). The e2e test writes that blob; the translation and dispatch it checks are unchanged.
root_blob()without the argument returns the same bytes as before, so the request keys pinned from it(
startup_compute_request_offline) do not move.Test-only. Fixes #2335.
Verification
Commit
c9d2f528(onb1a644ae) on Windows 10 22H2 (build 19045), Visual Studio 2026 (MSVC 19.52), Python 3.13.7,in-box D3D12 runtime, in-box WARP 10.0.19041.7811, NVIDIA GeForce RTX 3080 Ti driver 32.0.16.1047.
The four e2e tests in that selection (
startup_compute_translate_e2e_{warp,hardware}and both_wrong_group_controls) fail on
b1a644aewithout this change.tests/startup_compute_translate_check.pywith this build,e2e … warp/hardwareCreateRootSignature size=0x70 -> 0x80070057, or exit 0xC0000374 (both seen; last run: 0xC0000374 on both)wrong-groupcontrols rejected atword=5root_blob()bytes before/afterroot_blob(table_range=True)vsD3D12SerializeVersionedRootSignatureof the same layoutCreateRootSignatureofroot_blob(table_range=True)(zero hash), 20 callsNot run: the
releasepreset, and Windows 11 or the Agility SDK runtime (CI'swindows-2025image covers that).Evidence and follow-up
root_blob()on a device; its other users hand it to the Python translator.devrun are not part of this change; they pass onWARP 1.0.22.
Checklist
AI-assisted: prepared with Claude Code; the commands and results above were run on the author's PC.
🤖 Generated with Claude Code