D3D12.X: the console's DispatchMesh indirect argument (107) is a PC DispatchMesh #1877
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1887"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Diskuss on 2026-11-24T22:36:48Z.
CreateCommandSignaturepassed 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 itsDispatchIndirectMeshCommandSignaturewith this single argument during RHI init and stops there withE_INVALIDARG. Type 107 now becomesD3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH, the same way DispatchX (105) already becomesDISPATCH. 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_typemaps 105 → Dispatch and 107 → DispatchMesh (other types unchanged);create_command_signature_xuses it and logs a refused signature; unit testconsole_indirect_argument_types_become_pc_ones.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on5fe5b41: the 18 non-lib test binaries pass (49 passed, 0 failed, 20 ignored). Thexcllib binary aborts withSTATUS_ACCESS_VIOLATIONingpu::dxil::msaa_tests::gpu_direct_msaa_image_loads, andfuzz_validate_and_gpu_1/_3fail; both happen identically on main689f2dbon 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), includingconsole_indirect_argument_types_become_pc_ones. SKIPPED: 6 f16/f32lower_dxilGPU program forms (refused, #1426) andpso_measurement_compiles_an_exact_synthetic_record(Developer Mode off). No device removal.689f2db:LogD3D12RHI: Error: Device->CreateCommandSignature(... DispatchIndirectMeshCommandSignature ...) failed with error E_INVALIDARGduring RHI init, then the title's fatal error path ends in an access violation.E_INVALIDARG), RHI init continues further; the process then hits a null-pointer read in game code, preceded byFCompression::UncompressMemory ... LZ4errors. That is a separate problem this PR does not address. No window or frames yet.Regression run
main:
PR:
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 descriptioncheck fails on exactly these points, none of them a format problem: neither block has a numericframes 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
ExecuteIndirectwith this signature) is not exercised; the Matrix run dies before any frame.msaa_tests/fuzz_validate_and_gpulib tests (skipped, see above).AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Melow-code on 2026-11-24T23:10:51Z.
Review: COMMENTED
Mapping the console's DispatchMesh indirect argument (107) to the PC equivalent is correct — the console uses a different command ID for the same operation.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T02:07:20Z.
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!