GPU: opt-in ordered single-group indirect batches #1412

Open
github-bot wants to merge 3 commits from github-bot/gh-1412 into main AGit
Owner

@⁠spk-c on GitHub · 2026-11-26 23:54 UTC · original
spk-c:submit/ordered-indirect-batches → main · +1551 −1426 · 15 files · 3 commits · open

AI-assisted selective adaptation of Kelvaroq 0051 via spk-c/victory-fork#42; source attribution in docs.

VICTORY_INDIRECT_BATCH=1 selects the existing counted-table clamp window in single 64-lane-group mode for homogeneous read-only Draw/DrawIndexed records, excluding count buffers, mesh and compute dispatches. Each execution gets its own entry, including repeats. Explicit ordering boundaries close the batch; incompatible cases fall back. The opt-in port additionally checks the actual source buffer extent. Default behavior is unchanged.

Unlike #1171's run gathering and #1313's prelude gather accounting fix, this is a narrow ordered counted-window mode, not a replacement for either. CPU admission/capacity and WARP repeated-record budget tests included; original fork CI passed. Fresh upstream CI and hardware retest pending. No gameplay speedup claim.

Baseline dependency: includes the existing maintainer patch #1357 (original commit 450ed9bd) to repair the upstream 512 KiB asset-policy failure. No limit or security check changed. This shared dependency will disappear from the diff when merged normally.

**@⁠spk-c** on GitHub · 2026-11-26 23:54 UTC · [original](https://github.com/fxceless/victory-fork/pull/1412) `spk-c:submit/ordered-indirect-batches` → `main` · +1551 −1426 · 15 files · 3 commits · open AI-assisted selective adaptation of Kelvaroq 0051 via spk-c/victory-fork#42; source attribution in docs. VICTORY_INDIRECT_BATCH=1 selects the existing counted-table clamp window in single 64-lane-group mode for homogeneous read-only Draw/DrawIndexed records, excluding count buffers, mesh and compute dispatches. Each execution gets its own entry, including repeats. Explicit ordering boundaries close the batch; incompatible cases fall back. The opt-in port additionally checks the actual source buffer extent. Default behavior is unchanged. Unlike #1171's run gathering and #1313's prelude gather accounting fix, this is a narrow ordered counted-window mode, not a replacement for either. CPU admission/capacity and WARP repeated-record budget tests included; original fork CI passed. Fresh upstream CI and hardware retest pending. No gameplay speedup claim. Baseline dependency: includes the existing maintainer patch #1357 (original commit 450ed9bd) to repair the upstream 512 KiB asset-policy failure. No limit or security check changed. This shared dependency will disappear from the diff when merged normally.
The check job fails on main: crates/victory-gpu/src/host.rs (528,954 bytes)
and crates/victory-shader/src/emit/lower.rs (535,588 bytes) are over the
asset policy's 512 KiB limit (#1342).

Only #[cfg(test)] modules move, verbatim apart from losing one level of
indentation; module names and paths are unchanged, no non-test code changes.

- host.rs: its eight test modules (tests, relay_tests, grouped_tests,
  late_tests, trail, spare, batch, queue2_tests) move to host/<name>.rs,
  the layout profile.rs and profile/tests.rs already use. 492,495 bytes.
- lower.rs: mod tests moves to emit/lower_tests.rs, declared with
  #[path = "lower_tests.rs"] as in #1322. 512,559 bytes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015kFDn6faAxnJwPKPwiCnj1
AI-assisted adaptation of Kelvaroq 0051 via fork #42; includes upstream #1357 as separate baseline dependency.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:03:49 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
  • crates/victory-shader/src/emit/lower_tests.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1412/head:github-bot/gh-1412'
git switch 'github-bot/gh-1412'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1412'
git switch 'github-bot/gh-1412'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1412'
git switch 'github-bot/gh-1412'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1412'
git switch 'main'
git merge --squash 'github-bot/gh-1412'
git switch 'main'
git merge --ff-only 'github-bot/gh-1412'
git switch 'main'
git merge 'github-bot/gh-1412'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.