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
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#1889
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?
@Yoshi-OOF on GitHub · 2026-11-29 01:44 UTC · original
Summary
After pulling from
9300875tof9dfb76(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 to0, it has not come back so far:I have not bisected which of the three does it.
Setup
diagprofile, atf9dfb76.scripts/play-foxhound.ps1: Series X, 2560x1440 output, DLSS Quality, DLSS frame generation 6x, ray tracing off.VICTORY_AMBIENT_ONCE=1,VICTORY_PROBE_NEUTRAL=0.3.neutral probe replacement recordednever appears in the log..vipersection and a hook; 52 bytes differ inside the original image, and the 10 placesnative_1440p.rspatches are byte-identical to retail. To get the Series X 1440p path on that copy, I removed the threeRETAIL_BUILDhashensure!s innative_1440p.rslocally. The stock-byte checks stay. Random bright light flashes also showed up with the stock executable and the unmodified source.What happens
9300875had no such white-outs for me.A/B
AMBIENT_ONCE=1,PROBE_NEUTRAL=0.3HDR_CLAMP=0,COMPOSE_NAN=0,ALIAS_TARGETS=0Run A's log shows both mechanisms active:
DLSS and frame generation run normally in both:
DLSS per frame: 1.00 upscalings by DLSS, 0.00 failedandDLSS 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_hdrinemit/lower.rsmaps a NaN pixel export to 65024 instead of 0, which could feed bloom or exposure;clean1incompose.rsmaps NaN to 1.0.6ba7fa8"physical-page transient RT aliasing": the alias barrier inHostList::transitionis only inserted whenwanted & WRITE_STATES != 0.Possibly the same thing as #1387 (night driving white-out) and #692 (a white frame).
Not done
[rendering] 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)to 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)@Jesper-Andersson on GitHub · 2026-11-29 02:07 UTC · original
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/mainatd1486134.Likely mechanism (likely, not bisected; no runs by us)
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 ownmin/max/saturatemay 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 "mapsNaNto65024.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.VICTORY_ALIAS_TARGETSis 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.VICTORY_COMPOSE_NANis 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 showsbase_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:The select is still needed; without it
FMax(NaN, -65024)gives -65024.VICTORY_NAN_SCRUB=1still 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?
VICTORY_HDR_CLAMP=0alone (everything else default).VICTORY_ALIAS_TARGETS=0alone.If 1 alone fixes it, the clamp is the trigger; if only 2 does, the aliasing is. (
3f5ba8cb, #807, putVICTORY_HDR_CLAMPinto the shader-cache key, so the A/B atf9dfb76is valid.)Related: #1883 (glow and streaks at
f9dfb76f, same two commits in range;VICTORY_HDR_CLAMP=0alone would be a cheap test there too), #1387 (night white-out; reported on63b902f, 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 on GitHub · 2026-11-29 04:13 UTC · original
One switch at a time on an RTX 5090: the white-outs need
VICTORY_ALIAS_TARGETS. Turning it off alone removes them. Turning offVICTORY_HDR_CLAMPorVICTORY_COMPOSE_NANalone does not.Setup
VICTORY_PRELUDE_RECHECK=0.The single-switch runs were on
f9dfb76plus my two open PRs, #479 (shader translation) and #613 (DLSS probe tests). Neither touchesalias_rt, the compositor or the HDR clamp. The last row is plainf9dfb76.0VICTORY_ALIAS_TARGETSVICTORY_HDR_CLAMPVICTORY_COMPOSE_NANf9dfb76VICTORY_ALIAS_TARGETSD 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.
@Yoshi-OOF on GitHub · 2026-11-29 13:27 UTC · original
Tester and valid.
github-bot referenced this issue2026-12-01 15:30:51 +00:00