[PR #1077] [CLOSED] d3d12: defer fixed-count indirect compute dispatches in bundles #1113

Closed
opened 2026-11-26 20:20:08 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1077
Author: @PyZikYG
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: bundle-indirect-dispatch


📝 Commits (1)

  • 2c6df2a d3d12: defer fixed-count indirect compute dispatches in bundles

📊 Changes

5 files changed (+64 additions, -37 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+1 -1)
📝 runtime/shims/d3d12_com.cpp (+23 -21)
📝 runtime/shims/d3d12_com.h (+1 -2)
📝 runtime/shims/d3d12_vulkan_device.cpp (+1 -1)
📝 runtime/test/d3d12_indirect_dispatch_count_test.cpp (+38 -12)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1077 **Author:** [@PyZikYG](https://github.com/PyZikYG) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bundle-indirect-dispatch` --- ### 📝 Commits (1) - [`2c6df2a`](https://github.com/ubiquitarianism/leonida/commit/2c6df2a3f10e4a63810d66a66a046b625fb65729) d3d12: defer fixed-count indirect compute dispatches in bundles ### 📊 Changes **5 files changed** (+64 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+1 -1) 📝 `runtime/shims/d3d12_com.cpp` (+23 -21) 📝 `runtime/shims/d3d12_com.h` (+1 -2) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+1 -1) 📝 `runtime/test/d3d12_indirect_dispatch_count_test.cpp` (+38 -12) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:08 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1113
No description provided.