D3D12.X: map Scarlett GDK mesh shader subobject slot 24 to PC slot 25 and add console stubs #206

Closed
github-bot wants to merge 1 commit from gh-pr/206/head into gh-pr/206/base
Owner

@⁠Lum7nt on GitHub · 2026-11-23 20:49 UTC · original
Lum7nt:fix/d3d12-mesh-shader-slots → main · +211 −21 · 4 files · 1 commits · closed without merging

Summary

Resolves the ~183s pipeline stream parsing crash where mesh pipelines fail with \E_INVALIDARG, leaving pipeline state pointers null (\

**@⁠Lum7nt** on GitHub · 2026-11-23 20:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/206) `Lum7nt:fix/d3d12-mesh-shader-slots` → `main` · +211 −21 · 4 files · 1 commits · closed without merging ## Summary Resolves the ~183s pipeline stream parsing crash where mesh pipelines fail with \E_INVALIDARG\, leaving pipeline state pointers null (\
Scarlett GDK uses subobject type 23 for Amplification Shaders (AS) and 24 for Mesh Shaders (MS), whereas PC Direct3D 12 uses slot 24 for AS and 25 for MS. Console streams passing an MS container in slot 24 previously failed pipeline stream translation as an unsupported AS, returning E_INVALIDARG.

- Disambiguate slot 24 in real.rs and null.rs by checking shader container stage and NGG hardware stage.
- Direct console slot 24 MS containers to mesh shader translation and fallback.
- In fallback_stream, rewrite console slot 24 to PC slot 25 with dummy mesh bytecode so PC drivers accept the SM 6.5 stream.
- Add unit tests for subobject payload and fallback stream rewriting.
- Add console stubs for command list #75, #126, #131, #132, #142, allocator #9, and queue #31 extension.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:15:06 +00:00
github-bot closed this pull request 2026-11-26 04:15:06 +00:00
Author
Owner

@⁠Lum7nt on GitHub · 2026-11-23 21:07 UTC · original

Closing in favor of a clean, dedicated PR scoped strictly to the missing console stubs (ID3D12CommandAllocator::#9, ID3D12GraphicsCommandList::#75, #126, #131, #132, #142, and ID3D12CommandQueue::#31) rebased on latest main, since commit 38b05b7 already addressed XG #10 and the slot 24 MS-in-AS behavior.

**@⁠Lum7nt** on GitHub · 2026-11-23 21:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/206#issuecomment-7114042954) Closing in favor of a clean, dedicated PR scoped strictly to the missing console stubs (ID3D12CommandAllocator::#9, ID3D12GraphicsCommandList::#75, #126, #131, #132, #142, and ID3D12CommandQueue::#31) rebased on latest main, since commit 38b05b7 already addressed XG #10 and the slot 24 MS-in-AS behavior.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.