D3D12.X: the console's DispatchMesh indirect argument (107) is a PC DispatchMesh #1887

Open
github-bot wants to merge 1 commit from github-bot/gh-1887 into main AGit
Owner

@⁠Diskuss on GitHub · 2026-11-24 22:36 UTC · original
Diskuss:d3d12x/matrix-command-signature → main · +34 −5 · 1 files · 1 commits · draft

CreateCommandSignature passed the console's indirect argument type 107 (DispatchMesh) straight to the PC device, which refuses it (debug layer message 743, "Unexpected parameter type"). A UE5 title (Xbox Series GDK build) creates its DispatchIndirectMeshCommandSignature with this single argument during RHI init and stops there with E_INVALIDARG. Type 107 now becomes D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH, the same way DispatchX (105) already becomes DISPATCH. A signature the PC still refuses is logged with its stride, node mask and arguments.

What is in it

  • crates/xcl/src/hle/d3d12x/device_x.rs: pc_argument_type maps 105 → Dispatch and 107 → DispatchMesh (other types unchanged); create_command_signature_x uses it and logs a refused signature; unit test console_indirect_argument_types_become_pc_ones.

Tested

  • AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; Windows 11 build 26300.9974; Rust 1.100.0 msvc; DXC 1.9.2602.17; debug build for tests, release for the regression run.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on 5fe5b41: the 18 non-lib test binaries pass (49 passed, 0 failed, 20 ignored). The xcl lib binary aborts with STATUS_ACCESS_VIOLATION in gpu::dxil::msaa_tests::gpu_direct_msaa_image_loads, and fuzz_validate_and_gpu_1 / _3 fail; both happen identically on main 689f2db on this GPU (pre-existing on RDNA4, unrelated to this change).
  • cargo test -p xcl --lib -- --skip gpu_direct_msaa_image_loads --skip fuzz_validate_and_gpu --test-threads=4: 922 passed, 0 failed, 25 ignored (5 filtered out), including console_indirect_argument_types_become_pc_ones. SKIPPED: 6 f16/f32 lower_dxil GPU program forms (refused, #1426) and pso_measurement_compiles_an_exact_synthetic_record (Developer Mode off). No device removal.
  • The Matrix Awakens (UE5, Xbox Series build 1.20.1831.3754):
    • main 689f2db: LogD3D12RHI: Error: Device->CreateCommandSignature(... DispatchIndirectMeshCommandSignature ...) failed with error E_INVALIDARG during RHI init, then the title's fatal error path ends in an access violation.
    • this PR: the signature is created (no E_INVALIDARG), RHI init continues further; the process then hits a null-pointer read in game code, preceded by FCompression::UncompressMemory ... LZ4 errors. That is a separate problem this PR does not address. No window or frames yet.

Regression run

main:

xcl-smoke v1
commit: 689f2db477c3c062cf162649781640ef8a977c18
gpu: AMD Radeon RX 9070 XT
title: The Matrix Awakens (UE5, Xbox Series build)
seconds: 60
exit: 0xc0000005
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 0
device removals: 0
crashes: 2
peak commit: 868 MB

PR:

xcl-smoke v1
commit: 5fe5b41a09db5953ba6d51bc54a70c70a0643e50
gpu: AMD Radeon RX 9070 XT
title: The Matrix Awakens (UE5, Xbox Series build)
seconds: 60
exit: 0xc0000005
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 0
device removals: 0
crashes: 2
peak commit: 1491 MB

Both runs crash, at different points: main at the refused command signature, the PR later (the LZ4 / null-read issue above). The higher peak commit comes from the PR getting further through init before that crash, not from this change allocating anything. I have no title that reaches frames and uses this code path, so this is a draft until the regression check can be met.

The PR description check fails on exactly these points, none of them a format problem: neither block has a numeric frames shown, the PR's block shows 2 crashes, and its peak commit is 1491 MB against main's 868 MB. They clear only with runs that reach frames without crashing.

Not tested

  • A title that renders with a DispatchMesh command signature: the indirect mesh dispatch itself (ExecuteIndirect with this signature) is not exercised; the Matrix run dies before any frame.
  • NVIDIA / Intel GPUs, wave32-only GPUs.
  • The msaa_tests / fuzz_validate_and_gpu lib tests (skipped, see above).

AI use

  • Claude Code (Claude Opus 5.5): code, tests and description; reviewed by Diskuss.

🤖 Generated with Claude Code

**@⁠Diskuss** on GitHub · 2026-11-24 22:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/1887) `Diskuss:d3d12x/matrix-command-signature` → `main` · +34 −5 · 1 files · 1 commits · draft `CreateCommandSignature` passed the console's indirect argument type 107 (DispatchMesh) straight to the PC device, which refuses it (debug layer message 743, "Unexpected parameter type"). A UE5 title (Xbox Series GDK build) creates its `DispatchIndirectMeshCommandSignature` with this single argument during RHI init and stops there with `E_INVALIDARG`. Type 107 now becomes `D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH`, the same way DispatchX (105) already becomes `DISPATCH`. A signature the PC still refuses is logged with its stride, node mask and arguments. **What is in it** - `crates/xcl/src/hle/d3d12x/device_x.rs`: `pc_argument_type` maps 105 → Dispatch and 107 → DispatchMesh (other types unchanged); `create_command_signature_x` uses it and logs a refused signature; unit test `console_indirect_argument_types_become_pc_ones`. **Tested** - AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; Windows 11 build 26300.9974; Rust 1.100.0 msvc; DXC 1.9.2602.17; debug build for tests, release for the regression run. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on 5fe5b41: the 18 non-lib test binaries pass (49 passed, 0 failed, 20 ignored). The `xcl` lib binary aborts with `STATUS_ACCESS_VIOLATION` in `gpu::dxil::msaa_tests::gpu_direct_msaa_image_loads`, and `fuzz_validate_and_gpu_1` / `_3` fail; both happen identically on main 689f2db on this GPU (pre-existing on RDNA4, unrelated to this change). - `cargo test -p xcl --lib -- --skip gpu_direct_msaa_image_loads --skip fuzz_validate_and_gpu --test-threads=4`: 922 passed, 0 failed, 25 ignored (5 filtered out), including `console_indirect_argument_types_become_pc_ones`. SKIPPED: 6 f16/f32 `lower_dxil` GPU program forms (refused, #1426) and `pso_measurement_compiles_an_exact_synthetic_record` (Developer Mode off). No device removal. - The Matrix Awakens (UE5, Xbox Series build 1.20.1831.3754): - main 689f2db: `LogD3D12RHI: Error: Device->CreateCommandSignature(... DispatchIndirectMeshCommandSignature ...) failed with error E_INVALIDARG` during RHI init, then the title's fatal error path ends in an access violation. - this PR: the signature is created (no `E_INVALIDARG`), RHI init continues further; the process then hits a null-pointer read in game code, preceded by `FCompression::UncompressMemory ... LZ4` errors. That is a separate problem this PR does not address. No window or frames yet. **Regression run** main: ``` xcl-smoke v1 commit: 689f2db477c3c062cf162649781640ef8a977c18 gpu: AMD Radeon RX 9070 XT title: The Matrix Awakens (UE5, Xbox Series build) seconds: 60 exit: 0xc0000005 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 0 device removals: 0 crashes: 2 peak commit: 868 MB ``` PR: ``` xcl-smoke v1 commit: 5fe5b41a09db5953ba6d51bc54a70c70a0643e50 gpu: AMD Radeon RX 9070 XT title: The Matrix Awakens (UE5, Xbox Series build) seconds: 60 exit: 0xc0000005 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 0 device removals: 0 crashes: 2 peak commit: 1491 MB ``` Both runs crash, at different points: main at the refused command signature, the PR later (the LZ4 / null-read issue above). The higher peak commit comes from the PR getting further through init before that crash, not from this change allocating anything. I have no title that reaches frames and uses this code path, so this is a draft until the regression check can be met. The `PR description` check fails on exactly these points, none of them a format problem: neither block has a numeric `frames shown`, the PR's block shows 2 crashes, and its peak commit is 1491 MB against main's 868 MB. They clear only with runs that reach frames without crashing. **Not tested** - A title that renders with a DispatchMesh command signature: the indirect mesh dispatch itself (`ExecuteIndirect` with this signature) is not exercised; the Matrix run dies before any frame. - NVIDIA / Intel GPUs, wave32-only GPUs. - The `msaa_tests` / `fuzz_validate_and_gpu` lib tests (skipped, see above). **AI use** - Claude Code (Claude Opus 5.5): code, tests and description; reviewed by Diskuss. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CreateCommandSignature passed the console's argument type 107 to the PC,
which refuses it (debug layer 743, "Unexpected parameter type"). A UE5
title (Xbox Series build) creates its DispatchIndirectMeshCommandSignature
with this one argument and stops at E_INVALIDARG during RHI init. It now
becomes D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH, as DispatchX (105)
becomes Dispatch. A refused signature is logged with its arguments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:08:37 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 02:07 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 02:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/1887#issuecomment-7150342122) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1887/head:github-bot/gh-1887'
git switch 'github-bot/gh-1887'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1887'
git switch 'github-bot/gh-1887'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1887'
git switch 'github-bot/gh-1887'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1887'
git switch 'main'
git merge --squash 'github-bot/gh-1887'
git switch 'main'
git merge --ff-only 'github-bot/gh-1887'
git switch 'main'
git merge 'github-bot/gh-1887'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.