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

Closed
opened 2026-11-25 12:45:08 +00:00 by lukaslw-lab · 0 comments
lukaslw-lab commented 2026-11-25 12:45:08 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-25T12:45:08Z.


Commit or build

b1a644ae (upstream main), dev preset

Reproduction

ctest --preset dev --no-tests=error -R '^startup_compute_translate_e2e' -V

Expected behavior

All four tests pass (startup_compute_translate_e2e_{warp,hardware} and the _wrong_group_ controls), as on the
windows-2025 CI image.

Observed behavior

All four fail before any translation runs. The stand-in consumer creates the root signature from
X2W_TEST_COMPUTE_ROOT, which the test writes from startup_gfx2hlsl_compute_check.root_blob() (version 1.1: two
root constants at b0 and a descriptor table with no ranges). The device rejects it:

x2w-d3d12 Device::CreateRootSignature size=0x70 -> 0x80070057
AssertionError: consumer exit 10

In some runs the consumer exits with 0xC0000374 (STATUS_HEAP_CORRUPTION) instead.

The cause is in the Windows 10 runtime, not in the stand-in, which forwards the blob unchanged
(d3d12_xs_device.cpp, device slot 16). A plain D3D12 device without the stand-in (ctypes, one process per
variant) gives:

Version 1.1 root signature RTX 3080 Ti WARP 10.0.19041
two root constants only S_OK (5/5) S_OK (5/5)
+ a table with one SRV range S_OK (5/5) S_OK (5/5)
+ a table with no ranges (serialized by D3D12SerializeVersionedRootSignature, valid hash) process ends with 0xC0000374 on the first call not reached
the test's own blob (zero hash) process ends with 0xC0000374 not reached

The serializer accepts the empty table; CreateRootSignature corrupts the heap. The test blob differs from the
serializer's output only in the hash, so the hand-made hash is not the cause.

Environment

Windows 10 22H2 build 19045, in-box D3D12 runtime and in-box WARP 10.0.19041.7811 (no Agility SDK),
NVIDIA GeForce RTX 3080 Ti driver 32.0.16.1047, debug layer off (with X2W_D3D12_DEBUG=1 the consumer ends with
0xC0000374 before the log line). Visual Studio 2026 18.x (MSVC 19.52), Python 3.13.7.

AI-assisted (Claude Code); the commands and results above were run on the author's PC.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6604777591 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2335). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-25T12:45:08Z. --- ### Commit or build `b1a644ae` (upstream main), `dev` preset ### Reproduction ```shell ctest --preset dev --no-tests=error -R '^startup_compute_translate_e2e' -V ``` ### Expected behavior All four tests pass (`startup_compute_translate_e2e_{warp,hardware}` and the `_wrong_group_` controls), as on the `windows-2025` CI image. ### Observed behavior All four fail before any translation runs. The stand-in consumer creates the root signature from `X2W_TEST_COMPUTE_ROOT`, which the test writes from `startup_gfx2hlsl_compute_check.root_blob()` (version 1.1: two root constants at b0 and a descriptor table with **no ranges**). The device rejects it: ```text x2w-d3d12 Device::CreateRootSignature size=0x70 -> 0x80070057 AssertionError: consumer exit 10 ``` In some runs the consumer exits with `0xC0000374` (STATUS_HEAP_CORRUPTION) instead. The cause is in the Windows 10 runtime, not in the stand-in, which forwards the blob unchanged (`d3d12_xs_device.cpp`, device slot 16). A plain D3D12 device without the stand-in (ctypes, one process per variant) gives: | Version 1.1 root signature | RTX 3080 Ti | WARP 10.0.19041 | |---|---|---| | two root constants only | S_OK (5/5) | S_OK (5/5) | | + a table with one SRV range | S_OK (5/5) | S_OK (5/5) | | + a table with no ranges (serialized by `D3D12SerializeVersionedRootSignature`, valid hash) | process ends with 0xC0000374 on the first call | not reached | | the test's own blob (zero hash) | process ends with 0xC0000374 | not reached | The serializer accepts the empty table; `CreateRootSignature` corrupts the heap. The test blob differs from the serializer's output only in the hash, so the hand-made hash is not the cause. ### Environment Windows 10 22H2 build 19045, in-box D3D12 runtime and in-box WARP 10.0.19041.7811 (no Agility SDK), NVIDIA GeForce RTX 3080 Ti driver 32.0.16.1047, debug layer off (with `X2W_D3D12_DEBUG=1` the consumer ends with 0xC0000374 before the log line). Visual Studio 2026 18.x (MSVC 19.52), Python 3.13.7. AI-assisted (Claude Code); the commands and results above were run on the author's PC.
Sign in to join this conversation.
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#2327
No description provided.