fix(vk): the storage buffer search no longer takes a word only a comparison leads to for a buffer's base, so Gerudo Valley's far rock wall is lit from its own light probes #2939

Merged
HumanBean merged 2 commits from llun/Longshot:fix-gerudo-valley-wall-probes into main 2026-12-01 13:58:28 +00:00
Member

Summary

In Gerudo Valley, the far rock wall by the waterfall shows bright, blotchy patches when Link stands past x ≈ -16 (on
main: adult, Gerudo Valley, walk from the entrance down under the overhang by the river and look at the wall across the
water; step back and forth over the line and the patches come and go). A player's Nightly 951 video showed it; the
Switch 2 never does.

The wall (mesh program cddf4f2cc7c3d037) lights each vertex from the game's light probes, which it reaches through a
pointer loaded from the probe pointer table, plus an index. The storage buffer pass's base search (Track in
global_memory_to_storage_buffer_pass.cpp) walks back from an address to the first constant buffer word it can reach,
and here it reached c0[0x790] through a comparison: the index is built with a select whose condition compares
c0[0x790] with a value. It took c0[0x790], the mesh's own 0x2a700-byte vertex data buffer, for the base, so the
probe header, cell entries and bricks were read through that buffer, gigabytes past its end: 0. Every other vertex (the
first of each lane; the second goes through another path that stays global) then lit itself from the cell in the finest
probe pool's first slot instead of its own: patches 3-5x too bright, lighter or darker as the slot's cell changed with
Link's position. That is why the line is where the wall's cells stream in at the finest density.

A truth value carries no pointer: the search now stops at 1-bit values (comparisons, a select's condition, flags) as it
stops at loaded pointers since Lichii's guard. A select's values are still searched. Such an access is left global and
the run-time search finds the binding that holds it (the probe pointer table's, c0+0x880). In a run to the spot, 125 of
641,259 tracked accesses with a loaded pointer changed, all of them this probe lookup (c0+0x790, geometry stages);
everything else tracks as before.

Read first: Track in gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp, then
tests/test_storage_buffer_track.py.

The same search exists in Eden's current master without any stop (not even the loaded-pointer one); their team has
been told.

Testing

Tested: Windows 11, NVIDIA GeForce RTX 5080, driver 621.40. This branch (main @ 4908cc6d + the fix), in the game:
adult in Gerudo Valley, walked to the broken spot and across the line several times; the far wall stays evenly lit (the
user's own check, and screenshots below). Scripted (the same input recording to (-16.84, 46.74, -24.1), camera on the
wall): main shows the patches, this PR doesn't, in every run.

How it was found, for review: probe memory read through the control bridge was byte-exact and the CPU-side blend of the
game's own data gives practically the same light at both probe densities, while the GPU's differed; overwriting the
probes of one column of cells removed the blotches and restoring them brought them back; the draw's descriptors show
storage buffer #2 is c0+0x790 -> 0x2a700 bytes while the IR read the probe bricks through it; a tracking log named the
route (GetCbufU32 -> ULessThan -> SelectU32 -> ... -> IAdd32).

Checks: tests/test_storage_buffer_track.py (Track, BreadthFirstSearch and the pass's structs cut from the real
sources, against a stand-in IR) fails on main (FAIL:199 !Track(...): the wall's address tracked to c0+0x790) and
passes here, with g++ and with clang++ (llvm-mingw); with the fix's condition taken out it fails again.

mise run test (Windows, llvm-mingw, no MSVC): 814 passed, 61 failed here; 814 passed, 60 failed on main @ 4908cc6d,
the same setup. The failures are the same set but for nine that each fail on one side only under the 24-at-once load:
five here (test_audio_voice_biquad, test_audio_wave_buffer_release, test_direct_buffer_writes, test_frame_wait_bounds,
test_jobs_wait_runs_queued), which all pass run alone, and four on main (test_oot_camera_clearance, test_oot_wide_bubble,
test_oot_wide_save_picture, test_recorder_parts). The IR checks that build this pass and run here pass
(test_lens_eye_pass, test_sim_turf_pools); the ones that need spirv-val or POSIX compilers (global_load_16,
f2i_immediate, test_mesh_fallback_layout, test_depth_sample_types) are Linux's, for CI.

Still to test:

  • AMD RADV (Linux), Steam Deck, NVIDIA (Linux), Intel Arc (Windows): adult in Gerudo Valley, walk down to the overhang
    by the river past x = -16 and look at the far rock wall by the waterfall, expecting it evenly lit (main shows bright
    patches there), and no new missing or black geometry in Hyrule Field and Kakariko (by hand, or the Test Farm if a
    BigBean approves its stationary comparison). #1891 (AMD/Linux, rock shading near the Gerudo Valley entrance) may be
    the same bug; not verified.

Measurements

Verdict: no cost. Hyrule Field (adult): +5.4% fps by the tool's median, every run of this PR at or above every run
of main, but one pair is a tie and nothing in the change should speed it up: within the spread. At the Gerudo Valley
spot, where the changed program draws: level, run for run.

Setup: Windows 11, RTX 5080, driver 621.40; quality preset Custom, Render resolution 67 % (1280x720) at 1920x1080,
frame generation and V-Sync off, uncapped; the frame trace, 60 s (Hyrule Field) or 45 s (Gerudo Valley) after a
warm-up until no frame waited for a pipeline, interleaved runs, the median; dev.py ab --scene hyrule-field-adult, and
the same pieces (pin_options, read_trace, frame_stats) on the timing queue for Gerudo Valley. Measured on the
shared base 9b342b46 with these two commits on top (2b16ec99), against that base. The numbers still hold on main @
4908cc6d: the 15 commits main has since don't touch the storage buffer pass or what it tracks (they change descriptor
binding's caches, the texture pass and a grass setting), and the in-game check above ran on this PR's head.

Before: main @ 9b342b46 After: this PR @ 2b16ec99
Hyrule Field, fps (each run) 152.3 / 158.0 / 154.8 (median 154.8) 163.1 / 158.1 / 163.9 (median 163.1)
Hyrule Field, 1 % low fps 113.9 121.1
Hyrule Field, median frame time 6.35 ms 6.07 ms
Hyrule Field, p99 frame time 8.78 ms 8.26 ms
Gerudo Valley spot, mean frame time (each run) 6.964 / 6.574 ms 6.955 / 6.535 ms
Gerudo Valley spot, 1 % low fps (each run) 97.9 / 115.4 100.5 / 116.9
frames of 50 ms or more 0 0

Risks

An access whose only constant buffer word was reached through a truth value is now left global instead of bound to
that buffer; the run-time search reads it from whichever bound buffer, table or pool holds its address. Where none
does (an address outside every binding), it reads 0, as the wrong binding did. In the run above that is 125 accesses,
all the probe lookup. A revert is enough to undo it; there is no switch. After updating, players' translated programs
are made again once: the translator stamp covers the recompiler's folders (vk_progcache.cpp), so the first start
prepares the shaders again, as after any translator change. Saves and longshot_options.ini are untouched.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened. (The IR checks that build this pass are
    unchanged and pass here, or are Linux's for CI; the new check is added.)
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Built in this PR's game build with
    llvm-mingw; the changed file also -fsyntax-only -Wall -Wextra clean with llvm-mingw clang++ and with g++ 13 on
    Ubuntu 24.04, no warnings, as on main.)
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary In Gerudo Valley, the far rock wall by the waterfall shows bright, blotchy patches when Link stands past x ≈ -16 (on main: adult, Gerudo Valley, walk from the entrance down under the overhang by the river and look at the wall across the water; step back and forth over the line and the patches come and go). A player's Nightly 951 video showed it; the Switch 2 never does. The wall (mesh program `cddf4f2cc7c3d037`) lights each vertex from the game's light probes, which it reaches through a pointer loaded from the probe pointer table, plus an index. The storage buffer pass's base search (`Track` in `global_memory_to_storage_buffer_pass.cpp`) walks back from an address to the first constant buffer word it can reach, and here it reached `c0[0x790]` through a comparison: the index is built with a select whose condition compares `c0[0x790]` with a value. It took `c0[0x790]`, the mesh's own 0x2a700-byte vertex data buffer, for the base, so the probe header, cell entries and bricks were read through that buffer, gigabytes past its end: 0. Every other vertex (the first of each lane; the second goes through another path that stays global) then lit itself from the cell in the finest probe pool's first slot instead of its own: patches 3-5x too bright, lighter or darker as the slot's cell changed with Link's position. That is why the line is where the wall's cells stream in at the finest density. A truth value carries no pointer: the search now stops at 1-bit values (comparisons, a select's condition, flags) as it stops at loaded pointers since Lichii's guard. A select's values are still searched. Such an access is left global and the run-time search finds the binding that holds it (the probe pointer table's, c0+0x880). In a run to the spot, 125 of 641,259 tracked accesses with a loaded pointer changed, all of them this probe lookup (`c0+0x790`, geometry stages); everything else tracks as before. Read first: `Track` in `gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp`, then `tests/test_storage_buffer_track.py`. The same search exists in Eden's current `master` without any stop (not even the loaded-pointer one); their team has been told. ## Testing **Tested:** Windows 11, NVIDIA GeForce RTX 5080, driver 621.40. This branch (main @ 4908cc6d + the fix), in the game: adult in Gerudo Valley, walked to the broken spot and across the line several times; the far wall stays evenly lit (the user's own check, and screenshots below). Scripted (the same input recording to (-16.84, 46.74, -24.1), camera on the wall): main shows the patches, this PR doesn't, in every run. How it was found, for review: probe memory read through the control bridge was byte-exact and the CPU-side blend of the game's own data gives practically the same light at both probe densities, while the GPU's differed; overwriting the probes of one column of cells removed the blotches and restoring them brought them back; the draw's descriptors show storage buffer #2 is `c0+0x790 -> 0x2a700 bytes` while the IR read the probe bricks through it; a tracking log named the route (`GetCbufU32 -> ULessThan -> SelectU32 -> ... -> IAdd32`). Checks: `tests/test_storage_buffer_track.py` (Track, BreadthFirstSearch and the pass's structs cut from the real sources, against a stand-in IR) fails on main (`FAIL:199 !Track(...)`: the wall's address tracked to c0+0x790) and passes here, with g++ and with clang++ (llvm-mingw); with the fix's condition taken out it fails again. `mise run test` (Windows, llvm-mingw, no MSVC): 814 passed, 61 failed here; 814 passed, 60 failed on main @ 4908cc6d, the same setup. The failures are the same set but for nine that each fail on one side only under the 24-at-once load: five here (test_audio_voice_biquad, test_audio_wave_buffer_release, test_direct_buffer_writes, test_frame_wait_bounds, test_jobs_wait_runs_queued), which all pass run alone, and four on main (test_oot_camera_clearance, test_oot_wide_bubble, test_oot_wide_save_picture, test_recorder_parts). The IR checks that build this pass and run here pass (test_lens_eye_pass, test_sim_turf_pools); the ones that need spirv-val or POSIX compilers (global_load_16, f2i_immediate, test_mesh_fallback_layout, test_depth_sample_types) are Linux's, for CI. **Still to test:** - AMD RADV (Linux), Steam Deck, NVIDIA (Linux), Intel Arc (Windows): adult in Gerudo Valley, walk down to the overhang by the river past x = -16 and look at the far rock wall by the waterfall, expecting it evenly lit (main shows bright patches there), and no new missing or black geometry in Hyrule Field and Kakariko (by hand, or the Test Farm if a BigBean approves its stationary comparison). #1891 (AMD/Linux, rock shading near the Gerudo Valley entrance) may be the same bug; not verified. ## Measurements **Verdict:** no cost. Hyrule Field (adult): +5.4% fps by the tool's median, every run of this PR at or above every run of main, but one pair is a tie and nothing in the change should speed it up: within the spread. At the Gerudo Valley spot, where the changed program draws: level, run for run. Setup: Windows 11, RTX 5080, driver 621.40; quality preset Custom, Render resolution 67 % (1280x720) at 1920x1080, frame generation and V-Sync off, uncapped; the frame trace, 60 s (Hyrule Field) or 45 s (Gerudo Valley) after a warm-up until no frame waited for a pipeline, interleaved runs, the median; `dev.py ab --scene hyrule-field-adult`, and the same pieces (`pin_options`, `read_trace`, `frame_stats`) on the timing queue for Gerudo Valley. Measured on the shared base 9b342b46 with these two commits on top (2b16ec99), against that base. The numbers still hold on main @ 4908cc6d: the 15 commits main has since don't touch the storage buffer pass or what it tracks (they change descriptor binding's caches, the texture pass and a grass setting), and the in-game check above ran on this PR's head. | | Before: main @ 9b342b46 | After: this PR @ 2b16ec99 | |---|---|---| | Hyrule Field, fps (each run) | 152.3 / 158.0 / 154.8 (median 154.8) | 163.1 / 158.1 / 163.9 (median 163.1) | | Hyrule Field, 1 % low fps | 113.9 | 121.1 | | Hyrule Field, median frame time | 6.35 ms | 6.07 ms | | Hyrule Field, p99 frame time | 8.78 ms | 8.26 ms | | Gerudo Valley spot, mean frame time (each run) | 6.964 / 6.574 ms | 6.955 / 6.535 ms | | Gerudo Valley spot, 1 % low fps (each run) | 97.9 / 115.4 | 100.5 / 116.9 | | frames of 50 ms or more | 0 | 0 | ## Risks An access whose only constant buffer word was reached through a truth value is now left global instead of bound to that buffer; the run-time search reads it from whichever bound buffer, table or pool holds its address. Where none does (an address outside every binding), it reads 0, as the wrong binding did. In the run above that is 125 accesses, all the probe lookup. A revert is enough to undo it; there is no switch. After updating, players' translated programs are made again once: the translator stamp covers the recompiler's folders (`vk_progcache.cpp`), so the first start prepares the shaders again, as after any translator change. Saves and `longshot_options.ini` are untouched. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. (The IR checks that build this pass are unchanged and pass here, or are Linux's for CI; the new check is added.) - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Built in this PR's game build with llvm-mingw; the changed file also `-fsyntax-only -Wall -Wextra` clean with llvm-mingw clang++ and with g++ 13 on Ubuntu 24.04, no warnings, as on main.) - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fails on main: Track climbs through a comparison (c0[0x790] < x, a select's
condition) to c0[0x790] and takes it for the base of an address built from a
pointer loaded from memory. The far rock wall of Gerudo Valley reads its light
probes that way and got the vertex data buffer instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(vk): the storage buffer search no longer takes a word only a comparison leads to for a buffer's base, so Gerudo Valley's far rock wall is lit from its own light probes
Some checks failed
CI / What the change needs (pull_request) Successful in 5s
CI / Third-party parts and guide screenshots (pull_request) Failing after 8s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 30s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m55s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m45s
CI / Website build and checks (pull_request) Failing after 33s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m27s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m31s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
e041f65e13
The far rock wall by Gerudo Valley's waterfall (mesh program cddf4f2cc7c3d037)
reads its light probes' header, cell entries and bricks through a pointer
loaded from the probe pointer table, plus an index built with a select whose
condition compares c0[0x790] with a value. Track's breadth-first search went
through that comparison, took c0[0x790] (the mesh's own 0x2a700-byte vertex
data buffer) for the base, and the reads landed gigabytes past its end: 0.
Every other vertex of the wall (the first of each lane) then took its probes
from the cell in the finest pool's first slot, not its own: patches 3-5x too
bright past x = -16, where the wall's cells stream in at their finest density,
lighter or darker as that slot's cell changed.

A truth value carries no pointer: the search stops at 1-bit values as it stops
at loaded pointers. A select's values are still searched. Such an access is
left global, and the run-time search finds the binding that holds it (the
probe pointer table's, c0+0x880).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, NVIDIA GeForce RTX 5080, driver 621.40, this branch (main @ 4908cc6d + the fix). Adult in Gerudo Valley: walked from the entrance down to the overhang by the river (x about -17, where main shows the far wall's bright patches) and back and forth across x = -16 several times, looking at the far rock wall by the waterfall: evenly lit every time, no patches. The scripted run to (-16.84, 46.74, -24.1) with the camera on the wall shows the patches on main and an evenly lit wall here, in every run.

Tested in game: Windows 11, NVIDIA GeForce RTX 5080, driver 621.40, this branch (main @ 4908cc6d + the fix). Adult in Gerudo Valley: walked from the entrance down to the overhang by the river (x about -17, where main shows the far wall's bright patches) and back and forth across x = -16 several times, looking at the far rock wall by the waterfall: evenly lit every time, no patches. The scripted run to (-16.84, 46.74, -24.1) with the camera on the wall shows the patches on main and an evenly lit wall here, in every run.
Author
Member

Screenshots of the same spot, main on top, this PR below (Windows 11, RTX 5080, driver 621.40; Link at (-16.84, 46.74, -24.1), camera on the far wall by the waterfall, from the same input recording):

The scripted run: main (top) with the bright patches across the far wall, this PR (bottom) evenly lit

The first Gerudo Valley timing pair, start of the measured stretch: main (top), this PR (bottom)

Screenshots of the same spot, main on top, this PR below (Windows 11, RTX 5080, driver 621.40; Link at (-16.84, 46.74, -24.1), camera on the far wall by the waterfall, from the same input recording): ![The scripted run: main (top) with the bright patches across the far wall, this PR (bottom) evenly lit](https://git.magicbean.dev/attachments/a2812a54-6821-4e99-838b-87d823b01e9d) ![The first Gerudo Valley timing pair, start of the measured stretch: main (top), this PR (bottom)](https://git.magicbean.dev/attachments/4939055a-898f-40fd-9bd4-0a67d9328180)
Author
Member

Measurements: taken on the shared base 9b342b46 with this PR's two commits on top (2b16ec99) against that base. They still hold on main @ 4908cc6d, the head this PR is on: the 15 commits between them don't touch the storage buffer pass (global_memory_to_storage_buffer_pass.cpp) or BreadthFirstSearch; they change descriptor binding's caches (#2899, #2920), the texture pass (#2866) and the grass distance (#2929). The in-game check ran on this PR's head.

Measurements: taken on the shared base 9b342b46 with this PR's two commits on top (2b16ec99) against that base. They still hold on main @ 4908cc6d, the head this PR is on: the 15 commits between them don't touch the storage buffer pass (global_memory_to_storage_buffer_pass.cpp) or BreadthFirstSearch; they change descriptor binding's caches (#2899, #2920), the texture pass (#2866) and the grass distance (#2929). The in-game check ran on this PR's head.
llun changed title from WIP: fix(vk): the storage buffer search no longer takes a word only a comparison leads to for a buffer's base, so Gerudo Valley's far rock wall is lit from its own light probes to fix(vk): the storage buffer search no longer takes a word only a comparison leads to for a buffer's base, so Gerudo Valley's far rock wall is lit from its own light probes 2026-12-01 07:51:35 +00:00
Author
Member
@review
BeanBot requested changes 2026-12-01 07:53:45 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The wall fix is shown working on the tested NVIDIA Windows system, but the new check hard-codes g++ and can fail on supported compiler setups. The renderer change also still needs runs on the other hardware it can affect.

The search no longer treats a constant-buffer word reached only through a boolean as a buffer base. This fixes the reported wall lighting on the tested system, at the cost of sending affected accesses through the runtime buffer search.

Blocking (1): must change before merging.

  1. L4: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 8s.

Should fix (1): not blocking, but worth doing before merging.

  • L1 tests/test_storage_buffer_track.py:24: The test runner is forced to use g++ instead of its selected C++ compiler. (more on the line) Do: Pass --cxx {cxx}, as the other compiled IR checks do, and use the selected compiler for direct invocation as well.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497: The changed shader tracking path has not been checked on the other affected Tier 1 systems. (more on the line) Do: Run the reported wall reproduction and a representative traversal on AMD RADV, Steam Deck and NVIDIA Linux, checking for missing or incorrectly lit geometry.
  • L3 gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497: The requested Intel Arc rendering check remains outstanding. (more on the line) Do: Run the wall reproduction and representative traversal on Intel Arc as requested in Still to test.

@fix can do L1 and L4.

Checks: Still running: 8 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports that the patches reproduced on main and disappeared in repeated scripted and manual runs on Windows with an RTX 5080. The reported Gerudo Valley frame times were 6.964/6.574 ms before and 6.955/6.535 ms after, measured on an earlier shared base; they show no clear cost on that setup.

Other systems: The search is shared by shader stages and can change which accesses use runtime buffer lookup on Windows and Linux, across GPU vendors. The reported tracking run found 125 changed accesses, all in the probe lookup; AMD, Steam Deck, NVIDIA Linux and Intel runs are still needed to check rendering on those systems.

Switches: None added, changed or removed.

Reviewed: e041f65e13 against 4908cc6dad: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, both changed files, BreadthFirstSearch and the surrounding tracking and fallback paths. Skimmed the test runner, SPIR-V atomic fallback references, commit history and reported runs. The external Tooling AGENTS.md was unavailable; no docs/review-checklist.md was present. Screenshots were not accessible in the closed network.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance in trailers.
  • The fixture tests the actual Track search and would fail when the new boolean stop is removed, according to the reported checks.
  • The change adds no switch, renderer API change, generated file or committed game output.
  • The search continues through select values while stopping at their boolean condition.

Testing: Read-only review; no code, tests or project scripts were run. The supplied CI reports one head-only failure, which is left to the bot, and several checks still running.

Overlaps and merge order: Unknown; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The wall fix is shown working on the tested NVIDIA Windows system, but the new check hard-codes g++ and can fail on supported compiler setups. The renderer change also still needs runs on the other hardware it can affect. The search no longer treats a constant-buffer word reached only through a boolean as a buffer base. This fixes the reported wall lighting on the tested system, at the cost of sending affected accesses through the runtime buffer search. **Blocking (1)**: must change before merging. 1. **L4**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 8s. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `tests/test_storage_buffer_track.py:24`: The test runner is forced to use g++ instead of its selected C++ compiler. (more on the line) **Do:** Pass --cxx {cxx}, as the other compiled IR checks do, and use the selected compiler for direct invocation as well. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497`: The changed shader tracking path has not been checked on the other affected Tier 1 systems. (more on the line) **Do:** Run the reported wall reproduction and a representative traversal on AMD RADV, Steam Deck and NVIDIA Linux, checking for missing or incorrectly lit geometry. - **L3** `gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497`: The requested Intel Arc rendering check remains outstanding. (more on the line) **Do:** Run the wall reproduction and representative traversal on Intel Arc as requested in Still to test. `@fix` can do L1 and L4. **Checks:** Still running: 8 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports that the patches reproduced on main and disappeared in repeated scripted and manual runs on Windows with an RTX 5080. The reported Gerudo Valley frame times were 6.964/6.574 ms before and 6.955/6.535 ms after, measured on an earlier shared base; they show no clear cost on that setup. **Other systems:** The search is shared by shader stages and can change which accesses use runtime buffer lookup on Windows and Linux, across GPU vendors. The reported tracking run found 125 changed accesses, all in the probe lookup; AMD, Steam Deck, NVIDIA Linux and Intel runs are still needed to check rendering on those systems. **Switches:** None added, changed or removed. **Reviewed:** e041f65e130d against 4908cc6dadff: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, both changed files, BreadthFirstSearch and the surrounding tracking and fallback paths. Skimmed the test runner, SPIR-V atomic fallback references, commit history and reported runs. The external Tooling AGENTS.md was unavailable; no docs/review-checklist.md was present. Screenshots were not accessible in the closed network.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance in trailers. - The fixture tests the actual Track search and would fail when the new boolean stop is removed, according to the reported checks. - The change adds no switch, renderer API change, generated file or committed game output. - The search continues through select values while stopping at their boolean condition. **Testing:** Read-only review; no code, tests or project scripts were run. The supplied CI reports one head-only failure, which is left to the bot, and several checks still running. **Overlaps and merge order:** Unknown; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.</sub>
@ -491,2 +495,3 @@
const auto stop_at_memory = [](IR::Value operand) {
if (!operand.IsImmediate() && IsGlobalMemory(*operand.InstRecursive())) {
if (!operand.IsImmediate() &&
(IsGlobalMemory(*operand.InstRecursive()) || operand.InstRecursive()->Type() == IR::Type::U1)) {
Member

L2 (should fix): The changed shader tracking path has not been checked on the other affected Tier 1 systems.

When: The runtime lookup replaces direct storage-buffer accesses for affected shaders, but the reported game run covers only NVIDIA on Windows; rendering on AMD RADV, Steam Deck and NVIDIA Linux remains unverified.

Do: Run the reported wall reproduction and a representative traversal on AMD RADV, Steam Deck and NVIDIA Linux, checking for missing or incorrectly lit geometry.

**L2** (should fix): The changed shader tracking path has not been checked on the other affected Tier 1 systems. *When:* The runtime lookup replaces direct storage-buffer accesses for affected shaders, but the reported game run covers only NVIDIA on Windows; rendering on AMD RADV, Steam Deck and NVIDIA Linux remains unverified. **Do:** Run the reported wall reproduction and a representative traversal on AMD RADV, Steam Deck and NVIDIA Linux, checking for missing or incorrectly lit geometry.
Member

L3 (should fix): The requested Intel Arc rendering check remains outstanding.

When: Intel Arc can run the same translated shaders, but there is no reported run of the changed lookup on that driver.

Do: Run the wall reproduction and representative traversal on Intel Arc as requested in Still to test.

**L3** (should fix): The requested Intel Arc rendering check remains outstanding. *When:* Intel Arc can run the same translated shaders, but there is no reported run of the changed lookup on that driver. **Do:** Run the wall reproduction and representative traversal on Intel Arc as requested in Still to test.
@ -0,0 +21,4 @@
sys.path.insert(0, str(Path(__file__).resolve().parent)) # (python -I leaves the check's own folder off the path)
from srccut import between, block # noqa: E402
RUN_ALL_ARGS = ["--cxx", "g++"]
Member

L1 (should fix): The test runner is forced to use g++ instead of its selected C++ compiler.

When: On a supported Windows llvm-mingw setup with clang++ but no g++, run_all passes --cxx g++ and this check fails to start the compiler. It also ignores CXX when a different compiler is selected.

Do: Pass --cxx {cxx}, as the other compiled IR checks do, and use the selected compiler for direct invocation as well.

**L1** (should fix): The test runner is forced to use g++ instead of its selected C++ compiler. *When:* On a supported Windows llvm-mingw setup with clang++ but no g++, run_all passes --cxx g++ and this check fails to start the compiler. It also ignores CXX when a different compiler is selected. **Do:** Pass --cxx {cxx}, as the other compiled IR checks do, and use the selected compiler for direct invocation as well.
llun force-pushed fix-gerudo-valley-wall-probes from e041f65e13
Some checks failed
CI / What the change needs (pull_request) Successful in 5s
CI / Third-party parts and guide screenshots (pull_request) Failing after 8s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 30s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m55s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m45s
CI / Website build and checks (pull_request) Failing after 33s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m27s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m31s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
to 8b45198419
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m4s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m51s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m57s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m34s
CI / Website build and checks (pull_request) Failing after 35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 28m35s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 34m35s
beanstalk/approval can't be tested as asked: see the farm's comment
2026-12-01 07:57:55 +00:00
Compare
Author
Member

Thanks. Answers by point:

  • L1 (fixed): tests/test_storage_buffer_track.py now takes the runner's compiler (RUN_ALL_ARGS = ["--cxx", "{cxx}"]) and, run directly, CXX before clang++/g++. Folded into the test commit, so the branch still reads test, then fix (8562bbf2, 8b451984; the fix commit is unchanged). Run through run_all.py, with CXX=g++ and with clang++ (llvm-mingw): passes; with the fix's source swapped back to main's: FAIL:199 !Track(IR::Value{address}, nullptr), as before.
  • L4 (not this PR): the job fails in its guide-screenshot step, check_guide_screenshots.py --review-sources, not in the third-party steps (check_third_party.py, and --base main, both pass here: "17 parts as their notes say"). That step fails the same way on main @ 4908cc6d itself ("Guide screenshot check failed: 12 issue(s)": settings-graphics.png reviewed before changes to gpu/vk/vk_menu.cpp, vk_menu.h, vk_texture.h and scripts/screenshots/menu.cpp), files this PR doesn't touch (its diff: the pass and the new check). The "Website build and checks" job builds website/ from docs/, neither touched here either.
  • L2, L3: asked of the Test Farm below (AMD RADV, Steam Deck, NVIDIA Linux, Intel Arc).
Thanks. Answers by point: - **L1** (fixed): `tests/test_storage_buffer_track.py` now takes the runner's compiler (`RUN_ALL_ARGS = ["--cxx", "{cxx}"]`) and, run directly, `CXX` before clang++/g++. Folded into the test commit, so the branch still reads test, then fix (8562bbf2, 8b451984; the fix commit is unchanged). Run through `run_all.py`, with `CXX=g++` and with clang++ (llvm-mingw): passes; with the fix's source swapped back to main's: `FAIL:199 !Track(IR::Value{address}, nullptr)`, as before. - **L4** (not this PR): the job fails in its guide-screenshot step, `check_guide_screenshots.py --review-sources`, not in the third-party steps (`check_third_party.py`, and `--base` main, both pass here: "17 parts as their notes say"). That step fails the same way on main @ 4908cc6d itself ("Guide screenshot check failed: 12 issue(s)": `settings-graphics.png` reviewed before changes to `gpu/vk/vk_menu.cpp`, `vk_menu.h`, `vk_texture.h` and `scripts/screenshots/menu.cpp`), files this PR doesn't touch (its diff: the pass and the new check). The "Website build and checks" job builds `website/` from `docs/`, neither touched here either. - **L2, L3**: asked of the Test Farm below (AMD RADV, Steam Deck, NVIDIA Linux, Intel Arc).
Author
Member

@Beanstalk Gerudo Valley, adult: walk from the valley entrance down to the overhang by the river until Link is past x = -16, and look at the far rock wall by the waterfall: it should be evenly lit, with no bright tan patches (main shows them there). Then a short walk through Hyrule Field and Kakariko Village, checking for missing, black or wrongly lit geometry. On AMD RADV (Linux), the Steam Deck, NVIDIA on Linux and Intel Arc (Windows).

@Beanstalk Gerudo Valley, adult: walk from the valley entrance down to the overhang by the river until Link is past x = -16, and look at the far rock wall by the waterfall: it should be evenly lit, with no bright tan patches (main shows them there). Then a short walk through Hyrule Field and Kakariko Village, checking for missing, black or wrongly lit geometry. On AMD RADV (Linux), the Steam Deck, NVIDIA on Linux and Intel Arc (Windows).
Author
Member
@review
BeanBot requested changes 2026-12-01 08:00:50 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The reported Windows run shows the wall lighting fixed, and the runner now passes its selected compiler to the test. The requested rendering checks on other hardware remain outstanding. (It stands on L4: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 8s.)

The change prevents a comparison from supplying the wrong storage buffer base for the Gerudo Valley wall’s light probes. It adds a focused game-free regression test; the direct test invocation still mishandles the CXX environment variable.

Blocking (1): must change before merging.

  1. L4: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 8s.

Should fix (1): not blocking, but worth doing before merging.

  • L5 tests/test_storage_buffer_track.py:145: The direct invocation ignores the value of CXX because the boolean expression returns clang++ whenever CXX is nonempty. (more on the line) Do: Parenthesize the compiler fallback: os.environ.get("CXX") or ("clang++" if shutil.which("clang++") else "g++").

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497: The changed shader tracking path has not been checked on the other affected Tier 1 systems. When: The runtime lookup replaces direct storage-buffer accesses for affected shaders, but the reported game run covers only NVIDIA on Windows; rendering on AMD RADV, Steam Deck and NVIDIA Linux remains unverified. Do: Run the reported wall reproduction and a representative traversal on AMD RADV, Steam Deck and NVIDIA Linux, checking for missing or incorrectly lit geometry.
  • L3 gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497: The requested Intel Arc rendering check remains outstanding. When: Intel Arc can run the same translated shaders, but there is no reported run of the changed lookup on that driver. Do: Run the wall reproduction and representative traversal on Intel Arc as requested in Still to test.

@fix can do L4 and L5.

Since the last review (on e041f65e13)
Resolved: L1 (The test runner is forced to use g++ instead of its selected C++ compiler.)
Still open: L2 (The changed shader tracking path has not been checked on the other affected Tier 1 systems…); L3 (The requested Intel Arc rendering check remains outstanding.); L4 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)
New: L5 (The direct invocation ignores the value of CXX because the boolean expression returns clan…)

Checks: Still running: 7 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes. The author reports that the patches reproduce on main and disappear on this branch in repeated scripted and in-game runs on Windows with an RTX 5080. The reported Gerudo Valley frame times were 6.964/6.574 ms before and 6.955/6.535 ms after; these measurements used an earlier shared base.

Other systems: The tracking change can affect translated shaders on Windows and Linux across GPU vendors. AMD RADV, Steam Deck, NVIDIA Linux and Intel Arc results are still requested; the supplied Windows NVIDIA run shows the target fix.

Switches: None.

Reviewed: 8b45198419 against 4908cc6dad: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the full diff, commits, test, breadth-first search and changed pass; inspected the runner’s compiler argument handling. The screenshot attachments and CI logs were not available for inspection.; nothing run (a code review).

Checked and fine:

  • The test exercises the comparison path and verifies that select values remain searchable.
  • The reported test fails against main and passes with the fix.
  • The author reports the flagged guide screenshot failure also occurs on the base; the supplied CI classification still lists it as head-only.

Testing: No commands that build or run the project were executed. The author reports repeated Windows NVIDIA game checks and game-free test runs; cross-platform rendering results and several CI jobs remain pending.

Overlaps and merge order: Not established from the supplied information.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The reported Windows run shows the wall lighting fixed, and the runner now passes its selected compiler to the test. The requested rendering checks on other hardware remain outstanding. (It stands on L4: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 8s.) The change prevents a comparison from supplying the wrong storage buffer base for the Gerudo Valley wall’s light probes. It adds a focused game-free regression test; the direct test invocation still mishandles the CXX environment variable. **Blocking (1)**: must change before merging. 1. **L4**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 8s. **Should fix (1)**: not blocking, but worth doing before merging. - **L5** `tests/test_storage_buffer_track.py:145`: The direct invocation ignores the value of CXX because the boolean expression returns clang++ whenever CXX is nonempty. (more on the line) **Do:** Parenthesize the compiler fallback: os.environ.get("CXX") or ("clang++" if shutil.which("clang++") else "g++"). **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497`: The changed shader tracking path has not been checked on the other affected Tier 1 systems. *When:* The runtime lookup replaces direct storage-buffer accesses for affected shaders, but the reported game run covers only NVIDIA on Windows; rendering on AMD RADV, Steam Deck and NVIDIA Linux remains unverified. **Do:** Run the reported wall reproduction and a representative traversal on AMD RADV, Steam Deck and NVIDIA Linux, checking for missing or incorrectly lit geometry. - **L3** `gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497`: The requested Intel Arc rendering check remains outstanding. *When:* Intel Arc can run the same translated shaders, but there is no reported run of the changed lookup on that driver. **Do:** Run the wall reproduction and representative traversal on Intel Arc as requested in Still to test. `@fix` can do L4 and L5. **Since the last review** (on e041f65e130d) Resolved: L1 (The test runner is forced to use g++ instead of its selected C++ compiler.) Still open: L2 (The changed shader tracking path has not been checked on the other affected Tier 1 systems…); L3 (The requested Intel Arc rendering check remains outstanding.); L4 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) New: L5 (The direct invocation ignores the value of CXX because the boolean expression returns clan…) **Checks:** Still running: 7 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The author reports that the patches reproduce on main and disappear on this branch in repeated scripted and in-game runs on Windows with an RTX 5080. The reported Gerudo Valley frame times were 6.964/6.574 ms before and 6.955/6.535 ms after; these measurements used an earlier shared base. **Other systems:** The tracking change can affect translated shaders on Windows and Linux across GPU vendors. AMD RADV, Steam Deck, NVIDIA Linux and Intel Arc results are still requested; the supplied Windows NVIDIA run shows the target fix. **Switches:** None. **Reviewed:** 8b451984198d against 4908cc6dadff: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the full diff, commits, test, breadth-first search and changed pass; inspected the runner’s compiler argument handling. The screenshot attachments and CI logs were not available for inspection.; nothing run (a code review). **Checked and fine:** - The test exercises the comparison path and verifies that select values remain searchable. - The reported test fails against main and passes with the fix. - The author reports the flagged guide screenshot failure also occurs on the base; the supplied CI classification still lists it as head-only. **Testing:** No commands that build or run the project were executed. The author reports repeated Windows NVIDIA game checks and game-free test runs; cross-platform rendering results and several CI jobs remain pending. **Overlaps and merge order:** Not established from the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -0,0 +142,4 @@
def main():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument("--cxx", default=os.environ.get("CXX") or shutil.which("clang++") and "clang++" or "g++")
Member

L5 (should fix): The direct invocation ignores the value of CXX because the boolean expression returns clang++ whenever CXX is nonempty.

When: With CXX=g++ and no --cxx argument, the expression selects clang++; if clang++ is unavailable, the test fails to start despite g++ being available.

Do: Parenthesize the compiler fallback: os.environ.get("CXX") or ("clang++" if shutil.which("clang++") else "g++").

**L5** (should fix): The direct invocation ignores the value of CXX because the boolean expression returns clang++ whenever CXX is nonempty. *When:* With CXX=g++ and no --cxx argument, the expression selects clang++; if clang++ is unavailable, the test fails to start despite g++ being available. **Do:** Parenthesize the compiler fallback: os.environ.get("CXX") or ("clang++" if shutil.which("clang++") else "g++").
Author
Member
  • L5 (no change): and binds tighter than or in Python, so os.environ.get("CXX") or shutil.which("clang++") and "clang++" or "g++" is CXX or (which("clang++") and "clang++") or "g++": a non-empty CXX is returned as it is. Checked: with CXX=g++ it gives g++; with CXX empty and no clang++ on the path, g++; ast.parse shows one Or over the three values with the And inside.
  • L4: as in my last comment, the step that fails is the guide-screenshot review (check_guide_screenshots.py --review-sources), which fails the same way on main @ 4908cc6d (12 issues, all about settings-graphics.png and menu sources this PR doesn't touch); the third-party steps pass. A maintainer's call whether the CI's head-only classification holds.
  • L2, L3: the Test Farm can't run the wall's viewpoint without a route to it (see its note); it offers stationary comparisons of Gerudo Valley, Hyrule Field and Kakariko on main and this PR instead, which needs a BigBean's go-ahead.
- **L5** (no change): `and` binds tighter than `or` in Python, so `os.environ.get("CXX") or shutil.which("clang++") and "clang++" or "g++"` is `CXX or (which("clang++") and "clang++") or "g++"`: a non-empty `CXX` is returned as it is. Checked: with `CXX=g++` it gives `g++`; with `CXX` empty and no clang++ on the path, `g++`; `ast.parse` shows one `Or` over the three values with the `And` inside. - **L4**: as in my last comment, the step that fails is the guide-screenshot review (`check_guide_screenshots.py --review-sources`), which fails the same way on main @ 4908cc6d (12 issues, all about `settings-graphics.png` and menu sources this PR doesn't touch); the third-party steps pass. A maintainer's call whether the CI's head-only classification holds. - **L2, L3**: the Test Farm can't run the wall's viewpoint without a route to it (see its note); it offers stationary comparisons of Gerudo Valley, Hyrule Field and Kakariko on main and this PR instead, which needs a BigBean's go-ahead.
test(routes): a route to the broken spot under Gerudo Valley's far rock wall, for the Test Farm
Some checks failed
CI / What the change needs (pull_request) Successful in 6s
CI / Third-party parts and guide screenshots (pull_request) Failing after 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 30s
beanstalk/approval can't be tested as asked: see the farm's comment
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m52s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m43s
CI / Website build and checks (pull_request) Failing after 34s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m30s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m42s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
cfddf71a2f
gerudo-valley-far-wall: from kokiri-start, the Debug tab's adult and teleport to
Gerudo Valley, then a walk from the valley entrance down to the overhang by the
river, ending at (-16.89, 46.78, -22.44), past x = -16, with the camera on the
far wall by the waterfall for about 10 s. 60.5 s, one load (Gerudo Valley).
Replayed twice on this PC (main and this branch): playback over at frame 3627
of 3627 both times, Link put back at most 0.92 m (within HOS_INPUT_SYNC_MAX),
no divergence; main ends with the wall's patches, this branch without.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Added the route assets/routes/gerudo-valley-far-wall.jsonl (cfddf71a): from kokiri-start, adult, teleport to Gerudo Valley, the walk down to the overhang, ending at (-16.89, 46.78, -22.44) with the camera on the far wall; 60.5 s. dev.py route check: ok. Replayed from its save (RTX 5080, Windows): playback over at frame 3627 of 3627 on both sides, Link put back at most 0.92 m, no divergence. Its last frame, main @ 9b342b46 on top, this PR below:

The route's last frame: main (top) with the far wall's bright patches, this PR (bottom) evenly lit

Added the route `assets/routes/gerudo-valley-far-wall.jsonl` (cfddf71a): from `kokiri-start`, adult, teleport to Gerudo Valley, the walk down to the overhang, ending at (-16.89, 46.78, -22.44) with the camera on the far wall; 60.5 s. `dev.py route check`: ok. Replayed from its save (RTX 5080, Windows): playback over at frame 3627 of 3627 on both sides, Link put back at most 0.92 m, no divergence. Its last frame, main @ 9b342b46 on top, this PR below: ![The route's last frame: main (top) with the far wall's bright patches, this PR (bottom) evenly lit](https://git.magicbean.dev/attachments/a5985ae3-0673-4176-b32b-0a73a5e91b7d)
Author
Member

@Beanstalk Play the route gerudo-valley-far-wall (assets/routes/, from the kokiri-start save) on main and on this PR, and compare the route's last frame: on main the far rock wall by the waterfall has bright tan patches, on this PR it should be evenly lit; and along the route, no missing, black or wrongly lit geometry. On AMD RADV (Linux), the Steam Deck, NVIDIA on Linux and Intel Arc (Windows).

@Beanstalk Play the route gerudo-valley-far-wall (assets/routes/, from the kokiri-start save) on main and on this PR, and compare the route's last frame: on main the far rock wall by the waterfall has bright tan patches, on this PR it should be evenly lit; and along the route, no missing, black or wrongly lit geometry. On AMD RADV (Linux), the Steam Deck, NVIDIA on Linux and Intel Arc (Windows).
Member

Beanstalk test farm · ⛔ can't be tested as asked

Commit 8b45198 · approved by llun (untrusted) · dashboard

Not run: the farm can't test this as asked, so nothing is built or run:

The requested test requires reaching a specific position and automatically determining whether the far wall is evenly lit and other geometry is correct. The farm has neither the supplied movement recording nor a coordinate or semantic image assertion to establish those conditions; the alternative can compare stationary views and performance, but cannot decide the wall-fix question.

⚠️ Note: The alternative does not walk the requested routes or reproduce the reported wall viewpoint; its baseline picture comparisons also cannot prove that the intentional lighting fix is correct.
⚠️ Note: The GPU timing comparison tests for regressions in these stationary scenes, not specifically at the affected wall.

What it could test instead: The alternative plan compares adult Gerudo Valley, Hyrule Field and Kakariko Village on main and the PR, using three starts per side and 20-second frame-time measurements. It captures stationary pictures and checks for crashes, large picture differences and frame-time regressions. Steam Deck and Windows Intel Arc targets will wait if matching testers are unavailable. The farm cannot establish that Link reaches the requested coordinates or automatically judge whether the far wall is evenly lit. No tester online now matches steamdeck, linux+nvidia, windows+intel+gpu-arc-*: those targets wait for one.

A member of BigBeans can comment @Beanstalk <new words> to ask for something else, or @Beanstalk test it anyway to run the plan regardless.

<!-- beanstalk:sticky --> ### Beanstalk test farm · ⛔ can't be tested as asked Commit `8b45198` · approved by llun (untrusted) · [dashboard](https://beanstalk.magicbean.dev/prs/2939) **Not run: the farm can't test this as asked**, so nothing is built or run: > The requested test requires reaching a specific position and automatically determining whether the far wall is evenly lit and other geometry is correct. The farm has neither the supplied movement recording nor a coordinate or semantic image assertion to establish those conditions; the alternative can compare stationary views and performance, but cannot decide the wall-fix question. ⚠️ **Note:** The alternative does not walk the requested routes or reproduce the reported wall viewpoint; its baseline picture comparisons also cannot prove that the intentional lighting fix is correct. ⚠️ **Note:** The GPU timing comparison tests for regressions in these stationary scenes, not specifically at the affected wall. What it could test instead: The alternative plan compares adult Gerudo Valley, Hyrule Field and Kakariko Village on main and the PR, using three starts per side and 20-second frame-time measurements. It captures stationary pictures and checks for crashes, large picture differences and frame-time regressions. Steam Deck and Windows Intel Arc targets will wait if matching testers are unavailable. The farm cannot establish that Link reaches the requested coordinates or automatically judge whether the far wall is evenly lit. No tester online now matches steamdeck, linux+nvidia, windows+intel+gpu-arc-*: those targets wait for one. A member of `BigBeans` can comment `@Beanstalk <new words>` to ask for something else, or `@Beanstalk test it anyway` to run the plan regardless.
Author
Member
@review
BeanBot left a comment

Recommendation: Request changes. The reported Windows run shows the wall lighting fixed, and the added route makes the remaining hardware checks reproducible. The requested AMD, Steam Deck, NVIDIA Linux and Intel Arc results are still outstanding, and CI has not completed successfully. (It stands on L4: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 8s.)

The shader search no longer treats a comparison's constant-buffer input as a pointer base, allowing the wall's probe reads to use the runtime binding search. The route adds a repeatable way to reach the affected viewpoint; the broader rendering cost and correctness remain to be checked on other hardware.

Blocking (1): must change before merging.

  1. L4: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 8s.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497: The changed shader tracking path has not been checked on the other affected Tier 1 systems. When: The runtime lookup replaces direct storage-buffer accesses for affected shaders, but the reported game run covers only NVIDIA on Windows; rendering on AMD RADV, Steam Deck and NVIDIA Linux remains unverified. Do: Run the reported wall reproduction and a representative traversal on AMD RADV, Steam Deck and NVIDIA Linux, checking for missing or incorrectly lit geometry.
  • L3 gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497: The requested Intel Arc rendering check remains outstanding. When: Intel Arc can run the same translated shaders, but there is no reported run of the changed lookup on that driver. Do: Run the wall reproduction and representative traversal on Intel Arc as requested in Still to test.

@fix can do L4.

Since the last review (on 8b45198419)
Withdrawn (it was wrong): L5 (The direct invocation ignores the value of CXX because the boolean expression returns clan…)
Still open: L2 (The changed shader tracking path has not been checked on the other affected Tier 1 systems…); L3 (The requested Intel Arc rendering check remains outstanding.); L4 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)

Checks: Still running: 8 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the reported Windows RTX 5080 case: the author reports patches on main and even lighting on this branch in repeated runs. Gerudo Valley frame times were 6.964/6.574 ms before and 6.955/6.535 ms after on an earlier shared base; these measurements do not establish results on other systems.

Other systems: The tracking change can affect shader accesses across GPU vendors, drivers and operating systems. AMD RADV, Steam Deck, NVIDIA Linux and Intel Arc runs have been requested but have not been reported.

Switches: None added, changed or removed.

Reviewed: cfddf71a2f against 4908cc6dad: Read AGENTS.md, CONTRIBUTING.md, the test and the breadth-first search in full; inspected the pass and its diff, and skimmed the recorded route and its README. The pass output was truncated, so the whole code file was not read in full. The review checklist and pull request template were not found.; nothing run (a code review).

Checked and fine:

  • The new route is reported to pass the route check and to replay to completion on both sides within the synchronization limit.
  • The test covers the comparison path and verifies that select values and ordinary constant-buffer bases remain searchable.

Testing: No commands that build or run project code were executed. The author reports the game-free regression test passing with g++ and clang++, a Windows in-game comparison, and route replays; the supplied CI status has one head-only failure and several checks still running.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The reported Windows run shows the wall lighting fixed, and the added route makes the remaining hardware checks reproducible. The requested AMD, Steam Deck, NVIDIA Linux and Intel Arc results are still outstanding, and CI has not completed successfully. (It stands on L4: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 8s.) The shader search no longer treats a comparison's constant-buffer input as a pointer base, allowing the wall's probe reads to use the runtime binding search. The route adds a repeatable way to reach the affected viewpoint; the broader rendering cost and correctness remain to be checked on other hardware. **Blocking (1)**: must change before merging. 1. **L4**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 8s. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497`: The changed shader tracking path has not been checked on the other affected Tier 1 systems. *When:* The runtime lookup replaces direct storage-buffer accesses for affected shaders, but the reported game run covers only NVIDIA on Windows; rendering on AMD RADV, Steam Deck and NVIDIA Linux remains unverified. **Do:** Run the reported wall reproduction and a representative traversal on AMD RADV, Steam Deck and NVIDIA Linux, checking for missing or incorrectly lit geometry. - **L3** `gpu/vk/eden/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp:497`: The requested Intel Arc rendering check remains outstanding. *When:* Intel Arc can run the same translated shaders, but there is no reported run of the changed lookup on that driver. **Do:** Run the wall reproduction and representative traversal on Intel Arc as requested in Still to test. `@fix` can do L4. **Since the last review** (on 8b451984198d) Withdrawn (it was wrong): L5 (The direct invocation ignores the value of CXX because the boolean expression returns clan…) Still open: L2 (The changed shader tracking path has not been checked on the other affected Tier 1 systems…); L3 (The requested Intel Arc rendering check remains outstanding.); L4 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) **Checks:** Still running: 8 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported Windows RTX 5080 case: the author reports patches on main and even lighting on this branch in repeated runs. Gerudo Valley frame times were 6.964/6.574 ms before and 6.955/6.535 ms after on an earlier shared base; these measurements do not establish results on other systems. **Other systems:** The tracking change can affect shader accesses across GPU vendors, drivers and operating systems. AMD RADV, Steam Deck, NVIDIA Linux and Intel Arc runs have been requested but have not been reported. **Switches:** None added, changed or removed. **Reviewed:** cfddf71a2fdd against 4908cc6dadff: Read AGENTS.md, CONTRIBUTING.md, the test and the breadth-first search in full; inspected the pass and its diff, and skimmed the recorded route and its README. The pass output was truncated, so the whole code file was not read in full. The review checklist and pull request template were not found.; nothing run (a code review). **Checked and fine:** - The new route is reported to pass the route check and to replay to completion on both sides within the synchronization limit. - The test covers the comparison path and verifies that select values and ordinary constant-buffer bases remain searchable. **Testing:** No commands that build or run project code were executed. The author reports the game-free regression test passing with g++ and clang++, a Windows in-game comparison, and route replays; the supplied CI status has one head-only failure and several checks still running. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
llun force-pushed fix-gerudo-valley-wall-probes from cfddf71a2f
Some checks failed
CI / What the change needs (pull_request) Successful in 6s
CI / Third-party parts and guide screenshots (pull_request) Failing after 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 30s
beanstalk/approval can't be tested as asked: see the farm's comment
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m52s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m43s
CI / Website build and checks (pull_request) Failing after 34s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m30s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m42s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
to 8b45198419
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m4s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m51s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m57s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m34s
CI / Website build and checks (pull_request) Failing after 35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 28m35s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 34m35s
beanstalk/approval can't be tested as asked: see the farm's comment
2026-12-01 08:24:13 +00:00
Compare
Author
Member

Took the route out again (the head is back to 8b451984, the test and the fix): the farm's run along it doesn't add enough to keep a recording in the repository for. The comment with its replay picture above stays as a record of what it showed.

Took the route out again (the head is back to 8b451984, the test and the fix): the farm's run along it doesn't add enough to keep a recording in the repository for. The comment with its replay picture above stays as a record of what it showed.
HumanBean deleted branch fix-gerudo-valley-wall-probes 2026-12-01 13:58:28 +00:00
First-time contributor

Confirming #1891 is fixed by this or any other PR included in Nightly 1047 . 706092c5e, will be closing it as well.

Confirming #1891 is fixed by this or any other PR included in Nightly 1047 . 706092c5e, will be closing it as well.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
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
MagicBeanDev/Longshot!2939
No description provided.