GPU: charge each gathered indirect execution #1313

Open
github-bot wants to merge 1 commit from github-bot/gh-1313 into main AGit
Owner

@⁠Filip722 on GitHub · 2026-11-26 13:50 UTC · original
Filip722:gpu-gather-budget-per-execution → main · +35 −11 · 1 files · 1 commits · open

Two gathered indirect draws can read the same argument offset. The gather set reused the same slot for both draws, so the clamp saw one record and charged the per-list budget once.

Allocate one offset-table slot per execution. Keep the existing slot limit and the existing individual-clamp fallback when a set fills. A linear slot counter also removes the per-set hash map.

Validation

  • The new asset-free fixture failed on a20809de because the second execution reused slot 0. The fix gives it slot 1, preserves both offsets in the table and returns no slot after the table fills.
  • Three focused tests passed in the Windows MSVC release diagnostics build under GE-Proton11-14 and vkd3d-proton 3.2.0. D3D12 selected an RTX 5060 Laptop GPU with NVIDIA 615.78.08 for the new fixture.
  • Asset policy passed for 220 files. Windows-target Clippy passed for all victory-gpu targets and features with warnings denied. The replay comparing PR #1171's batching is a separate experiment.

Assisted by Codex (GPT-6.2-Sol High).

**@⁠Filip722** on GitHub · 2026-11-26 13:50 UTC · [original](https://github.com/fxceless/victory-fork/pull/1313) `Filip722:gpu-gather-budget-per-execution` → `main` · +35 −11 · 1 files · 1 commits · open Two gathered indirect draws can read the same argument offset. The gather set reused the same slot for both draws, so the clamp saw one record and charged the per-list budget once. Allocate one offset-table slot per execution. Keep the existing slot limit and the existing individual-clamp fallback when a set fills. A linear slot counter also removes the per-set hash map. ## Validation - The new asset-free fixture failed on `a20809de` because the second execution reused slot 0. The fix gives it slot 1, preserves both offsets in the table and returns no slot after the table fills. - Three focused tests passed in the Windows MSVC release diagnostics build under GE-Proton11-14 and vkd3d-proton 3.2.0. D3D12 selected an RTX 5060 Laptop GPU with NVIDIA 615.78.08 for the new fixture. - Asset policy passed for 220 files. Windows-target Clippy passed for all victory-gpu targets and features with warnings denied. The replay comparing PR #1171's batching is a separate experiment. Assisted by Codex (GPT-6.2-Sol High).
Assisted-by: Codex (GPT-6.2-Sol High)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:54:16 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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