Shaders: choose the wave64 deep-skips form per program #779
No reviewers
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/fxceless--victory-fork!779
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-779"
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?
@Xeltax on GitHub · 2026-11-25 07:25 UTC · original
Xeltax:vicky/per-program-deep-skips→main· +325 −25 · 4 files · 1 commits · openOn 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
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.Merge
Merge the changes and update on Forgejo.