Purple foliage, blinds and skin: only the translucent material classes of the tiled lighting pass #3277
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Marvisak/VIctory. Originally posted by Ym1r1710 on 2026-11-26T15:39:03Z.
Foliage, blinds/curtains and skin come out purple in the world. I spent a few runs narrowing it down; posting what I have so nobody repeats it.
Setup: RTX 5080, driver 621.24, Windows 11. Build is upstream main at
ffe310ebplus the CGBJ patch set (it is the only base I have that lights the world properly), diag profile,--console series-s. Spot: Jason's house balcony right after the first mission, deterministic camera, so frame world+672 is the same shot every run.What it looks like: vertical blinds behind the glass door and the house wall around them are pink/purple, island trees and potted plants are purple, faces in cutscenes go purple on and off.
Where it comes from
VS_TiledLighting_fdbb4ddc, vertex 25ebc92075b62822), which draws one pixel shader per material class into the 1280x720 RGBA16F light target.PS_PBR_MATERIAL_STANDARD(1cd9bc634417a981) surfaces look right in the same frame.PS_PBR_MATERIAL_TRANSLUCENCY_42ad1e50(a9a0b814cd938ec0) and its NoDir twin (1702071f810bed34) with VICTORY_SKIP_PIPELINES makes the trees disappear together with the purple. So foliage is that class.BLURTRANSMISSION(0e44bcc54eaebe5f) andSKIN(01999631eaafe981) are the ones that read the extra G-buffer target at table offset 0x13c0; STANDARD and TRANSLUCENCY do not.Ruled out
My guess is something these "light through thin surfaces" shaders share and STANDARD doesn't, rather than data. Happy to run a build or a switch on this spot if someone has an idea. A diag build with VICTORY_DUMP_TARGETS reproduces it in about 90 seconds.
Imported from Marvisak/VIctory. Originally posted by Ingenioeren on 2026-11-26T15:44:59Z.
I checked the
0xcversus0xedifference in isolation on public main63bcca4. A synthetic compute shader loaded an RGBA32F texel(1.5, -2.0, 3.0, 0.5)through a descriptor table and copied the destination registers to a readback buffer. On both an RX 6750 XT and Windows WARP, all 32 lanes returned:d16result words0xc0x380042000xe0x4200c000,0x00003800The guard values in the unwritten registers survived in every case. The basic channel selection and packing agreed with the expected order. This fixture covers a plain
image_loadand does not reproduce the full pixel-shader pass or its resource bindings. If you have the instruction details for the two0xfa0reads, the load mnemonic,d16flag, view format and channel swizzle would help make the synthetic fixture closer to those reads. No shader dump needed. Channel selection and packing in the emitterAI-assisted synthetic verification with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by Ym1r1710 on 2026-11-26T17:13:26Z.
Thanks for checking that. Here are the two loads as they are in the containers (both pixel shaders are wave32, the host reports 32 lanes min/max on this card):
STANDARD (1cd9bc634417a981):
TRANSLUCENCY (a9a0b814cd938ec0):
So your result matches what I'd expect, and I don't think the 0xe read itself is the problem anymore. More likely the extra math that consumes it. I'll try to narrow it down further on my side and post if I find the instruction.
Imported from Marvisak/VIctory. Originally posted by advxrsary on 2026-11-28T00:43:31Z.
Same spot and same card here: the balcony of Jason's house, the blinds behind the glass door, an RTX 5080. On our base the cause was not in the tiled lighting pass. I write it down, because it can save others the search that this issue started.
Cause on our build: the layer left two program families of the title out by name while the ray-tracing structure builder is off. With both made again, the shimmer is gone.
The two families (in
crates/victory-gpu/src/pipeline/make.rs):CS_RaytracingResolveleft out on purpose: shades ray-tracing hits without BVHCS_ScreenProbes_ActivateRaysleft out on purpose: ray activation shader without BVHWithout the builder, these programs still do the title's own work. Each ray finds nothing, the program takes its miss branch and writes the sky's light into the light probes. If the layer leaves the programs out, nothing writes the probes. The probes keep the bytes that their memory had before. Surfaces that take much of their light from the probes then show those bytes: leaves, thin blinds, glass, bottles, a watch face. The colours change with the camera angle.
What to set (no rebuild on a base that has these switches):
Then run
victory shaders <rpf>andvictory warm --usedwith the same switches. On our basewarm --usedmakes the programs that the switches let in. Here it made 1,009 pipelines in 311 s (12 processes, median 3.6 s each). If you do not warm them, the first minutes in the world compile them, and the shimmer stays until the queue is empty.Tested on: RTX 5080 16 GB, driver 621.24, Ryzen 7 9800X3D, 32 GB, Windows 11, Series X profile, 2560x1440, DLSS Quality. Base: trustno1-coder/VIctory-NVIDIA at
29d8dbfplus open pull requests of that repository. Spot: the balcony of Jason's house and the rooms behind the glass door (the vertical blinds, the potted plants, a bottle in the kitchen).What the test shows and what it does not:
What did not help (so that nobody repeats it):
CS_DeferredFallbacksAlpha_SkyProbe(b7953a05b189dfc1) left outCS_GatherAlphaVBuffer_WithFar(36f04a4ed0ad1d9b) left outThe tiled lighting programs are not the cause.
TL_PS_PBR_MATERIAL_TRANSLUCENCY(a9a0b814cd938ec0) andBLURTRANSMISSION(0e44bcc54eaebe5f) take the same 222 root parameters and 24 samplers asSTANDARD(1cd9bc634417a981).TRANSLUCENCYreads the same resources asSTANDARD. These classes only use more of the light of the probes.AI-assisted (Claude Code).
Upstream
maindoes not leave these programs out by name: I found no such code incrates/victory-gpu/src/pipeline/make.rs. The bases that came from the CGBJ renderer do (trustno1-coder/VIctory-NVIDIA, fxceless/victory-fork, TaynanGT/Vice-Tay, LooperSalty/AnyXboxX). If your build has the CGBJ patch set, search the log for the two lines in the table. If the programs are missing for another reason (refused, not translated, dropped while their pipeline is made), the probes keep old bytes in the same way.Imported from Marvisak/VIctory. Originally posted by advxrsary on 2026-11-28T00:47:10Z.
A correction to my comment above. We tested the two switches one at a time.
CS_ScreenProbes_ActivateRaysonly (VICTORY_ACTIVATE_RAYS=1)So
CS_ScreenProbes_ActivateRaysis the one that matters. The 1,000CS_RaytracingResolveprograms are not necessary for this, and you do not have to warm them. Set onlyVICTORY_ACTIVATE_RAYS=1on a base that leaves the activation out.trustno1-coder/VIctory-NVIDIA
mainalready makes the activation by default (the comment inpipeline/make.rsnames its issue 2 and gives the same cause: the probes kept old values). Our base was older than that change.Same machine and same spot as before. One player judged it by eye in play.
AI-assisted (Claude Code).