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

Open
opened 2026-11-26 03:31:44 +00:00 by github-bot · 3 comments
Owner

@⁠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 ambient

Not 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, plus VICTORY_SHADER_OPT=59 and VICTORY_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):

  • Some trees are entirely magenta/purple — not a tint, the whole canopy. Other trees in the same view are correct.
  • White surfaces come out purple: the curtains at Jason's home are the clearest case; white cloth reads lavender.
  • Reflections are the right colours but wrong in strength — glossy surfaces are too bright and do not match the scene's light, indoors especially.
  • The light snaps at dusk: going from sunset to night the picture goes bright and then dark in a step rather than a fade. Subtle, not dramatic, but it is a step.

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:

dropped 287.8/frame without a host pipeline: a stage of the ray-tracing structure builder, which is off

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:

  • it cannot follow the sky, so at dusk the stand-in and the sky part company in one step — the snap;
  • it does not replace what glossy surfaces sample, so reflections are the resolve's leftovers held at whatever the scene had — too bright, unmatching;
  • and it leaves any material that takes its light through the resolve rather than through the diffuse term at all — hence whole canopies and white cloth going magenta rather than dark.

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, level gain * 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).

**@⁠0xmp3** on GitHub · 2026-11-26 01:38 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/71) **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** Not 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`, plus `VICTORY_SHADER_OPT=59` and `VICTORY_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): - **Some trees are entirely magenta/purple** — not a tint, the whole canopy. Other trees in the same view are correct. - **White surfaces come out purple**: the curtains at Jason's home are the clearest case; white cloth reads lavender. - **Reflections are the right colours but wrong in strength** — glossy surfaces are too bright and do not match the scene's light, indoors especially. - **The light snaps at dusk**: going from sunset to night the picture goes bright and then dark in a step rather than a fade. Subtle, not dramatic, but it is a step. 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: ``` dropped 287.8/frame without a host pipeline: a stage of the ray-tracing structure builder, which is off ``` `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**: - it cannot follow the sky, so at dusk the stand-in and the sky part company in one step — the snap; - it does not replace what glossy surfaces sample, so reflections are the resolve's leftovers held at whatever the scene had — too bright, unmatching; - and it leaves any material that takes its light through the resolve rather than through the diffuse term at all — hence whole canopies and white cloth going magenta rather than dark. **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, level `gain * 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:44 +00:00
Author
Owner

@⁠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.

**@⁠SkringBing** on GitHub · 2026-11-26 01:59 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/71#issuecomment-7180349006) How did you get past the initial startup crash? I'm on a 9070XT and cant even get to the startup animation.
Author
Owner

@⁠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=f16876929fa64f9f only — the activate-rays program has to be kept for rays to do anything):

  • the builder runs on RDNA 4: 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 session
  • the magenta is gone: trees, the curtains and the other white fabric all come out correct with the resolve running
  • cost: 119.7–123.3 ms / 8.1–8.4 fps against 129.6 ms median without RT; the attributed GPU time goes 0–5.5 → 8–16 ms, and copies 100 → 155 MB a frame (the builder's stores come back through the same path)

So 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.rs here already replaces the resolve: role() catches CS_ScreenProbes_TemporalResolve (and CS_CacheScreenSpaceRadiance, CS_AccumulateLocalLightInscatteringVolume) and after() runs the stand-in pass into LIGHT (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-AMD writes 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:

// Belobug ambient.rs
pub(crate) const REFLECTIONS: (u8, u32) = (1, 40);
// draw.rs: when the pipeline is the reflection pass, hold that UAV
Some(View::Unordered(r, ..)) if r != 0 => crate::ambient::hold(list, r as This),

hold() runs the same stand-in compute into that image with a held amount (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:08 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/71#issuecomment-7180505384) **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=f16876929fa64f9f` only — the activate-rays program has to be kept for rays to do anything): - **the builder runs on RDNA 4**: `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 session - **the magenta is gone**: trees, the curtains and the other white fabric all come out correct with the resolve running - cost: 119.7–123.3 ms / 8.1–8.4 fps against 129.6 ms median without RT; the attributed GPU time goes 0–5.5 → 8–16 ms, and copies 100 → 155 MB a frame (the builder's stores come back through the same path) So 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.rs` here already replaces the resolve: `role()` catches `CS_ScreenProbes_TemporalResolve` (and `CS_CacheScreenSpaceRadiance`, `CS_AccumulateLocalLightInscatteringVolume`) and `after()` runs the stand-in pass into `LIGHT (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-AMD` writes 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: ```rust // Belobug ambient.rs pub(crate) const REFLECTIONS: (u8, u32) = (1, 40); // draw.rs: when the pipeline is the reflection pass, hold that UAV Some(View::Unordered(r, ..)) if r != 0 => crate::ambient::hold(list, r as This), ``` `hold()` runs the same stand-in compute into that image with a `held` amount (`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.
Author
Owner

@⁠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 — the diag build, 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:

scripts\play.ps1 -Safe -Exe "<your copy's exe>" -More @{
  VICTORY_SHADER_OPT        = '59'
  VICTORY_SKIP_PIPELINES    = '39f0e9aeb156a61c,f16876929fa64f9f'
}

The -More matters: play.ps1 clears every VICTORY_* variable in the window before it starts the title, so setting them in your shell beforehand does nothing. If you have edited play.ps1 instead, add the two lines to its $settings hashtable.

What each one does:

  • VICTORY_SHADER_OPT=59 is the default 63 minus 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_PIPELINES drops two programs that still kill the compiler even with that pass off: 39f0e9aeb156a61c (CS_ScreenProbes_ActivateRays) and f16876929fa64f9f (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:

victory_gpu::pipeline: first bind pipeline=0x… frame=… stage="compute" size=… hash=<THIS ONE>
VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x85fd0f

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%).

**@⁠0xmp3** on GitHub · 2026-11-26 02:14 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/71#issuecomment-7180593720) @⁠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` — the `diag` build, 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: ```powershell scripts\play.ps1 -Safe -Exe "<your copy's exe>" -More @{ VICTORY_SHADER_OPT = '59' VICTORY_SKIP_PIPELINES = '39f0e9aeb156a61c,f16876929fa64f9f' } ``` The `-More` matters: `play.ps1` clears every `VICTORY_*` variable in the window before it starts the title, so setting them in your shell beforehand does nothing. If you have edited `play.ps1` instead, add the two lines to its `$settings` hashtable. What each one does: - **`VICTORY_SHADER_OPT=59`** is the default `63` minus 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_PIPELINES`** drops two programs that still kill the compiler even with that pass off: `39f0e9aeb156a61c` (`CS_ScreenProbes_ActivateRays`) and `f16876929fa64f9f` (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: ``` victory_gpu::pipeline: first bind pipeline=0x… frame=… stage="compute" size=… hash=<THIS ONE> VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x85fd0f ``` 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%).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#71
No description provided.