Skip to content

tests: give the compute e2e root a table range for the Windows 10 runtime - #2336

Merged
R0Y00 merged 1 commit into
R0Y00:mainfrom
lukaslw-lab:tests/compute-e2e-ranged-root
Nov 25, 2026
Merged

R0Y00 merged 1 commit into
R0Y00:mainfrom
lukaslw-lab:tests/compute-e2e-ranged-root

Conversation

@lukaslw-lab

Copy link
Copy Markdown
Contributor

Change

startup_compute_translate_e2e (from #2223) passed a version 1.1 root signature whose descriptor table has no
ranges to the stand-in consumer, which forwards it to the desktop device. The Windows 10 in-box D3D12 runtime
corrupts its heap in CreateRootSignature for such a table, so all four e2e tests failed there (#2335).

  • root_blob(table_range=True) in tests/startup_gfx2hlsl_compute_check.py gives the table one SRV range (t0, one
    descriptor). 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 (on b1a644ae) 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.

ctest --preset dev --no-tests=error -R '^(startup_compute_|startup_gfx2hlsl_compute)'
35 total: 35 passed, 0 skipped, 0 failed

The four e2e tests in that selection (startup_compute_translate_e2e_{warp,hardware} and both _wrong_group_
controls) fail on b1a644ae without this change.

Check Result
upstream tests/startup_compute_translate_check.py with this build, e2e … warp / hardware consumer exit 10 after CreateRootSignature size=0x70 -> 0x80070057, or exit 0xC0000374 (both seen; last run: 0xC0000374 on both)
this branch, same commands PASS, all 320 words match (both); wrong-group controls rejected at word=5
root_blob() bytes before/after identical
root_blob(table_range=True) vs D3D12SerializeVersionedRootSignature of the same layout identical apart from the hash
plain D3D12 CreateRootSignature of root_blob(table_range=True) (zero hash), 20 calls S_OK 20/20 on the RTX 3080 Ti and on WARP

Not run: the release preset, and Windows 11 or the Agility SDK runtime (CI's windows-2025 image covers that).

Evidence and follow-up

  • No new fixture. The negative control is the unchanged upstream test on the same build (first row above).
  • Only this test creates root_blob() on a device; its other users hand it to the Python translator.
  • Other in-box WARP 10.0.19041 failures from the same full dev run are not part of this change; they pass on
    WARP 1.0.22.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed. (No capability or requirement changed.)
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted: prepared with Claude Code; the commands and results above were run on the author's PC.

🤖 Generated with Claude Code

…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 tedin7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 table NumDescriptorRanges/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.py uses the new blob, and that path needs the Windows runner and dxc.

Commands executed locally (Linux):

  • python3 tests/startup_compute_translate_check.py and python3 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_range False and True) through ComputePipeline: 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.

@R0Y00
R0Y00 merged commit 14e8b6a into R0Y00:main Nov 25, 2026
5 checks passed
@lukaslw-lab
lukaslw-lab deleted the tests/compute-e2e-ranged-root branch November 26, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

startup_compute_translate_e2e fails on the Windows 10 in-box D3D12 runtime: a root signature table with no ranges

3 participants