Honor both host wave override names in translate and translate --warm #139

Manually merged
github merged 1 commit from github-bot/gh-139 into main 2026-11-26 08:21:47 +00:00 AGit
Owner

@⁠feanorsun on GitHub · 2026-11-26 06:57 UTC · original
feanorsun:fix/translate-host-wave-alias → main · +134 −24 · 6 files · 1 commits · merged 2026-11-26 08:17 UTC

Closes #27

Resolve the host wave width once before dispatching translate or translate --warm. Previously only ordinary translation read VICTORY_HOST_MAX_WAVE, and that second read could replace VICTORY_HOST_WAVE. Opening the Windows host during warm-up could then replace an explicit width with the adapter's WaveLaneCountMax.

Both modes now prefer a valid VICTORY_HOST_WAVE and fall back to the compatibility alias VICTORY_HOST_MAX_WAVE. The command reports a conflict once, naming both values and the selected one. Parsing still accepts a u32, including zero for an unknown width. With neither value valid, ordinary translation keeps its default and warm-up follows the adapter.

Each translate worker installs its explicit width before its first shader. Lowering and the wave field in the existing cache fingerprint read that worker's effective width. The adapter probe still publishes the hardware capability to other threads.

Verification

Tested on Windows with CPU-only tests and a simulated adapter. The same regression assertion read 64 instead of 32 with unified parsing alone. With the worker override it read 32 after the simulated first probe returned 64. The control without an override read 64. The test also covers invalid values, matching and conflicting values, an explicit zero, and a width of 48.

Each exact filter was first listed with -- --exact --list and returned one test. The three commands below each ran one test and passed (3 passed, 0 failed). No GPU or game tests were run.

cargo test --offline --locked -j 1 -p victory --test translate_host_wave alias_survives_first_host_probe -- --exact --test-threads=1
cargo test --offline --locked -j 1 -p victory --test translate_host_wave reports_alias_and_conflict_at_selection -- --exact --test-threads=1
cargo test --offline --locked -j 1 -p victory --bin victory translate::tests::emit_dump_inside_repo_is_refused -- --exact --test-threads=1
**@⁠feanorsun** on GitHub · 2026-11-26 06:57 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/139) `feanorsun:fix/translate-host-wave-alias` → `main` · +134 −24 · 6 files · 1 commits · merged 2026-11-26 08:17 UTC Closes #27 Resolve the host wave width once before dispatching `translate` or `translate --warm`. Previously only ordinary translation read `VICTORY_HOST_MAX_WAVE`, and that second read could replace `VICTORY_HOST_WAVE`. Opening the Windows host during warm-up could then replace an explicit width with the adapter's `WaveLaneCountMax`. Both modes now prefer a valid `VICTORY_HOST_WAVE` and fall back to the compatibility alias `VICTORY_HOST_MAX_WAVE`. The command reports a conflict once, naming both values and the selected one. Parsing still accepts a `u32`, including zero for an unknown width. With neither value valid, ordinary translation keeps its default and warm-up follows the adapter. Each translate worker installs its explicit width before its first shader. Lowering and the wave field in the existing cache fingerprint read that worker's effective width. The adapter probe still publishes the hardware capability to other threads. ## Verification Tested on Windows with CPU-only tests and a simulated adapter. The same regression assertion read 64 instead of 32 with unified parsing alone. With the worker override it read 32 after the simulated first probe returned 64. The control without an override read 64. The test also covers invalid values, matching and conflicting values, an explicit zero, and a width of 48. Each exact filter was first listed with `-- --exact --list` and returned one test. The three commands below each ran one test and passed (3 passed, 0 failed). No GPU or game tests were run. ```text cargo test --offline --locked -j 1 -p victory --test translate_host_wave alias_survives_first_host_probe -- --exact --test-threads=1 cargo test --offline --locked -j 1 -p victory --test translate_host_wave reports_alias_and_conflict_at_selection -- --exact --test-threads=1 cargo test --offline --locked -j 1 -p victory --bin victory translate::tests::emit_dump_inside_repo_is_refused -- --exact --test-threads=1 ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 07:02:36 +00:00
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 07:55 UTC · original

Merged into main in the next push (tests pass); thanks.

**@⁠avatarmanz** on GitHub · 2026-11-26 07:55 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/139#issuecomment-7185983776) Merged into main in the next push (tests pass); thanks.
github manually merged commit 4dde9d57c9 into main 2026-11-26 08:21:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.