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

Manually merged
github merged 1 commit from gh-pr/2336/head into gh-pr/2336/base 2026-11-27 00:17:07 +00:00
Owner

@⁠lukaslw-lab on GitHub · 2026-11-25 12:45 UTC · original
lukaslw-lab:tests/compute-e2e-ranged-root → main · +11 −5 · 2 files · 1 commits · merged 2026-11-25 13:02 UTC

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

**@⁠lukaslw-lab** on GitHub · 2026-11-25 12:45 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2336) `lukaslw-lab:tests/compute-e2e-ranged-root` → `main` · +11 −5 · 2 files · 1 commits · merged 2026-11-25 13:02 UTC ## 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 - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] 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.) - [x] 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](https://claude.com/claude-code)
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 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:17:05 +00:00
github manually merged commit c9d2f52828 into gh-pr/2336/base 2026-11-27 00:17:07 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 12:47 UTC · original · reviewed

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.

**@⁠tedin7** on GitHub · 2026-11-25 12:47 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2336#pullrequestreview-6057880028) · **reviewed** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.