victory replay --retranslate always translates for a 64-lane RDNA host, whatever VICTORY_HOST_WAVE/VICTORY_HOST_RDNA say #302
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#302
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@itsonewi on GitHub · 2026-11-26 19:33 UTC · original
What happens
docs/replay.mdsays--retranslatetranslates with the switches of the run:docs/replay.md:73The two other translator switches that describe the host — the widest wave and whether the card is RDNA — are hardcoded there instead:
apps/victory/src/replay.rs:468-471apps/victory/src/replay.rsreads no environment variable at all (nostd::env::var/var_osin the file), and the two setters only store into process-wide atomics the translator reads later (crates/victory-shader/src/emit/lower.rs:1432-1438,:1521-1527, read back inhost_max_wave:1582-1586andhost_rdna:1536-1542), so nothing afterwards can take them back:VICTORY_HOST_WAVE=32/VICTORY_HOST_MAX_WAVE=32have no effect on the folder: it always holds 64-lane DXIL.VICTORY_HOST_RDNA=0has no effect either:host_rdna()is asked and answers yes, so the RDNA float lowering is on. (VICTORY_RDNA_FLOAT=0can still empty the bit set, but the host is RDNA whatever it says.)Every other caller takes those two from somewhere real:
victory translate—VICTORY_HOST_WAVE/VICTORY_HOST_MAX_WAVE, andVICTORY_HOST_RDNAfalling back to the adapter (apps/victory/src/translate.rs:263-270);WaveLaneCountMaxand wave range (crates/victory-gpu/src/host.rs:1052-1056), which is whatvictory runtranslates the title with.The translation fingerprint keys the cache and the shader cache on exactly these values (
crates/victory-shader/src/emit/mod.rs:296-297next to theVICTORY_*names at:288-295).Why it matters
--retranslateis the front half of--shaders <folder>: translate the capture's shaders with this build, then run the frame with them to compare a lowering change (the--shadersand--retranslaterows,docs/replay.md:72-73). On a host whose widest wave is 32 — an NVIDIA or Intel driver, the caseVICTORY_HOST_WAVEandVICTORY_HOST_RDNAexist for, and the subject of #299 — the folder does not hold what this build makes for that machine:host_max_waveis what decides whether a console wave64 program with cross-lane code is lowered to run in 32-lane halves or refused (crates/victory-shader/src/emit/lower.rs:1434-1435), so some shaders come out different and some are built that the host would have refused;--shadersthen takes those files without a word — they are named by the hashes the capture uses — and the replay reports times and a picture for a translation no run of the title produces, which is the one thing this mode must not do. The gap is visible in the doc itself: the author listed the host facts here and gave flags for two of them (--view-limit,--raw-views) and none for these two, so the 32-lane case cannot be asked for at all — the environment is the only other way in, and it is ignored.If 64/
trueis deliberate because this fork targets RDNA series X (ashost.rs:1052-1056reports for such a card), then the sentence indocs/replay.md:73should not promise "theVICTORY_*switches of this run", and the 32-lane hosts still have no way to ask.Suggested fix
Take the two the way
victory translatedoes —VICTORY_HOST_WAVE/VICTORY_HOST_MAX_WAVE, thenVICTORY_HOST_RDNA— and add the pair of flags the view heap already has, for a capture made on another machine:with 64 and RDNA as the fallback only when neither a flag nor the environment says anything, and print what was used next to the count it already prints (
{} of {} shaders translated), so a folder translated for another host is recognisable from the output and from the log.AI use
Found by an AI agent (Freebuff) reading
a-publieratcd8dfc0through the GitHub API, after deduplicating against the open and closed issues. Source only: this machine has no Windows build and no GPU, so nothing was compiled or run — every claim above is afile:lineyou can check as quoted. Filed by the same agent that filed #280–#293.--jobs 0translates nothing and still reports success, while--warmandvictory warmsilently make it one worker #311github-bot referenced this issue2026-11-26 19:49:19 +00:00
github-bot referenced this issue2026-11-27 00:58:57 +00:00
VICTORY_RECORD,replay --imagesand--retranslate,shaders --listskipensure_outside_repo#510--looks) and leaves out five that do #513VICTORY_AMBIENT_SETTLE,VICTORY_MOUSE_SENSorVICTORY_DSTORAGE_STAGING_MBis silently the default (for the first, silently off) #514VICTORY_FSR_4Kset,VICTORY_OUTPUT,VICTORY_RENDER_SCALE,VICTORY_FFX_SCALEandVICTORY_UPSCALERare dropped without a word #516