ExecuteIndirect only runs single-argument command signatures #757

Open
opened 2026-11-24 09:37:27 +00:00 by Conrage · 12 comments
Conrage commented 2026-11-24 09:37:27 +00:00 (Migrated from github.com)
Contributor

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


crates/victory-gpu/src/list.rs:1169 matches ([[kind, ..]], Some(address)), which is exactly one argument. A signature with more than one argument (for example root constants or a root view per record, then a draw or dispatch) is counted and dropped. It logs "indirect execution dropped (first time for this signature)".

Suggestion: build host command signatures for the root-constant and root-view arguments as well, mapped onto our root signature's parameters.

Testers: the args field of those log lines shows which signatures the world uses.

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

<!-- greyfinch-sync:Marvisak/VIctory:issue:6578856323 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757). Originally posted by [Conrage](https://github.com/Conrage) on 2026-11-24T09:37:27Z. --- `crates/victory-gpu/src/list.rs:1169` matches `([[kind, ..]], Some(address))`, which is exactly one argument. A signature with more than one argument (for example root constants or a root view per record, then a draw or dispatch) is counted and dropped. It logs "indirect execution dropped (first time for this signature)". **Suggestion:** build host command signatures for the root-constant and root-view arguments as well, mapped onto our root signature's parameters. Testers: the `args` field of those log lines shows which signatures the world uses. _AI use: found and written with Claude from reading the code at `8e79c80`; not run on hardware._
MartinIndra02 commented 2026-11-24 11:04:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by MartinIndra02 on 2026-11-24T10:12:46Z.


Branch ready on fork (since PR creation is currently collaborators-only): https://github.com/MartinIndra02/VIctory/tree/feat/gpu-multi-arg-execute-indirect (commit 71967c1, based on main ffe310e).

What it implements

  • crates/victory-gpu/src/indirect.rs:
    • Uses the existing 4th dword of cbuffer Record (arg_offset) so the GPU argument clamp bounds the trailing Draw / DrawIndexed / Dispatch / DispatchMesh arguments at id.x * stride + arg_offset without disturbing preceding root constants.
    • Adds plan_indirect() to map single-argument signatures and multi-argument signatures whose prefix arguments are D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT onto the bound HostPipeline's user_data root-constant parameters (checking contiguity, bounds, collisions with other UserData entries, and cross-stage sharing; unused constants land in an unoccupied contiguous user_data range when available, otherwise the signature is cleanly dropped).
    • Non-constant prefix arguments that carry console GPU virtual addresses (vertex/index buffer views, root CBV/SRV/UAV) are still cleanly rejected rather than passing untranslated console addresses to the host.
  • crates/victory-gpu/src/pipeline/host.rs & draw.rs & list.rs:
    • Passes full args from list.rs into State::execute_indirect, creates and caches multi-argument host ID3D12CommandSignatures against p.root on HostPipeline, and keeps the signature alive on the host list until reset.

Verification

Windows 11 Pro 26200, NVIDIA GeForce RTX 3080 (10 GB, driver 621.24), Ryzen 7 5800X3D, Rust 1.98.1 (x86_64-pc-windows-msvc):

  • New unit test indirect::tests::plan_indirect_maps_root_constants_and_rejects_unsupported
  • New real D3D12 GPU test indirect::tests::multi_argument_indirect_dispatch_sets_root_constants_and_clamps (3-record indirect dispatch with 2 root constants + Dispatch at arg_offset = 8: verifies record 0 and 2 pass their root constants to the shader and record 1's over-limit dispatch is clamped to 0)
  • cargo test -p victory-gpu --lib -- --test-threads=1 (RTX 3080): 52 passed, 0 failed, 1 ignored
  • VICTORY_D3D12_WARP=1 cargo test -p victory-gpu --lib indirect -- --test-threads=1 (WARP): 3 passed, 0 failed
  • cargo clippy -p victory-gpu --all-targets -- -D warnings (default and --features diagnostics): 0 warnings
  • cargo xtask policy: 154 files ok

No game data used. AI-assisted; all builds and GPU tests executed on my machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128468978 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7128468978). Originally posted by [MartinIndra02](https://github.com/MartinIndra02) on 2026-11-24T10:12:46Z. --- Branch ready on fork (since PR creation is currently collaborators-only): https://github.com/MartinIndra02/VIctory/tree/feat/gpu-multi-arg-execute-indirect (commit `71967c1`, based on `main` `ffe310e`). ### What it implements - **`crates/victory-gpu/src/indirect.rs`**: - Uses the existing 4th dword of `cbuffer Record` (`arg_offset`) so the GPU argument clamp bounds the trailing Draw / DrawIndexed / Dispatch / DispatchMesh arguments at `id.x * stride + arg_offset` without disturbing preceding root constants. - Adds `plan_indirect()` to map single-argument signatures and multi-argument signatures whose prefix arguments are `D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT` onto the bound `HostPipeline`'s `user_data` root-constant parameters (checking contiguity, bounds, collisions with other `UserData` entries, and cross-stage sharing; unused constants land in an unoccupied contiguous `user_data` range when available, otherwise the signature is cleanly dropped). - Non-constant prefix arguments that carry console GPU virtual addresses (vertex/index buffer views, root CBV/SRV/UAV) are still cleanly rejected rather than passing untranslated console addresses to the host. - **`crates/victory-gpu/src/pipeline/host.rs` & `draw.rs` & `list.rs`**: - Passes full `args` from `list.rs` into `State::execute_indirect`, creates and caches multi-argument host `ID3D12CommandSignature`s against `p.root` on `HostPipeline`, and keeps the signature alive on the host list until reset. ### Verification Windows 11 Pro 26200, NVIDIA GeForce RTX 3080 (10 GB, driver `621.24`), Ryzen 7 5800X3D, Rust 1.98.1 (`x86_64-pc-windows-msvc`): - New unit test `indirect::tests::plan_indirect_maps_root_constants_and_rejects_unsupported` - New real D3D12 GPU test `indirect::tests::multi_argument_indirect_dispatch_sets_root_constants_and_clamps` (3-record indirect dispatch with 2 root constants + `Dispatch` at `arg_offset = 8`: verifies record 0 and 2 pass their root constants to the shader and record 1's over-limit dispatch is clamped to 0) - `cargo test -p victory-gpu --lib -- --test-threads=1` (RTX 3080): **52 passed, 0 failed, 1 ignored** - `VICTORY_D3D12_WARP=1 cargo test -p victory-gpu --lib indirect -- --test-threads=1` (WARP): **3 passed, 0 failed** - `cargo clippy -p victory-gpu --all-targets -- -D warnings` (default and `--features diagnostics`): **0 warnings** - `cargo xtask policy`: **154 files ok** *No game data used. AI-assisted; all builds and GPU tests executed on my machine.*
geiyiliyabumo commented 2026-11-24 11:04:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T10:18:52Z.


Ready-to-merge implementation on a fork branch (since external PR creation is currently paused):

Summary

  • Multi-argument ExecuteIndirect support for root-constant prefixes:
    • list.rs forwards the full guest argument slice to State::execute_indirect.
    • draw.rs adds map_indirect_args to map preceding D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT (type 5) entries onto the host pipeline's user_data root constants while preserving packed record layout (splitting non-contiguous destinations in record order; rejecting unsupported types like VBV/IBV/root-views, unmapped/aliased dwords, overlapping or out-of-order destinations, and invalid strides).
    • Caches root-bound ID3D12CommandSignatures (bounded 64-entry VecDeque holding ID3D12RootSignature refs to prevent ABA reuse, and list.keep(&signature) for in-flight lifetime safety) and mirrors ExecuteIndirect's root-constant invalidation in State::roots.
  • Offset-aware GPU argument clamp (indirect.rs):
    • Uses the 4th root constant in the clamp HLSL shader as offset (byte offset of the trailing draw/indexed/dispatch/mesh action within each stride-byte record) so the constant prefix is left untouched while the draw/dispatch counts are clamped.

Verification

Windows 11 Pro (26100), Rust 1.98.1 (x86_64-pc-windows-msvc), AMD Radeon RX 9060 XT (driver 32.0.32029.2010):

  • cargo test --workspace --locked → 349 passed, 0 failed, 6 ignored (23 test suites)
  • cargo test -p victory-gpu --locked indirect on RX 9060 XT and WARP → 8 passed, 0 failed (including live D3D12 CreateCommandSignature for single/split root constants and GPU clamp readback preserving padded constant prefixes)
  • cargo clippy --workspace --all-targets --locked -- -D warnings → pass (0 warnings)
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings → pass (0 warnings)
  • rustfmt --edition 2024 --check on all 3 modified files & cargo xtask policy (154 files ok) → pass

AI-assisted; synthetic tests only, no game files.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128607185 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7128607185). Originally posted by [geiyiliyabumo](https://github.com/geiyiliyabumo) on 2026-11-24T10:18:52Z. --- Ready-to-merge implementation on a fork branch (since external PR creation is currently paused): - **Branch**: https://github.com/geiyiliyabumo/VIctory/tree/feat/indirect-multi-arg-signatures (commit `9782f64` on `main` `ffe310e`; 3 files: `crates/victory-gpu/src/{list,draw,indirect}.rs`) ### Summary - **Multi-argument `ExecuteIndirect` support for root-constant prefixes**: - `list.rs` forwards the full guest argument slice to `State::execute_indirect`. - `draw.rs` adds `map_indirect_args` to map preceding `D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT` (type `5`) entries onto the host pipeline's `user_data` root constants while preserving packed record layout (splitting non-contiguous destinations in record order; rejecting unsupported types like VBV/IBV/root-views, unmapped/aliased dwords, overlapping or out-of-order destinations, and invalid strides). - Caches root-bound `ID3D12CommandSignature`s (bounded 64-entry `VecDeque` holding `ID3D12RootSignature` refs to prevent ABA reuse, and `list.keep(&signature)` for in-flight lifetime safety) and mirrors `ExecuteIndirect`'s root-constant invalidation in `State::roots`. - **Offset-aware GPU argument clamp (`indirect.rs`)**: - Uses the 4th root constant in the clamp HLSL shader as `offset` (byte offset of the trailing draw/indexed/dispatch/mesh action within each `stride`-byte record) so the constant prefix is left untouched while the draw/dispatch counts are clamped. ### Verification Windows 11 Pro (`26100`), Rust `1.98.1` (`x86_64-pc-windows-msvc`), **AMD Radeon RX 9060 XT** (driver `32.0.32029.2010`): - `cargo test --workspace --locked` → **349 passed, 0 failed, 6 ignored** (23 test suites) - `cargo test -p victory-gpu --locked indirect` on **RX 9060 XT** and **WARP** → **8 passed, 0 failed** (including live D3D12 `CreateCommandSignature` for single/split root constants and GPU clamp readback preserving padded constant prefixes) - `cargo clippy --workspace --all-targets --locked -- -D warnings` → **pass** (0 warnings) - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` → **pass** (0 warnings) - `rustfmt --edition 2024 --check` on all 3 modified files & `cargo xtask policy` (`154 files ok`) → **pass** AI-assisted; synthetic tests only, no game files.
DrDarkDK commented 2026-11-24 11:04:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by DrDarkDK on 2026-11-24T10:18:52Z.


Tested 71967c1 on native Windows 11 with the RTX 4070 Ti (driver 621.01) and software WARP. All three indirect tests passed on each adapter, including root-constant readback and clamping. I used --features diagnostics for WARP and made the GPU test fail locally if it couldn't create a D3D12 device.

cargo test --locked -p victory-gpu --features diagnostics --lib indirect -- --test-threads=1

Separately, I confirmed setup and ran the title on 8e79c80 with WARP. Both runs logged the same five dropped signatures during world loading. Each had one argument: kinds 2, 105, 10, 1, and 0, with strides 12, 12, 12, 20, and 16 bytes respectively. Signature-creation logging in the second run showed the same five single-argument layouts. Both runs ended at WARP device removal (0x887A0005), so coverage ends at early world loading.

AI-assisted test execution and reporting.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128607361 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7128607361). Originally posted by [DrDarkDK](https://github.com/DrDarkDK) on 2026-11-24T10:18:52Z. --- Tested `71967c1` on native Windows 11 with the RTX 4070 Ti (driver 621.01) and software WARP. All three indirect tests passed on each adapter, including root-constant readback and clamping. I used `--features diagnostics` for WARP and made the GPU test fail locally if it couldn't create a D3D12 device. `cargo test --locked -p victory-gpu --features diagnostics --lib indirect -- --test-threads=1` Separately, I confirmed setup and ran the title on `8e79c80` with WARP. Both runs logged the same five dropped signatures during world loading. Each had one argument: kinds `2`, `105`, `10`, `1`, and `0`, with strides `12`, `12`, `12`, `20`, and `16` bytes respectively. Signature-creation logging in the second run showed the same five single-argument layouts. Both runs ended at WARP device removal (`0x887A0005`), so coverage ends at early world loading. AI-assisted test execution and reporting.
andrewpozdnakov7-jpg commented 2026-11-24 11:04:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-24T10:26:19Z.


Compared the two branches on WARP with a synthetic guest command list. I seeded guest root slot 7 with [10, 20, 30], recorded an indirect compute dispatch whose CONSTANT argument covers only DWORD 1, and checked the cached guest values after recording.

Revision Guest values after ExecuteIndirect
71967c1 [10, 20, 30]
71967c1 with a local reset of the written range [10, 0, 30]
9782f64 with its existing reset [10, 0, 30]

A separate native D3D12 readback confirmed that a direct dispatch after ExecuteIndirect sees zero for the constant changed by the indirect signature. The guest cache needs the same reset so a later bind does not restore the old value. The range reset in 9782f64 passes this check and preserves both neighboring DWORDs.

AI-assisted test, executed on Windows with WARP using synthetic data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128781228 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7128781228). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-24T10:26:19Z. --- Compared the two branches on WARP with a synthetic guest command list. I seeded guest root slot 7 with `[10, 20, 30]`, recorded an indirect compute dispatch whose `CONSTANT` argument covers only DWORD 1, and checked the cached guest values after recording. | Revision | Guest values after `ExecuteIndirect` | | --- | --- | | `71967c1` | `[10, 20, 30]` | | `71967c1` with a local reset of the written range | `[10, 0, 30]` | | `9782f64` with its existing reset | `[10, 0, 30]` | A separate native D3D12 readback confirmed that a direct dispatch after `ExecuteIndirect` sees zero for the constant changed by the indirect signature. The guest cache needs the same reset so a later bind does not restore the old value. The range reset in `9782f64` passes this check and preserves both neighboring DWORDs. AI-assisted test, executed on Windows with WARP using synthetic data.
fuzeofficlal commented 2026-11-24 11:04:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T10:27:09Z.


I compared the root-constant state after ExecuteIndirect on RTX 5090 and WARP with synthetic command lists.

In native D3D12, a subsequent direct dispatch read [17, 0, 0, 68, 85] from five initially nonzero words. Only the two words named in the command signature were cleared. Both adapters did the same with a zero count-buffer value and with MaxCommandCount = 0. All five native cases had zero debug-layer errors. D3D12 state rules

For a separate VIctory probe, I recorded the indirect dispatch and checked the guest values that the next translated bind consumes:

Revision Next bind on both adapters
71967c1 [11, 22, 33, 44]
71967c1 + small reset follow-up [11, 0, 0, 44]
9782f64 [11, 0, 0, 44]

The follow-up zeros the guest words referenced by the accepted signature after recording the command, so the next bind does not restore stale values. Both diagnostic suites passed 55 tests with one benchmark ignored. 9782f64 already handles this and passes the same probe.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128799726 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7128799726). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-24T10:27:09Z. --- I compared the root-constant state after `ExecuteIndirect` on RTX 5090 and WARP with synthetic command lists. In native D3D12, a subsequent direct dispatch read `[17, 0, 0, 68, 85]` from five initially nonzero words. Only the two words named in the command signature were cleared. Both adapters did the same with a zero count-buffer value and with `MaxCommandCount = 0`. All five native cases had zero debug-layer errors. [D3D12 state rules](https://microsoft.github.io/DirectX-Specs/d3d/IndirectDrawing.html#state-leakage) For a separate VIctory probe, I recorded the indirect dispatch and checked the guest values that the next translated bind consumes: | Revision | Next bind on both adapters | | --- | --- | | `71967c1` | `[11, 22, 33, 44]` | | `71967c1` + [small reset follow-up](https://github.com/fuzeofficlal/VIctory/commit/5e9d8c0daebcc3ee0718b934501431dc6a50bf3a) | `[11, 0, 0, 44]` | | `9782f64` | `[11, 0, 0, 44]` | The follow-up zeros the guest words referenced by the accepted signature after recording the command, so the next bind does not restore stale values. Both diagnostic suites passed 55 tests with one benchmark ignored. `9782f64` already handles this and passes the same probe.
MartinIndra02 commented 2026-11-24 11:04:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by MartinIndra02 on 2026-11-24T10:37:42Z.


In-game signature check from two RTX 3080 world runs (~1.5 min into the world, diag build): every indirect execution dropped (first time for this signature) line logged was a single-argument signature (stride=12 kind 105 / 2 / 10, stride=16 kind 0, stride=20 kind 1) — dropped only because the bound pipeline wasn't translated, not because of multi-argument records. No multi-argument command signatures appeared in the opening world load.

Counts/types only; no game data. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7129032570 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7129032570). Originally posted by [MartinIndra02](https://github.com/MartinIndra02) on 2026-11-24T10:37:42Z. --- In-game signature check from two RTX 3080 world runs (~1.5 min into the world, diag build): every `indirect execution dropped (first time for this signature)` line logged was a single-argument signature (`stride=12` kind `105` / `2` / `10`, `stride=16` kind `0`, `stride=20` kind `1`) — dropped only because the bound pipeline wasn't translated, not because of multi-argument records. No multi-argument command signatures appeared in the opening world load. *Counts/types only; no game data. AI-assisted.*
LAKSHYA-cmd-tech commented 2026-11-24 11:04:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T10:39:21Z.


Integrated, verified, and merged constant-prefixed multi-argument ExecuteIndirect signatures onto latest main with root-constant address pair lowering (#710) and mesh indirect routing (commit github.com/LAKSHYA-cmd-tech/VIctory@4c559868f0). All 75 tests in victory-gpu and 346 workspace tests pass cleanly.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7129069147 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7129069147). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T10:39:21Z. --- Integrated, verified, and merged constant-prefixed multi-argument ExecuteIndirect signatures onto latest main with root-constant address pair lowering (#710) and mesh indirect routing (commit https://github.com/LAKSHYA-cmd-tech/VIctory/commit/4c559868f0a0d927aeb8ec2a52efc15fc2ba6442). All 75 tests in victory-gpu and 346 workspace tests pass cleanly.
MartinIndra02 commented 2026-11-24 12:04:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by MartinIndra02 on 2026-11-24T11:04:53Z.


Thanks @andrewpozdnakov7-jpg and @fuzeofficlal for the native D3D12 state-leakage check! Updated \ eat/gpu-multi-arg-execute-indirect\ with $sha: \State::clear_indirect_constants\ now zeroes only the overwritten guest root-constant dwords after \ExecuteIndirect\ (preserving neighboring dwords and the other pipeline's roots), with regression test \draw::tests::indirect_constants_clear_only_overwritten_guest_range.\n\nRe-verified on Windows 11 / RTX 3080 (\621.24): \ ictory-gpu\ 53 passed, 0 failed (1 ignored), \clippy -- -D warnings\ (default and \diagnostics) clean, \cargo xtask policy\ 154 files ok. No game data; AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7129629447 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7129629447). Originally posted by [MartinIndra02](https://github.com/MartinIndra02) on 2026-11-24T11:04:53Z. --- Thanks @andrewpozdnakov7-jpg and @fuzeofficlal for the native D3D12 state-leakage check! Updated \ eat/gpu-multi-arg-execute-indirect\ with \$sha\: \State::clear_indirect_constants\ now zeroes only the overwritten guest root-constant dwords after \ExecuteIndirect\ (preserving neighboring dwords and the other pipeline's roots), with regression test \draw::tests::indirect_constants_clear_only_overwritten_guest_range\.\n\nRe-verified on Windows 11 / RTX 3080 (\621.24\): \ ictory-gpu\ **53 passed, 0 failed** (1 ignored), \clippy -- -D warnings\ (default and \diagnostics\) clean, \cargo xtask policy\ 154 files ok. *No game data; AI-assisted.*
Proudnoob4 commented 2026-11-24 13:01:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Proudnoob4 on 2026-11-24T12:11:07Z.


This extends @MartinIndra02's opening-load check to a longer window in the world.

I went through 18 of my runs on an RTX 4080 / Windows 10: several diag builds based on d2a4bae, Series S and X. Every indirect execution dropped (first time for this signature) line is one of the same five single-argument signatures:

args Stride
[[2, …]] 12
[[105, …]] 12
[[10, …]] 12
[[1, …]] 20
[[0, …]] 16

No line has a second argument. That includes one run that stayed 15 minutes in the world (to frame 3600) and one of 7 minutes.

Those two long runs had VICTORY_SKIP_WAVE64=mesh,compute (#579) set, but the skip can't hide a multi-argument signature. In list.rs, a signature that isn't a single argument goes straight to that drop log and never reaches State::execute_indirect, where the pipeline checks and the skip happen. The five single-argument drops come from execute_indirect returning false, not from having several arguments.

So on this title, multi-argument command signatures are not what drops world work, at least in the first 15 minutes.

Also for #756: indirect mesh dispatches dropped does not appear in any of these runs.

Counts and log fields only; no game data attached. AI-assisted (Claude Code); the runs are from my machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131084278 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7131084278). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-24T12:11:07Z. --- This extends @MartinIndra02's opening-load check to a longer window in the world. I went through 18 of my runs on an RTX 4080 / Windows 10: several diag builds based on `d2a4bae`, Series S and X. Every `indirect execution dropped (first time for this signature)` line is one of the same five **single-argument** signatures: | `args` | Stride | |---|---:| | `[[2, …]]` | 12 | | `[[105, …]]` | 12 | | `[[10, …]]` | 12 | | `[[1, …]]` | 20 | | `[[0, …]]` | 16 | No line has a second argument. That includes one run that stayed **15 minutes in the world** (to frame 3600) and one of 7 minutes. Those two long runs had `VICTORY_SKIP_WAVE64=mesh,compute` (#579) set, but the skip can't hide a multi-argument signature. In `list.rs`, a signature that isn't a single argument goes straight to that drop log and never reaches `State::execute_indirect`, where the pipeline checks and the skip happen. The five single-argument drops come from `execute_indirect` returning false, not from having several arguments. So on this title, multi-argument command signatures are not what drops world work, at least in the first 15 minutes. Also for #756: `indirect mesh dispatches dropped` does not appear in any of these runs. Counts and log fields only; no game data attached. AI-assisted (Claude Code); the runs are from my machine.
andrewpozdnakov7-jpg commented 2026-11-24 14:04:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-24T13:45:43Z.


Thanks @MartinIndra02 for incorporating the guest root-constant reset and its regression test. Commit 94ecc4e

Could you retain this Git trailer when carrying that contribution forward?

Co-authored-by: andrewpozdnakov7-jpg <[email protected]>

<!-- greyfinch-sync:Marvisak/VIctory:comment:7133297866 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7133297866). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-24T13:45:43Z. --- Thanks @MartinIndra02 for incorporating the guest root-constant reset and its regression test. [Commit `94ecc4e`](https://github.com/MartinIndra02/VIctory/commit/94ecc4eb1798c319232d575e63c14b691536e3cb) Could you retain this Git trailer when carrying that contribution forward? `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`
MartinIndra02 commented 2026-11-24 14:04:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by MartinIndra02 on 2026-11-24T13:55:31Z.


@andrewpozdnakov7-jpg Sure thing — amended the commit on feat/gpu-multi-arg-execute-indirect (db86e1e) to include the Co-authored-by: andrewpozdnakov7-jpg <[email protected]> trailer.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7133544339 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7133544339). Originally posted by [MartinIndra02](https://github.com/MartinIndra02) on 2026-11-24T13:55:31Z. --- @andrewpozdnakov7-jpg Sure thing — amended the commit on `feat/gpu-multi-arg-execute-indirect` (`db86e1e`) to include the `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` trailer.
Marvisak commented 2026-11-25 04:07:07 +00:00 (Migrated from github.com)
Author
Contributor

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


Automated triage for the maintainers.

Confirmed on current main. execute_indirect in crates/victory-gpu/src/list.rs passes only single-argument signatures ([[kind, ..]]) to State::execute_indirect. Any other signature is counted and dropped, as its own shortcut: comment says. The thread also measured the title: across several world runs of up to 15 minutes, every logged dropped signature had a single argument. Those calls were dropped because their pipeline was missing, so multi-argument signatures don't drop any world work so far.

Open PR #956 (MartinIndra02) carries the root-constant-prefix version, linked to this issue. The other implementations (geiyiliyabumo, LAKSHYA-cmd-tech) are only on forks. Pull requests are open to everyone, so please compare with #956 and comment there, or open a PR if yours differs. The root-constant reset after ExecuteIndirect that testers found should be part of whichever lands.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152293660 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/757#issuecomment-7152293660). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:50:43Z. --- <!-- victory-issue-triage v1 verdict=confirmed seen=2026-11-24T13:55:31Z at=2026-11-25T03:50:42Z --> Automated triage for the maintainers. Confirmed on current `main`. `execute_indirect` in `crates/victory-gpu/src/list.rs` passes only single-argument signatures (`[[kind, ..]]`) to `State::execute_indirect`. Any other signature is counted and dropped, as its own `shortcut:` comment says. The thread also measured the title: across several world runs of up to 15 minutes, every logged dropped signature had a single argument. Those calls were dropped because their pipeline was missing, so multi-argument signatures don't drop any world work so far. Open PR **#956** (MartinIndra02) carries the root-constant-prefix version, linked to this issue. The other implementations (geiyiliyabumo, LAKSHYA-cmd-tech) are only on forks. Pull requests are open to everyone, so please compare with #956 and comment there, or open a PR if yours differs. The root-constant reset after `ExecuteIndirect` that testers found should be part of whichever lands. --- _Generated by [Claude Code](https://claude.ai/code)_
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#757
No description provided.