Purple foliage, blinds and skin: only the translucent material classes of the tiled lighting pass #3277

Open
opened 2026-11-26 15:39:03 +00:00 by Ym1r1710 · 4 comments
Ym1r1710 commented 2026-11-26 15:39:03 +00:00 (Migrated from github.com)
Contributor

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 ffe310eb plus 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

  • G-buffer is fine. Albedo of the blinds dumps as (202,202,196), skin as (164,114,87). Nothing purple before lighting.
  • It appears in the tiled lighting pass (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.
  • Skipping 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.
  • Blinds, the wall and skin stay purple with those two skipped, so they are other classes. BLURTRANSMISSION (0e44bcc54eaebe5f) and SKIN (01999631eaafe981) are the ones that read the extra G-buffer target at table offset 0x13c0; STANDARD and TRANSLUCENCY do not.
  • TRANSLUCENCY binds exactly the same resources as STANDARD. The only input difference I see is that it loads the 0xfa0 target with dmask 0xe (G,B,A) where STANDARD loads dmask 0xc. No unusual opcodes in the diff, just more math (extra v_exp/v_log/v_rsq/v_rcp, 16 v_readfirstlane vs 28).

Ruled out

  • The CGBJ ambient stand-in: with VICTORY_AMBIENT and VICTORY_AMBIENT_AIR unset it gets more purple (the stand-in was hiding part of it), and the island trees turn purple too.
  • BC7 rotation fix (#3111) and the SDWA sign-extend fix (#3124) both applied, no change.
  • All five refused compute shaders running (VICTORY_SCC_LOCAL_ANY=1), no change.
  • The stencil "inside a room" bit: it lines up with the house, but foliage outside has the same problem.
  • Stand-in formats: the only stand-ins in that frame are a 1280x720 B5G5R5A1 mask and the 1920x1080 R9G9B9E5 target, which already contains the purple.

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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6630099689 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3279). Originally posted by [Ym1r1710](https://github.com/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 ffe310eb plus 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** - G-buffer is fine. Albedo of the blinds dumps as (202,202,196), skin as (164,114,87). Nothing purple before lighting. - It appears in the tiled lighting pass (`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. - Skipping `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. - Blinds, the wall and skin stay purple with those two skipped, so they are other classes. `BLURTRANSMISSION` (0e44bcc54eaebe5f) and `SKIN` (01999631eaafe981) are the ones that read the extra G-buffer target at table offset 0x13c0; STANDARD and TRANSLUCENCY do not. - TRANSLUCENCY binds exactly the same resources as STANDARD. The only input difference I see is that it loads the 0xfa0 target with dmask 0xe (G,B,A) where STANDARD loads dmask 0xc. No unusual opcodes in the diff, just more math (extra v_exp/v_log/v_rsq/v_rcp, 16 v_readfirstlane vs 28). **Ruled out** - The CGBJ ambient stand-in: with VICTORY_AMBIENT and VICTORY_AMBIENT_AIR unset it gets *more* purple (the stand-in was hiding part of it), and the island trees turn purple too. - BC7 rotation fix (#3111) and the SDWA sign-extend fix (#3124) both applied, no change. - All five refused compute shaders running (VICTORY_SCC_LOCAL_ANY=1), no change. - The stencil "inside a room" bit: it lines up with the house, but foliage outside has the same problem. - Stand-in formats: the only stand-ins in that frame are a 1280x720 B5G5R5A1 mask and the 1920x1080 R9G9B9E5 target, which already contains the purple. 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.
Ingenioeren commented 2026-11-26 16:05:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Ingenioeren on 2026-11-26T15:44:59Z.


I checked the 0xc versus 0xe difference in isolation on public main 63bcca4. 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:

Mask 32-bit results Packed d16 result words
0xc B, A 0x38004200
0xe G, B, A 0x4200c000, 0x00003800

The 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_load and does not reproduce the full pixel-shader pass or its resource bindings. If you have the instruction details for the two 0xfa0 reads, the load mnemonic, d16 flag, 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 emitter

AI-assisted synthetic verification with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7196697037 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3279#issuecomment-7196697037). Originally posted by [Ingenioeren](https://github.com/Ingenioeren) on 2026-11-26T15:44:59Z. --- I checked the `0xc` versus `0xe` difference in isolation on public main `63bcca4`. 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: | Mask | 32-bit results | Packed `d16` result words | | --- | --- | --- | | `0xc` | B, A | `0x38004200` | | `0xe` | G, B, A | `0x4200c000`, `0x00003800` | The 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_load` and does not reproduce the full pixel-shader pass or its resource bindings. If you have the instruction details for the two `0xfa0` reads, the load mnemonic, `d16` flag, 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 emitter](https://github.com/Marvisak/VIctory/blob/63bcca43c6a00a758510398fa43096ce7e4f7df0/crates/victory-shader/src/emit/lower.rs#L9016-L9051) AI-assisted synthetic verification with OpenAI Codex.
Ym1r1710 commented 2026-11-26 17:13:26 +00:00 (Migrated from github.com)
Author
Contributor

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):

s_load_dwordx8 s[48:55], s[8:9], 0x000fa0
image_load v[17:18], [v51,v52], s[48:55] dmask:0xc dim:SQ_RSRC_IMG_2D unorm

TRANSLUCENCY (a9a0b814cd938ec0):

s_load_dwordx8 s[40:47], s[8:9], 0x000fa0
image_load v[25:27], [v53,v54], s[40:47] dmask:0xe dim:SQ_RSRC_IMG_2D unorm
  • Both are the NSA form (separate x/y registers), no d16, no a16, no lod.
  • The texture behind 0xfa0 is a 1280x720 render target, title format R8G8B8A8_UNORM (28) and the same on the host, so no stand-in format. Component mapping is the default one.
  • In my dump that target is mostly G = 0 (only ~7% of texels have a non-zero G), e.g. blinds/wall (128, 0, 181), a potted plant (127, 0, 185).

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7198675593 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3279#issuecomment-7198675593). Originally posted by [Ym1r1710](https://github.com/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): ``` s_load_dwordx8 s[48:55], s[8:9], 0x000fa0 image_load v[17:18], [v51,v52], s[48:55] dmask:0xc dim:SQ_RSRC_IMG_2D unorm ``` TRANSLUCENCY (a9a0b814cd938ec0): ``` s_load_dwordx8 s[40:47], s[8:9], 0x000fa0 image_load v[25:27], [v53,v54], s[40:47] dmask:0xe dim:SQ_RSRC_IMG_2D unorm ``` - Both are the NSA form (separate x/y registers), no d16, no a16, no lod. - The texture behind 0xfa0 is a 1280x720 render target, title format R8G8B8A8_UNORM (28) and the same on the host, so no stand-in format. Component mapping is the default one. - In my dump that target is mostly G = 0 (only ~7% of texels have a non-zero G), e.g. blinds/wall (128, 0, 181), a potted plant (127, 0, 185). 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.
advxrsary commented 2026-11-28 00:43:31 +00:00 (Migrated from github.com)
Author
Contributor

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):

Family Programs Log line while it is left out
CS_RaytracingResolve about 1,000, one for each material left out on purpose: shades ray-tracing hits without BVH
CS_ScreenProbes_ActivateRays a few left out on purpose: ray activation shader without BVH

Without 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):

VICTORY_RT_RESOLVE=1
VICTORY_ACTIVATE_RAYS=1

Then run victory shaders <rpf> and victory warm --used with the same switches. On our base warm --used makes 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 29d8dbf plus 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:

  • Before: pink, purple and green patches on the blinds, the leaves and the glass. They moved when the camera moved. After: none. One player judged this by eye in play. We have no matched captures of before and after.
  • We changed both switches together. We did not test each one alone.
  • We did not measure the frame rate on this base. One day earlier we made the same change on an AnyXboxX base. In the cell scene it cost about 2 fps at rest and nothing in motion: 22.2 / 16.6 before, 20.4 / 16.4 after.

What did not help (so that nobody repeats it):

Tried Result
CS_DeferredFallbacksAlpha_SkyProbe (b7953a05b189dfc1) left out no change
CS_GatherAlphaVBuffer_WithFar (36f04a4ed0ad1d9b) left out no change
The irradiance cache chain left out (gathers, shade, SH integration: 9 programs) no change
The title's check for a structure (+0x4fd8550) made to answer 0 more surfaces glow, the water is black
A cap on the second image of indirect light no change (tested by the author of that switch)

The tiled lighting programs are not the cause. TL_PS_PBR_MATERIAL_TRANSLUCENCY (a9a0b814cd938ec0) and BLURTRANSMISSION (0e44bcc54eaebe5f) take the same 222 root parameters and 24 samplers as STANDARD (1cd9bc634417a981). TRANSLUCENCY reads the same resources as STANDARD. These classes only use more of the light of the probes.

AI-assisted (Claude Code).

Upstream main does not leave these programs out by name: I found no such code in crates/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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7231145281 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3279#issuecomment-7231145281). Originally posted by [advxrsary](https://github.com/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`): | Family | Programs | Log line while it is left out | |---|---|---| | `CS_RaytracingResolve` | about 1,000, one for each material | `left out on purpose: shades ray-tracing hits without BVH` | | `CS_ScreenProbes_ActivateRays` | a few | `left out on purpose: ray activation shader without BVH` | Without 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): ``` VICTORY_RT_RESOLVE=1 VICTORY_ACTIVATE_RAYS=1 ``` Then run `victory shaders <rpf>` and `victory warm --used` with the same switches. On our base `warm --used` makes 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 29d8dbf plus 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:** - Before: pink, purple and green patches on the blinds, the leaves and the glass. They moved when the camera moved. After: none. One player judged this by eye in play. We have no matched captures of before and after. - We changed both switches together. We did not test each one alone. - We did not measure the frame rate on this base. One day earlier we made the same change on an AnyXboxX base. In the cell scene it cost about 2 fps at rest and nothing in motion: 22.2 / 16.6 before, 20.4 / 16.4 after. **What did not help** (so that nobody repeats it): | Tried | Result | |---|---| | `CS_DeferredFallbacksAlpha_SkyProbe` (b7953a05b189dfc1) left out | no change | | `CS_GatherAlphaVBuffer_WithFar` (36f04a4ed0ad1d9b) left out | no change | | The irradiance cache chain left out (gathers, shade, SH integration: 9 programs) | no change | | The title's check for a structure (+0x4fd8550) made to answer 0 | more surfaces glow, the water is black | | A cap on the second image of indirect light | no change (tested by the author of that switch) | The tiled lighting programs are not the cause. `TL_PS_PBR_MATERIAL_TRANSLUCENCY` (a9a0b814cd938ec0) and `BLURTRANSMISSION` (0e44bcc54eaebe5f) take the same 222 root parameters and 24 samplers as `STANDARD` (1cd9bc634417a981). `TRANSLUCENCY` reads the same resources as `STANDARD`. These classes only use more of the light of the probes. AI-assisted (Claude Code). Upstream `main` does not leave these programs out by name: I found no such code in `crates/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.
advxrsary commented 2026-11-28 00:47:10 +00:00 (Migrated from github.com)
Author
Contributor

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.

Made without the builder Shimmer on blinds, leaves, glass
neither family yes
CS_ScreenProbes_ActivateRays only (VICTORY_ACTIVATE_RAYS=1) gone
both families gone

So CS_ScreenProbes_ActivateRays is the one that matters. The 1,000 CS_RaytracingResolve programs are not necessary for this, and you do not have to warm them. Set only VICTORY_ACTIVATE_RAYS=1 on a base that leaves the activation out.

trustno1-coder/VIctory-NVIDIA main already makes the activation by default (the comment in pipeline/make.rs names 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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7231189946 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3279#issuecomment-7231189946). Originally posted by [advxrsary](https://github.com/advxrsary) on 2026-11-28T00:47:10Z. --- A correction to my comment above. We tested the two switches one at a time. | Made without the builder | Shimmer on blinds, leaves, glass | |---|---| | neither family | yes | | `CS_ScreenProbes_ActivateRays` only (`VICTORY_ACTIVATE_RAYS=1`) | gone | | both families | gone | So `CS_ScreenProbes_ActivateRays` is the one that matters. The 1,000 `CS_RaytracingResolve` programs are not necessary for this, and you do not have to warm them. Set only `VICTORY_ACTIVATE_RAYS=1` on a base that leaves the activation out. trustno1-coder/VIctory-NVIDIA `main` already makes the activation by default (the comment in `pipeline/make.rs` names 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).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory#3277
No description provided.