Repository navigation
Conversation
The exact wave64 form "without skips, scalars followed" was on or off for every program (VICTORY_WAVE_DEEP_SKIPS=0). It can now be turned off per program, by the hash the log names a shader by (hash prefixes, commas or spaces, with or without the `#` of `translate --list`): - VICTORY_WAVE_DEEP_SKIPS_NOT=<hash>,...: off for the listed programs; - VICTORY_WAVE_DEEP_SKIPS_ONLY=<hash>,...: off for every other program. Unset, nothing changes. The two lists are left out of the translator's fingerprint. A program a list keeps out of the form (a wave64 compute program on a 32-lane host) gets the build's key mixed with that decision instead, so a new list translates again only the programs it changes, and every other program keeps the build's key. VICTORY_WAVE_WHY's WAVE64-RETRY lines name the program (#hash); the offline translator passes the hash as well. On an RTX 4080 the form is wrong for the 14 CS_ShadowRenderTiled* programs and better for the other programs that take it; keeping just those 14 out gave the best picture (fxceless#62). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A4bpLmErkufJL3LGgfR561
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a 32-lane host, the exact wave64 form "without skips, scalars followed" could only be switched on or off for every program at once (
VICTORY_WAVE_DEEP_SKIPS). This switch sets it per program, using the hash the log names a shader by (prefixes are allowed, separated by commas or spaces, with or without#):VICTORY_WAVE_DEEP_SKIPS_NOT=<hash>,...turns the form off for the listed programs;VICTORY_WAVE_DEEP_SKIPS_ONLY=<hash>,...turns it off for every other program;VICTORY_WAVE_DEEP_SKIPS=0still turns it off for all of them.VICTORY_WAVE_WHYlines now name the program:WAVE64-RETRY #<hash> ..., so you can find which programs end in which form withVICTORY_HOST_WAVE=32 VICTORY_WAVE_WHY=1 victory translate --list. On4e17478, 22 programs ended in this form.Defaults and cache key. With the switches unset, translations are the same as on
main, and each key isbuild()alone, as onmain. The lists are not part oftranslation_fingerprint. When a list changes a program's decision, that program's key is the build key mixed with the decision (program_key), so editing a list re-translates only those programs. The warm-up uses the same key.Why. On an RTX 4080, keeping only the 14
CS_ShadowRenderTiled*programs out of this form gave the best cell picture; keeping all 22 out made the room darker (#62). #219 works on the cause; until it lands, the_NOTlist is a per-program workaround and a bisecting tool. #695 adds the same kind of per-program list for the wave-wide form.Tests
cargo test -p victory-shader --lib: 221 passed (new tests for the list parsing and the per-program decision).cargo test -p victory-gpu --features diagnostics --lib: 145 passed (new tests for the key, and for the lists staying out of the fingerprint).cargo xtask policy: ok.cargo clippy -p victory-shader -p victory-gpu --all-targets -- -D warnings: the only failures are three items in files this PR doesn't touch (resource.rsplaced_filler_twins,draw.rs:2387,indirect.rsdepth_written).AI-assisted (Claude Code).
🤖 Generated with Claude Code