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

Closed
leonida/mandy
PyZikYG wants to merge 0 commits from bundle-indirect-dispatch into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

PyZikYG commented 2026-11-24 18:01:56 +00:00

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.

Claimed as [D3D-BUNDLE-INDIRECT-DISPATCH](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139963909). 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.
abnalstlll-byte approved these changes 2026-11-24 18:50:22 +00:00
abnalstlll-byte left a comment

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.

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.
Sign in to join this conversation.
No description provided.