DispatchMeshX with indirect arguments is silently dropped #756

Closed
opened 2026-11-26 04:13:55 +00:00 by github-bot · 3 comments
Owner

@⁠Conrage on GitHub · 2026-11-24 09:36 UTC · original

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.

**@⁠Conrage** on GitHub · 2026-11-24 09:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/756) `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._
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:55 +00:00
Author
Owner

@⁠Altorru on GitHub · 2026-11-24 09:51 UTC · original

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.

**@⁠Altorru** on GitHub · 2026-11-24 09:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/756#issuecomment-7127987200) 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.
Author
Owner

@⁠Conrage on GitHub · 2026-11-24 09:53 UTC · original

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

**@⁠Conrage** on GitHub · 2026-11-24 09:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/756#issuecomment-7128018872) Thanks, agreed: open PR #24 already routes indirect `DispatchMeshX` through `execute_indirect`. Closing as a duplicate.
Author
Owner

@⁠RID-Games on GitHub · 2026-11-24 10:07 UTC · original · edited 2026-11-24 10:22 UTC

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.

**@⁠RID-Games** on GitHub · 2026-11-24 10:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/756#issuecomment-7128349323) · edited 2026-11-24 10:22 UTC 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.
This discussion has been locked. Commenting is limited to contributors.
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#756
No description provided.