Skip to content

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

Closed
PyZikYG wants to merge 1 commit into
ProjectLeonida:mainfrom
PyZikYG:bundle-indirect-dispatch
Closed

PyZikYG wants to merge 1 commit into
ProjectLeonida:mainfrom
PyZikYG:bundle-indirect-dispatch

Conversation

@PyZikYG

@PyZikYG PyZikYG commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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
PyZikYG marked this pull request as ready for review November 24, 2026 18:02

@abnalstlll-byte abnalstlll-byte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
@PyZikYG
PyZikYG force-pushed the bundle-indirect-dispatch branch from 2a456d0 to 2c6df2a Compare November 25, 2026 09:21
@PyZikYG PyZikYG closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants