Reflections: the alpha layer's miss program runs again (blocks on glass) #2534
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2534"
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 unueberlegt on 2026-11-29T13:55:06Z.
What this changes
The reflections' miss program is left out only for opaque surfaces now. The alpha layer's (glass) runs again, kept as water's is. The opaque skip that fixed the white grain on floors stays.
Why
e2d7854eleft the program out for opaque and transparent surfaces, keeping only water's running, "without them its reflections hold earlier frames' bytes". Glass is the same case: its screen-space march rarely resolves what it looks at. With the program left out, a window's unresolved rays have no fill at all — no sky (the skip), and no estimate either (ambient(Role::Miss)never runs; the skip returns before it) — so the reflection target holds earlier frames' bytes: flickering rectangular red/green/blue/purple blocks, #2440's screenshots.Why it only appeared between
f9dfb76and829188e9The skip has been in the tree since
e2d7854e, whichf9dfb76already contains. But its surface-layer lookup only resolves the miss program's first root constant since the root bindings of #1204 changed the slots — onf9dfb76the lookup failed, every dispatch ran the program, and glass was given the sky. #2440's own logs confirm it: thef9dfb76session has no "miss program left out" line (the program ran); on829188e9it fires in every stock run. Their run matrix agrees: the three runs where the line fired show the blocks, the threeVICTORY_RAYMISS_KEEP=1runs (line absent) show clean windows.VICTORY_RAYMISS_KEEP=1stays the escape hatch for everything, as before.Testing
miss_program_kept_tests::only_opaque_is_left_out: opaque left out (the white-grain fix), alpha and water kept, an unknown layer runs the program.cargo test -p victory-gpu --lib: 915 passed, one failure (a_change_is_saved_at_once) is the known parallel-run flake class, 2/2 green in isolation.Fixes #2440
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by unueberlegt on 2026-11-29T14:03:31Z.
Closing this: #2464 built exactly this change (a local build that runs the alpha layer's program and leaves out only MISS_OPAQUE) and glass stays noisy there — the layer constants do not split glass from the floors, since one dispatch of the miss program fills the whole half-size target with sky before CS_ResolveScreenSpace writes over it. I have corrected my comment on #2440 accordingly. The direction worth taking is #2464's own (its section 1): give the dispatch's output MISS_LIGHT zero or the stand-in estimate instead of leaving the dispatch out, so the texels the screen-space resolve does not cover hold "no reflection" instead of earlier frames' bytes. The opaque skip that fixed the floors stays as it is.
Pull request closed