GPU: indirect mesh dispatches run as an indirect execution of one record #1749

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

@⁠bemalinho on GitHub · 2026-11-24 21:59 UTC · original
bemalinho:gpu-indirect-mesh-dispatch → main · +28 −5 · 1 files · 1 commits · open

DispatchMeshX with its group counts in GPU memory was dropped; it now runs through the host's indirect execution as one mesh dispatch record (x, y, z), like the title's ExecuteIndirect mesh signature. Not yet checked against the title (marked as a shortcut).

**@⁠bemalinho** on GitHub · 2026-11-24 21:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/1749) `bemalinho:gpu-indirect-mesh-dispatch` → `main` · +28 −5 · 1 files · 1 commits · open DispatchMeshX with its group counts in GPU memory was dropped; it now runs through the host's indirect execution as one mesh dispatch record (x, y, z), like the title's ExecuteIndirect mesh signature. Not yet checked against the title (marked as a shortcut).
DispatchMeshX with its group counts in GPU memory was dropped; it now
runs through the host's indirect execution as one mesh dispatch record
(x, y, z), like the title's ExecuteIndirect mesh signature. Not yet
checked against the title (marked as a shortcut).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:43:34 +00:00
Author
Owner

@⁠acetonahard-code on GitHub · 2026-11-24 22:36 UTC · original

Heads-up: this is the third open PR for this fix. #24 (opened yesterday) and #1546 (earlier today) also run indirect DispatchMeshX through execute_indirect instead of dropping it. All three conflict in list.rs, so only one can land as-is.

Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current main (70564ae):

cargo test -p victory-gpu passed failed ignored
main 76 2 1
main + this PR 76 2 1
main, --all-features 79 2 -
main + this PR, --all-features 79 2 -
  • No GPU test skipped for lack of a device.
  • cargo clippy --all-targets -- -D warnings, with and without --all-features: clean.
  • Two victory-gpu tests fail on current main on this NVIDIA card: dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views. That's the 1,000,000-view heap cap, see #1744. They fail the same way with this PR, and no other test does.

I didn't test with game data.


Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.

**@⁠acetonahard-code** on GitHub · 2026-11-24 22:36 UTC · [original](https://github.com/Marvisak/VIctory/pull/1749#issuecomment-7146439609) Heads-up: this is the third open PR for this fix. #24 (opened yesterday) and #1546 (earlier today) also run indirect `DispatchMeshX` through `execute_indirect` instead of dropping it. All three conflict in `list.rs`, so only one can land as-is. Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current `main` (70564ae): | `cargo test -p victory-gpu` | passed | failed | ignored | |---|---|---|---| | `main` | 76 | 2 | 1 | | `main` + this PR | 76 | 2 | 1 | | `main`, `--all-features` | 79 | 2 | - | | `main` + this PR, `--all-features` | 79 | 2 | - | - No GPU test skipped for lack of a device. - `cargo clippy --all-targets -- -D warnings`, with and without `--all-features`: clean. - Two `victory-gpu` tests fail on current `main` on this NVIDIA card: `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views`. That's the 1,000,000-view heap cap, see #1744. They fail the same way with this PR, and no other test does. I didn't test with game data. --- <sub>Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.</sub>
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:37 UTC · original

Automated triage for the maintainers.

Needs work. This routes an indirect DispatchMeshX through State::execute_indirect as one 12-byte mesh record, and the call matches main's signature. Two things are missing: evidence (the title's code, or a public reference) that the record is three u32 group counts and that x is unused then (the comment marks this as a shortcut), and a test. This is also the third open PR for the same change: #1546 (rebased on current main, with a test) and #24 do the same in list.rs, and all three conflict. Please agree with those authors on one PR, and add the evidence and a test there. CI has not run (it needs approval).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/1749#issuecomment-7152082420) <!-- victory-triage v1 head=27514c6a864cde68723d3db26d25890256d8edb1 verdict=needs-work at=2026-11-25T03:44:00Z --> Automated triage for the maintainers. **Needs work.** This routes an indirect `DispatchMeshX` through `State::execute_indirect` as one 12-byte mesh record, and the call matches `main`'s signature. Two things are missing: evidence (the title's code, or a public reference) that the record is three u32 group counts and that `x` is unused then (the comment marks this as a shortcut), and a test. This is also the third open PR for the same change: #1546 (rebased on current `main`, with a test) and #24 do the same in `list.rs`, and all three conflict. Please agree with those authors on one PR, and add the evidence and a test there. CI has not run (it needs approval). --- _Generated by [Claude Code](https://claude.ai/code)_
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/1749/head:github-bot/gh-1749'
git switch 'github-bot/gh-1749'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1749'
git switch 'github-bot/gh-1749'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1749'
git switch 'github-bot/gh-1749'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1749'
git switch 'main'
git merge --squash 'github-bot/gh-1749'
git switch 'main'
git merge --ff-only 'github-bot/gh-1749'
git switch 'main'
git merge 'github-bot/gh-1749'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
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
github/Marvisak--VIctory!1749
No description provided.