d3d12: execute fixed-count indirect mesh dispatches on Vulkan #424

Closed
github-bot wants to merge 1 commit from github-bot/gh-424 into main AGit
Owner

@⁠PyZikYG on GitHub · 2026-11-24 04:59 UTC · original
PyZikYG:vulkan-mesh-dispatch → main · +77 −22 · 7 files · 1 commits · closed without merging

Claimed in the coordination issue as D3D-MESH-INDIRECT-EXEC.

Depends on: #377 (overlap at mesh signature creation), #337 (indirect argument range rules)

CreateCommandSignature recognizes DISPATCH_MESH, but the Vulkan backend cannot replay it. This change captures the graphics PSO, root arguments and render targets at recording time and replays the strided GPU arguments with vkCmdDrawMeshTasksIndirectEXT. It covers signatures with one DISPATCH_MESH argument and a fixed command count. GPU count buffers and signatures that change root arguments remain unsupported.

AI-assisted: yes.

**@⁠PyZikYG** on GitHub · 2026-11-24 04:59 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/424) `PyZikYG:vulkan-mesh-dispatch` → `main` · +77 −22 · 7 files · 1 commits · closed without merging Claimed in the coordination issue as [D3D-MESH-INDIRECT-EXEC](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). Depends on: #377 (overlap at mesh signature creation), #337 (indirect argument range rules) CreateCommandSignature recognizes DISPATCH_MESH, but the Vulkan backend cannot replay it. This change captures the graphics PSO, root arguments and render targets at recording time and replays the strided GPU arguments with vkCmdDrawMeshTasksIndirectEXT. It covers signatures with one DISPATCH_MESH argument and a fixed command count. GPU count buffers and signatures that change root arguments remain unsupported. AI-assisted: yes.
Preserve graphics state and replay a strided DISPATCH_MESH argument buffer through VK_EXT_mesh_shader.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:59:25 +00:00
Author
Owner

@⁠Sangonapou on GitHub · 2026-11-24 14:54 UTC · original

Tested 8bc1af85 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32, mesh shaders), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300), native Windows: pass

Runtime built at this head with scripts\build_runtime.ps1 (MSVC 19.51, VS Build Tools 2026, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0). No game files.

ctest -R ^d3d12_mesh$ -V: passed. On this card's native mesh stage: D3D-29: mesh tier 1; mesh and VS PSOs from pipeline state streams (9 refused as invalid, 2 as not implemented); direct and indirect mesh dispatches and a stream VS draw matched all 4096 pixels, and the pipeline statistics line (mesh only: C 8/8 PS 1024) is as expected. d3d12_mesh also passes on main 2d73c242 here.

**@⁠Sangonapou** on GitHub · 2026-11-24 14:54 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/424#issuecomment-7135130732) Tested 8bc1af85 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32, mesh shaders), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300), native Windows: pass Runtime built at this head with `scripts\build_runtime.ps1` (MSVC 19.51, VS Build Tools 2026, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0). No game files. `ctest -R ^d3d12_mesh$ -V`: passed. On this card's native mesh stage: `D3D-29: mesh tier 1; mesh and VS PSOs from pipeline state streams (9 refused as invalid, 2 as not implemented); direct and indirect mesh dispatches and a stream VS draw matched all 4096 pixels`, and the pipeline statistics line (`mesh only: C 8/8 PS 1024`) is as expected. `d3d12_mesh` also passes on `main` `2d73c242` here.
github-bot closed this pull request 2026-11-26 12:20:59 +00:00

Pull request closed

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