RX 9070 XT (RDNA 4) on 0a43566: magenta on trees and white fabric, reflections too bright, and the light snaps at dusk - one cause, the resolve pass and a constant ambient #71
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#71
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?
@0xmp3 on GitHub · 2026-11-26 01:38 UTC · original
RX 9070 XT (RDNA 4) on
0a43566: magenta on trees and white fabric, reflections too bright, and the light snaps at dusk — one cause, the resolve pass and a constant ambientNot a crash, not a frame-time problem — this is about the picture on a card where the tree otherwise runs well. Filing it because it is the main thing wrong on this card now, and because I think the three symptoms are one cause.
Machine: RX 9070 XT 16 GB (gfx1201), driver 32.0.32015.7029, Ryzen 5 5600, 64 GB, Windows 11 26300, Series X.
Build:
0a43566,diag+ diagnostics.Switches:
scripts\play.ps1 -Safe, plusVICTORY_SHADER_OPT=59andVICTORY_SKIP_PIPELINES=39f0e9aeb156a61c,f16876929fa64f9f— those two are for the startup crash in #44, and unrelated to this report; I have not run with-RayTracing.What it looks like (in words only, no screenshots):
Everything else is fine at that moment: geometry, water, people, vehicles, HUD, shadows from sun and lamps.
Why I think it is one cause. The title's ray-traced resolve never runs (no structure builder), so anything shaded through it reads its uninitialised output, and magenta is this title's colour for that. The log says the passes are dropped, not failing:
VICTORY_AMBIENT(0.8 here) stands in for the indirect diffuse, which is why most of the world is lit at all. But it is a constant:The same artifact and a fix already exist in the Belobug tree (
Belobug/VIctory-Belobug-AMD), which documents "bright magenta on leaves, cloth and paper" and adds, on top of the constant:VICTORY_AMBIENT_SKY— the ambient follows the sky dome the title draws for its reflections, levelgain * mean^power + least, so night, dawn and noon need no hand-set level (this is what removes the step at dusk);VICTORY_AMBIENT_REFLECT— reflections held to that constant after the last reflection pass, instead of the resolve's leftovers (this is what fixes the over-bright, mismatched reflections);VICTORY_AMBIENT_SHADE— less of it in creases and under objects, from the scene's depth.I have that implementation locally and I am happy to port the three behind switches and send a patch — or to stay out of it if you would rather do it your way. Either way I can A/B it here on RDNA 4 and report what it does to the frame time, since this card runs your tree at ~7.7 fps median in the open world (490 world frames, peak 15,288 draws) with the picture otherwise correct.
One thing I am not claiming: I have not proven which of the three symptoms is the reflection term and which is the diffuse term — I am reading that off the shape of the artifact and off the other tree's write-up, not off a capture. If you want a picture, tell me which of your capture switches to use and I will keep it out of this issue (asset policy).
@SkringBing on GitHub · 2026-11-26 01:59 UTC · original
How did you get past the initial startup crash? I'm on a 9070XT and cant even get to the startup animation.
@0xmp3 on GitHub · 2026-11-26 02:08 UTC · original
Confirmed: the magenta is the unrun resolve, and the missing piece is the reflections image, not the diffuse one
Ran with
-RayTracing(builder on,VICTORY_SKIP_PIPELINES=f16876929fa64f9fonly — the activate-rays program has to be kept for rays to do anything):the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53— 53 of 53, zero faults, no device removal in the sessionSo the colour problem is a lighting problem in exactly the sense the issue guessed, and the resolve's output is what carries it.
The part that narrows it down.
ambient.rshere already replaces the resolve:role()catchesCS_ScreenProbes_TemporalResolve(andCS_CacheScreenSpaceRadiance,CS_AccumulateLocalLightInscatteringVolume) andafter()runs the stand-in pass intoLIGHT (1, 176)/RADIANCE (1, 16)/AIR (1, 32). What it does not touch is the reflections image the same table holds.Glossy surfaces — leaves, cloth, glass, painted metal — sample reflections, not the diffuse light, which is why whole canopies and white curtains go magenta while most of the world is lit correctly. It is also why the reflections look "bright and unmatching" rather than merely wrong: they are the resolve's leftovers combined with the constant.
Belobug/VIctory-Belobug-AMDwrites that image too, and its table offsets are the same as yours (LIGHT (1, 176),DEPTH (0, 464)), so the slot should be(root parameter 1, dword 40)in the resolve's table:hold()runs the same stand-in compute into that image with aheldamount (VICTORY_AMBIENT_REFLECT, 0.5 there), which is what makes the reflections agree with the ambient instead of the resolve.Not a bug report about RT: with RT on, reflections flash bright/dark and the picture smears. That reads as the resolve's temporal accumulation with 125 ms of history — at 8 fps the denoiser is comparing against a frame from an eighth of a second ago, so motion ghosts and rejected history flashes. I would expect that to behave at frame rates it was designed for, and I am not proposing anything for it.
What I can do next, whichever you prefer: (a) leave it here — the pointers above are enough for someone who owns the tree, or (b) implement the reflections hold behind a switch in my clone and send it as a patch with before/after numbers on this card. I have both trees locally, so either is cheap for me; your call which is less trouble for you.
@0xmp3 on GitHub · 2026-11-26 02:14 UTC · original
@SkringBing — here is exactly what works on mine (RX 9070 XT, driver 32.0.32015.7029, Ryzen 5 5600, Windows 11 26300).
Build:
cargo build --locked --profile diag -p victory --features diagnostics— thediagbuild, not release; the switches below are only read there.Run with two things set, because the crash is AMD's compiler faulting on specific emitted shaders rather than on anything about startup:
The
-Morematters:play.ps1clears everyVICTORY_*variable in the window before it starts the title, so setting them in your shell beforehand does nothing. If you have editedplay.ps1instead, add the two lines to its$settingshashtable.What each one does:
VICTORY_SHADER_OPT=59is the default63minus bit 4 ("one instruction for one value"). That pass writes DXIL AMD's RDNA 4 compiler faults on (0xc0000005 at amdxc64.dll+0x85fd0f), and with it off the world loads. It costs a little shader optimisation, nothing else.VICTORY_SKIP_PIPELINESdrops two programs that still kill the compiler even with that pass off:39f0e9aeb156a61c(CS_ScreenProbes_ActivateRays) andf16876929fa64f9f(a compute program first needed in the police chase).If it crashes anyway, it is one more program and you can find it. The last pipeline the log names before the fault is the one being created:
Add that hash to the comma-separated skip list and relaunch. It is a converging loop: each new area can hand you one, and every hash is worth pasting into this thread so we get a shared list instead of everybody discovering the same ones.
What you should see once it runs (my numbers,
-Safe): menus 30 fps; world 7.7 fps median over 573 world frames at up to 15,288 draws; the prologue and the whole first mission play through, including the boat; saves write and survive a quit and relaunch. Expect a couple of minutes of pipeline building on the first launch after a change.What is still wrong, so it is not a surprise: magenta trees and lavender white cloth (that is this issue — it is the reflections image, not the diffuse one), texture pop-in, and the frame is CPU-bound here (GPU sits at ~5%).
github-bot referenced this issue2026-11-26 06:12:47 +00:00