GPU: forward all direct mesh dispatch group counts #2624

Open
github-bot wants to merge 4 commits from github-bot/gh-2624 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-25 17:02 UTC · original
andrewpozdnakov7-jpg:codex1/mesh-dispatch-dimensions → main · +204 −13 · 3 files · 4 commits · draft

Direct List6 DispatchMesh forwards only X and substitutes 1 for Y and Z. For example, a 2 × 3 × 4 dispatch launches two groups. Forward the three group counts. Direct DispatchMeshX still supplies a one-dimensional grid. D3D12 mesh dispatch

The regression records the calls through VIctory's list vtable. A native D3D12 pipeline-statistics query counts invocations of a synthetic one-thread mesh shader on WARP. The fixture locates the entry points in the active guest list layout.

Call Main 63bcca4 Patch 22f5207
DispatchMesh(2, 1, 1) 2 2
DispatchMesh(2, 3, 1) 2 6
DispatchMesh(2, 1, 4) 2 8
DispatchMesh(2, 3, 4) 2 24
DispatchMesh(2, 0, 4) 2 0
Direct DispatchMeshX(2, …) 2 2

The same test failed six times on main and passed each time with the patch. The full WARP GPU suite passed with 247 tests and one ignored under both D3D12 debug settings. Strict GPU Clippy in both configurations and repository policy passed. The project shader emitter generates the synthetic shader in-process. The test needs a host with mesh pipeline statistics. AI-assisted. Synthetic tests only.

The patch leaves indirect DispatchMeshX to #1546 and #1749. #24 also edits direct dispatch and would need a conflict resolution in list.rs.

Coordination claim

Please preserve the Git author when reapplying the change. If you fold the code or test into another commit, please add this trailer.

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

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 17:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624) `andrewpozdnakov7-jpg:codex1/mesh-dispatch-dimensions` → `main` · +204 −13 · 3 files · 4 commits · draft Direct List6 DispatchMesh forwards only X and substitutes 1 for Y and Z. For example, a 2 × 3 × 4 dispatch launches two groups. Forward the three group counts. Direct DispatchMeshX still supplies a one-dimensional grid. [D3D12 mesh dispatch](https://microsoft.github.io/DirectX-Specs/d3d/MeshShader.html) The regression records the calls through VIctory's list vtable. A native D3D12 pipeline-statistics query counts invocations of a synthetic one-thread mesh shader on WARP. The fixture locates the entry points in the active guest list layout. | Call | Main 63bcca4 | Patch 22f5207 | | --- | --- | --- | | DispatchMesh(2, 1, 1) | 2 | 2 | | DispatchMesh(2, 3, 1) | 2 | 6 | | DispatchMesh(2, 1, 4) | 2 | 8 | | DispatchMesh(2, 3, 4) | 2 | 24 | | DispatchMesh(2, 0, 4) | 2 | 0 | | Direct DispatchMeshX(2, …) | 2 | 2 | The same test failed six times on main and passed each time with the patch. The full WARP GPU suite passed with 247 tests and one ignored under both D3D12 debug settings. Strict GPU Clippy in both configurations and repository policy passed. The project shader emitter generates the synthetic shader in-process. The test needs a host with mesh pipeline statistics. AI-assisted. Synthetic tests only. The patch leaves indirect DispatchMeshX to #1546 and #1749. #24 also edits direct dispatch and would need a conflict resolution in list.rs. [Coordination claim](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) Please preserve the Git author when reapplying the change. If you fold the code or test into another commit, please add this trailer. Co-authored-by: andrewpozdnakov7-jpg <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:10:35 +00:00
Author
Owner

@⁠Bj0rnis on GitHub · 2026-11-25 17:32 UTC · original

Independent Windows 11 hardware + WARP verification of #2624 at 827fbf89 (clean git merge-tree with origin/main 13f91cae, Rust 1.98.1 MSVC):

  • NVIDIA GeForce RTX 5070 Ti (real hardware): cargo test -p victory-gpu --features diagnostics --lib --locked -- --test-threads=1 -> 197 passed, 2 failed, 1 ignored (2.89s; includes the new test, only the 2 pre-existing #1744 NVIDIA 1M view-heap baseline failures also present on main 13f91cae).
  • WARP (VICTORY_D3D12_WARP=1): 199 passed, 0 failed, 1 ignored (1.76s).
  • Clippy: cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings -> 0 warnings.
  • Asset policy: cargo xtask policy -> 184 files ok.

Not tested: live game workload.

AI-assisted test run and summary.

**@⁠Bj0rnis** on GitHub · 2026-11-25 17:32 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7169655471) Independent Windows 11 hardware + WARP verification of #2624 at `827fbf89` (clean `git merge-tree` with `origin/main` `13f91cae`, Rust 1.98.1 MSVC): - **NVIDIA GeForce RTX 5070 Ti (real hardware):** `cargo test -p victory-gpu --features diagnostics --lib --locked -- --test-threads=1` -> **197 passed, 2 failed, 1 ignored** (2.89s; includes the new test, only the 2 pre-existing #1744 NVIDIA 1M view-heap baseline failures also present on `main` `13f91cae`). - **WARP (`VICTORY_D3D12_WARP=1`):** **199 passed, 0 failed, 1 ignored** (1.76s). - **Clippy:** `cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings` -> **0 warnings**. - **Asset policy:** `cargo xtask policy` -> **184 files ok**. Not tested: live game workload. AI-assisted test run and summary.
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 17:45 UTC · original

Reviewed: forwards the real (x, y, z) to DispatchMesh instead of forcing 1x1, indirect path keeps (x,1,1) as before. The old once-warn on y*z!=1 is correctly gone since it now works. CI green.

**@⁠kotekompotek** on GitHub · 2026-11-25 17:45 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7169947317) Reviewed: forwards the real (x, y, z) to `DispatchMesh` instead of forcing 1x1, indirect path keeps (x,1,1) as before. The old once-warn on y*z!=1 is correctly gone since it now works. CI green.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 22:15 UTC · original · edited 2026-11-26 03:23 UTC

Automated triage for the maintainers.

Verdict: merge candidate (changed from needs work). Re-reviewed at 22f5207, which merges cleanly into main. The fix is unchanged: State::dispatch_mesh in crates/victory-gpu/src/draw.rs passes the caller's x, y, z to DispatchMesh, the List6 dispatch_mesh in list.rs forwards all three, and the direct DispatchMeshX path keeps (x, 1, 1).

On your reply: confirmed. direct_mesh_dispatch_uses_all_group_counts in crates/victory-gpu/src/pipeline/host.rs now builds a one-thread synthetic mesh program (s_endpgm only) through the crate's own ir/structure/emit path. It no longer writes HLSL or spawns dxc.exe, and reads no environment variable, which was the only reason for the previous verdict. It skips cleanly where mesh shaders or mesh pipeline statistics are unavailable. The expected MSInvocations [2, 6, 8, 24, 0, 2] match the group grids it dispatches.

CI: passing (check).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 22:15 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7176135362) · edited 2026-11-26 03:23 UTC <!-- victory-triage v1 head=22f5207f2c50c81e02764929b1273701db81dd45 verdict=merge-candidate at=2026-11-26T03:23:48Z --> Automated triage for the maintainers. **Verdict: merge candidate** (changed from needs work). Re-reviewed at `22f5207`, which merges cleanly into `main`. The fix is unchanged: `State::dispatch_mesh` in `crates/victory-gpu/src/draw.rs` passes the caller's `x, y, z` to `DispatchMesh`, the List6 `dispatch_mesh` in `list.rs` forwards all three, and the direct `DispatchMeshX` path keeps `(x, 1, 1)`. On your reply: confirmed. `direct_mesh_dispatch_uses_all_group_counts` in `crates/victory-gpu/src/pipeline/host.rs` now builds a one-thread synthetic mesh program (`s_endpgm` only) through the crate's own `ir`/`structure`/`emit` path. It no longer writes HLSL or spawns `dxc.exe`, and reads no environment variable, which was the only reason for the previous verdict. It skips cleanly where mesh shaders or mesh pipeline statistics are unavailable. The expected `MSInvocations` `[2, 6, 8, 24, 0, 2]` match the group grids it dispatches. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-25 22:39 UTC · original

I resolved the test-module conflict in 14c1fc2. The mesh-dispatch test and the new upstream test both pass.

The same six guest vtable calls on f3578e3 report [2, 2, 2, 2, 2, 2] mesh shader invocations. The updated branch reports [2, 6, 8, 24, 0, 2]. This covers the X-only and Xbox calls and the Y, Z and zero-axis controls. Six paired WARP runs, both serial GPU suites at 244 passed and one ignored, strict Clippy, and asset policy passed.

Please retain the Git author on cherry-pick or rebase. If folding the fix or test into another commit, please add this trailer.

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

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 22:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7176630898) I resolved the test-module conflict in [14c1fc2](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/14c1fc285569ec1be0722214829788c3f9c8a283). The mesh-dispatch test and the new upstream test both pass. The same six guest vtable calls on `f3578e3` report `[2, 2, 2, 2, 2, 2]` mesh shader invocations. The updated branch reports `[2, 6, 8, 24, 0, 2]`. This covers the X-only and Xbox calls and the Y, Z and zero-axis controls. Six paired WARP runs, both serial GPU suites at 244 passed and one ignored, strict Clippy, and asset policy passed. Please retain the Git author on cherry-pick or rebase. If folding the fix or test into another commit, please add this trailer. Co-authored-by: andrewpozdnakov7-jpg <[email protected]>
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-25 22:59 UTC · original

Updated this branch after #158 changed the command-list table tests. Commit 498b5c1df87242b38731cf1137574abe83dc0941 retains the previous tested head and uses the table that belongs to the test list to locate the guest dispatch entry points.

The same WARP statistics test on base 842b0cb76f8f5fa9289bd779783c51ec24d75302 reports [2, 2, 2, 2, 2, 2]; with the patch it checks [2, 6, 8, 24, 0, 2]. Both upstream depth-bounds tests also pass. Full GPU suite: 247 passed, 1 ignored, with each D3D12 debug setting. Strict GPU Clippy in both configurations and asset policy passed.

If you cherry-pick the fix or test, please preserve the Git author. If you fold the work into another commit, please include Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 22:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7177010642) Updated this branch after #158 changed the command-list table tests. Commit `498b5c1df87242b38731cf1137574abe83dc0941` retains the previous tested head and uses the table that belongs to the test list to locate the guest dispatch entry points. The same WARP statistics test on base `842b0cb76f8f5fa9289bd779783c51ec24d75302` reports `[2, 2, 2, 2, 2, 2]`; with the patch it checks `[2, 6, 8, 24, 0, 2]`. Both upstream depth-bounds tests also pass. Full GPU suite: 247 passed, 1 ignored, with each D3D12 debug setting. Strict GPU Clippy in both configurations and asset policy passed. If you cherry-pick the fix or test, please preserve the Git author. If you fold the work into another commit, please include `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-26 00:49 UTC · original

22f5207 addresses the test review. The fixture builds a one-thread synthetic mesh shader with VIctory's in-process shader emitter. It binds a guest view heap through the list vtable and uses the normal sampler fallback. The dispatch fix and statistics query are unchanged.

In six paired Windows/WARP runs with the same fixture and no external compiler, 63bcca43c6a00a758510398fa43096ce7e4f7df0 reported [2, 2, 2, 2, 2, 2] and the updated head reported [2, 6, 8, 24, 0, 2]. Both depth-bounds tests pass. Full WARP GPU suite, 247 passed and one ignored under each D3D12 debug setting. Strict GPU Clippy in both configurations and asset policy passed.

Please retain the Git author on cherry-pick. If folding the fix or test into another commit, please include Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-26 00:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7179148574) [22f5207](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/22f5207f2c50c81e02764929b1273701db81dd45) addresses [the test review](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2624). The fixture builds a one-thread synthetic mesh shader with VIctory's in-process shader emitter. It binds a guest view heap through the list vtable and uses the normal sampler fallback. The dispatch fix and statistics query are unchanged. In six paired Windows/WARP runs with the same fixture and no external compiler, `63bcca43c6a00a758510398fa43096ce7e4f7df0` reported `[2, 2, 2, 2, 2, 2]` and the updated head reported `[2, 6, 8, 24, 0, 2]`. Both depth-bounds tests pass. Full WARP GPU suite, 247 passed and one ignored under each D3D12 debug setting. Strict GPU Clippy in both configurations and asset policy passed. Please retain the Git author on cherry-pick. If folding the fix or test into another commit, please include `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-26 03:59 UTC · original

I found a correctness problem in this head that the pipeline-statistics test cannot see. I am putting this PR back in draft.

I ran the same one-thread translated mesh program on 63bcca4 and 22f5207. It reads the guest mesh-group input and atomically increments that group's counter. The guest List6 command recorded DispatchMesh(3, 2, 4), and the submitted WARP work produced:

Revision GPU readback
63bcca4 [1, 1, 1, 0, ...]
22f5207 [8, 8, 8, 0, ...] in all six runs

Input::MeshGroup multiplies SV_GroupID.x by the mesh stride. The extra Y/Z groups therefore revisit the first three indices and leave the other 21 counters untouched. This is the same lowering interaction caught in #2996's indirect path. The per-axis D3D12 bound also means a single X-only call cannot cover every valid direct grid. The D3D12 specification defines the host limit. We still need the direct guest mesh-group numbering for a multi-axis call or an implementation that carries the grid dimensions all the way to lowering and can be checked against that contract.

AI-assisted with Codex. Synthetic Windows/WARP tests.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-26 03:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7182199157) I found a correctness problem in this head that the pipeline-statistics test cannot see. I am putting this PR back in draft. I ran the same one-thread translated mesh program on `63bcca4` and `22f5207`. It reads the guest mesh-group input and atomically increments that group's counter. The guest List6 command recorded DispatchMesh(3, 2, 4), and the submitted WARP work produced: | Revision | GPU readback | | --- | --- | | `63bcca4` | [1, 1, 1, 0, ...] | | `22f5207` | [8, 8, 8, 0, ...] in all six runs | `Input::MeshGroup` multiplies `SV_GroupID.x` by the mesh stride. The extra Y/Z groups therefore revisit the first three indices and leave the other 21 counters untouched. This is the same lowering interaction caught in #2996's indirect path. The per-axis D3D12 bound also means a single X-only call cannot cover every valid direct grid. The [D3D12 specification](https://microsoft.github.io/DirectX-Specs/d3d/MeshShader.html#dispatchmesh-api) defines the host limit. We still need the direct guest mesh-group numbering for a multi-axis call or an implementation that carries the grid dimensions all the way to lowering and can be checked against that contract. AI-assisted with Codex. Synthetic Windows/WARP tests.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-26 14:39 UTC · original · reviewed

Tested 22f5207f2c50c81e02764929b1273701db81dd45 merged onto main (63bcca43c6a0) on Windows 11 x64 (NVIDIA GeForce RTX 5090 native mesh shaders + Microsoft WARP, VICTORY_D3D12_DEBUG=1, Rust 1.98.1).

Verification

  • cargo run --locked -p xtask -- policy: 191 files ok; cargo clippy --locked -p victory-gpu --all-targets -- -D warnings (default and --all-features): 0 warnings.
  • direct_mesh_dispatch_uses_all_group_counts + list:: (VICTORY_D3D12_DEBUG=1): 5/5 passed on RTX 5090 (native D3D12_OPTIONS9 mesh pipeline statistics) and 5/5 passed on WARP (--features diagnostics), confirming MSInvocations == [2, 6, 8, 24, 0, 2].

Note while in draft

  • Confirming the shader-side blocker (crates/victory-gpu/src/draw.rs:1200,1209 and crates/victory-gpu/src/list.rs:1509-1511 vs crates/victory-shader/src/emit/lower.rs:1498-1504): victory-shader currently lowers Input::MeshGroup strictly as groupId.i32(0) * mesh_stride (SV_GroupID.x only), ignoring SV_GroupID.y and SV_GroupID.z. Forwarding (x, y, z) to DispatchMesh while removing the one-time y * z != 1 warning would cause all y * z slices to alias onto indices 0..x until multi-axis direct mesh group numbering/lowering is wired end-to-end (with a shader-readback check across x, y, and z). Happy to re-review once ready for review.
**@⁠fuzeofficlal** on GitHub · 2026-11-26 14:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#pullrequestreview-6075993729) · **reviewed** Tested `22f5207f2c50c81e02764929b1273701db81dd45` merged onto `main` (`63bcca43c6a0`) on Windows 11 x64 (NVIDIA GeForce RTX 5090 native mesh shaders + Microsoft WARP, `VICTORY_D3D12_DEBUG=1`, Rust `1.98.1`). ### Verification - `cargo run --locked -p xtask -- policy`: `191 files ok`; `cargo clippy --locked -p victory-gpu --all-targets -- -D warnings` (default and `--all-features`): 0 warnings. - `direct_mesh_dispatch_uses_all_group_counts` + `list::` (`VICTORY_D3D12_DEBUG=1`): **5/5 passed** on RTX 5090 (native `D3D12_OPTIONS9` mesh pipeline statistics) and **5/5 passed** on WARP (`--features diagnostics`), confirming `MSInvocations == [2, 6, 8, 24, 0, 2]`. ### Note while in draft - Confirming the shader-side blocker (`crates/victory-gpu/src/draw.rs:1200,1209` and `crates/victory-gpu/src/list.rs:1509-1511` vs `crates/victory-shader/src/emit/lower.rs:1498-1504`): `victory-shader` currently lowers `Input::MeshGroup` strictly as `groupId.i32(0) * mesh_stride` (`SV_GroupID.x` only), ignoring `SV_GroupID.y` and `SV_GroupID.z`. Forwarding `(x, y, z)` to `DispatchMesh` while removing the one-time `y * z != 1` warning would cause all `y * z` slices to alias onto indices `0..x` until multi-axis direct mesh group numbering/lowering is wired end-to-end (with a shader-readback check across `x`, `y`, and `z`). Happy to re-review once ready for review.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-26 15:37 UTC · original

I checked the translated indices on the exact draft plus current main (8e516f1). Candidate f458a03 passes the direct grid dimensions to the mesh shader in a spare root-constant dword. The translated input uses x + groups_x * (y + groups_y * z) before applying the existing mesh stride.

The same synthetic shader increments one counter per translated group index through the guest List6 entry point. Agility 1.620.2 / WARP 1.0.22, three runs per revision:

Dispatch Draft Candidate
(3, 2, 4) [8, 8, 8, 0, …] all 24 counters are exactly 1
(2, 3, 4) [12, 12, 0, …] all 24 counters are exactly 1
(3, 1, 1) first 3 are 1 first 3 are 1
(3, 0, 4) all zero all zero

The existing mesh-invocation test also passed. Full GPU suite 249 passed, 1 ignored, including the app-local identity check. Strict shader/GPU Clippy with default and all features and the asset-policy check passed.

The candidate branch uses X-fastest ordering. The PR remains in draft while that order is checked against the Xbox mesh input. @⁠fuzeofficlal, a run of direct_mesh_visits_each_translated_group_index on your RTX 5090 would provide the physical D3D12 check.

Please retain the Git authors on pickup. If folding my fix or test into another commit, use Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-26 15:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7196525816) I checked the translated indices on the exact draft plus current `main` (`8e516f1`). [Candidate `f458a03`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/f458a03527392792c2b7b3701a1ef1590af8ccc8) passes the direct grid dimensions to the mesh shader in a spare root-constant dword. The translated input uses `x + groups_x * (y + groups_y * z)` before applying the existing mesh stride. The same synthetic shader increments one counter per translated group index through the guest List6 entry point. Agility 1.620.2 / WARP 1.0.22, three runs per revision: | Dispatch | Draft | Candidate | | --- | --- | --- | | `(3, 2, 4)` | `[8, 8, 8, 0, …]` | all 24 counters are exactly 1 | | `(2, 3, 4)` | `[12, 12, 0, …]` | all 24 counters are exactly 1 | | `(3, 1, 1)` | first 3 are 1 | first 3 are 1 | | `(3, 0, 4)` | all zero | all zero | The existing mesh-invocation test also passed. Full GPU suite 249 passed, 1 ignored, including the app-local identity check. Strict shader/GPU Clippy with default and all features and the asset-policy check passed. The [candidate branch](https://github.com/andrewpozdnakov7-jpg/VIctory/tree/codex/pr2624-direct-mesh-grid) uses X-fastest ordering. The PR remains in draft while that order is checked against the Xbox mesh input. @⁠fuzeofficlal, a run of `direct_mesh_visits_each_translated_group_index` on your RTX 5090 would provide the physical D3D12 check. Please retain the Git authors on pickup. If folding my fix or test into another commit, use `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-26 17:01 UTC · original

I checked the direct-grid candidate f458a03 together with the mesh index-export fix from #3299 at 8f01cab. The exact combination bd7a1bb merged cleanly.

On verified app-local Agility 1.620.2/WARP 1.0.22, three runs of each 3x2x4 and 2x3x4 grid still produced 24 counters equal to one. The one-axis, zero-axis and invocation-statistics controls passed. The edge-flag mesh draw also passed in three fresh processes. Full GPU diagnostics had 249 passed, 0 failed, 1 ignored, including the runtime identity check. Asset policy passed.

The draft still needs the physical rerun and evidence for X-fastest guest numbering requested above. The integration branch is available if you want to run both patches together. AI-assisted with Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-26 17:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7198384716) I checked the direct-grid [candidate `f458a03`](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2624) together with the mesh index-export fix from #3299 at `8f01cab`. The [exact combination `bd7a1bb`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/bd7a1bb6f096186f531e04fe5658f8fb50517bff) merged cleanly. On verified app-local Agility 1.620.2/WARP 1.0.22, three runs of each 3x2x4 and 2x3x4 grid still produced 24 counters equal to one. The one-axis, zero-axis and invocation-statistics controls passed. The edge-flag mesh draw also passed in three fresh processes. Full GPU diagnostics had 249 passed, 0 failed, 1 ignored, including the runtime identity check. Asset policy passed. The draft still needs the physical rerun and evidence for X-fastest guest numbering requested above. The integration branch is available if you want to run both patches together. AI-assisted with Codex.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-26 19:22 UTC · original

I checked the latest draft head here with #3304’s stride fix. The combined result on #3304 uses six threads from multidimensional PSV0 metadata. Both 24-group grids reached every expected guest index, with exactly six increments at each index and zero at the others. The full GPU suite passed 249 with one ignored.

The current draft still needs the physical GPU repeat and confirmation of X-fastest guest group numbering. The combined follow-up is available in 0908871. Please preserve its Git author or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if you fold the added test or grid follow-up into another commit.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-26 19:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7201509547) I checked the latest draft head here with #3304’s stride fix. The [combined result on #3304](https://git.gtahub.st/github/Marvisak--VIctory/pulls/3304) uses six threads from multidimensional PSV0 metadata. Both 24-group grids reached every expected guest index, with exactly six increments at each index and zero at the others. The full GPU suite passed 249 with one ignored. The current draft still needs the physical GPU repeat and confirmation of X-fastest guest group numbering. The combined follow-up is available in [`0908871`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/0908871c72fe134ffd897a07753057d0a71d7486). Please preserve its Git author or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if you fold the added test or grid follow-up into another commit.
Author
Owner

@⁠evan-kolberg on GitHub · 2026-11-26 19:37 UTC · original

Physical D3DMetal repeat of the generated per-group readback. On Apple M4 Pro, CrossOver 26.3 and D3DMetal 4.0 beta 3, I held fuzeofficlal’s stride fix constant on Mac main bf99e728. The comparison adapts andrewpozdnakov7-jpg’s List6 forwarding and grid linearization and UAV fixture.

  • Stride fix only: 3×2×4 and 2×3×4 reached three and two indices, with six increments each.
  • Add forwarding: the same three and two indices received 48 and 72 increments each.
  • Add grid linearization: both grids reached 24 distinct indices 0, 6, …, 138, with six increments each. The 3×1×1 control returned three indices with six increments each in all three builds.

All nine 144-word vectors matched, including zeros elsewhere. This verifies unique index coverage on D3DMetal. Xbox coordinate ordering still needs console evidence.

Prepared and tested with Codex.

**@⁠evan-kolberg** on GitHub · 2026-11-26 19:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/2624#issuecomment-7201798390) Physical D3DMetal repeat of the generated [per-group readback](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2624). On Apple M4 Pro, CrossOver 26.3 and D3DMetal 4.0 beta 3, I held fuzeofficlal’s [stride fix](https://git.gtahub.st/github/Marvisak--VIctory/pulls/3304/commits/55f44b94cf2d063f04c3e5a4566d06ffd7c9a44e) constant on [Mac main `bf99e728`](https://github.com/pragyaangaur/VIctory-macOS/tree/bf99e728b2fa89c3550d51e07626c0da9bd6ec47). The comparison adapts andrewpozdnakov7-jpg’s [List6 forwarding](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2624/commits/22f5207f2c50c81e02764929b1273701db81dd45) and [grid linearization and UAV fixture](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/0908871c72fe134ffd897a07753057d0a71d7486). - **Stride fix only:** `3×2×4` and `2×3×4` reached three and two indices, with six increments each. - **Add forwarding:** the same three and two indices received 48 and 72 increments each. - **Add grid linearization:** both grids reached 24 distinct indices `0, 6, …, 138`, with six increments each. The `3×1×1` control returned three indices with six increments each in all three builds. All nine 144-word vectors matched, including zeros elsewhere. This verifies unique index coverage on D3DMetal. Xbox coordinate ordering still needs console evidence. Prepared and tested with Codex.
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/2624/head:github-bot/gh-2624'
git switch 'github-bot/gh-2624'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2624'
git switch 'github-bot/gh-2624'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2624'
git switch 'github-bot/gh-2624'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2624'
git switch 'main'
git merge --squash 'github-bot/gh-2624'
git switch 'main'
git merge --ff-only 'github-bot/gh-2624'
git switch 'main'
git merge 'github-bot/gh-2624'
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!2624
No description provided.