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

Merged
lukaslw-lab merged 1 commit from upstream-pr/2336 into main 2026-11-25 13:02:51 +00:00
lukaslw-lab commented 2026-11-25 12:45:39 +00:00 (Migrated from github.com)

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 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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6604787039 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2336). Originally posted by [lukaslw-lab](https://github.com/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 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)
tedin7 commented 2026-11-25 13:00:54 +00:00 (Migrated from github.com)

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 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6057880028 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2336#pullrequestreview-6057880028). Originally posted by [tedin7](https://github.com/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 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.
upstream-sync closed this pull request 2026-11-25 14:04:49 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2328
No description provided.