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

Open
bemalinho wants to merge 1 commit from upstream-pr/1749 into main
bemalinho commented 2026-11-24 21:59:02 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by bemalinho on 2026-11-24T21:59:02Z.


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).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6592241351 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1749). Originally posted by [bemalinho](https://github.com/bemalinho) on 2026-11-24T21:59:02Z. --- 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).
acetonahard-code commented 2026-11-24 23:05:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T22:36:49Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7146439609 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1749#issuecomment-7146439609). Originally posted by [acetonahard-code](https://github.com/acetonahard-code) on 2026-11-24T22:36:49Z. --- 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>
Marvisak commented 2026-11-25 04:07:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:37:04Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152082420 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1749#issuecomment-7152082420). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:37:04Z. --- <!-- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1749:upstream-pr/1749'
git switch 'upstream-pr/1749'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1749'
git switch 'upstream-pr/1749'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1749'
git switch 'upstream-pr/1749'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1749'
git switch 'main'
git merge --squash 'upstream-pr/1749'
git switch 'main'
git merge --ff-only 'upstream-pr/1749'
git switch 'main'
git merge 'upstream-pr/1749'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1748
No description provided.