GPU: port X-only mesh indirect-dispatch correction #257

Closed
github-bot wants to merge 0 commits from github-bot/gh-257 into main AGit
Owner

@⁠UncommonDLL on GitHub · 2026-12-01 03:58 UTC · original
UncommonDLL:fh01/x-only-mesh-dispatch-32a688ad → main · +46 −28 · 2 files · 62 commits · closed without merging

Origin and scope

This ports the correction by invismann merged in VIctory-NVIDIA #996. Both repositories declare GPL-3.0-or-later. The production change adapts the single/window and batch mesh indirect-dispatch clamps in Foxhound; the added WARP fixtures and reached-case guard fit Foxhound's tests.

For X up to 65,535, write mesh groups (X, 1, 1) and charge X * 128; oversized X remains an empty, uncharged output. This covers X-only inputs whose incoming Y/Z words are zero. Existing unrelated record words and the buffer stride remain intact.

Validation

The reviewed two-file patch is 7,780 bytes, SHA-256 084783ff0799bcc465b20358c96c0b1f57a1902b9b2e779f7aa75b7980c3b469, on frozen Foxhound 32a688ad052aa4ab8177de185622c09ca7b8d24f. Rust 1.98.1 MSVC produced an offline, locked victory-gpu --lib test executable, SHA-256 eec2035ad937e96fd1f1972f5c19c13cf9f0bf3afc5eb8d99223811ea69b6330.

Direct exact synthetic WARP selections of indirect::tests::warp_window_leaves_unfilled_slots_empty_and_uncharged and indirect::tests::warp_batch_clamps_as_the_clamp_of_one_does each exited natively with code 0, one executed pass, zero ignored, 510 filtered. Each binary invocation used --exact --nocapture --test-threads=1. The window test logged both ahead=true and ahead=false: X-only readback [1593, 1, 1, 0xAB03], total spent 270976, largest X 1593. Passing source assertions also establish the X-only incremental charge 203904 and 12 unused zero-group slots retaining all-ones trailing sentinels. The batch test's reached-case guard and passing assertions establish [100, 0, 1] -> [100, 1, 1] at charge 12800, with direct/batch agreement; it did not print per-record readbacks.

The offline, locked asset-policy check ran once from the frozen worktree with Rust 1.98.1 MSVC: cargo +1.98.1-x86_64-pc-windows-msvc run --offline --locked --quiet --package xtask -- policy (the recorded invocation also supplied that worktree's Cargo.toml via --manifest-path). It exited 0: asset policy: 291 files ok.

Limits

These are frozen-base synthetic WARP and asset-policy results for the same diff. This new commit and the later upstream main tip were not separately built or run. The WARP adapter name and feature level were not separately printed; the test harness requires WARP and D3D12 FL12_0. No title or physical NVIDIA run is represented. The tests do not assert every padding byte. No claim is made about a title draw or visual symptom.

**@⁠UncommonDLL** on GitHub · 2026-12-01 03:58 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/257) `UncommonDLL:fh01/x-only-mesh-dispatch-32a688ad` → `main` · +46 −28 · 2 files · 62 commits · closed without merging ## Origin and scope This ports the correction by invismann merged in [VIctory-NVIDIA #996](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/996). Both repositories declare GPL-3.0-or-later. The production change adapts the single/window and batch mesh indirect-dispatch clamps in Foxhound; the added WARP fixtures and reached-case guard fit Foxhound's tests. For X up to 65,535, write mesh groups `(X, 1, 1)` and charge `X * 128`; oversized X remains an empty, uncharged output. This covers X-only inputs whose incoming Y/Z words are zero. Existing unrelated record words and the buffer stride remain intact. ## Validation The reviewed two-file patch is 7,780 bytes, SHA-256 `084783ff0799bcc465b20358c96c0b1f57a1902b9b2e779f7aa75b7980c3b469`, on frozen Foxhound `32a688ad052aa4ab8177de185622c09ca7b8d24f`. Rust 1.98.1 MSVC produced an offline, locked `victory-gpu --lib` test executable, SHA-256 `eec2035ad937e96fd1f1972f5c19c13cf9f0bf3afc5eb8d99223811ea69b6330`. Direct exact synthetic WARP selections of `indirect::tests::warp_window_leaves_unfilled_slots_empty_and_uncharged` and `indirect::tests::warp_batch_clamps_as_the_clamp_of_one_does` each exited natively with code 0, one executed pass, zero ignored, 510 filtered. Each binary invocation used `--exact --nocapture --test-threads=1`. The window test logged both `ahead=true` and `ahead=false`: X-only readback `[1593, 1, 1, 0xAB03]`, total spent `270976`, largest X `1593`. Passing source assertions also establish the X-only incremental charge `203904` and 12 unused zero-group slots retaining all-ones trailing sentinels. The batch test's reached-case guard and passing assertions establish `[100, 0, 1] -> [100, 1, 1]` at charge `12800`, with direct/batch agreement; it did not print per-record readbacks. The offline, locked asset-policy check ran once from the frozen worktree with Rust 1.98.1 MSVC: `cargo +1.98.1-x86_64-pc-windows-msvc run --offline --locked --quiet --package xtask -- policy` (the recorded invocation also supplied that worktree's `Cargo.toml` via `--manifest-path`). It exited 0: `asset policy: 291 files ok`. ## Limits These are frozen-base synthetic WARP and asset-policy results for the same diff. This new commit and the later upstream main tip were not separately built or run. The WARP adapter name and feature level were not separately printed; the test harness requires WARP and D3D12 FL12_0. No title or physical NVIDIA run is represented. The tests do not assert every padding byte. No claim is made about a title draw or visual symptom.
Port invismann's merged VIctory-NVIDIA #996 correction to Foxhound's
single/window and batch mesh argument clamps. Valid X through 65,535
becomes (X, 1, 1) and is charged X * 128; oversized records remain
empty and uncharged.

Extend WARP synthetic coverage with required execution of the X-only
case and no silent setup skip.

Original correction by invismann:
https://github.com/trustno1-coder/VIctory-NVIDIA/pull/996

License: GPL-3.0-or-later
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 04:00:09 +00:00
Author
Owner

@⁠Aniseto on GitHub · 2026-12-01 08:28 UTC · original

Ran the two named WARP fixtures from the description at 439f1f70 on an NVIDIA Blackwell desktop part with 16 GB of VRAM. A physical NVIDIA card runs here; the fixtures themselves select WARP, so this is a second host for the same synthetic checks, not a retail-title run.

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, own CARGO_TARGET_DIR, detached worktree at the exact PR head, no local patches.

cargo test -q -p victory-gpu --lib indirect::tests::warp_window_leaves_unfilled_slots_empty_and_uncharged -- --exact --nocapture --test-threads=1
FH-01 WARP ahead=true x_only=[1593, 1, 1, 43779] spent=270976 largest=1593
FH-01 WARP ahead=false x_only=[1593, 1, 1, 43779] spent=270976 largest=1593
1 passed; 0 failed; 0 ignored; 510 filtered out      (exit 0)

cargo test -q -p victory-gpu --lib indirect::tests::warp_batch_clamps_as_the_clamp_of_one_does -- --exact --nocapture --test-threads=1
1 passed; 0 failed; 0 ignored; 510 filtered out      (exit 0)

Both fixtures pass at the current head. The window case logs the same readback and charge for ahead=true and ahead=false here, matching the description's [1593, 1, 1, 0xAB03] (43779 decimal) and spent=270976. No title draw or visual symptom was measured.

Not tested: the full workspace suite, a physical NVIDIA adapter in these fixtures, a title run, mesh shaders in a real scene, DLSS/frame generation, release profile, game data.

AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-12-01 08:28 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/257#issuecomment-7305374472) Ran the two named WARP fixtures from the description at `439f1f70` on an NVIDIA Blackwell desktop part with 16 GB of VRAM. A physical NVIDIA card runs here; the fixtures themselves select WARP, so this is a second host for the same synthetic checks, not a retail-title run. Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, own `CARGO_TARGET_DIR`, detached worktree at the exact PR head, no local patches. ``` cargo test -q -p victory-gpu --lib indirect::tests::warp_window_leaves_unfilled_slots_empty_and_uncharged -- --exact --nocapture --test-threads=1 FH-01 WARP ahead=true x_only=[1593, 1, 1, 43779] spent=270976 largest=1593 FH-01 WARP ahead=false x_only=[1593, 1, 1, 43779] spent=270976 largest=1593 1 passed; 0 failed; 0 ignored; 510 filtered out (exit 0) cargo test -q -p victory-gpu --lib indirect::tests::warp_batch_clamps_as_the_clamp_of_one_does -- --exact --nocapture --test-threads=1 1 passed; 0 failed; 0 ignored; 510 filtered out (exit 0) ``` Both fixtures pass at the current head. The window case logs the same readback and charge for `ahead=true` and `ahead=false` here, matching the description's `[1593, 1, 1, 0xAB03]` (43779 decimal) and `spent=270976`. No title draw or visual symptom was measured. Not tested: the full workspace suite, a physical NVIDIA adapter in these fixtures, a title run, mesh shaders in a real scene, DLSS/frame generation, release profile, game data. AI-assisted (OpenCode), model: **MiMo-V2.6-Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-01 11:38 UTC · original

Checked: nothing harmful in it, it merges and passes the lint check. Because it changes a run at default settings (or code on the submission path), it is not merged to main directly: it is on the batch being tested for the next release, as one commit with you as its author. Nothing is needed from you now; the result of the run will be posted here.

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 11:38 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/257#issuecomment-7309921639) Checked: nothing harmful in it, it merges and passes the lint check. Because it changes a run at default settings (or code on the submission path), it is not merged to main directly: it is on the batch being tested for the next release, as one commit with you as its author. Nothing is needed from you now; the result of the run will be posted here.
github-bot closed this pull request 2026-12-02 07:54:55 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.