Scrub NaN on typed buffer stores too (VICTORY_NAN_SCRUB) #15
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tissma95 on 2026-11-27T03:22:35Z.
With
VICTORY_NAN_SCRUB=1(the launcher's default), the colours a pixel shader exports and float image stores already get NaN and infinities set to 0. Typed buffer stores of floats did not. A NaN that a compute pass writes through a typed buffer view could still reach the blur, the exposure and the history of the temporal upscaler.Change (
crates/victory-shader/src/emit/lower.rs, +26/−1):scrub_nan).integer_view) say the view is not of an integer format.VICTORY_NAN_SCRUBis already part of the shader cache key. The translator change itself renews the cache.Why: this follows the NaN guard in codec-d/cool_fox (after Neptune-VE). That guard covers typed buffer stores as well as colour exports and image stores, and with it the blotched, painted-looking walls and skin were reported gone there. The README of this fork lists a posterized "oil paint" look that appears in some runs. On an RTX 3060 Ti (Series S, 720p), I saw a pastel look and some inverted colours.
Tested:
cargo test -p victory-shader --libpasses (203 passed, 2 ignored).🤖 Generated with Claude Code
https://claude.ai/code/session_01EPTFUmv7kwA2Jtjutdp8Sh
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tissma95 on 2026-11-27T03:56:02Z.
Follow-up: on a later run the pastel look and the wrong vegetation colours came back with the same build and VICTORY_NAN_SCRUB=1, so the improvement I saw may have been a good run rather than this change. It is still correct as a scrub of typed stores, but I can't claim it fixes the oil-paint look.
Pull request closed