Open-world white-outs since 9300875..f9dfb76; gone with VICTORY_HDR_CLAMP=0, VICTORY_COMPOSE_NAN=0, VICTORY_ALIAS_TARGETS=0 (RTX 5070 Ti, Series X) #1889

Closed
opened 2026-11-29 01:44:55 +00:00 by Yoshi-OOF · 3 comments
Yoshi-OOF commented 2026-11-29 01:44:55 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-OOF on 2026-11-29T01:44:55Z.


Summary

After pulling from 9300875 to f9dfb76 (v2026.11.28.03-384), the open world randomly goes almost fully white, both by day and at night: the whole picture turns white with sun or light rays at the bottom, then fades back. It happened within one to three minutes in each session. With these three switches set to 0, it has not come back so far:

VICTORY_HDR_CLAMP=0
VICTORY_COMPOSE_NAN=0
VICTORY_ALIAS_TARGETS=0

I have not bisected which of the three does it.

Setup

  • RTX 5070 Ti 16 GB, driver 621.24, i7-14700K, 64 GB RAM, Windows 11 build 26300.
  • Built from source, diag profile, at f9dfb76.
  • Started with scripts/play-foxhound.ps1: Series X, 2560x1440 output, DLSS Quality, DLSS frame generation 6x, ray tracing off.
  • Extra switches in both runs: VICTORY_AMBIENT_ONCE=1, VICTORY_PROBE_NEUTRAL=0.3. neutral probe replacement recorded never appears in the log.
  • Disclosure: the white-outs were seen with a VIper-patched copy of the 1.0.2.1 executable. It adds a .viper section and a hook; 52 bytes differ inside the original image, and the 10 places native_1440p.rs patches are byte-identical to retail. To get the Series X 1440p path on that copy, I removed the three RETAIL_BUILD hash ensure!s in native_1440p.rs locally. The stock-byte checks stay. Random bright light flashes also showed up with the stock executable and the unmodified source.

What happens

  • In the world, at about 9,000 draws a frame, the picture goes almost white for a moment, then fades back.
  • Nothing is logged at that moment: no WARN or ERROR, no device removal, no refused pipeline.
  • 9300875 had no such white-outs for me.

A/B

Run Switches White-outs
A defaults + AMBIENT_ONCE=1, PROBE_NEUTRAL=0.3 yes, about a minute into the world, and again later
B A + HDR_CLAMP=0, COMPOSE_NAN=0, ALIAS_TARGETS=0 none in two sessions of a few minutes each

Run A's log shows both mechanisms active:

INFO victory_gpu::alias_rt: physical-page transient RT aliasing active aliased_rts=1 ...
INFO victory_gpu::alias_rt: physical-page transient RT aliasing active aliased_rts=4 ...
INFO victory_gpu::host: display output: compositing two planes (overlay active) frame=1 width=2560 ...

DLSS and frame generation run normally in both: DLSS per frame: 1.00 upscalings by DLSS, 0.00 failed and DLSS Frame Generation: 25 presents with it on, 0 off, 150 frames shown by it (status 0x0).

Suspects (from reading the range, not verified)

  • 2e855b0 "port NaN-safe compose clamp and pixel HDR range clamp":
    • clamp_hdr in emit/lower.rs maps a NaN pixel export to 65024 instead of 0, which could feed bloom or exposure;
    • clean1 in compose.rs maps NaN to 1.0.
  • 6ba7fa8 "physical-page transient RT aliasing": the alias barrier in HostList::transition is only inserted when wanted & WRITE_STATES != 0.

Possibly the same thing as #1387 (night driving white-out) and #692 (a white frame).

Not done

  • No bisect among the three switches.
  • No frame capture.
  • Logs contain local paths, so they are not attached; I can post trimmed excerpts.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6673566143 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1889). Originally posted by [Yoshi-OOF](https://github.com/Yoshi-OOF) on 2026-11-29T01:44:55Z. --- ### Summary After pulling from `9300875` to `f9dfb76` (v2026.11.28.03-384), the open world randomly goes almost fully white, **both by day and at night**: the whole picture turns white with sun or light rays at the bottom, then fades back. It happened within one to three minutes in each session. With these three switches set to `0`, it has not come back so far: ``` VICTORY_HDR_CLAMP=0 VICTORY_COMPOSE_NAN=0 VICTORY_ALIAS_TARGETS=0 ``` I have not bisected which of the three does it. ### Setup - RTX 5070 Ti 16 GB, driver 621.24, i7-14700K, 64 GB RAM, Windows 11 build 26300. - Built from source, `diag` profile, at `f9dfb76`. - Started with `scripts/play-foxhound.ps1`: Series X, 2560x1440 output, DLSS Quality, DLSS frame generation 6x, ray tracing off. - Extra switches in both runs: `VICTORY_AMBIENT_ONCE=1`, `VICTORY_PROBE_NEUTRAL=0.3`. `neutral probe replacement recorded` never appears in the log. - **Disclosure:** the white-outs were seen with a VIper-patched copy of the 1.0.2.1 executable. It adds a `.viper` section and a hook; 52 bytes differ inside the original image, and the 10 places `native_1440p.rs` patches are byte-identical to retail. To get the Series X 1440p path on that copy, I removed the three `RETAIL_BUILD` hash `ensure!`s in `native_1440p.rs` locally. The stock-byte checks stay. Random bright light flashes also showed up with the stock executable and the unmodified source. ### What happens - In the world, at about 9,000 draws a frame, the picture goes almost white for a moment, then fades back. - Nothing is logged at that moment: no WARN or ERROR, no device removal, no refused pipeline. - `9300875` had no such white-outs for me. ### A/B | Run | Switches | White-outs | |---|---|---| | A | defaults + `AMBIENT_ONCE=1`, `PROBE_NEUTRAL=0.3` | yes, about a minute into the world, and again later | | B | A + `HDR_CLAMP=0`, `COMPOSE_NAN=0`, `ALIAS_TARGETS=0` | none in two sessions of a few minutes each | Run A's log shows both mechanisms active: ``` INFO victory_gpu::alias_rt: physical-page transient RT aliasing active aliased_rts=1 ... INFO victory_gpu::alias_rt: physical-page transient RT aliasing active aliased_rts=4 ... INFO victory_gpu::host: display output: compositing two planes (overlay active) frame=1 width=2560 ... ``` DLSS and frame generation run normally in both: `DLSS per frame: 1.00 upscalings by DLSS, 0.00 failed` and `DLSS Frame Generation: 25 presents with it on, 0 off, 150 frames shown by it (status 0x0)`. ### Suspects (from reading the range, not verified) - `2e855b0` "port NaN-safe compose clamp and pixel HDR range clamp": - `clamp_hdr` in `emit/lower.rs` maps a NaN pixel export to 65024 instead of 0, which could feed bloom or exposure; - `clean1` in `compose.rs` maps NaN to 1.0. - `6ba7fa8` "physical-page transient RT aliasing": the alias barrier in `HostList::transition` is only inserted when `wanted & WRITE_STATES != 0`. Possibly the same thing as #1387 (night driving white-out) and #692 (a white frame). ### Not done - No bisect among the three switches. - No frame capture. - Logs contain local paths, so they are not attached; I can post trimmed excerpts.
Jesper-Andersson commented 2026-11-29 02:07:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Jesper-Andersson on 2026-11-29T02:07:03Z.


A read-through of the range, in case it helps narrow this down. Nothing here was run by us: no bisect, no capture, no runs. File and line numbers are for trustno1/main at d1486134.

Likely mechanism (likely, not bisected; no runs by us)

  1. VICTORY_HDR_CLAMP: clamp_hdr (crates/victory-shader/src/emit/lower.rs:5122-5133) turns a NaN into +65024 (select(is_nan, max, clamped)). It is applied to every float channel of every pixel-shader colour export, alpha included (lower.rs:14619-14637), and it does not look at the bound target's format. On a UNORM target a NaN is normally stored as 0 (D3D's float-to-UNORM rule); after the clamp it is stored as 1.0. On float targets a NaN becomes the largest finite value instead of staying a NaN. Before #534 the title's own min/max/saturate may have dropped such a NaN later; now it is the brightest value in the frame, and bloom, blur, temporal history or an exposure value could spread it over the picture. That would fit a white that fades back over frames. #534 itself says it "maps NaN to 65024.0"; the overflow part (finite values and +Inf to 65024) is a separate matter and looks fine. The repo's other NaN policy, scrub_nan (lower.rs:4944-4959, VICTORY_NAN_SCRUB=1, off by default), maps NaN to 0.
  2. Where the NaNs come from is less clear. VICTORY_ALIAS_TARGETS is a probable source: aliased render targets get an aliasing barrier on every transition into a write state (host.rs:7462-7479), and in the prelude for every aliased target in the list, including lists that only read it (host.rs:7842-7856). After such a barrier the target's contents are undefined until a clear, discard or copy, and I did not find one. A later read or blend could then see NaN or huge values, now and then, which would match "a minute or more, comes and goes". #1887 (open) describes these same over-emissions.
  3. VICTORY_COMPOSE_NAN is unlikely to matter: clean1 (crates/victory-gpu/src/compose.rs:40-46) only touches the two composer input planes. If both are UNORM (the #1883 log shows base_format=28 overlay_format=28), a sampled value is always finite and the NaN branch cannot fire. The excerpt here does not show the plane formats, so this is a guess for #1889.

Possible one-line change

In clamp_hdr, let a NaN through and keep clamping overflow:

-        self.s.m.select(c, nan, max, hi)
+        self.s.m.select(c, nan, f, hi)

The select is still needed; without it FMax(NaN, -65024) gives -65024. VICTORY_NAN_SCRUB=1 still runs first for anyone who wants NaN as 0. Not built or tried by us.

Test idea (WARP, no GPU needed): translate a pixel program that exports NaN, 1e6, -1e6 and 0.5 to the same target. On an R32G32B32A32_FLOAT target, expect NaN, 65024, -65024, 0.5. On an R8G8B8A8_UNORM target, expect 0 for the NaN channel. A no-GPU variant can check that the lowered module no longer selects the 65024 constant for the NaN test.

Could the reporters try two single-switch runs?

  1. VICTORY_HDR_CLAMP=0 alone (everything else default).
  2. Then VICTORY_ALIAS_TARGETS=0 alone.

If 1 alone fixes it, the clamp is the trigger; if only 2 does, the aliasing is. (3f5ba8cb, #807, put VICTORY_HDR_CLAMP into the shader-cache key, so the A/B at f9dfb76 is valid.)

Related: #1883 (glow and streaks at f9dfb76f, same two commits in range; VICTORY_HDR_CLAMP=0 alone would be a cheap test there too), #1387 (night white-out; reported on 63b902f, before these commits, so the title's exposure path can already do this and the commits may make it fire more often), #1887 (aliasing barriers), #1147 (aliasing, 6ba7fa82), #534 (clamp, 2e855b0f).

This was written with AI assistance (Claude Code).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7249220347 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1889#issuecomment-7249220347). Originally posted by [Jesper-Andersson](https://github.com/Jesper-Andersson) on 2026-11-29T02:07:03Z. --- A read-through of the range, in case it helps narrow this down. Nothing here was run by us: no bisect, no capture, no runs. File and line numbers are for `trustno1/main` at `d1486134`. **Likely mechanism (likely, not bisected; no runs by us)** 1. `VICTORY_HDR_CLAMP`: `clamp_hdr` (`crates/victory-shader/src/emit/lower.rs:5122-5133`) turns a NaN into `+65024` (`select(is_nan, max, clamped)`). It is applied to every float channel of every pixel-shader colour export, alpha included (`lower.rs:14619-14637`), and it does not look at the bound target's format. On a UNORM target a NaN is normally stored as 0 (D3D's float-to-UNORM rule); after the clamp it is stored as 1.0. On float targets a NaN becomes the largest finite value instead of staying a NaN. Before #534 the title's own `min`/`max`/`saturate` may have dropped such a NaN later; now it is the brightest value in the frame, and bloom, blur, temporal history or an exposure value could spread it over the picture. That would fit a white that fades back over frames. #534 itself says it "maps `NaN` to `65024.0`"; the overflow part (finite values and +Inf to 65024) is a separate matter and looks fine. The repo's other NaN policy, `scrub_nan` (`lower.rs:4944-4959`, `VICTORY_NAN_SCRUB=1`, off by default), maps NaN to 0. 2. Where the NaNs come from is less clear. `VICTORY_ALIAS_TARGETS` is a probable source: aliased render targets get an aliasing barrier on every transition into a write state (`host.rs:7462-7479`), and in the prelude for every aliased target in the list, including lists that only read it (`host.rs:7842-7856`). After such a barrier the target's contents are undefined until a clear, discard or copy, and I did not find one. A later read or blend could then see NaN or huge values, now and then, which would match "a minute or more, comes and goes". #1887 (open) describes these same over-emissions. 3. `VICTORY_COMPOSE_NAN` is unlikely to matter: `clean1` (`crates/victory-gpu/src/compose.rs:40-46`) only touches the two composer input planes. If both are UNORM (the #1883 log shows `base_format=28 overlay_format=28`), a sampled value is always finite and the NaN branch cannot fire. The excerpt here does not show the plane formats, so this is a guess for #1889. **Possible one-line change** In `clamp_hdr`, let a NaN through and keep clamping overflow: ```rust - self.s.m.select(c, nan, max, hi) + self.s.m.select(c, nan, f, hi) ``` The select is still needed; without it `FMax(NaN, -65024)` gives -65024. `VICTORY_NAN_SCRUB=1` still runs first for anyone who wants NaN as 0. Not built or tried by us. **Test idea (WARP, no GPU needed)**: translate a pixel program that exports NaN, 1e6, -1e6 and 0.5 to the same target. On an R32G32B32A32_FLOAT target, expect NaN, 65024, -65024, 0.5. On an R8G8B8A8_UNORM target, expect 0 for the NaN channel. A no-GPU variant can check that the lowered module no longer selects the 65024 constant for the NaN test. **Could the reporters try two single-switch runs?** 1. `VICTORY_HDR_CLAMP=0` alone (everything else default). 2. Then `VICTORY_ALIAS_TARGETS=0` alone. If 1 alone fixes it, the clamp is the trigger; if only 2 does, the aliasing is. (`3f5ba8cb`, #807, put `VICTORY_HDR_CLAMP` into the shader-cache key, so the A/B at `f9dfb76` is valid.) **Related**: #1883 (glow and streaks at `f9dfb76f`, same two commits in range; `VICTORY_HDR_CLAMP=0` alone would be a cheap test there too), #1387 (night white-out; reported on `63b902f`, before these commits, so the title's exposure path can already do this and the commits may make it fire more often), #1887 (aliasing barriers), #1147 (aliasing, `6ba7fa82`), #534 (clamp, `2e855b0f`). This was written with AI assistance (Claude Code).
JoeY54 commented 2026-11-29 04:13:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JoeY54 on 2026-11-29T04:13:15Z.


One switch at a time on an RTX 5090: the white-outs need VICTORY_ALIAS_TARGETS. Turning it off alone removes them. Turning off VICTORY_HDR_CLAMP or VICTORY_COMPOSE_NAN alone does not.

Setup

  • Hardware: RTX 5090 32 GB, driver 621.24, Ryzen 9 9950X3D, Windows 11 build 26300.
  • Build: release, built from source, run through the script launcher.
  • Settings: Series X, 2560x1440, DLSS Quality, DLSS frame generation 2x, ray tracing off, plus VICTORY_PRELUDE_RECHECK=0.
  • Every run starts from a copy of the same save and runs for the same fixed time.

The single-switch runs were on f9dfb76 plus my two open PRs, #479 (shader translation) and #613 (DLSS probe tests). Neither touches alias_rt, the compositor or the HDR clamp. The last row is plain f9dfb76.

Run Switches set to 0 What was on screen
defaults none large white areas, most of the picture
A VICTORY_ALIAS_TARGETS no white-outs
B VICTORY_HDR_CLAMP white-outs
C VICTORY_COMPOSE_NAN white-outs
D all three no white-outs; black patches where the white was
plain f9dfb76 VICTORY_ALIAS_TARGETS no white-outs; dark for a short while at the start, then normal

D fits the reading above: the pixels the clamp turns into +65024 (white) are NaNs. With the NaN scrub and the clamp off, they show black. So the clamp and the scrub only decide the colour, and the bad values come from the aliased targets.

#1887 changes exactly this: no aliasing barrier on a list that only reads an aliased target, and per-page ownership. It looks like the likely fix. I have not run it yet.

Not tested:

  • which aliased target or pass gives the NaNs (no capture);
  • #1887;
  • Series S;
  • ray tracing on;
  • other GPUs.

Raw logs stay local.

AI-assisted (Claude); runs on my own hardware.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7250521219 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1889#issuecomment-7250521219). Originally posted by [JoeY54](https://github.com/JoeY54) on 2026-11-29T04:13:15Z. --- One switch at a time on an RTX 5090: the white-outs need `VICTORY_ALIAS_TARGETS`. Turning it off alone removes them. Turning off `VICTORY_HDR_CLAMP` or `VICTORY_COMPOSE_NAN` alone does not. **Setup** - Hardware: RTX 5090 32 GB, driver 621.24, Ryzen 9 9950X3D, Windows 11 build 26300. - Build: release, built from source, run through the script launcher. - Settings: Series X, 2560x1440, DLSS Quality, DLSS frame generation 2x, ray tracing off, plus `VICTORY_PRELUDE_RECHECK=0`. - Every run starts from a copy of the same save and runs for the same fixed time. The single-switch runs were on `f9dfb76` plus my two open PRs, #479 (shader translation) and #613 (DLSS probe tests). Neither touches `alias_rt`, the compositor or the HDR clamp. The last row is plain `f9dfb76`. | Run | Switches set to `0` | What was on screen | |---|---|---| | defaults | none | large white areas, most of the picture | | A | `VICTORY_ALIAS_TARGETS` | no white-outs | | B | `VICTORY_HDR_CLAMP` | white-outs | | C | `VICTORY_COMPOSE_NAN` | white-outs | | D | all three | no white-outs; black patches where the white was | | plain `f9dfb76` | `VICTORY_ALIAS_TARGETS` | no white-outs; dark for a short while at the start, then normal | D fits the reading above: the pixels the clamp turns into `+65024` (white) are NaNs. With the NaN scrub and the clamp off, they show black. So the clamp and the scrub only decide the colour, and the bad values come from the aliased targets. #1887 changes exactly this: no aliasing barrier on a list that only reads an aliased target, and per-page ownership. It looks like the likely fix. I have not run it yet. Not tested: - which aliased target or pass gives the NaNs (no capture); - #1887; - Series S; - ray tracing on; - other GPUs. Raw logs stay local. _AI-assisted (Claude); runs on my own hardware._
Yoshi-OOF commented 2026-11-29 13:27:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-OOF on 2026-11-29T13:27:14Z.


One switch at a time on an RTX 5090: the white-outs need VICTORY_ALIAS_TARGETS. Turning it off alone removes them. Turning off VICTORY_HDR_CLAMP or VICTORY_COMPOSE_NAN alone does not.

Setup

  • Hardware: RTX 5090 32 GB, driver 621.24, Ryzen 9 9950X3D, Windows 11 build 26300.
  • Build: release, built from source, run through the script launcher.
  • Settings: Series X, 2560x1440, DLSS Quality, DLSS frame generation 2x, ray tracing off, plus VICTORY_PRELUDE_RECHECK=0.
  • Every run starts from a copy of the same save and runs for the same fixed time.

The single-switch runs were on f9dfb76 plus my two open PRs, #479 (shader translation) and #613 (DLSS probe tests). Neither touches alias_rt, the compositor or the HDR clamp. The last row is plain f9dfb76.

Run Switches set to 0 What was on screen
defaults none large white areas, most of the picture
A VICTORY_ALIAS_TARGETS no white-outs
B VICTORY_HDR_CLAMP white-outs
C VICTORY_COMPOSE_NAN white-outs
D all three no white-outs; black patches where the white was
plain f9dfb76 VICTORY_ALIAS_TARGETS no white-outs; dark for a short while at the start, then normal
D fits the reading above: the pixels the clamp turns into +65024 (white) are NaNs. With the NaN scrub and the clamp off, they show black. So the clamp and the scrub only decide the colour, and the bad values come from the aliased targets.

#1887 changes exactly this: no aliasing barrier on a list that only reads an aliased target, and per-page ownership. It looks like the likely fix. I have not run it yet.

Not tested:

Raw logs stay local.

AI-assisted (Claude); runs on my own hardware.

Tester and valid.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7256548851 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1889#issuecomment-7256548851). Originally posted by [Yoshi-OOF](https://github.com/Yoshi-OOF) on 2026-11-29T13:27:14Z. --- > One switch at a time on an RTX 5090: the white-outs need `VICTORY_ALIAS_TARGETS`. Turning it off alone removes them. Turning off `VICTORY_HDR_CLAMP` or `VICTORY_COMPOSE_NAN` alone does not. > > **Setup** > > * Hardware: RTX 5090 32 GB, driver 621.24, Ryzen 9 9950X3D, Windows 11 build 26300. > * Build: release, built from source, run through the script launcher. > * Settings: Series X, 2560x1440, DLSS Quality, DLSS frame generation 2x, ray tracing off, plus `VICTORY_PRELUDE_RECHECK=0`. > * Every run starts from a copy of the same save and runs for the same fixed time. > > The single-switch runs were on `f9dfb76` plus my two open PRs, [#479](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/479) (shader translation) and [#613](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/613) (DLSS probe tests). Neither touches `alias_rt`, the compositor or the HDR clamp. The last row is plain `f9dfb76`. > > Run Switches set to `0` What was on screen > defaults none large white areas, most of the picture > A `VICTORY_ALIAS_TARGETS` no white-outs > B `VICTORY_HDR_CLAMP` white-outs > C `VICTORY_COMPOSE_NAN` white-outs > D all three no white-outs; black patches where the white was > plain `f9dfb76` `VICTORY_ALIAS_TARGETS` no white-outs; dark for a short while at the start, then normal > D fits the reading above: the pixels the clamp turns into `+65024` (white) are NaNs. With the NaN scrub and the clamp off, they show black. So the clamp and the scrub only decide the colour, and the bad values come from the aliased targets. > > [#1887](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1887) changes exactly this: no aliasing barrier on a list that only reads an aliased target, and per-page ownership. It looks like the likely fix. I have not run it yet. > > Not tested: > > * which aliased target or pass gives the NaNs (no capture); > * [test(gpu): honor VICTORY_D3D12_WARP in alias_rt D3D12 test #1887](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1887); > * Series S; > * ray tracing on; > * other GPUs. > > Raw logs stay local. > > _AI-assisted (Claude); runs on my own hardware._ Tester and valid.
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
trustno1-coder/VIctory-NVIDIA#1889
No description provided.