DispatchMeshX with indirect arguments is silently dropped #756

Closed
opened 2026-11-24 09:36:59 +00:00 by Conrage · 3 comments
Conrage commented 2026-11-24 09:36:59 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by Conrage on 2026-11-24T09:36:59Z.


crates/victory-gpu/src/list.rs:1082-1086: when indirect != 0, dispatch_mesh_x logs "indirect mesh dispatches dropped" once and returns. The world runs on mesh pipelines, so any GPU-driven mesh dispatch draws nothing.

Suggestion: route it through State::execute_indirect with kind MESH (10). That path already supports mesh dispatches, including the argument clamp (draw.rs:961-1055, indirect.rs).

Testers: does "indirect mesh dispatches dropped" appear in the log after entering the world?

AI use: found and written with Claude from reading the code at 8e79c80; not run on hardware.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6578848377 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/756). Originally posted by [Conrage](https://github.com/Conrage) on 2026-11-24T09:36:59Z. --- `crates/victory-gpu/src/list.rs:1082-1086`: when `indirect != 0`, `dispatch_mesh_x` logs "indirect mesh dispatches dropped" once and returns. The world runs on mesh pipelines, so any GPU-driven mesh dispatch draws nothing. **Suggestion:** route it through `State::execute_indirect` with kind `MESH` (10). That path already supports mesh dispatches, including the argument clamp (`draw.rs:961-1055`, `indirect.rs`). Testers: does "indirect mesh dispatches dropped" appear in the log after entering the world? _AI use: found and written with Claude from reading the code at `8e79c80`; not run on hardware._
Altorru commented 2026-11-24 10:03:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Altorru on 2026-11-24T09:51:36Z.


This is already implemented by #24 (DispatchMeshX indirect -> State::execute_indirect, mesh kind 10 / stride 12, with unit tests and WARP/hardware feedback). Worth tracking there rather than opening a second branch.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7127987200 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/756#issuecomment-7127987200). Originally posted by [Altorru](https://github.com/Altorru) on 2026-11-24T09:51:36Z. --- This is already implemented by #24 (`DispatchMeshX` indirect -> `State::execute_indirect`, mesh kind 10 / stride 12, with unit tests and WARP/hardware feedback). Worth tracking there rather than opening a second branch.
Conrage commented 2026-11-24 10:03:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Conrage on 2026-11-24T09:53:01Z.


Thanks, agreed: open PR #24 already routes indirect DispatchMeshX through execute_indirect. Closing as a duplicate.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128018872 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/756#issuecomment-7128018872). Originally posted by [Conrage](https://github.com/Conrage) on 2026-11-24T09:53:01Z. --- Thanks, agreed: open PR #24 already routes indirect `DispatchMeshX` through `execute_indirect`. Closing as a duplicate.
RID-Games commented 2026-11-24 11:04:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by RID-Games on 2026-11-24T10:07:34Z.


A fix already exists: fix/gpu-indirect-mesh-dispatch ([f7a0949](https://github.com/LAKSHYA-cmd-tech/VIctory/commit/f7a0949)) in the LAKSHYA-cmd-tech fork routes dispatch_mesh_x through State::execute_indirect with kind MESH (10), stride 12 — exactly the approach suggested here — and adds a routing test. I cannot compile victory-gpu on Linux to verify; Windows testers can check whether "indirect mesh dispatches dropped" disappears from the log after entering the world. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128349323 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/756#issuecomment-7128349323). Originally posted by [RID-Games](https://github.com/RID-Games) on 2026-11-24T10:07:34Z. --- A fix already exists: [`fix/gpu-indirect-mesh-dispatch`](https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/gpu-indirect-mesh-dispatch) (`[f7a0949](https://github.com/LAKSHYA-cmd-tech/VIctory/commit/f7a0949)`) in the LAKSHYA-cmd-tech fork routes [`dispatch_mesh_x`](https://github.com/Marvisak/VIctory/blob/8e79c80/crates/victory-gpu/src/list.rs#L1084) through `State::execute_indirect` with kind MESH (10), stride 12 — exactly the approach suggested here — and adds a routing test. I cannot compile victory-gpu on Linux to verify; Windows testers can check whether "indirect mesh dispatches dropped" disappears from the log after entering the world. AI-assisted.
Sign in to join this conversation.
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#756
No description provided.