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

Merged
Geckomacabre merged 10 commits from upstream-pr/208 into main 2026-11-27 15:18:41 +00:00
Geckomacabre commented 2026-11-27 09:52:22 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Geckomacabre on 2026-11-27T09:52:22Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5524604720 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208). Originally posted by [Geckomacabre](https://github.com/Geckomacabre) on 2026-11-27T09:52:22Z. --- 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)
TaynanGT commented 2026-11-27 09:59:34 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T09:59:34Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7215345056 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7215345056). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T09:59:34Z. --- @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.
efsebayern commented 2026-11-27 10:42:08 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by efsebayern on 2026-11-27T10:42:08Z.

Review: COMMENTED


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:review:6086894962 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#pullrequestreview-6086894962). Originally posted by [efsebayern](https://github.com/efsebayern) on 2026-11-27T10:42:08Z. **Review:** COMMENTED --- 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).*
Smoodie7 commented 2026-11-27 12:39:38 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Smoodie7 on 2026-11-27T12:39:38Z.


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://github.com/TaynanGT/Vice-Tay/issues/212#issuecomment-7218505518

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7218520526 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218520526). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-27T12:39:38Z. --- 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://github.com/TaynanGT/Vice-Tay/issues/212#issuecomment-7218505518
TaynanGT commented 2026-11-27 12:47:10 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T12:47:10Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7218670935 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218670935). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T12:47:10Z. --- @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.
Garu667 commented 2026-11-27 12:48:51 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Garu667 on 2026-11-27T12:48:51Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7218704649 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218704649). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-27T12:48:51Z. --- 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.
TaynanGT commented 2026-11-27 12:53:45 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T12:53:45Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7218805325 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218805325). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T12:53:45Z. --- @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.
Garu667 commented 2026-11-27 13:02:52 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Garu667 on 2026-11-27T13:02:52Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7218991493 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7218991493). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-27T13:02:52Z. --- @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.
TaynanGT commented 2026-11-27 13:09:05 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T13:09:05Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7219121347 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7219121347). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T13:09:05Z. --- @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.
efsebayern commented 2026-11-27 13:39:10 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by efsebayern on 2026-11-27T13:39:10Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7219763295 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7219763295). Originally posted by [efsebayern](https://github.com/efsebayern) on 2026-11-27T13:39:10Z. --- 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).*
TaynanGT commented 2026-11-27 13:43:35 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T13:43:35Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7219867812 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7219867812). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T13:43:35Z. --- @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.
Garu667 commented 2026-11-27 14:14:37 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Garu667 on 2026-11-27T14:14:37Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7220533392 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7220533392). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-27T14:14:37Z. --- 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.
TaynanGT commented 2026-11-27 14:34:30 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T14:34:30Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7220956053 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7220956053). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T14:34:30Z. --- @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.
Garu667 commented 2026-11-27 15:06:18 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Garu667 on 2026-11-27T15:06:18Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7221629580 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7221629580). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-27T15:06:18Z. --- 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.
TaynanGT commented 2026-11-27 15:20:33 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T15:20:33Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7221937371 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/208#issuecomment-7221937371). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T15:20:33Z. --- @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.
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
TaynanGT/Vice-Tay!208
No description provided.