Use the test adapter's wave width for offline pipeline checks #76
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/76"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by dervoxx on 2026-11-24T21:16:29Z.
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
WaveLaneCountMaxfrom the device already opened fortranslate --pipelinesand sets the translator's limit before workers start. ExplicitVICTORY_HOST_MAX_WAVEandVICTORY_HOST_WAVEsettings 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
4e17478with25e40e2on Windows, RTX 5080, driver 32.0.16.2101. Both builds received the same four private compute inputs andtranslate --validate --pipelines. WithVICTORY_WAVE_WIDE=1, all four inputs passed DXIL validation in every case.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.
Imported from fxceless/victory-fork. Originally posted by adriaespii on 2026-11-24T21:43:59Z.
Independent test run on commit
25e40e2(AMD RDNA4):x86_64-pc-windows-msvc)cargo clippy --workspace --all-targets -- -D warnings: 0 warningscargo test --workspace: 496 passed, 0 failed, 7 ignored (victory-shader: 210 passed, 0 failed, 2 ignored;victory-gpu: 110 passed, 0 failed, 1 ignored)AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.
Imported from fxceless/victory-fork. Originally posted by arminkhaleghirod on 2026-11-24T23:31:31Z.
RTX 4080, Windows 11. Ran
translate --validate --pipelinesover the full title on main90228a7+ #61, with and without this PR:The parameter is incorrect)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 2a wave sum of 16-bit floats …become 1a lane mask exchanged …. Vertex/pixel and mesh are unchanged (all pipelines created).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.