shader: LDS bounds on by default, NaN scrub and HDR clamp as options (upstream 42a334d, b85c30b, 34dcb01) #80
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!80
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-80"
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?
@Kal0s-design on GitHub · 2026-12-05 22:59 UTC · original
Kal0s-design:port/lds-bounds→main· +381 −15 · 10 files · 4 commits · openThree translator passes from upstream ReVIctory (42a334d, b85c30b, 34dcb01, authors kept), plus a version bump of my own.
LDS bounds is the one that matters by default. The console reads 0 outside a program's shared memory and drops writes there, while on the host group-shared memory past the program's size is undefined and holds the translator's own exchange and counter dwords. The lowering took every address as inside. Now a place past the title's SharedMemorySizeInDW reads 0, its writes and atomics are left out, and an atomic outside returns 0. The upstream message names the cloud pass's tile sort as a case, where 31 of 32 groups clear and read far behind their 2.5 KiB. It is on by default as upstream has it, and VICTORY_LDS_BOUNDS=0 goes back to the old behaviour.
NaN scrub (VICTORY_NAN_SCRUB) and HDR clamp (VICTORY_HDR_CLAMP) are off by default, so they change nothing unless set. They are there for anyone chasing black blobs, glitter or white spikes from 16-bit float targets. Each adds itself to the shader cache key only when set, so default keys stay as they were.
The bump. LDS bounds changes the default translation of every shader that touches LDS, but the cache only keys on it when it is off, so without a bump the cache would hand back translations made without the bounds. Upstream didn't bump for it. TRANSLATOR_VERSION goes from 20 to 21 here, which means one more retranslation after #65's.
On top of main as of #67, clippy -D warnings is clean in both of the Lint workflow's runs, and victory-shader passes apart from two tests that fail the same way on main without these commits (single_instructions_give_what_rdna2_gives and the float-view d16 one explained in #65). victory-gpu's shader_cache tests pass. Since then main only gained launcher changes, and the branch is rebased on it. I haven't seen the difference in game.
AI-assisted: yes
🤖 Generated with Claude Code
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.