fix(gpu): revert broken RT-skip and opaque stand-in defaults and fix stale ambient reflection gather #409

Merged
Androtim merged 2 commits from upstream-pr/409 into main 2026-12-03 21:02:15 +00:00
Androtim commented 2026-12-03 20:29:22 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T20:29:22Z.


Summary

Hotfix for the v2026.12.03.08 visual regressions observed in live Series S + DLSS FG 2X runs (blinding white surfaces/puddles, horizontal smears, broken character skinning/hollow face) introduced across #401 (a86f871) and #402 (158fba1):

  1. crates/victory-gpu/src/pipeline.rs & draw.rs (from #401):

    • Changed VICTORY_RT_SKIP_RESOLVE and VICTORY_RT_SKIP_DEAD from default-on to default-off (== Some("1") opt-in only).
    • Removed CSComputeSkinning from DeadRt::Feeds so character skinning and mesh deformation are never classified as dead RT.
    • Kept VICTORY_BVH_STUB, DOM_LOADS polling-loop pinning, and VICTORY_CUDA_PRELOAD intact.
  2. crates/victory-gpu/src/descriptor/host.rs (from #402):

    • Changed VICTORY_STANDIN_OPAQUE from default-on ([0x80, 0x80, 0x80, 0xff]) to default-off ([0x80, 0x80, 0x80, 0x80], opt-in with =1) so unmapped/evicted overlay, decal, puddle, and mask textures do not evaluate with opaque 1.0 alpha.
    • Tightened gray_fits() to also exclude single-channel mask formats (R8_UNORM, BC4_UNORM, BC4_TYPELESS) and HDR lighting/reflection float/BC6H formats (R16G16B16A16_FLOAT, R11G11B10_FLOAT, BC6H_*) so those stay null (0,0,0,0) while keeping neutral gray stand-ins for color/YCbCr/BC5/BC7 textures.
  3. crates/victory-gpu/src/ambient.rs (from #401):

    • Replaced sticky boolean miss_needs_gather(set, GATHERED) with per-frame GATHERED_FRAME tracking (miss_needs_gather(set, gathered_frame, current_frame)): Role::Miss only skips place + gather when cells/points were already populated in the current frame, preventing reflect_light from reading frozen/stale buffers when Role::Resolve is skipped or runs later.
    • Gated without_depth() (bound_light) gathered-points blending on recent GATHERED_FRAME freshness (<= 1 frame), falling back to cells[CELLS].rgb otherwise.
    • Verified WORDS = 19 cbuffer layout (filter, chroma_scrub, least) matches both RS and RS_BOUND cleanly.
  4. crates/victory-gpu/src/streamline.rs (from #402):

    • Audited camera.planes_in_order() against plan::Camera::constants() and plan::projection(): projection() requires near < far (far <= near triggers the infinite-far fallback with b = near), and framegen already used planes_in_order(). Left intact.

Verification

  • cargo test -p victory-gpu --lib pipeline (45 passed)
  • cargo test -p victory-gpu --lib ambient (23 passed, 1 ignored)
  • cargo test -p victory-gpu --lib streamline (all passed)
  • cargo test -p victory-gpu --lib descriptor (103 passed, 1 ignored)
  • cargo clippy --workspace --all-targets -- -D warnings (clean)
  • cargo xtask policy (asset policy: 357 files ok)
<!-- greyfinch-sync:Androtim/MiniVI:issue:5634397824 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/409). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-03T20:29:22Z. --- ## Summary Hotfix for the `v2026.12.03.08` visual regressions observed in live Series S + DLSS FG 2X runs (blinding white surfaces/puddles, horizontal smears, broken character skinning/hollow face) introduced across #401 (`a86f871`) and #402 (`158fba1`): 1. **`crates/victory-gpu/src/pipeline.rs` & `draw.rs` (from #401):** - Changed `VICTORY_RT_SKIP_RESOLVE` and `VICTORY_RT_SKIP_DEAD` from default-on to **default-off** (`== Some("1")` opt-in only). - Removed `CSComputeSkinning` from `DeadRt::Feeds` so character skinning and mesh deformation are never classified as dead RT. - Kept `VICTORY_BVH_STUB`, `DOM_LOADS` polling-loop pinning, and `VICTORY_CUDA_PRELOAD` intact. 2. **`crates/victory-gpu/src/descriptor/host.rs` (from #402):** - Changed `VICTORY_STANDIN_OPAQUE` from default-on (`[0x80, 0x80, 0x80, 0xff]`) to **default-off** (`[0x80, 0x80, 0x80, 0x80]`, opt-in with `=1`) so unmapped/evicted overlay, decal, puddle, and mask textures do not evaluate with opaque `1.0` alpha. - Tightened `gray_fits()` to also exclude single-channel mask formats (`R8_UNORM`, `BC4_UNORM`, `BC4_TYPELESS`) and HDR lighting/reflection float/BC6H formats (`R16G16B16A16_FLOAT`, `R11G11B10_FLOAT`, `BC6H_*`) so those stay null `(0,0,0,0)` while keeping neutral gray stand-ins for color/YCbCr/BC5/BC7 textures. 3. **`crates/victory-gpu/src/ambient.rs` (from #401):** - Replaced sticky boolean `miss_needs_gather(set, GATHERED)` with per-frame `GATHERED_FRAME` tracking (`miss_needs_gather(set, gathered_frame, current_frame)`): `Role::Miss` only skips `place` + `gather` when `cells`/`points` were already populated in the **current frame**, preventing `reflect_light` from reading frozen/stale buffers when `Role::Resolve` is skipped or runs later. - Gated `without_depth()` (`bound_light`) gathered-points blending on recent `GATHERED_FRAME` freshness (`<= 1` frame), falling back to `cells[CELLS].rgb` otherwise. - Verified `WORDS = 19` cbuffer layout (`filter`, `chroma_scrub`, `least`) matches both `RS` and `RS_BOUND` cleanly. 4. **`crates/victory-gpu/src/streamline.rs` (from #402):** - Audited `camera.planes_in_order()` against `plan::Camera::constants()` and `plan::projection()`: `projection()` requires `near < far` (`far <= near` triggers the infinite-far fallback with `b = near`), and `framegen` already used `planes_in_order()`. Left intact. ## Verification - `cargo test -p victory-gpu --lib pipeline` (45 passed) - `cargo test -p victory-gpu --lib ambient` (23 passed, 1 ignored) - `cargo test -p victory-gpu --lib streamline` (all passed) - `cargo test -p victory-gpu --lib descriptor` (103 passed, 1 ignored) - `cargo clippy --workspace --all-targets -- -D warnings` (clean) - `cargo xtask policy` (`asset policy: 357 files ok`)
Androtim commented 2026-12-03 20:32:46 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T20:32:46Z.


Read-only full diff audit (7fbc01d5, 4 files +113/-45, 100% title-neutral): VERIFIED CLEAN (0 P0/P1).

  • Surgically resolves all three v2026.12.03.08 live visual regressions:
    1. Reverts VICTORY_RT_SKIP_RESOLVE / VICTORY_RT_SKIP_DEAD to default-off and removes CSComputeSkinning from DeadRt::Feeds (fixes character skinning / hollow faces).
    2. Reverts VICTORY_STANDIN_OPAQUE to default-off ([0x80, 0x80, 0x80, 0x80]) and excludes single-channel mask (R8_UNORM, BC4_*) and HDR float/BC6H_* formats from gray_fits() (fixes blown-out white surfaces/puddles).
    3. Replaces sticky GATHERED with per-frame GATHERED_FRAME in ambient.rs (prevents stale reflect_light / without_depth reads).
  • Ready for fast squash-merge + v2026.12.03.09 hotfix release once CI check completes green.
<!-- greyfinch-sync:Androtim/MiniVI:comment:7391405225 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/409#issuecomment-7391405225). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-03T20:32:46Z. --- Read-only full diff audit (`7fbc01d5`, 4 files `+113/-45`, 100% title-neutral): **VERIFIED CLEAN (0 P0/P1)**. - Surgically resolves all three `v2026.12.03.08` live visual regressions: 1. Reverts `VICTORY_RT_SKIP_RESOLVE` / `VICTORY_RT_SKIP_DEAD` to default-off and removes `CSComputeSkinning` from `DeadRt::Feeds` (fixes character skinning / hollow faces). 2. Reverts `VICTORY_STANDIN_OPAQUE` to default-off (`[0x80, 0x80, 0x80, 0x80]`) and excludes single-channel mask (`R8_UNORM`, `BC4_*`) and HDR float/`BC6H_*` formats from `gray_fits()` (fixes blown-out white surfaces/puddles). 3. Replaces sticky `GATHERED` with per-frame `GATHERED_FRAME` in `ambient.rs` (prevents stale `reflect_light` / `without_depth` reads). - Ready for fast squash-merge + `v2026.12.03.09` hotfix release once CI `check` completes green.
Androtim commented 2026-12-03 21:02:11 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T21:02:11Z.


Audited follow-up commit 9de107b8 (pipeline/make.rs + ambient.rs, CI check PASS): VERIFIED CLEAN (0 P0/P1).

  • Clean Queue::requested_slow + slow_limit throttling and unclaimed(..., REQUESTED) guard prevent CS_RaytracingResolve from starving fast world/lighting/post-FX pipelines or burning the 80 ms per-frame wait budget on cold SW-RT/HW-RT caches, with exact was_slow / slow_now accounting.
  • Merging this P0 v2026.12.03.08 hotfix via squash now (v2026.12.03.09 queued once main CI completes green).
<!-- greyfinch-sync:Androtim/MiniVI:comment:7392184899 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/409#issuecomment-7392184899). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-03T21:02:11Z. --- Audited follow-up commit `9de107b8` (`pipeline/make.rs` + `ambient.rs`, **CI `check` PASS**): **VERIFIED CLEAN (0 P0/P1)**. - Clean `Queue::requested_slow` + `slow_limit` throttling and `unclaimed(..., REQUESTED)` guard prevent `CS_RaytracingResolve` from starving fast world/lighting/post-FX pipelines or burning the 80 ms per-frame wait budget on cold SW-RT/HW-RT caches, with exact `was_slow` / `slow_now` accounting. - Merging this P0 `v2026.12.03.08` hotfix via squash now (`v2026.12.03.09` queued once `main` CI completes green).
Sign in to join this conversation.
No reviewers
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
Androtim/MiniVI!409
No description provided.