Underwater: tile-sized blocks from the water's tiled light on an RTX 3070 (8fc22547c); gone with VICTORY_WATER_LIGHT=0 #739

Closed
opened 2026-11-28 04:44:39 +00:00 by github-bot · 18 comments
Owner

@⁠CuteBooty on GitHub · 2026-11-28 04:42 UTC · original

Follow-up to #539 (thanks for the fix in .10: the underwater scene is drawn again here). This is a separate, smaller fault that is left, so I am opening a new issue instead of reopening that one.

What I see: under water, rectangular blocks the size of screen tiles where the water's blue haze / light and the un-hazed scene swap: dark or un-hazed blocks with stair-stepped edges across the view at eye level, and flat white cut-out patches on the surface seen from below. Looking down at the sea floor the picture is clean; looking level or up towards the surface it is far worse. Worst under a pier.

With VICTORY_WATER_LIGHT=0 the blocks are gone (I did not compare how bright the water is with and without it).

PC: RTX 3070 8 GB (driver 621.24), Ryzen 7 5800X3D, 32 GB, Windows 11. Series S, 1920x1080, diagnostics profile, started with victory.exe run.

Build Settings Underwater
64d4931b3 + PR #560 no DLSS, water light default scene drawn, blocks (clean looking down, bad level / up)
8fc22547c DLSS performance + frame generation 2x, water light default scene drawn, blocks at eye level, white patches on the surface
8fc22547c same, VICTORY_WATER_LIGHT=0 scene drawn, no blocks, no white patches

All three builds carry a few local commits unrelated to the water. In the last run the log has, from the first dive on:

dropped N/frame without a host pipeline: left out on purpose: the water's tiled light on a host of 32-lane waves, left out (VICTORY_WATER_LIGHT=0)

So on this card the blocks come from the two tiled water-light programs (5dc3b25986622949, 6f225b641c5b0708: CS_TransmissionVolumetrics_Tiled and _Tiled_LocalLights), not from 926c46bab3b86bd6. The comment in pipeline/make.rs describes the same picture for their wave-wide form (whole tiles dark around boats, along shores and under bridges) and says it was fixed, which is why they run by default now; on the 3070 it still shows under water.

Limits of this report:

  • One dive per row. The last two runs also differ in two unrelated settings (VICTORY_AMBIENT_SPECULAR=0 and a texture budget switch were set in the last one), so the switch was not the only change.
  • Not tested: which of the two programs it is (VICTORY_LEAVE_OUT one at a time), VICTORY_LDS_FIRST_INIT=0, VICTORY_LOOPS_WAVE=0, the water surface from above, Series X, your release exe.
  • Not tested: PR #221 / PR #326 (per-lane tile slots for GenerateTiles), which may or may not be the same thing.
  • Possibly related: the "straight-edged dark patch" on an RTX 4070 Ti SUPER on 8fc2254 in #606.

I have screenshots of all three cases (blocks under the pier, the clean sea floor, the clean view with the switch) but am not attaching them; I can describe any of them in more detail, or run one of the switch tests above if you say which is most useful.

Measurements and this report were prepared with an AI assistant (Claude Code); the runs were played on my machine.

**@⁠CuteBooty** on GitHub · 2026-11-28 04:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739) Follow-up to #539 (thanks for the fix in .10: the underwater scene is drawn again here). This is a separate, smaller fault that is left, so I am opening a new issue instead of reopening that one. **What I see:** under water, rectangular blocks the size of screen tiles where the water's blue haze / light and the un-hazed scene swap: dark or un-hazed blocks with stair-stepped edges across the view at eye level, and flat white cut-out patches on the surface seen from below. Looking down at the sea floor the picture is clean; looking level or up towards the surface it is far worse. Worst under a pier. **With `VICTORY_WATER_LIGHT=0` the blocks are gone** (I did not compare how bright the water is with and without it). **PC:** RTX 3070 8 GB (driver 621.24), Ryzen 7 5800X3D, 32 GB, Windows 11. Series S, 1920x1080, diagnostics profile, started with `victory.exe run`. | Build | Settings | Underwater | |---|---|---| | `64d4931b3` + PR #560 | no DLSS, water light default | scene drawn, blocks (clean looking down, bad level / up) | | `8fc22547c` | DLSS performance + frame generation 2x, water light default | scene drawn, blocks at eye level, white patches on the surface | | `8fc22547c` | same, `VICTORY_WATER_LIGHT=0` | scene drawn, no blocks, no white patches | All three builds carry a few local commits unrelated to the water. In the last run the log has, from the first dive on: ``` dropped N/frame without a host pipeline: left out on purpose: the water's tiled light on a host of 32-lane waves, left out (VICTORY_WATER_LIGHT=0) ``` So on this card the blocks come from the two tiled water-light programs (`5dc3b25986622949`, `6f225b641c5b0708`: `CS_TransmissionVolumetrics_Tiled` and `_Tiled_LocalLights`), not from `926c46bab3b86bd6`. The comment in `pipeline/make.rs` describes the same picture for their wave-wide form (whole tiles dark around boats, along shores and under bridges) and says it was fixed, which is why they run by default now; on the 3070 it still shows under water. **Limits of this report:** - One dive per row. The last two runs also differ in two unrelated settings (`VICTORY_AMBIENT_SPECULAR=0` and a texture budget switch were set in the last one), so the switch was not the only change. - Not tested: which of the two programs it is (`VICTORY_LEAVE_OUT` one at a time), `VICTORY_LDS_FIRST_INIT=0`, `VICTORY_LOOPS_WAVE=0`, the water surface from above, Series X, your release exe. - Not tested: PR #221 / PR #326 (per-lane tile slots for `GenerateTiles`), which may or may not be the same thing. - Possibly related: the "straight-edged dark patch" on an RTX 4070 Ti SUPER on `8fc2254` in #606. I have screenshots of all three cases (blocks under the pier, the clean sea floor, the clean view with the switch) but am not attaching them; I can describe any of them in more detail, or run one of the switch tests above if you say which is most useful. Measurements and this report were prepared with an AI assistant (Claude Code); the runs were played on my machine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 04:44:39 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 04:42 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-28 04:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7234211046) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 06:32 UTC · original

Thanks for tagging me, and for the clear table.

Before the switch tests, one trap: VICTORY_LOOPS_WAVE and VICTORY_LDS_FIRST_INIT were not in the shader cache's key. With a warm cache, setting either one changes nothing, because you are served the translations cached without it. #807 adds them to the key. Since you build from source, cherry-picking #807 is the easiest way around it. Without it, run those tests on an empty shader cache: rename %LOCALAPPDATA%\victory\cache\shaders for the run, or point VICTORY_CACHE_DIR at an empty folder.

In order, the tests that would tell the most:

  1. Which program. Keep the water light on and add VICTORY_LEAVE_OUT=5dc3b25986622949 (CS_TransmissionVolumetrics_Tiled). Then do another run with VICTORY_LEAVE_OUT=6f225b641c5b0708 (_Tiled_LocalLights) instead. VICTORY_LEAVE_OUT acts when pipelines are made, so the cache does not matter here. If you already leave other programs out, keep them in the same comma-separated list.
  2. Which lowering. With both programs on, run once with VICTORY_LOOPS_WAVE=0, then once with VICTORY_LDS_FIRST_INIT=0, each with #807 or a fresh cache. These are the two lowerings the open-water fix came from, according to the comment on WATER_LIGHT in pipeline/make.rs. If the blocks change with one of them, that lowering is where the underwater view goes wrong.

The same dive under the pier, with a level view, is enough for each run. Once (1) points at one program and (2) at one switch, I'll look at that path in the translator.

**@⁠kibagami-nc** on GitHub · 2026-11-28 06:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7235355265) Thanks for tagging me, and for the clear table. Before the switch tests, one trap: `VICTORY_LOOPS_WAVE` and `VICTORY_LDS_FIRST_INIT` were not in the shader cache's key. With a warm cache, setting either one changes nothing, because you are served the translations cached without it. #807 adds them to the key. Since you build from source, cherry-picking #807 is the easiest way around it. Without it, run those tests on an empty shader cache: rename `%LOCALAPPDATA%\victory\cache\shaders` for the run, or point `VICTORY_CACHE_DIR` at an empty folder. In order, the tests that would tell the most: 1. **Which program.** Keep the water light on and add `VICTORY_LEAVE_OUT=5dc3b25986622949` (`CS_TransmissionVolumetrics_Tiled`). Then do another run with `VICTORY_LEAVE_OUT=6f225b641c5b0708` (`_Tiled_LocalLights`) instead. `VICTORY_LEAVE_OUT` acts when pipelines are made, so the cache does not matter here. If you already leave other programs out, keep them in the same comma-separated list. 2. **Which lowering.** With both programs on, run once with `VICTORY_LOOPS_WAVE=0`, then once with `VICTORY_LDS_FIRST_INIT=0`, each with #807 or a fresh cache. These are the two lowerings the open-water fix came from, according to the comment on `WATER_LIGHT` in `pipeline/make.rs`. If the blocks change with one of them, that lowering is where the underwater view goes wrong. The same dive under the pier, with a level view, is enough for each run. Once (1) points at one program and (2) at one switch, I'll look at that path in the translator.
Author
Owner

@⁠grosterr on GitHub · 2026-11-28 07:46 UTC · original

The same blocks show on the surface too, seen from above, in the open: a dark rectangle with straight edges around objects on the water (a mission marker and the buoy under it, and once under our own boat), standing in the water as a column below the object. They go away with VICTORY_WATER_LIGHT=0.

It is not the paired Wave64 form of #348: the blocks are there with VICTORY_WAVE_PAIRS=0 too (cache warmed for each setting, no misses in the runs).

RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main 63b902f with open PRs on top, Series S, DLSS Quality, FSR 3 frame generation 2x, the boat after the prologue:

VICTORY_WATER_LIGHT VICTORY_WAVE_PAIRS Blocks on the surface
default (on) 1 yes (two runs)
default (on) 0 yes
0 1 none

🤖 Generated with Claude Code

**@⁠grosterr** on GitHub · 2026-11-28 07:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7236157235) The same blocks show on the **surface** too, seen from above, in the open: a dark rectangle with straight edges around objects on the water (a mission marker and the buoy under it, and once under our own boat), standing in the water as a column below the object. They go away with `VICTORY_WATER_LIGHT=0`. It is not the paired Wave64 form of #348: the blocks are there with `VICTORY_WAVE_PAIRS=0` too (cache warmed for each setting, no misses in the runs). RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main `63b902f` with open PRs on top, Series S, DLSS Quality, FSR 3 frame generation 2x, the boat after the prologue: | `VICTORY_WATER_LIGHT` | `VICTORY_WAVE_PAIRS` | Blocks on the surface | |---|---|---| | default (on) | 1 | yes (two runs) | | default (on) | 0 | yes | | 0 | 1 | none | 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 08:20 UTC · original

Thanks, that narrows it. Off with VICTORY_WATER_LIGHT=0, and the same with or without the paired form: the blocks come from the water light's own programs.

The buoy and the mission marker make a simpler test than the dive. The same two tests as above work there, each run on a fresh shader cache or with #807:

  1. Which program: VICTORY_LEAVE_OUT=5dc3b25986622949 in one run, then VICTORY_LEAVE_OUT=6f225b641c5b0708 in another.
  2. Which lowering: both programs on, with VICTORY_LOOPS_WAVE=0 in one run, then VICTORY_LDS_FIRST_INIT=0 in another.

A block that stands as a column under an object would fit a tile whose depth range is wrong: tiles where an object stands in front of the water would get it wrong, and the tiles under it too. That is why the program, and then the lowering, would tell where to look.

**@⁠kibagami-nc** on GitHub · 2026-11-28 08:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7236522601) Thanks, that narrows it. Off with `VICTORY_WATER_LIGHT=0`, and the same with or without the paired form: the blocks come from the water light's own programs. The buoy and the mission marker make a simpler test than the dive. The same two tests as above work there, each run on a fresh shader cache or with #807: 1. **Which program:** `VICTORY_LEAVE_OUT=5dc3b25986622949` in one run, then `VICTORY_LEAVE_OUT=6f225b641c5b0708` in another. 2. **Which lowering:** both programs on, with `VICTORY_LOOPS_WAVE=0` in one run, then `VICTORY_LDS_FIRST_INIT=0` in another. A block that stands as a column under an object would fit a tile whose depth range is wrong: tiles where an object stands in front of the water would get it wrong, and the tiles under it too. That is why the program, and then the lowering, would tell where to look.
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-11-28 08:28 UTC · original

I can distinguish one underwater artifact on an RTX 4070 Ti SUPER (16 GB, Windows driver 617.42) from the surface rectangle around a buoy. I captured a stepped dark region at the left of the submerged view, then a horizontal band further into the dive. At 2560×1440 into 3840×2160, three edges were already present in the linear scene colour entering DLSS. The bright/dark ratios in the blue channel were 18.10, 21.26 and 20.43 there, and 17.83, 21.23 and 20.53 at the corresponding output positions.

I instrumented compute shader 926c46bab3b86bd6 on a local diagnostic build. I prefilled its two 1280×720 outputs and made a direct exit at the translator’s 4,096-iteration guard write the guest loop-head offset into one of them. Five captures paired the dispatch, DLSS evaluation and actual present by guest frame. Across all five:

Loop head (byte offset) Complete 8×8 groups hitting the guard
0x101a8 1,033
0x11f80 6

The other output retained its prefill at exactly those groups. In the DLSS input, 1,038 of the 1,039 groups showed the diagnostic colour at their centres. None of the other 70,961 groups did. One dive under the dock had zero hits and both outputs were written throughout. With instrumentation removed, the same kind of step is visible in the natural scene colour.

This gives a specific probe for the submerged steps on this machine. I have not reproduced the buoy test or established why the 3070 changes with VICTORY_WATER_LIGHT=0. My initial guard-on/off comparison reused shader and pipeline caches, so I’m excluding it as evidence of a visual fix.

**@⁠Yoshi-233** on GitHub · 2026-11-28 08:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7236607155) I can distinguish one underwater artifact on an RTX 4070 Ti SUPER (16 GB, Windows driver 617.42) from the surface rectangle around a buoy. I captured a stepped dark region at the left of the submerged view, then a horizontal band further into the dive. At 2560×1440 into 3840×2160, three edges were already present in the linear scene colour entering DLSS. The bright/dark ratios in the blue channel were 18.10, 21.26 and 20.43 there, and 17.83, 21.23 and 20.53 at the corresponding output positions. I instrumented compute shader `926c46bab3b86bd6` on a local diagnostic build. I prefilled its two 1280×720 outputs and made a direct exit at the translator’s 4,096-iteration guard write the guest loop-head offset into one of them. Five captures paired the dispatch, DLSS evaluation and actual present by guest frame. Across all five: | Loop head (byte offset) | Complete 8×8 groups hitting the guard | | --- | ---: | | `0x101a8` | 1,033 | | `0x11f80` | 6 | The other output retained its prefill at exactly those groups. In the DLSS input, 1,038 of the 1,039 groups showed the diagnostic colour at their centres. None of the other 70,961 groups did. One dive under the dock had zero hits and both outputs were written throughout. With instrumentation removed, the same kind of step is visible in the natural scene colour. This gives a specific probe for the submerged steps on this machine. I have not reproduced the buoy test or established why the 3070 changes with `VICTORY_WATER_LIGHT=0`. My initial guard-on/off comparison reused shader and pipeline caches, so I’m excluding it as evidence of a visual fix.
Author
Owner

@⁠MrEjecutor on GitHub · 2026-11-28 08:51 UTC · original

Test 1 ("which program") on the surface, at the mission marker of the boat mission after the prologue. I ran it last night before seeing the request, so it is on 8fc2254, not 63b902f.

PC: RTX 5060 Ti 16 GB, Core Ultra 5 225F, 32 GB, Windows 11. Series S, 1920x1080, no DLSS, no frame generation, diagnostics profile, started with victory.exe run. 8fc2254 plus two local commits that do not touch the water (a port of VICTORY_THIN_BAKE and scripted keys). VICTORY_LEAVE_OUT keeps the two programs the launcher already leaves out; the hash below is added to that list.

Water light Added to VICTORY_LEAVE_OUT Open water The tiles at the marker (a floating package with a blinking light)
default (on) nothing turquoise, lit dark rectangle with straight edges (seen in 2 runs)
default (on) 6f225b641c5b0708 (_Tiled_LocalLights) turquoise, lit dark rectangle, the same
default (on) 5dc3b25986622949 (_Tiled) dark blue, unlit lit: a turquoise rectangle where the dark one was
VICTORY_WATER_LIGHT=0 nothing dark blue, unlit no rectangle anywhere in the run (the boat did not pass close to the marker)

One run each for the second, third and fourth rows. In the second run the log shows no "shader translated" line for 6f225b641c5b0708, so it was really left out.

How I read it: the rectangle is the set of tiles the local-lights program shades. Alone, that program lights them. With _Tiled running as well they come out dark, as if its result were lost or written over. So on this card the shading of _Tiled_LocalLights looks right by itself, and the fault shows only when both run: the split of tiles between the two lists, or _Tiled writing tiles that are not its own.

Three more things from the same night:

  • The same dark rectangles stand beside a bridge lamp and a pier, not only at the marker. Each is next to a local light.
  • With fxceless's rewrite of the tile lists in GenerateTiles on top (cd93552, one slot per lane), the rectangle at the marker is still there (1 run, seen close up). In about 170 captures looked at away from the marker I saw none, against 3 of 18 without it, but those were not the same viewpoints, so I would not count that as an effect.
  • translate --list with VICTORY_HOST_WAVE=32 gives the same emitted hash for both programs with the translator of 64d4931 and with the one of 8fc2254.

Not tested: test 2 (VICTORY_LOOPS_WAVE=0, VICTORY_LDS_FIRST_INIT=0) at the marker: I ran both with those names added to the cache key, but the boat did not pass close enough to the marker to judge. Nothing under water. 63b902f. The Series X profile.

AI-assisted (Claude Code): the runs and this text; the captures were judged by eye on my PC. No game files attached.

**@⁠MrEjecutor** on GitHub · 2026-11-28 08:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7236859162) Test 1 ("which program") on the surface, at the mission marker of the boat mission after the prologue. I ran it last night before seeing the request, so it is on `8fc2254`, not `63b902f`. **PC:** RTX 5060 Ti 16 GB, Core Ultra 5 225F, 32 GB, Windows 11. Series S, 1920x1080, **no DLSS, no frame generation**, diagnostics profile, started with `victory.exe run`. `8fc2254` plus two local commits that do not touch the water (a port of `VICTORY_THIN_BAKE` and scripted keys). `VICTORY_LEAVE_OUT` keeps the two programs the launcher already leaves out; the hash below is added to that list. | Water light | Added to `VICTORY_LEAVE_OUT` | Open water | The tiles at the marker (a floating package with a blinking light) | |---|---|---|---| | default (on) | nothing | turquoise, lit | **dark rectangle** with straight edges (seen in 2 runs) | | default (on) | `6f225b641c5b0708` (`_Tiled_LocalLights`) | turquoise, lit | dark rectangle, the same | | default (on) | `5dc3b25986622949` (`_Tiled`) | dark blue, unlit | **lit**: a turquoise rectangle where the dark one was | | `VICTORY_WATER_LIGHT=0` | nothing | dark blue, unlit | no rectangle anywhere in the run (the boat did not pass close to the marker) | One run each for the second, third and fourth rows. In the second run the log shows no "shader translated" line for `6f225b641c5b0708`, so it was really left out. **How I read it:** the rectangle is the set of tiles the local-lights program shades. Alone, that program lights them. With `_Tiled` running as well they come out dark, as if its result were lost or written over. So on this card the shading of `_Tiled_LocalLights` looks right by itself, and the fault shows only when both run: the split of tiles between the two lists, or `_Tiled` writing tiles that are not its own. Three more things from the same night: - The same dark rectangles stand beside a bridge lamp and a pier, not only at the marker. Each is next to a local light. - With fxceless's rewrite of the tile lists in `GenerateTiles` on top (`cd93552`, one slot per lane), the rectangle at the marker is still there (1 run, seen close up). In about 170 captures looked at away from the marker I saw none, against 3 of 18 without it, but those were not the same viewpoints, so I would not count that as an effect. - `translate --list` with `VICTORY_HOST_WAVE=32` gives the same emitted hash for both programs with the translator of `64d4931` and with the one of `8fc2254`. **Not tested:** test 2 (`VICTORY_LOOPS_WAVE=0`, `VICTORY_LDS_FIRST_INIT=0`) at the marker: I ran both with those names added to the cache key, but the boat did not pass close enough to the marker to judge. Nothing under water. `63b902f`. The Series X profile. AI-assisted (Claude Code): the runs and this text; the captures were judged by eye on my PC. No game files attached.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 09:15 UTC · original

Thanks, that narrows it a lot, and your reading fits the table:

  • Without _Tiled (5dc3b25986622949), the rectangle is lit and the open water is not. So those tiles are _Tiled_LocalLights' tiles, and it shades them right on its own.
  • With both, they come out dark. So _Tiled either writes over tiles that are not its own, or gets them in its list.

The rectangles standing beside bridge lamps and piers fit that too: those are the tiles a local light touches.

Test 2 would tell whether a wave64 lowering is behind it. A bridge lamp or a pier should be easier to reach than the marker:

  1. VICTORY_LOOPS_WAVE=0 in one run, then VICTORY_LDS_FIRST_INIT=0 in another. Each needs the name added to the cache key (as you did), or a fresh cache.
  2. Use the same view each time, with nothing else changed.

If one of them makes the rectangle lit with both programs on, the fault is in how that lowering translates the split of tiles between the two lists.

**@⁠kibagami-nc** on GitHub · 2026-11-28 09:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7237119193) Thanks, that narrows it a lot, and your reading fits the table: - Without `_Tiled` (`5dc3b25986622949`), the rectangle is lit and the open water is not. So those tiles are `_Tiled_LocalLights`' tiles, and it shades them right on its own. - With both, they come out dark. So `_Tiled` either writes over tiles that are not its own, or gets them in its list. The rectangles standing beside bridge lamps and piers fit that too: those are the tiles a local light touches. Test 2 would tell whether a wave64 lowering is behind it. A bridge lamp or a pier should be easier to reach than the marker: 1. `VICTORY_LOOPS_WAVE=0` in one run, then `VICTORY_LDS_FIRST_INIT=0` in another. Each needs the name added to the cache key (as you did), or a fresh cache. 2. Use the same view each time, with nothing else changed. If one of them makes the rectangle lit with both programs on, the fault is in how that lowering translates the split of tiles between the two lists.
Author
Owner

@⁠grosterr on GitHub · 2026-11-28 10:32 UTC · original

Test 2 on the surface, at the buoy and mission marker of the boat mission after the prologue. Water light on, both programs on, each run on its own warmed cache (#807 is in this build, so both names are in the key; no misses in any run).

RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main 63b902f with open PRs on top (#807 and #857 among them), Series S, DLSS Quality, FSR 3 frame generation 2x.

VICTORY_WAVE_PAIRS Switch Open water Tiles at the buoy / marker
0, and unset none blue dark rectangle, steady
1 none dark dark rectangle, steady
1 VICTORY_LOOPS_WAVE=0 blue dark tiles at the buoy, and dark horizontal slabs of tiles over the open water that move every frame
1 VICTORY_LOOPS_WAVE=0 + VICTORY_LDS_FIRST_INIT=0 blue larger dark blocks at the buoy, slabs along the horizon, also changing every frame

So neither switch makes the rectangle lit. With VICTORY_LOOPS_WAVE=0 the fault spreads to tiles all over the water and changes from frame to frame. (The two switch runs had VICTORY_WAVE_PAIRS=1; _GenerateTiles uses no LDS and is translated the same way with or without it.)

How _GenerateTiles (1aa247ed3653b616, wave64, 8x8 threads) is translated here, with VICTORY_WAVE_WHY=1 and VICTORY_WAVE_PAIRS unset:

WAVE64-RETRY without early-outs: GFX10 code at 0x6dc: a lane mask exchanged where not every lane runs is not supported
WAVE-LOOPS 1 loop branches taken by each host wave together
WAVE64-RETRY without skips: wave Some(32)

In its code the split is an if/else after the per-tile loop over the lights. v_cmpx_eq_u32 exec, 0, v10 (no local light) appends the tile at offset 0 of the counter buffer, and s_andn2_b64 exec, s[0:1], exec (the rest) appends it at offset 32. Each side uses s_ff1/s_bcnt1 of the 64-lane exec, one buffer_atomic_add, v_readfirstlane and v_mbcnt. A tile in both lists, or an index taken from the other half-wave's count, would give what the tables show. The form it lands in, "without skips", is the one I am looking at next.

A correction to my earlier comment: the rectangle is not from the paired Wave64 form of #348, but the dark open water on our build was. With VICTORY_WAVE_PAIRS=1 that form is tried first for every wave64 compute program that uses LDS, even one that already translates, so the water light's LDS programs lose main's lowering. Unset or 0, the open water is blue. I will change that in #348 so that the paired form is only the fallback.

🤖 Generated with Claude Code

**@⁠grosterr** on GitHub · 2026-11-28 10:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7237957556) Test 2 on the surface, at the buoy and mission marker of the boat mission after the prologue. Water light on, both programs on, each run on its own warmed cache (#807 is in this build, so both names are in the key; no misses in any run). RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main `63b902f` with open PRs on top (#807 and #857 among them), Series S, DLSS Quality, FSR 3 frame generation 2x. | `VICTORY_WAVE_PAIRS` | Switch | Open water | Tiles at the buoy / marker | |---|---|---|---| | `0`, and unset | none | blue | dark rectangle, steady | | `1` | none | dark | dark rectangle, steady | | `1` | `VICTORY_LOOPS_WAVE=0` | blue | dark tiles at the buoy, and dark horizontal slabs of tiles over the open water that move every frame | | `1` | `VICTORY_LOOPS_WAVE=0` + `VICTORY_LDS_FIRST_INIT=0` | blue | larger dark blocks at the buoy, slabs along the horizon, also changing every frame | So neither switch makes the rectangle lit. With `VICTORY_LOOPS_WAVE=0` the fault spreads to tiles all over the water and changes from frame to frame. (The two switch runs had `VICTORY_WAVE_PAIRS=1`; `_GenerateTiles` uses no LDS and is translated the same way with or without it.) How `_GenerateTiles` (`1aa247ed3653b616`, wave64, 8x8 threads) is translated here, with `VICTORY_WAVE_WHY=1` and `VICTORY_WAVE_PAIRS` unset: ``` WAVE64-RETRY without early-outs: GFX10 code at 0x6dc: a lane mask exchanged where not every lane runs is not supported WAVE-LOOPS 1 loop branches taken by each host wave together WAVE64-RETRY without skips: wave Some(32) ``` In its code the split is an if/else after the per-tile loop over the lights. `v_cmpx_eq_u32 exec, 0, v10` (no local light) appends the tile at offset 0 of the counter buffer, and `s_andn2_b64 exec, s[0:1], exec` (the rest) appends it at offset 32. Each side uses `s_ff1`/`s_bcnt1` of the 64-lane exec, one `buffer_atomic_add`, `v_readfirstlane` and `v_mbcnt`. A tile in both lists, or an index taken from the other half-wave's count, would give what the tables show. The form it lands in, "without skips", is the one I am looking at next. A correction to my earlier comment: the rectangle is not from the paired Wave64 form of #348, but the dark open water on our build was. With `VICTORY_WAVE_PAIRS=1` that form is tried first for every wave64 compute program that uses LDS, even one that already translates, so the water light's LDS programs lose main's lowering. Unset or `0`, the open water is blue. I will change that in #348 so that the paired form is only the fallback. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 10:51 UTC · original

That is the place, and your reading of _GenerateTiles is precise. Each side of the split is the allocation idiom on 64 lanes:

  1. s_bcnt1 of the 64-lane exec gives the count;
  2. one buffer_atomic_add reserves that many;
  3. v_readfirstlane hands out the base;
  4. v_mbcnt gives each lane its place.

On two host waves of 32 it only holds if those agree on one console wave. The count, the single atomic and the base must cover both halves, and the upper half's v_mbcnt must count the lower half's active lanes too. If one of those is done per half, two tiles get the same index, or a tile goes into both lists. With VICTORY_LOOPS_WAVE=0 it would also change from frame to frame with which lanes run, as you saw.

That could be checked without the game, in crates/victory-shader/src/emit/wave64_tests.rs. #822's full_lds_local_wave_lds_atomic_allocation_lowers_to_wave32 has the shape for running a synthetic wave64 program on the card. Make a program with your if/else:

  • v_cmpx to one side;
  • s_andn2_b64 exec to the other;
  • each side appending its lane with buffer_atomic_add at offsets 0 and 32.

Lowered "without skips", the test checks that no lane lands in both lists, no index repeats, and the two counts add up to the lanes that ran.

**@⁠kibagami-nc** on GitHub · 2026-11-28 10:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7238170999) That is the place, and your reading of `_GenerateTiles` is precise. Each side of the split is the allocation idiom on 64 lanes: 1. `s_bcnt1` of the 64-lane exec gives the count; 2. one `buffer_atomic_add` reserves that many; 3. `v_readfirstlane` hands out the base; 4. `v_mbcnt` gives each lane its place. On two host waves of 32 it only holds if those agree on one console wave. The count, the single atomic and the base must cover both halves, and the upper half's `v_mbcnt` must count the lower half's active lanes too. If one of those is done per half, two tiles get the same index, or a tile goes into both lists. With `VICTORY_LOOPS_WAVE=0` it would also change from frame to frame with which lanes run, as you saw. That could be checked without the game, in `crates/victory-shader/src/emit/wave64_tests.rs`. #822's `full_lds_local_wave_lds_atomic_allocation_lowers_to_wave32` has the shape for running a synthetic wave64 program on the card. Make a program with your if/else: - `v_cmpx` to one side; - `s_andn2_b64 exec` to the other; - each side appending its lane with `buffer_atomic_add` at offsets 0 and 32. Lowered "without skips", the test checks that no lane lands in both lists, no index repeats, and the two counts add up to the lanes that ran.
Author
Owner

@⁠grosterr on GitHub · 2026-11-28 11:11 UTC · original

I ran that test before seeing your comment, and the split holds on the card.

The program is the shape of _GenerateTiles: 64 lanes, one per tile. Tiles without water leave at once (v_cmpx_ne_u32 and s_cbranch_execz). The others look for a light in a loop that each lane leaves on its own, with a buffer load in the body. Then the if/else: v_cmpx_eq_u32 to one side and s_andn2_b64 exec, s[0:1], exec to the other. Each side appends its lane with the idiom (s_ff1/s_bcnt1 of exec, one buffer_atomic_add at offset 0 or 32, v_readfirstlane, v_mbcnt lo/hi). The second list grows down from the end of the same buffer through v_xad_u32, as in the game.

It goes through super::emit with TEST_HOST_WAVE=32 and lands in the same form as the game's program, with the same three VICTORY_WAVE_WHY lines:

WAVE64-RETRY without early-outs: GFX10 code at 0xd4: a lane mask exchanged where not every lane runs is not supported
WAVE-LOOPS 1 loop branches taken by each host wave together
WAVE64-RETRY without skips: wave Some(32)

The test ran 200 random cases on the RTX 3060, with water in 100, 90, 50 and 10 % of the tiles and a random light and loop limit per lane. In every case each tile that ran is in exactly one list, the right one. No index repeats, and the two counts add up to the lanes that ran. The result is the same with VICTORY_LOOPS_WAVE=0.

That fits MrEjecutor's run with cd93552, where the rectangle stayed. So the steady rectangle is not the split in this form. That leaves _Tiled (5dc3b25986622949) writing the local-light tiles itself.

Two limits. It is one thread group per dispatch, and it does not show the frame-to-frame slabs we see with VICTORY_LOOPS_WAVE=0, since it passes either way. Main's own note at the skip at 0x2da8 around _Tiled's slice loop describes dark tiles that move from frame to frame, so the slabs may well come from _Tiled too.

The test is crates/victory-shader/src/emit/water_tiles_tests.rs on our local branch (ignored, it needs the card). I can open it as a pull request if it would help.

🤖 Generated with Claude Code

**@⁠grosterr** on GitHub · 2026-11-28 11:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7238384880) I ran that test before seeing your comment, and the split holds on the card. The program is the shape of `_GenerateTiles`: 64 lanes, one per tile. Tiles without water leave at once (`v_cmpx_ne_u32` and `s_cbranch_execz`). The others look for a light in a loop that each lane leaves on its own, with a buffer load in the body. Then the if/else: `v_cmpx_eq_u32` to one side and `s_andn2_b64 exec, s[0:1], exec` to the other. Each side appends its lane with the idiom (`s_ff1`/`s_bcnt1` of exec, one `buffer_atomic_add` at offset 0 or 32, `v_readfirstlane`, `v_mbcnt` lo/hi). The second list grows down from the end of the same buffer through `v_xad_u32`, as in the game. It goes through `super::emit` with `TEST_HOST_WAVE=32` and lands in the same form as the game's program, with the same three `VICTORY_WAVE_WHY` lines: ``` WAVE64-RETRY without early-outs: GFX10 code at 0xd4: a lane mask exchanged where not every lane runs is not supported WAVE-LOOPS 1 loop branches taken by each host wave together WAVE64-RETRY without skips: wave Some(32) ``` The test ran 200 random cases on the RTX 3060, with water in 100, 90, 50 and 10 % of the tiles and a random light and loop limit per lane. In every case each tile that ran is in exactly one list, the right one. No index repeats, and the two counts add up to the lanes that ran. The result is the same with `VICTORY_LOOPS_WAVE=0`. That fits MrEjecutor's run with `cd93552`, where the rectangle stayed. So the steady rectangle is not the split in this form. That leaves `_Tiled` (`5dc3b25986622949`) writing the local-light tiles itself. Two limits. It is one thread group per dispatch, and it does not show the frame-to-frame slabs we see with `VICTORY_LOOPS_WAVE=0`, since it passes either way. Main's own note at the skip at 0x2da8 around `_Tiled`'s slice loop describes dark tiles that move from frame to frame, so the slabs may well come from `_Tiled` too. The test is `crates/victory-shader/src/emit/water_tiles_tests.rs` on our local branch (ignored, it needs the card). I can open it as a pull request if it would help. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 11:20 UTC · original

That settles the split, thanks. 200 random cases with each tile in exactly one list is a clean answer. Yes, please open the test as a pull request: it keeps that lowering honest if it ever changes.

For _Tiled, main already has a note on one of its loops, in crates/victory-shader/src/ir.rs, above stalls:

  • The loop: the skip at 0x2da8 wraps the loop at 0x2e60, which writes the slices up to the tile's farthest. Its counter is compared behind another skip, at 0x2e6c.
  • What went wrong: a tile none of whose lanes took the long path ran until the bound on loop turns, and its 64 pixels got no output. That was 59 of 3,364 water tiles in one frame, most along the horizon, and other ones each frame.
  • Main's fix: that skip is kept only when it is taken wave-wide.

With VICTORY_LOOPS_WAVE=0 it is no longer taken wave-wide, which fits your slabs along the horizon that move every frame.

The steady rectangle is the other half. With the lists right, _Tiled must reach the local-light tiles another way. Two ways would fit:

  • it writes past its own tiles, for instance slices of a volume that cover a neighbour;
  • _Tiled_LocalLights reads something of _Tiled's for its own tiles and finds nothing there, because _Tiled never ran them.

What each program writes and reads would tell which.

**@⁠kibagami-nc** on GitHub · 2026-11-28 11:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7238491624) That settles the split, thanks. 200 random cases with each tile in exactly one list is a clean answer. Yes, please open the test as a pull request: it keeps that lowering honest if it ever changes. For `_Tiled`, main already has a note on one of its loops, in `crates/victory-shader/src/ir.rs`, above `stalls`: - **The loop:** the skip at 0x2da8 wraps the loop at 0x2e60, which writes the slices up to the tile's farthest. Its counter is compared behind another skip, at 0x2e6c. - **What went wrong:** a tile none of whose lanes took the long path ran until the bound on loop turns, and its 64 pixels got no output. That was 59 of 3,364 water tiles in one frame, most along the horizon, and other ones each frame. - **Main's fix:** that skip is kept only when it is taken wave-wide. With `VICTORY_LOOPS_WAVE=0` it is no longer taken wave-wide, which fits your slabs along the horizon that move every frame. The steady rectangle is the other half. With the lists right, `_Tiled` must reach the local-light tiles another way. Two ways would fit: - it writes past its own tiles, for instance slices of a volume that cover a neighbour; - `_Tiled_LocalLights` reads something of `_Tiled`'s for its own tiles and finds nothing there, because `_Tiled` never ran them. What each program writes and reads would tell which.
Author
Owner

@⁠grosterr on GitHub · 2026-11-28 13:17 UTC · original

The steady dark rectangle at the buoy is gone with #888 on top of our build.

RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main 63b902f with open PRs (#348 with 5df24f4 among them), Series S, DLSS Quality K, FSR 3 frame generation 2x, water light on, VICTORY_WAVE_PAIRS unset. Same route as before: the boat at the buoy and mission marker. Open water blue, faces normal, no dark tiles at the buoy or the boats.

How it was narrowed down, without the game first. I built main and main plus each of #981, #978, #845, #888 and #894, and translated the 11 TransmissionVolumetrics programs with VICTORY_HOST_WAVE=32:

build 5dc3b25986622949 _Tiled 6f225b641c5b0708 _Tiled_LocalLights
main f3d455772406917d 7e782f4a7775a75c
+ #981, + #978, + #845, + #894 (each alone) same same
+ #888 dcab0e9597c8a532 d80c2e8301dae3f5

(#978 and #894 change only Submerged 926c46bab3b86bd6; the other eight programs are the same in every build.)

With #888, VICTORY_WAVE_WHY shows four more WAVE64-SKIP kept lines for _Tiled (0x478, 0x760, 0x3250, 0x36f0) and a sixth branch taken wave-wide (B11). Three of those skips guard per-lane slice loops:

v_min_i32 v0, 0x43, v0
v_cmpx_le_i32 exec, v1, v0
s_cbranch_execz ...        ; the skip
...                        ; a loop over the lanes' values, back edge on scc1

Without the skip, a host half of 32 lanes none of which passes the compare enters the loop with empty EXEC, runs to the loop bound, and leaves before the program's last 2D image stores (0x3814–0x382c), so those pixels keep what was there. A tile half covered by the buoy (or a boat) is such a half every frame, which fits a rectangle that does not move or flicker.

So of your two readings it was neither the lists nor a write past the tile: _Tiled ran its tiles but some host halves never got to their stores.

With #888 three programs of amd_fidelityfx_upscaler_xbox.dll no longer translate (477b52e73ddeb6f2, 8b437ab61d8008fe, 17af85f170e66f30: "a lane mask exchanged where not every lane runs" at 0x218); 206 shaders do not translate instead of 203. None of them shows in our runs' logs with DLSS, so I did not see an effect, but someone on the game's own upscaler might.

I will open the GenerateTiles test as a pull request, as you suggested.

AI-assisted (Claude Code): the run was judged by eye on my PC, and Claude wrote this text. No game files attached.

🤖 Generated with Claude Code

**@⁠grosterr** on GitHub · 2026-11-28 13:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7239835626) The steady dark rectangle at the buoy is gone with #888 on top of our build. RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main `63b902f` with open PRs (#348 with `5df24f4` among them), Series S, DLSS Quality K, FSR 3 frame generation 2x, water light on, `VICTORY_WAVE_PAIRS` unset. Same route as before: the boat at the buoy and mission marker. Open water blue, faces normal, no dark tiles at the buoy or the boats. How it was narrowed down, without the game first. I built main and main plus each of #981, #978, #845, #888 and #894, and translated the 11 TransmissionVolumetrics programs with `VICTORY_HOST_WAVE=32`: | build | `5dc3b25986622949` `_Tiled` | `6f225b641c5b0708` `_Tiled_LocalLights` | |---|---|---| | main | `f3d455772406917d` | `7e782f4a7775a75c` | | + #981, + #978, + #845, + #894 (each alone) | same | same | | + #888 | `dcab0e9597c8a532` | `d80c2e8301dae3f5` | (#978 and #894 change only `Submerged` `926c46bab3b86bd6`; the other eight programs are the same in every build.) With #888, `VICTORY_WAVE_WHY` shows four more `WAVE64-SKIP kept` lines for `_Tiled` (0x478, 0x760, 0x3250, 0x36f0) and a sixth branch taken wave-wide (B11). Three of those skips guard per-lane slice loops: ``` v_min_i32 v0, 0x43, v0 v_cmpx_le_i32 exec, v1, v0 s_cbranch_execz ... ; the skip ... ; a loop over the lanes' values, back edge on scc1 ``` Without the skip, a host half of 32 lanes none of which passes the compare enters the loop with empty EXEC, runs to the loop bound, and leaves before the program's last 2D image stores (0x3814–0x382c), so those pixels keep what was there. A tile half covered by the buoy (or a boat) is such a half every frame, which fits a rectangle that does not move or flicker. So of your two readings it was neither the lists nor a write past the tile: `_Tiled` ran its tiles but some host halves never got to their stores. With #888 three programs of `amd_fidelityfx_upscaler_xbox.dll` no longer translate (`477b52e73ddeb6f2`, `8b437ab61d8008fe`, `17af85f170e66f30`: "a lane mask exchanged where not every lane runs" at 0x218); 206 shaders do not translate instead of 203. None of them shows in our runs' logs with DLSS, so I did not see an effect, but someone on the game's own upscaler might. I will open the GenerateTiles test as a pull request, as you suggested. AI-assisted (Claude Code): the run was judged by eye on my PC, and Claude wrote this text. No game files attached. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-11-28 13:52 UTC · original

Thanks, @⁠grosterr, for testing #888 at the buoy on your RTX 3060. My 4070 Ti SUPER test covered the submerged shader with DLSS, so your run adds a surface case. Could you share the before-and-after translator log lines for the three FidelityFX shaders that now fail at 0x218? I’d like to track that regression on #888.

**@⁠Yoshi-233** on GitHub · 2026-11-28 13:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7240242814) Thanks, @⁠grosterr, for testing #888 at the buoy on your RTX 3060. My 4070 Ti SUPER test covered the submerged shader with DLSS, so your run adds a surface case. Could you share the before-and-after translator log lines for the three FidelityFX shaders that now fail at `0x218`? I’d like to track that regression on #888.
Author
Owner

@⁠grosterr on GitHub · 2026-11-28 17:07 UTC · original

@⁠Yoshi-233 here they are. translate --list --jobs 1 over amd_fidelityfx_upscaler_xbox.dll with VICTORY_HOST_WAVE=32, VICTORY_WAVE_WHY=1 and VICTORY_TRANSLATE_ONLY=477b52e73ddeb6f2, main 63b902f against main + #888 (the same on our nv4 tree):

main 63b902f:

WAVE64-RETRY without early-outs: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported
WAVE64-RETRY without skips: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported
WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only
WAVE64-RETRY without skips, scalars followed: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported
WAVE64-WIDE 1 branches taken wave-wide: [B6(s_cbranch_scc1,BACK)]
WAVE64-RETRY wave-wide branches: wave Some(32)
#477b52e73ddeb6f2 Cs emitted 3e2fd560a048bcf0

main + #888 (the first pass; the whole chain then runs once more, the same, in main's retry without VICTORY_LOOPS_WAVE):

WAVE64-SKIP kept at 0x178: a loop behind it does not end with no lane left
WAVE64-RETRY without early-outs: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported
WAVE64-RETRY without skips: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported
WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only
WAVE64-SKIP kept at 0x178: a loop behind it does not end with no lane left
WAVE64-RETRY without skips, scalars followed: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported
WAVE64-RETRY wave-wide branches: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported
WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only
WAVE64-RETRY local waves (APPROXIMATE), without early-outs: GFX10 code at 0x218: a lane mask read as data is not supported
WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only
WAVE64-RETRY local waves (APPROXIMATE), without skips: GFX10 code at 0x218: a lane mask read as data is not supported
WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only
WAVE64-RETRY local waves (APPROXIMATE): GFX10 code at 0x218: a lane mask read as data is not supported
WAVE64-RETRY local waves (APPROXIMATE, any mask), without early-outs: GFX10 code at 0x218: a lane mask read as data is not supported
WAVE64-RETRY local waves (APPROXIMATE, any mask), without skips: GFX10 code at 0x218: a lane mask read as data is not supported
WAVE64-RETRY local waves (APPROXIMATE, any mask): GFX10 code at 0x218: a lane mask read as data is not supported
#477b52e73ddeb6f2 Cs at 0x218  emit: a lane mask exchanged where not every lane runs

So with #888 the skip at 0x178 is kept, and then the wave-wide form, which main reached with one back edge widened (B6), stops at 0x218 because not every lane runs there any more. 8b437ab61d8008fe and 17af85f170e66f30 fail at the same 0x218 with the same message, and translate on main (main's digests: fdfaca7799b049fb, 7329ec6ddad75667).

MrEjecutor's retry above (translate once more with the old walk when the program does not translate with the guards kept) would bring these three back without touching the water programs, since _Tiled and _Tiled_LocalLights do translate with the guards kept.

None of the three shows in our play logs with DLSS on, so this is a regression only for runs on the title's own upscaler.

🤖 Generated with Claude Code

**@⁠grosterr** on GitHub · 2026-11-28 17:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7242772641) @⁠Yoshi-233 here they are. `translate --list --jobs 1` over `amd_fidelityfx_upscaler_xbox.dll` with `VICTORY_HOST_WAVE=32`, `VICTORY_WAVE_WHY=1` and `VICTORY_TRANSLATE_ONLY=477b52e73ddeb6f2`, main `63b902f` against main + #888 (the same on our nv4 tree): main `63b902f`: ``` WAVE64-RETRY without early-outs: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported WAVE64-RETRY without skips: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only WAVE64-RETRY without skips, scalars followed: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported WAVE64-WIDE 1 branches taken wave-wide: [B6(s_cbranch_scc1,BACK)] WAVE64-RETRY wave-wide branches: wave Some(32) #477b52e73ddeb6f2 Cs emitted 3e2fd560a048bcf0 ``` main + #888 (the first pass; the whole chain then runs once more, the same, in main's retry without `VICTORY_LOOPS_WAVE`): ``` WAVE64-SKIP kept at 0x178: a loop behind it does not end with no lane left WAVE64-RETRY without early-outs: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported WAVE64-RETRY without skips: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only WAVE64-SKIP kept at 0x178: a loop behind it does not end with no lane left WAVE64-RETRY without skips, scalars followed: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported WAVE64-RETRY wave-wide branches: GFX10 code at 0x218: a lane mask exchanged where not every lane runs is not supported WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only WAVE64-RETRY local waves (APPROXIMATE), without early-outs: GFX10 code at 0x218: a lane mask read as data is not supported WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only WAVE64-RETRY local waves (APPROXIMATE), without skips: GFX10 code at 0x218: a lane mask read as data is not supported WAVE64-RETRY local waves: not the allocation idiom at 0x63a8: a value that depends on the wave on some paths only WAVE64-RETRY local waves (APPROXIMATE): GFX10 code at 0x218: a lane mask read as data is not supported WAVE64-RETRY local waves (APPROXIMATE, any mask), without early-outs: GFX10 code at 0x218: a lane mask read as data is not supported WAVE64-RETRY local waves (APPROXIMATE, any mask), without skips: GFX10 code at 0x218: a lane mask read as data is not supported WAVE64-RETRY local waves (APPROXIMATE, any mask): GFX10 code at 0x218: a lane mask read as data is not supported #477b52e73ddeb6f2 Cs at 0x218 emit: a lane mask exchanged where not every lane runs ``` So with #888 the skip at 0x178 is kept, and then the wave-wide form, which main reached with one back edge widened (B6), stops at 0x218 because not every lane runs there any more. `8b437ab61d8008fe` and `17af85f170e66f30` fail at the same 0x218 with the same message, and translate on main (main's digests: `fdfaca7799b049fb`, `7329ec6ddad75667`). MrEjecutor's retry above (translate once more with the old walk when the program does not translate with the guards kept) would bring these three back without touching the water programs, since `_Tiled` and `_Tiled_LocalLights` do translate with the guards kept. None of the three shows in our play logs with DLSS on, so this is a regression only for runs on the title's own upscaler. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠tippythetaidum on GitHub · 2026-11-28 18:43 UTC · original

Same on a desktop RTX 5080 (driver 621.14, 32-lane), Ryzen 7 9800X3D, 32 GB, Windows 11 26200. Main 9300875 plus #393, #1014, #1197, #1264 and #1271, Series X 2560x1440, DLSS Performance, frame generation 4x. VICTORY_WATER_LIGHT is unset (on by default since 64d4931).

It happened in the "Bachelor Party" dive. A picture was saved every 20 s; 5 of about 16 underwater pictures show it:

  • right after going under: most of the view black in a staircase of square blocks, divers and fish visible through the rest;
  • swimming level through open water: a hard stepped edge between dark and lit water, and dark square blocks along the top of the view;
  • looking up at the surface over a reef: the surface's underside dark in jagged blocks.

Looking down at the reef and the sea floor, the picture was clean, as you describe. Every picture on the surface was clean.

Two more things from the same dive, in case they're related:

  • In the trench, the shadowed water beside the light shafts showed a coarse dot pattern.
  • The frame line at the first block picture had 706 draws dropped "without a host pipeline" (the lines around it 180 to 520). This tree refuses the wave64 programs a10179ab7eda0dc3 and 6b82bc7d22016cb5 at start (no wave32 lowering).

I haven't tried VICTORY_WATER_LIGHT=0 here yet. I'll run the same dive with it and report.

**@⁠tippythetaidum** on GitHub · 2026-11-28 18:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7244001568) Same on a desktop RTX 5080 (driver 621.14, 32-lane), Ryzen 7 9800X3D, 32 GB, Windows 11 26200. Main `9300875` plus #393, #1014, #1197, #1264 and #1271, Series X 2560x1440, DLSS Performance, frame generation 4x. `VICTORY_WATER_LIGHT` is unset (on by default since 64d4931). It happened in the "Bachelor Party" dive. A picture was saved every 20 s; 5 of about 16 underwater pictures show it: - right after going under: most of the view black in a staircase of square blocks, divers and fish visible through the rest; - swimming level through open water: a hard stepped edge between dark and lit water, and dark square blocks along the top of the view; - looking up at the surface over a reef: the surface's underside dark in jagged blocks. Looking down at the reef and the sea floor, the picture was clean, as you describe. Every picture on the surface was clean. Two more things from the same dive, in case they're related: - In the trench, the shadowed water beside the light shafts showed a coarse dot pattern. - The frame line at the first block picture had 706 draws dropped "without a host pipeline" (the lines around it 180 to 520). This tree refuses the wave64 programs `a10179ab7eda0dc3` and `6b82bc7d22016cb5` at start (no wave32 lowering). I haven't tried `VICTORY_WATER_LIGHT=0` here yet. I'll run the same dive with it and report.
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-11-29 02:27 UTC · original

Thanks @⁠grosterr for the before-and-after logs. On 63b902f, the wave-wide retry widens the B6 back edge and emits 477b52e73ddeb6f2. With #888 it keeps the branch at 0x178 and that retry also stops at 0x218. I’ve added all three hashes to the discussion on #888. Since none appeared in your DLSS play logs, the title’s own upscaler is the in-game configuration to check for this regression. Follow-up on #888

**@⁠Yoshi-233** on GitHub · 2026-11-29 02:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7249435528) Thanks @⁠grosterr for the before-and-after logs. On `63b902f`, the wave-wide retry widens the B6 back edge and emits `477b52e73ddeb6f2`. With #888 it keeps the branch at `0x178` and that retry also stops at `0x218`. I’ve added all three hashes to the discussion on #888. Since none appeared in your DLSS play logs, the title’s own upscaler is the in-game configuration to check for this regression. [Follow-up on #888](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/888)
Author
Owner

@⁠dheerajc8073 on GitHub · 2026-11-29 03:12 UTC · original

Submitted PR #1926 addressing this:

  • Root cause: In crates/victory-gpu/src/pipeline/make.rs, water_light_left_out checked v == "0" to leave the shaders out, which defaulted to keeping them enabled when VICTORY_WATER_LIGHT was unset. In addition, the F1 menu item in crates/victory-gpu/src/host/menu.rs defaulted to [("", "ON"), ("0", "OFF")].
  • Fix: Aligned make.rs and menu.rs with the README.md specification: on 32-lane hosts, water light shaders are left out by default unless VICTORY_WATER_LIGHT=1 is explicitly set (or turned ON in the F1 menu). This resolves the dark tile blocks underwater and on the surface out of the box, restores 5–15 fps on NVIDIA cards, while keeping opt-in testing (VICTORY_WATER_LIGHT=1) intact.
**@⁠dheerajc8073** on GitHub · 2026-11-29 03:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7249902731) Submitted PR #1926 addressing this: - **Root cause**: In `crates/victory-gpu/src/pipeline/make.rs`, `water_light_left_out` checked `v == "0"` to leave the shaders out, which defaulted to keeping them enabled when `VICTORY_WATER_LIGHT` was unset. In addition, the F1 menu item in `crates/victory-gpu/src/host/menu.rs` defaulted to `[("", "ON"), ("0", "OFF")]`. - **Fix**: Aligned `make.rs` and `menu.rs` with the `README.md` specification: on 32-lane hosts, water light shaders are left out by default unless `VICTORY_WATER_LIGHT=1` is explicitly set (or turned ON in the F1 menu). This resolves the dark tile blocks underwater and on the surface out of the box, restores 5–15 fps on NVIDIA cards, while keeping opt-in testing (`VICTORY_WATER_LIGHT=1`) intact.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-29 19:49 UTC · original

Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.

If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!

**@⁠trustno1-coder** on GitHub · 2026-11-29 19:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/739#issuecomment-7261591324) Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then. If it still happens on the [latest release](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/latest), please open a new issue with the play log and crashes.log from that run. Thanks for reporting!
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#739
No description provided.