Purple foliage, blinds and skin: only the translucent material classes of the tiled lighting pass #3279
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3279
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?
@Ym1r1710 on GitHub · 2026-11-26 15:39 UTC · original
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.
@Ingenioeren on GitHub · 2026-11-26 15:44 UTC · original
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.
@Ym1r1710 on GitHub · 2026-11-26 17:13 UTC · original
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.