gpu: keep in-place indirect dispatches out of earlier batches #121

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

@⁠HeroOfOlympus on GitHub · 2026-12-01 22:20 UTC · original
HeroOfOlympus:fix-ordered-indirect-dispatch → main · +2 −1 · 1 files · 1 commits · closed without merging

execute_indirect marks executions whose arguments or count buffer live in place (ordered = in_place) to be clamped alone right before execution (Alone: no batch at all). However, self.batch stayed open and single-record in_place indirect dispatches (kind == DISPATCH, max == 1, count.is_none()) were still folded into an earlier batch clamp recorded before the compute pass that writes their arguments in title memory. With triple-buffered indirect argument buffers (such as tiled RT sun shadow dispatches), batching them ahead of their producer caused a deterministic 3-frame shadow flicker cycle. Clear self.batch when ordered && kind == DISPATCH and exclude ordered && kind == DISPATCH from batched, while keeping DRAW / INDEXED / MESH batching intact.

**@⁠HeroOfOlympus** on GitHub · 2026-12-01 22:20 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/121) `HeroOfOlympus:fix-ordered-indirect-dispatch` → `main` · +2 −1 · 1 files · 1 commits · closed without merging execute_indirect marks executions whose arguments or count buffer live in place (ordered = in_place) to be clamped alone right before execution (Alone: no batch at all). However, self.batch stayed open and single-record in_place indirect dispatches (kind == DISPATCH, max == 1, count.is_none()) were still folded into an earlier batch clamp recorded before the compute pass that writes their arguments in title memory. With triple-buffered indirect argument buffers (such as tiled RT sun shadow dispatches), batching them ahead of their producer caused a deterministic 3-frame shadow flicker cycle. Clear self.batch when ordered && kind == DISPATCH and exclude ordered && kind == DISPATCH from batched, while keeping DRAW / INDEXED / MESH batching intact.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 22:24:53 +00:00
github-bot force-pushed github-bot/gh-121 from f19ebe5a6e to 0c82044670 2026-12-01 22:45:55 +00:00 Compare
github-bot closed this pull request 2026-12-01 22:51:07 +00:00

Pull request closed

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