Paired wave64 lanes on 32-lane hosts: exact shadow mask, water volumetrics and sky diffusion #208

Manually merged
github merged 10 commits from github-bot/gh-208 into gh-pr/208/base 2026-11-27 15:20:26 +00:00 AGit
Owner

@⁠Geckomacabre on GitHub · 2026-11-27 09:52 UTC · original
Geckomacabre:pr/paired-wave64-clean → main · +2734 −64 · 12 files · 10 commits · merged 2026-11-27 15:18 UTC

On hosts whose waves have 32 lanes (NVIDIA), a console wave64 compute program runs today as two host waves, or as each host wave on its own. For programs whose wave-wide sums, first-lane reads or LDS shared within the console wave cross the two halves, those forms are approximate or need group barriers that cannot follow the console's order everywhere, and the picture shows it. This brings the paired form: one host wave of 32 runs a whole console wave of 64, each thread lowering two console lanes (n and n + 32), so these operations see all 64 lanes exactly.

What it fixes (each checked in game on an RTX 4090, Series S):

  • the tiled shadow mask (CS_ShadowRenderTiled*, 18 programs): whole 16x16 tiles black or lit, i.e. stair-stepped shadows on the ground and square patches on characters;
  • the water's transmission volumetrics (CS_TransmissionVolumetrics_Tiled, _Tiled_LocalLights, _Submerged): dark blocks on open water and a broken view under water. Today these are either left out or forced into the wave-wide form (DEFAULT_WAVE_WIDE_HASHES), which leaves the blocks;
  • the atmospheric diffusion and its depth scan (CS_GatherDiffusion, CS_ScanMip0..3, with CS_DeferredFallbacksAlpha_SkyProbe and CS_TemporalResolve2_Opaque_FrameStatistics): a halo around dark silhouettes against the sky.

These 28 take the paired form by default (DEFAULT_WAVE_PAIRS_HASHES); together they cost about 0.1 ms of card time a frame (GPU timing run). The user's verdict after the shadow, water and halo programs were paired: the picture is correct.

Commits

  1. Translate wave64 compute programs in paired lanes on 32-lane hosts: ByFxbian's fork pull request #1397 on fxceless/victory-fork (after PiloteCode #854 and darkworldhm 840243e2), adapted to this tree. Off unless asked (VICTORY_WAVE_PAIRS=1, or per program VICTORY_WAVE_PAIRS_ONLY); listed programs try it first and fall back to the existing forms when it refuses them.
  2. Replay paired FP32 reductions in the console's order: ByFxbian's #1419 with fxceless's 3ab5c12b (MODE gate) and e3307c77 (exact replayed sums), plus the fork's NVIDIA hardware tests.
  3. Unseen section outputs and order-free LDS atomics (ours): a scratch partial sum that the next reduction tree overwrites gets a placeholder instead of a missing value (without it the water programs were refused on this tree), and LDS atomics without a returned value whose result is order-free run as one host atomic per lane (the depth scan's counters).
  4. Pair the shadow mask, water and diffusion programs by default: the 28 hashes; their FP32 reductions use the confirmed guest mode unless VICTORY_WAVE_PAIRS_FP32 says otherwise; TRANSLATOR_VERSION 8 (these programs translate differently, so cached translations are made again).
  5. Document the paired wave64 form and its switches (docs/this-fork.md).

Switches: VICTORY_WAVE_PAIRS_ONLY=<log hashes> replaces the default list (none: no program); VICTORY_WAVE_PAIRS=1 tries the form for every wave64 compute program that needs it; VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz confirms the float mode for programs not on the default list. All are in the shader cache key.

Checks (Windows 11, RTX 4090, toolchain 1.98.1, on this branch): cargo check -p victory --features diagnostics --tests: clean. cargo test -p victory-shader --lib -- paired wave64: 36 passed, 0 failed. VICTORY_WAVE_PAIRS=1 VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz cargo test -p victory-shader --lib -- --ignored --test-threads=1 nvidia_: 12 passed on the GPU against the CPU model (water LDS min/max and pair exchange, ordered FP32 sum/min/max, lane reads, LDS between halves, divergent loops, the masked LDS add). cargo clippy -p victory-shader -p victory-gpu --tests -- -D warnings: clean. cargo test -p xtask: 11 passed (documented switches).

Not included: our VICTORY_ARGS_WRITERS water entry. On this tree the default indirect batching (VICTORY_INDIRECT_BATCH unset) already ends a batch at every dispatch, so the water's tile counts are read after they are written.

From the Geckomacabre/vx-layer work.

🤖 Generated with Claude Code

**@⁠Geckomacabre** on GitHub · 2026-11-27 09:52 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208) `Geckomacabre:pr/paired-wave64-clean` → `main` · +2734 −64 · 12 files · 10 commits · merged 2026-11-27 15:18 UTC On hosts whose waves have 32 lanes (NVIDIA), a console wave64 compute program runs today as two host waves, or as each host wave on its own. For programs whose wave-wide sums, first-lane reads or LDS shared within the console wave cross the two halves, those forms are approximate or need group barriers that cannot follow the console's order everywhere, and the picture shows it. This brings the **paired form**: one host wave of 32 runs a whole console wave of 64, each thread lowering two console lanes (n and n + 32), so these operations see all 64 lanes exactly. **What it fixes (each checked in game on an RTX 4090, Series S):** - the tiled shadow mask (`CS_ShadowRenderTiled*`, 18 programs): whole 16x16 tiles black or lit, i.e. stair-stepped shadows on the ground and square patches on characters; - the water's transmission volumetrics (`CS_TransmissionVolumetrics_Tiled`, `_Tiled_LocalLights`, `_Submerged`): dark blocks on open water and a broken view under water. Today these are either left out or forced into the wave-wide form (`DEFAULT_WAVE_WIDE_HASHES`), which leaves the blocks; - the atmospheric diffusion and its depth scan (`CS_GatherDiffusion`, `CS_ScanMip0..3`, with `CS_DeferredFallbacksAlpha_SkyProbe` and `CS_TemporalResolve2_Opaque_FrameStatistics`): a halo around dark silhouettes against the sky. These 28 take the paired form by default (`DEFAULT_WAVE_PAIRS_HASHES`); together they cost about **0.1 ms of card time a frame** (GPU timing run). The user's verdict after the shadow, water and halo programs were paired: the picture is correct. **Commits** 1. *Translate wave64 compute programs in paired lanes on 32-lane hosts*: ByFxbian's fork pull request #1397 on fxceless/victory-fork (after PiloteCode #854 and darkworldhm 840243e2), adapted to this tree. Off unless asked (`VICTORY_WAVE_PAIRS=1`, or per program `VICTORY_WAVE_PAIRS_ONLY`); listed programs try it first and fall back to the existing forms when it refuses them. 2. *Replay paired FP32 reductions in the console's order*: ByFxbian's #1419 with fxceless's 3ab5c12b (MODE gate) and e3307c77 (exact replayed sums), plus the fork's NVIDIA hardware tests. 3. *Unseen section outputs and order-free LDS atomics* (ours): a scratch partial sum that the next reduction tree overwrites gets a placeholder instead of a missing value (without it the water programs were refused on this tree), and LDS atomics without a returned value whose result is order-free run as one host atomic per lane (the depth scan's counters). 4. *Pair the shadow mask, water and diffusion programs by default*: the 28 hashes; their FP32 reductions use the confirmed guest mode unless `VICTORY_WAVE_PAIRS_FP32` says otherwise; **`TRANSLATOR_VERSION` 8** (these programs translate differently, so cached translations are made again). 5. *Document the paired wave64 form and its switches* (`docs/this-fork.md`). **Switches:** `VICTORY_WAVE_PAIRS_ONLY=<log hashes>` replaces the default list (`none`: no program); `VICTORY_WAVE_PAIRS=1` tries the form for every wave64 compute program that needs it; `VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz` confirms the float mode for programs not on the default list. All are in the shader cache key. **Checks** (Windows 11, RTX 4090, toolchain 1.98.1, on this branch): `cargo check -p victory --features diagnostics --tests`: clean. `cargo test -p victory-shader --lib -- paired wave64`: 36 passed, 0 failed. `VICTORY_WAVE_PAIRS=1 VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz cargo test -p victory-shader --lib -- --ignored --test-threads=1 nvidia_`: 12 passed on the GPU against the CPU model (water LDS min/max and pair exchange, ordered FP32 sum/min/max, lane reads, LDS between halves, divergent loops, the masked LDS add). `cargo clippy -p victory-shader -p victory-gpu --tests -- -D warnings`: clean. `cargo test -p xtask`: 11 passed (documented switches). Not included: our `VICTORY_ARGS_WRITERS` water entry. On this tree the default indirect batching (`VICTORY_INDIRECT_BATCH` unset) already ends a batch at every dispatch, so the water's tile counts are read after they are written. From the Geckomacabre/vx-layer work. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A console wave of 64 lanes runs in one host wave of 32, each thread lowering two console lanes
(lane n and lane n + 32), so wave-wide operations, first-lane reads and LDS shared within the console
wave see all 64 lanes exactly. Off by default: VICTORY_WAVE_PAIRS=1, or per program with
VICTORY_WAVE_PAIRS_ONLY=<log hashes> (tried first, falling back to the other forms when refused).

From ByFxbian's fork pull request #1397 on fxceless/victory-fork (after PiloteCode #854 and darkworldhm
840243e2), adapted to this tree: the existing crossing test, wave base and ballots are kept for the other
forms; VICTORY_WAVE_PAIRS_ONLY is matched on the container hash; the switches are in the cache key.

Co-Authored-By: fxceless <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Whole-wave FP32 sums, minima and maxima are replayed operand by operand in the console's order
(intermediate rounding and NaN priority kept), FP64 sums of one exact constant become count x term,
scratch partial sums a later tree overwrites are not needed, and a program writing MODE fields that
change FP32 rounding or denormals is refused. The guest mode is confirmed by
VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz (in the cache key).

From ByFxbian's fork pull request #1419 on fxceless/victory-fork with fxceless's 3ab5c12b (MODE gate)
and e3307c77 (exact replayed sums), and the fork's NVIDIA hardware tests (ignored without a 32-lane GPU).

Co-Authored-By: fxceless <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- A whole-wave section output with no shape that nothing after it can see (a reduction's scratch partial
  sums, which the next tree overwrites in every lane first) gets a placeholder instead of a missing
  value. This tree's IR names a register's old value as read by every write, so the next section's
  replay otherwise read a missing value: the water's tiled transmission programs were refused.
- LDS atomics without a returned value whose result is the same in any order (add, sub, and, or, xor,
  signed and unsigned min/max) run as one host atomic per console lane: the depth scan's counters
  (CS_ScanMip0..3) translate paired.

Tests: paired_lds_takes_order_free_atomics; nvidia_lds_masked_add (hardware, against the CPU sum).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DEFAULT_WAVE_PAIRS_HASHES: 28 wave64 compute programs whose other forms left the picture visibly
wrong on 32-lane hosts (stair-stepped shadow tiles, dark water blocks and a broken underwater view, a
halo at silhouettes against the sky) take the paired form unless VICTORY_WAVE_PAIRS_ONLY names others
(none: no program). Their FP32 reductions replay with the confirmed guest mode unless
VICTORY_WAVE_PAIRS_FP32 says otherwise. TRANSLATOR_VERSION 8: these programs translate differently.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:40:01 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 09:59 UTC · original

@⁠Geckomacabre play.ps1 sets VICTORY_INDIRECT_BATCH=2 in the usual profile. That mode can keep an indirect batch open across a dispatch, while the unset mode in the PR description ends it there. Which mode was used in the Series S water run? I’ll keep that setting fixed while comparing the default paired list with VICTORY_WAVE_PAIRS_ONLY=none on the same executable, then check the standard launcher path if the modes differ.

The two water hashes in the current wave-wide list are the right targets for the paired comparison. I’ll check their selected translation path before comparing the boat shots.

**@⁠TaynanGT** on GitHub · 2026-11-27 09:59 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7215345056) @⁠Geckomacabre `play.ps1` sets `VICTORY_INDIRECT_BATCH=2` in the usual profile. That mode can keep an indirect batch open across a dispatch, while the unset mode in the PR description ends it there. Which mode was used in the Series S water run? I’ll keep that setting fixed while comparing the default paired list with `VICTORY_WAVE_PAIRS_ONLY=none` on the same executable, then check the standard launcher path if the modes differ. The two water hashes in the current wave-wide list are the right targets for the paired comparison. I’ll check their selected translation path before comparing the boat shots.
Author
Owner

@⁠efsebayern on GitHub · 2026-11-27 10:42 UTC · original · reviewed

I reviewed 4e476c2 offline on a 32-lane host model. I found no blocking bug in the paired lowering.

Checked and exact:

  • EXEC/VCC ballots per half, plus scc_some / wave_wide
  • v_readlane (& 31 / & 32; a per-lane index is refused), v_readfirstlane, v_writelane, and v_mbcnt via console_lane
  • DPP row masks; permlane16/x16 and swizzle within 32 lanes
  • ds_bpermute kept within its half
  • per-lane LDS bounds and the barriers around writes
  • the integer reduction and prefix joins
  • the rule that refuses groups over 64 threads with more than one block plus LDS or s_barrier

Points I'd raise, most important first:

  1. It isn't opt-in, and it invalidates the whole cache. With every switch unset, the 28 DEFAULT_WAVE_PAIRS_HASHES programs change. TRANSLATOR_VERSION 8 also re-translates every cached program, and VICTORY_WAVE_PAIRS* sits in the global cache key rather than in a per-shader key. On our side, the first run after a change like that spends minutes recompiling pipelines. A per-container key that changes only for the programs the policy affects, like wave_wide_cache_override, would avoid that.
  2. The FP32 replay assumes a float mode it never reads (paired_fp32.rs ~253-264). Non-IEEE, round-to-nearest-even and flush-to-zero are assumed for the default 28, and for every program with VICTORY_WAVE_PAIRS_FP32. Only s_setreg is scanned; the program's own initial MODE isn't. If a program starts in another mode, the "exact" sums come out wrong with no warning.
  3. Naming a default program explicitly breaks its float path (mod.rs ~655). by_default requires VICTORY_WAVE_PAIRS_ONLY to be unset. So VICTORY_WAVE_PAIRS_ONLY=5dc3b25986622949, or an empty value, drops that program's float-mode confirmation, refuses its FP32 sections, and falls back to the old form.
  4. A side change not in the description (lower.rs ~569, ~2040, ~2099, and widen). With VICTORY_WAVE_WIDE=1, the loop-exit lane regions from fork #993 are active. At ~2040 and ~2099 they aren't gated on wave64 or a 32-lane host.
  5. Minor:
    • exact_floats (paired_fp32.rs ~311) is set but never read.
    • Every translated container is blake3-hashed before the wave32-compute check.
    • A deny list (..._NOT=<hashes>) would help bisect a program that misbehaves in the paired form.

Offline numbers (VICTORY_HOST_WAVE=32 victory translate --list --validate over the title's shaders). The baseline is main, where 57 compute programs end in an APPROXIMATE form.

Run Programs changed APPROXIMATE → exact Compute validation
Switches unset the 28 listed 8 of 57 2759/2761, unchanged
VICTORY_WAVE_PAIRS_ONLY=none 0 (identical to main) — unchanged
VICTORY_WAVE_PAIRS=1 126 30 of 57 2759/2761, no new failures
=1 + VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz 142 35 of 57 only the two old 32,900-byte LDS programs fail

In the last run 6871d6e4b3ac9a10 (water CS_TransmissionVolumetrics) translates and validates, but under the assumed float mode from point 2.

cargo test -p victory-shader --lib: 330 passed, 0 failed, 18 ignored.

For context: we had independently ported the paired form from fxceless #1397 into a local branch. This PR covers more (FP32 replay, LDS atomics without a returned value, 30 vs 23 of the 57), and our port kept ds_bpermute across all 64 lanes, which this PR correctly doesn't. So we're dropping ours in favour of this one.

AI-assisted review (Claude Code).

**@⁠efsebayern** on GitHub · 2026-11-27 10:42 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#pullrequestreview-6086894962) · **reviewed** I reviewed 4e476c2 offline on a 32-lane host model. I found no blocking bug in the paired lowering. Checked and exact: - EXEC/VCC ballots per half, plus `scc_some` / `wave_wide` - `v_readlane` (`& 31` / `& 32`; a per-lane index is refused), `v_readfirstlane`, `v_writelane`, and `v_mbcnt` via `console_lane` - DPP row masks; permlane16/x16 and swizzle within 32 lanes - `ds_bpermute` kept within its half - per-lane LDS bounds and the barriers around writes - the integer reduction and prefix joins - the rule that refuses groups over 64 threads with more than one block plus LDS or `s_barrier` **Points I'd raise, most important first:** 1. **It isn't opt-in, and it invalidates the whole cache.** With every switch unset, the 28 `DEFAULT_WAVE_PAIRS_HASHES` programs change. `TRANSLATOR_VERSION` 8 also re-translates every cached program, and `VICTORY_WAVE_PAIRS*` sits in the global cache key rather than in a per-shader key. On our side, the first run after a change like that spends minutes recompiling pipelines. A per-container key that changes only for the programs the policy affects, like `wave_wide_cache_override`, would avoid that. 2. **The FP32 replay assumes a float mode it never reads** (`paired_fp32.rs` ~253-264). Non-IEEE, round-to-nearest-even and flush-to-zero are assumed for the default 28, and for every program with `VICTORY_WAVE_PAIRS_FP32`. Only `s_setreg` is scanned; the program's own initial MODE isn't. If a program starts in another mode, the "exact" sums come out wrong with no warning. 3. **Naming a default program explicitly breaks its float path** (`mod.rs` ~655). `by_default` requires `VICTORY_WAVE_PAIRS_ONLY` to be unset. So `VICTORY_WAVE_PAIRS_ONLY=5dc3b25986622949`, or an empty value, drops that program's float-mode confirmation, refuses its FP32 sections, and falls back to the old form. 4. **A side change not in the description** (`lower.rs` ~569, ~2040, ~2099, and `widen`). With `VICTORY_WAVE_WIDE=1`, the loop-exit lane regions from fork #993 are active. At ~2040 and ~2099 they aren't gated on wave64 or a 32-lane host. 5. **Minor:** - `exact_floats` (`paired_fp32.rs` ~311) is set but never read. - Every translated container is blake3-hashed before the wave32-compute check. - A deny list (`..._NOT=<hashes>`) would help bisect a program that misbehaves in the paired form. **Offline numbers** (`VICTORY_HOST_WAVE=32 victory translate --list --validate` over the title's shaders). The baseline is main, where 57 compute programs end in an APPROXIMATE form. | Run | Programs changed | APPROXIMATE → exact | Compute validation | |---|---|---|---| | Switches unset | the 28 listed | 8 of 57 | 2759/2761, unchanged | | `VICTORY_WAVE_PAIRS_ONLY=none` | 0 (identical to main) | — | unchanged | | `VICTORY_WAVE_PAIRS=1` | 126 | 30 of 57 | 2759/2761, no new failures | | `=1` + `VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz` | 142 | 35 of 57 | only the two old 32,900-byte LDS programs fail | In the last run `6871d6e4b3ac9a10` (water `CS_TransmissionVolumetrics`) translates and validates, but under the assumed float mode from point 2. `cargo test -p victory-shader --lib`: 330 passed, 0 failed, 18 ignored. For context: we had independently ported the paired form from fxceless #1397 into a local branch. This PR covers more (FP32 replay, LDS atomics without a returned value, 30 vs 23 of the 57), and our port kept `ds_bpermute` across all 64 lanes, which this PR correctly doesn't. So we're dropping ours in favour of this one. *AI-assisted review (Claude Code).*
Author
Owner

@⁠Smoodie7 on GitHub · 2026-11-27 12:39 UTC · original

A data point from an RTX 4070 Ti SUPER (Series S): in every run on main, two compute programs fail with "no wave32 lowering": a10179ab7eda0dc3 and 6871d6e4b3ac9a10. Without RT, the water shows dark rectangular blocks near the bridge, which matches what this PR describes. With this PR merged on current main, both programs translate (0 failures). That run also had -RayTracing on, which broke the water in another way (not drawn at all), so I can't judge the blocks from it yet. Next is this PR alone, without RT, on the same boat route. Details: #212

**@⁠Smoodie7** on GitHub · 2026-11-27 12:39 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218520526) A data point from an RTX 4070 Ti SUPER (Series S): in every run on main, two compute programs fail with "no wave32 lowering": `a10179ab7eda0dc3` and `6871d6e4b3ac9a10`. Without RT, the water shows dark rectangular blocks near the bridge, which matches what this PR describes. With this PR merged on current main, both programs translate (0 failures). That run also had `-RayTracing` on, which broke the water in another way (not drawn at all), so I can't judge the blocks from it yet. Next is this PR alone, without RT, on the same boat route. Details: https://git.gtahub.st/github/TaynanGT--Vice-Tay/issues/212
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 12:47 UTC · original

@⁠Smoodie7 The two successful translations on the 4070 Ti SUPER give us a clear compile result. For the water, the RT-off pass on the same bridge route is the control. Keep the allow-list and upscaler fixed, and compare the same part of the water while the camera moves.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218670935) @⁠Smoodie7 The two successful translations on the 4070 Ti SUPER give us a clear compile result. For the water, the RT-off pass on the same bridge route is the control. Keep the allow-list and upscaler fixed, and compare the same part of the water while the camera moves.
Author
Owner

@⁠Garu667 on GitHub · 2026-11-27 12:48 UTC · original

Tested 4e476c2 on an RTX 3080 10 GB (32-lane waves, driver cache warm, victory shaders run once for each list), Series S, -Machine auto (4070 profile), boat mission autosave. One run each, so read the fps as rough.

Run Build / switches Water colour Dark flat rectangles on open water Crash / card loss fps (median, last 40 lines)
147 #208, default paired list turquoise yes none (7.5 min) 7.6
148 #208, VICTORY_WAVE_PAIRS_ONLY=none turquoise yes, same blocks from the same camera angle none 8.5
149 #208, VICTORY_INDIRECT_BATCH=1 (instead of play.ps1's 2) turquoise yes none (stopped at 7 min) 9.5
  • All 28 listed programs translate in the paired form here (WAVE64-PAIRS-ONLY translated with paired Wave64 x28), and 5dc3b25986622949 / 6f225b641c5b0708 get host pipelines in game.
  • The rectangles are not from the paired form: they are the same with the list off. They also stay with VICTORY_INDIRECT_BATCH=1, so the batch mode does not explain them either. They show mostly on the water off to the side or in the distance, as horizontal strips (the camera angle decides how many you see).
  • 6871d6e4b3ac9a10 and a10179ab7eda0dc3 (CS_TransmissionVolumetrics, _VolumePortalsOnly) are still refused (no wave32 lowering for this wave64 program). Is that on purpose? In a separate port of #1397/#1419 onto this tree, both translate in the paired form with VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz and pass dxil.dll's validator. They were not requested in this scene, though, so I can't say what they change on screen.
  • In that port we hit the same refusal as your commit 3: this tree's v_permlane(x)16 reads the old vdst for its inactive-lane fallback, and that old vdst was a reduction scratch with no shape. We skipped the fallback in the paired form when there is no guard (every lane runs). Your placeholder handles it another way; just mentioning it in case it helps.

Happy to run more on the 3080. VICTORY_ARGS_WRITERS isn't in this tree, so I can't try it for the rectangles.

**@⁠Garu667** on GitHub · 2026-11-27 12:48 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218704649) Tested 4e476c2 on an **RTX 3080 10 GB** (32-lane waves, driver cache warm, `victory shaders` run once for each list), Series S, `-Machine auto` (4070 profile), boat mission autosave. One run each, so read the fps as rough. | Run | Build / switches | Water colour | Dark flat rectangles on open water | Crash / card loss | fps (median, last 40 lines) | |---|---|---|---|---|---| | 147 | #208, default paired list | turquoise | yes | none (7.5 min) | 7.6 | | 148 | #208, `VICTORY_WAVE_PAIRS_ONLY=none` | turquoise | yes, same blocks from the same camera angle | none | 8.5 | | 149 | #208, `VICTORY_INDIRECT_BATCH=1` (instead of play.ps1's `2`) | turquoise | yes | none (stopped at 7 min) | 9.5 | - All 28 listed programs translate in the paired form here (`WAVE64-PAIRS-ONLY translated with paired Wave64` x28), and 5dc3b25986622949 / 6f225b641c5b0708 get host pipelines in game. - **The rectangles are not from the paired form:** they are the same with the list off. They also stay with `VICTORY_INDIRECT_BATCH=1`, so the batch mode does not explain them either. They show mostly on the water off to the side or in the distance, as horizontal strips (the camera angle decides how many you see). - `6871d6e4b3ac9a10` and `a10179ab7eda0dc3` (`CS_TransmissionVolumetrics`, `_VolumePortalsOnly`) are still refused (`no wave32 lowering for this wave64 program`). Is that on purpose? In a separate port of #1397/#1419 onto this tree, both translate in the paired form with `VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz` and pass dxil.dll's validator. They were not requested in this scene, though, so I can't say what they change on screen. - In that port we hit the same refusal as your commit 3: this tree's `v_permlane(x)16` reads the old vdst for its inactive-lane fallback, and that old vdst was a reduction scratch with no shape. We skipped the fallback in the paired form when there is no guard (every lane runs). Your placeholder handles it another way; just mentioning it in case it helps. Happy to run more on the 3080. `VICTORY_ARGS_WRITERS` isn't in this tree, so I can't try it for the rectangles.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 12:53 UTC · original

@⁠Garu667 All 28 listed programs reaching translation on the 3080 is useful. The same rectangles with the paired list off and with batch mode 1 are a stronger clue for this scene. The two additional shaders weren’t requested on that route, so their validator pass stays separate from the water result. Keep the existing list for the next same-angle comparison.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218805325) @⁠Garu667 All 28 listed programs reaching translation on the 3080 is useful. The same rectangles with the paired list off and with batch mode 1 are a stronger clue for this scene. The two additional shaders weren’t requested on that route, so their validator pass stays separate from the water result. Keep the existing list for the next same-angle comparison.
Author
Owner

@⁠Garu667 on GitHub · 2026-11-27 13:02 UTC · original

@⁠Smoodie7 A follow-up from the 3080, on the boat mission (not the bridge route): with this PR merged on current main (5b2dc68), 6871d6e4b3ac9a10 and a10179ab7eda0dc3 still fail unless they are listed. With them listed (the 28 defaults + those two in VICTORY_WAVE_PAIRS_ONLY, VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz), all 30 translate and validate. In game (run 150), neither of the two is ever dispatched in this scene, and the dark rectangles on the water are unchanged, from the same camera angle as runs 147/148. So here the blocks come from something else; the bridge route may well be a different case. I'll bisect the water pipelines with VICTORY_SKIP_PIPELINES and report back.

**@⁠Garu667** on GitHub · 2026-11-27 13:02 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218991493) @⁠Smoodie7 A follow-up from the 3080, on the boat mission (not the bridge route): with this PR merged on current main (5b2dc68), `6871d6e4b3ac9a10` and `a10179ab7eda0dc3` still fail unless they are listed. With them listed (the 28 defaults + those two in `VICTORY_WAVE_PAIRS_ONLY`, `VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz`), all 30 translate and validate. In game (run 150), neither of the two is ever dispatched in this scene, and the dark rectangles on the water are unchanged, from the same camera angle as runs 147/148. So here the blocks come from something else; the bridge route may well be a different case. I'll bisect the water pipelines with `VICTORY_SKIP_PIPELINES` and report back.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 13:09 UTC · original

@⁠Garu667 The 30-program validation confirms the expanded list works for compilation. On this boat route the two additions weren’t dispatched, and the same rectangles remained. That keeps the bridge case separate. Track the passes that actually ran in the affected shot before associating the blocks with a shader.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:09 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7219121347) @⁠Garu667 The 30-program validation confirms the expanded list works for compilation. On this boat route the two additions weren’t dispatched, and the same rectangles remained. That keeps the bridge case separate. Track the passes that actually ran in the affected shot before associating the blocks with a shader.
Author
Owner

@⁠efsebayern on GitHub · 2026-11-27 13:39 UTC · original

I tested this in game with ray tracing off on an RTX 4080 SUPER 16 GB, i7-13700K, 32 GB, Windows 11.

  • Build: diag with --features diagnostics, main 0982bde with this PR (4e476c2) and #206 (292adb5) merged locally.
  • Settings: -Console series-s -Machine 4070, launcher defaults, plus VICTORY_WAVE_PAIRS=1 and VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz. I played by hand on the water.

Darker rectangular patches on the water

  • With only #206 they flicker on the water.
  • With this PR added they are fewer, but not gone.
  • With this PR alone (without #206; the stand-in's Resolve role isn't running there), there was no visible change.

Stability: no device loss and no crash in either session. That includes c06aa62112ffba4c, which now takes the paired form; in the wave-wide form it had lost the device on this card before. Saving a game worked.

Performance

  • Once pipelines were made, fps matched the #206-only run, at about 13-15 fps in the same area.
  • The first start took about 5 minutes at around 3 fps. Over 2,000 pipelines were being made at once, because the translator version bump re-translates the whole cache (point 1 of my earlier review).

AI-assisted (Claude Code).

**@⁠efsebayern** on GitHub · 2026-11-27 13:39 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7219763295) I tested this in game with ray tracing off on an **RTX 4080 SUPER 16 GB, i7-13700K, 32 GB, Windows 11**. - **Build:** `diag` with `--features diagnostics`, `main` `0982bde` with this PR (`4e476c2`) and #206 (`292adb5`) merged locally. - **Settings:** `-Console series-s -Machine 4070`, launcher defaults, plus `VICTORY_WAVE_PAIRS=1` and `VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz`. I played by hand on the water. **Darker rectangular patches on the water** - With only #206 they flicker on the water. - With this PR added they are **fewer, but not gone**. - With this PR alone (without #206; the stand-in's Resolve role isn't running there), there was no visible change. **Stability:** no device loss and no crash in either session. That includes `c06aa62112ffba4c`, which now takes the paired form; in the wave-wide form it had lost the device on this card before. Saving a game worked. **Performance** - Once pipelines were made, fps matched the #206-only run, at about 13-15 fps in the same area. - The first start took about 5 minutes at around 3 fps. Over 2,000 pipelines were being made at once, because the translator version bump re-translates the whole cache (point 1 of my earlier review). *AI-assisted (Claude Code).*
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 13:43 UTC · original

@⁠efsebayern The 4080 SUPER comparison separates the warming cost from steady state. Once ready, both builds are around 13–15 FPS; the first launch spends about five minutes at 3 FPS with more than 2,000 pipelines being made. The fewer rectangles with #206 plus #208 are a partial image result. Keep the paired test scoped to that route and warmed cache.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:43 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7219867812) @⁠efsebayern The 4080 SUPER comparison separates the warming cost from steady state. Once ready, both builds are around 13–15 FPS; the first launch spends about five minutes at 3 FPS with more than 2,000 pipelines being made. The fewer rectangles with #206 plus #208 are a partial image result. Keep the paired test scoped to that route and warmed cache.
Author
Owner

@⁠Garu667 on GitHub · 2026-11-27 14:14 UTC · original

Found the program behind the dark rectangles on the boat mission (RTX 3080, #208 merged on 5b2dc68, same side view along the shore in every run):

1aa247ed3653b616 water_shading:CS_TransmissionVolumetrics_GenerateTiles. Adding it to the paired list removes the rectangles.

Run VICTORY_WAVE_PAIRS_ONLY Rectangles
147, 150 28 defaults (+ 6871/a101 in 150) yes
151 every wave64 compute program (local =all: 843 paired, 308 refused and kept their usual form) none
152 28 + the 39 water/ocean programs the scene uses none
153 28 + 18 water rendering ones (water_shading, SSR/denoise water, deferred_tiled water, underwater mask) none
154 28 + the 8 water_shading none
155 28 + Classification_Water, GenerateTiles, ClearTiles, Temporal_Tiled none
156 28 + Classification_Water, GenerateTiles none
157 28 + 1aa247ed3653b616 (GenerateTiles) alone none
158 28 + 0e366d15868e17bd (Classification_Water) alone yes: counter-test

Without the paired form, this program takes the "without skips" 32-lane retry (VICTORY_WAVE_WHY: "without early-outs: … a lane mask exchanged where not every lane runs", then "without skips: wave Some(32)"). That form validates but builds wrong tiles. In the paired form it translates and validates (VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz). No crash or card loss in any of runs 147–158.

Suggestion: add 1aa247ed3653b616 to DEFAULT_WAVE_PAIRS_HASHES. This is likely the same artifact as #270 (aircraft view). efsebayern's "fewer, but not gone" with VICTORY_WAVE_PAIRS=1 would fit too: that switch doesn't retry this program, because the "without skips" form already succeeds.

**@⁠Garu667** on GitHub · 2026-11-27 14:14 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7220533392) Found the program behind the dark rectangles on the boat mission (RTX 3080, #208 merged on 5b2dc68, same side view along the shore in every run): **`1aa247ed3653b616` `water_shading:CS_TransmissionVolumetrics_GenerateTiles`.** Adding it to the paired list removes the rectangles. | Run | `VICTORY_WAVE_PAIRS_ONLY` | Rectangles | |---|---|---| | 147, 150 | 28 defaults (+ 6871/a101 in 150) | yes | | 151 | every wave64 compute program (local `=all`: 843 paired, 308 refused and kept their usual form) | **none** | | 152 | 28 + the 39 water/ocean programs the scene uses | none | | 153 | 28 + 18 water rendering ones (`water_shading`, SSR/denoise water, `deferred_tiled` water, underwater mask) | none | | 154 | 28 + the 8 `water_shading` | none | | 155 | 28 + `Classification_Water`, `GenerateTiles`, `ClearTiles`, `Temporal_Tiled` | none | | 156 | 28 + `Classification_Water`, `GenerateTiles` | none | | **157** | **28 + `1aa247ed3653b616` (GenerateTiles) alone** | **none** | | 158 | 28 + `0e366d15868e17bd` (Classification_Water) alone | **yes**: counter-test | Without the paired form, this program takes the "without skips" 32-lane retry (`VICTORY_WAVE_WHY`: "without early-outs: … a lane mask exchanged where not every lane runs", then "without skips: wave Some(32)"). That form validates but builds wrong tiles. In the paired form it translates and validates (`VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz`). No crash or card loss in any of runs 147–158. **Suggestion:** add `1aa247ed3653b616` to `DEFAULT_WAVE_PAIRS_HASHES`. This is likely the same artifact as #270 (aircraft view). efsebayern's "fewer, but not gone" with `VICTORY_WAVE_PAIRS=1` would fit too: that switch doesn't retry this program, because the "without skips" form already succeeds.
Use the shared base version for the branch merge. The final paired list assigns its own cache version.
Add the tile generator to the paired list using Garu667's matched RTX 3080 boat runs. Use translator version 11 to rebuild affected shaders. Evidence: https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7220533392
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 14:34 UTC · original

@⁠Garu667 Runs 157 and 158 isolate GenerateTiles. I added 1aa247ed3653b616 as the 29th entry in 42cdc77 and brought #208 up to current main. Translator version 11 gives the updated list a fresh cache. For the next comparison, use the original 28 and the 29 on the same build with VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz in both runs.

**@⁠TaynanGT** on GitHub · 2026-11-27 14:34 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7220956053) @⁠Garu667 Runs 157 and 158 isolate GenerateTiles. I added `1aa247ed3653b616` as the 29th entry in `42cdc77` and brought #208 up to current main. Translator version 11 gives the updated list a fresh cache. For the next comparison, use the original 28 and the 29 on the same build with `VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz` in both runs.
Author
Owner

@⁠Garu667 on GitHub · 2026-11-27 15:06 UTC · original

Boat comparison at 42cdc77 on the RTX 3080, as asked: one executable, Series S, -Machine auto, warm cache for each list, same side view along the shore.

Run Paired list Rectangles on open water Crash / card loss
162 original 28 (VICTORY_WAVE_PAIRS_ONLY=<28>, VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz) yes none
163 default 29 (no switch) none none

Note for anyone repeating it: with an explicit list, VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz is needed too, or only 21 of the 28 translate in the paired form.

**@⁠Garu667** on GitHub · 2026-11-27 15:06 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7221629580) Boat comparison at `42cdc77` on the RTX 3080, as asked: one executable, Series S, `-Machine auto`, warm cache for each list, same side view along the shore. | Run | Paired list | Rectangles on open water | Crash / card loss | |---|---|---|---| | 162 | original 28 (`VICTORY_WAVE_PAIRS_ONLY=<28>`, `VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz`) | yes | none | | 163 | default 29 (no switch) | **none** | none | Note for anyone repeating it: with an explicit list, `VICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz` is needed too, or only 21 of the 28 translate in the paired form.
github-bot changed target branch from main to gh-pr/208/base 2026-11-27 15:20:23 +00:00
github manually merged commit 50f8d14d3d into gh-pr/208/base 2026-11-27 15:20:26 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 15:20 UTC · original

@⁠Garu667 The same-executable 28-to-29 comparison confirms the fix in the boat scene. The tested shader changes are in main at 5e588e8 after all four CI checks passed. Your note about the explicit FP32 mode matters for anyone reproducing the 28-shader control. The Dodo view is the remaining check.

**@⁠TaynanGT** on GitHub · 2026-11-27 15:20 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7221937371) @⁠Garu667 The same-executable 28-to-29 comparison confirms the fix in the boat scene. The tested shader changes are in main at `5e588e8` after all four CI checks passed. Your note about the explicit FP32 mode matters for anyone reproducing the 28-shader control. The Dodo view is the remaining check.
This discussion has been locked. Commenting is limited to contributors.
No description provided.