tests: give the compute e2e root a table range for the Windows 10 runtime #2328
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2336"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-25T12:45:39Z.
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
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T12:47:18Z.
Review: COMMENTED
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.table_range=False), so the pinned request keys stay valid.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.table_rangeFalse and True) throughComputePipeline: both parse.Mutation: flipping the default to
table_range=Truewas NOT caught by the Linux tests (the new path only runs in the Windows e2e), so no mutation could be killed on Linux. CIBuild and test on Windowswas still pending when this was written; the real proof is that job going green.AI-assisted; commands listed were executed locally.