d3d12: defer fixed-count indirect compute dispatches in bundles #1077

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

@⁠PyZikYG on GitHub · 2026-11-24 18:01 UTC · original
PyZikYG:bundle-indirect-dispatch → main · +64 −37 · 5 files · 1 commits · closed without merging

Claimed as D3D-BUNDLE-INDIRECT-DISPATCH.

ExecuteIndirect(DISPATCH) used to invalidate every bundle that contained it. For a signature consisting of a single DISPATCH argument and a fixed command count, defer the command until ExecuteBundle. Record the compute pipeline and root arguments in effect on the parent for each use of the bundle. Count buffers and state-changing signatures remain rejected in bundles.

Related: #377, #424, #429 and #499 touch the indirect command path. This change can land independently of the mesh and graphics features.

AI-assisted: yes.

**@⁠PyZikYG** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1077) `PyZikYG:bundle-indirect-dispatch` → `main` · +64 −37 · 5 files · 1 commits · closed without merging Claimed as [D3D-BUNDLE-INDIRECT-DISPATCH](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). ExecuteIndirect(DISPATCH) used to invalidate every bundle that contained it. For a signature consisting of a single DISPATCH argument and a fixed command count, defer the command until ExecuteBundle. Record the compute pipeline and root arguments in effect on the parent for each use of the bundle. Count buffers and state-changing signatures remain rejected in bundles. Related: #377, #424, #429 and #499 touch the indirect command path. This change can land independently of the mesh and graphics features. AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:36:54 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 18:50 UTC · original · approved these changes

Reviewed and verified. Enables deferral of single-argument, fixed-count indirect compute dispatches inside D3D12 bundles until ExecuteBundle, recording active pipeline and root arguments without invalidating the bundle. Thoroughly validated against WARP in d3d12_indirect_compute_test.cpp. 100% clean-room.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 18:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1077#pullrequestreview-6045345994) · **approved these changes** Reviewed and verified. Enables deferral of single-argument, fixed-count indirect compute dispatches inside D3D12 bundles until ExecuteBundle, recording active pipeline and root arguments without invalidating the bundle. Thoroughly validated against WARP in d3d12_indirect_compute_test.cpp. 100% clean-room.
github-bot closed this pull request 2026-11-26 12:21:01 +00:00

Pull request closed

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