Use the test adapter's wave width for offline pipeline checks #76

Open
github-bot wants to merge 1 commit from github-bot/gh-76 into main AGit
Owner

@⁠dervoxx on GitHub · 2026-11-24 21:16 UTC · original
dervoxx:fix/probe-offline-wave → main · +30 −12 · 3 files · 1 commits · open

A 32-lane adapter can reject a compute pipeline during offline validation even when the runtime's wave-width selection can build it. The runtime queries D3D12 options on startup. The offline checker previously required a width override to make the same choice.

This change reads WaveLaneCountMax from the device already opened for translate --pipelines and sets the translator's limit before workers start. Explicit VICTORY_HOST_MAX_WAVE and VICTORY_HOST_WAVE settings retain precedence in that order. Translation without pipeline creation continues to work without an adapter. If the query fails or returns zero, the translator keeps its existing default.

Verification

Compared clean main 4e17478 with 25e40e2 on Windows, RTX 5080, driver 32.0.16.2101. Both builds received the same four private compute inputs and translate --validate --pipelines. With VICTORY_WAVE_WIDE=1, all four inputs passed DXIL validation in every case.

Configuration Pipelines created on main Pipelines created with patch
Automatic width 0/4 2/4
Explicit 32 lanes 2/4 (MAX_WAVE) 2/4 (HOST_WAVE)

On the patched build, setting MAX_WAVE to 64 alongside HOST_WAVE=32 selected 64 and reproduced 0/4. Without the wide-wave opt-in both automatic configurations created 0/4 for this sample. The two remaining pipeline refusals are unresolved. The measured improvement concerns the offline checker's agreement with an explicit 32-lane target. Frame rate and gameplay were outside this comparison.

Both workspace Clippy configurations passed with warnings denied, and the staged asset policy passed. Only source changes are included. AI-assisted implementation and testing with Codex.

**@⁠dervoxx** on GitHub · 2026-11-24 21:16 UTC · [original](https://github.com/fxceless/victory-fork/pull/76) `dervoxx:fix/probe-offline-wave` → `main` · +30 −12 · 3 files · 1 commits · open A 32-lane adapter can reject a compute pipeline during offline validation even when the runtime's wave-width selection can build it. The runtime queries D3D12 options on startup. The offline checker previously required a width override to make the same choice. This change reads `WaveLaneCountMax` from the device already opened for `translate --pipelines` and sets the translator's limit before workers start. Explicit `VICTORY_HOST_MAX_WAVE` and `VICTORY_HOST_WAVE` settings retain precedence in that order. Translation without pipeline creation continues to work without an adapter. If the query fails or returns zero, the translator keeps its existing default. ### Verification Compared clean main `4e17478` with `25e40e2` on Windows, RTX 5080, driver 32.0.16.2101. Both builds received the same four private compute inputs and `translate --validate --pipelines`. With `VICTORY_WAVE_WIDE=1`, all four inputs passed DXIL validation in every case. | Configuration | Pipelines created on main | Pipelines created with patch | | --- | ---: | ---: | | Automatic width | 0/4 | 2/4 | | Explicit 32 lanes | 2/4 (MAX_WAVE) | 2/4 (HOST_WAVE) | On the patched build, setting MAX_WAVE to 64 alongside HOST_WAVE=32 selected 64 and reproduced 0/4. Without the wide-wave opt-in both automatic configurations created 0/4 for this sample. The two remaining pipeline refusals are unresolved. The measured improvement concerns the offline checker's agreement with an explicit 32-lane target. Frame rate and gameplay were outside this comparison. Both workspace Clippy configurations passed with warnings denied, and the staged asset policy passed. Only source changes are included. AI-assisted implementation and testing with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:42 +00:00
Author
Owner

@⁠adriaespii on GitHub · 2026-11-24 21:43 UTC · original

Independent test run on commit 25e40e2 (AMD RDNA4):

  • Hardware: AMD Radeon RX 9070 (driver 32.0.32015.7029), AMD Ryzen 5 7600, Windows 11 Pro, Rust 1.98.1 (x86_64-pc-windows-msvc)
  • cargo clippy --workspace --all-targets -- -D warnings: 0 warnings
  • cargo test --workspace: 496 passed, 0 failed, 7 ignored (victory-shader: 210 passed, 0 failed, 2 ignored; victory-gpu: 110 passed, 0 failed, 1 ignored)
  • Not tested: offline retail shader pack run (no game files on this machine)

AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.

**@⁠adriaespii** on GitHub · 2026-11-24 21:43 UTC · [original](https://github.com/fxceless/victory-fork/pull/76#issuecomment-7145315703) Independent test run on commit `25e40e2` (AMD RDNA4): - **Hardware:** AMD Radeon RX 9070 (driver 32.0.32015.7029), AMD Ryzen 5 7600, Windows 11 Pro, Rust 1.98.1 (`x86_64-pc-windows-msvc`) - `cargo clippy --workspace --all-targets -- -D warnings`: 0 warnings - `cargo test --workspace`: 496 passed, 0 failed, 7 ignored (`victory-shader`: 210 passed, 0 failed, 2 ignored; `victory-gpu`: 110 passed, 0 failed, 1 ignored) - **Not tested:** offline retail shader pack run (no game files on this machine) *AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.*
Author
Owner

@⁠arminkhaleghirod on GitHub · 2026-11-24 23:31 UTC · original

RTX 4080, Windows 11. Ran translate --validate --pipelines over the full title on main 90228a7 + #61, with and without this PR:

Compute pipelines created Refused (The parameter is incorrect)
without 2,328 of 2,720 392
with this PR 2,694 of 2,718 24

So most of the offline refusals were the wave-width mismatch, not the translation. With the real 32-lane width, translation changes slightly, as it does in the game: +3 a first-lane read where not every lane runs, and 2 a wave sum of 16-bit floats … become 1 a lane mask exchanged …. Vertex/pixel and mesh are unchanged (all pipelines created).

**@⁠arminkhaleghirod** on GitHub · 2026-11-24 23:31 UTC · [original](https://github.com/fxceless/victory-fork/pull/76#issuecomment-7147497420) RTX 4080, Windows 11. Ran `translate --validate --pipelines` over the full title on main 90228a7 + #61, with and without this PR: | | Compute pipelines created | Refused (`The parameter is incorrect`) | |---|---|---| | without | 2,328 of 2,720 | 392 | | with this PR | 2,694 of 2,718 | 24 | So most of the offline refusals were the wave-width mismatch, not the translation. With the real 32-lane width, translation changes slightly, as it does in the game: +3 `a first-lane read where not every lane runs`, and 2 `a wave sum of 16-bit floats …` become 1 `a lane mask exchanged …`. Vertex/pixel and mesh are unchanged (all pipelines created).
This pull request has changes conflicting with the target branch.
  • apps/victory/src/main.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/76/head:github-bot/gh-76'
git switch 'github-bot/gh-76'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-76'
git switch 'github-bot/gh-76'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-76'
git switch 'github-bot/gh-76'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-76'
git switch 'main'
git merge --squash 'github-bot/gh-76'
git switch 'main'
git merge --ff-only 'github-bot/gh-76'
git switch 'main'
git merge 'github-bot/gh-76'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.