fix(vk): the fixed shares' fallback upscale is FSR 1, not a plain stretch #3220

Merged
HumanBean merged 2 commits from HumanBean/Longshot:fix/fsr1-fixed-share-fallback into main 2026-12-05 16:43:30 +00:00
Owner

Summary

With the Game's own upscaler at Render resolution 67% or 50%, many GPUs that are not NVIDIA's (the Steam Deck's among them, where Minimum and Auto pick 50%) cannot run the game's network for that size. Its fallback stretched the small picture linearly, so edges showed as 2-pixel stair-steps. It now enlarges it with AMD's FSR 1 EASU, in one compute pass.

This revives #1552 by zeldaootr, closed as stale, on current main; their commits are kept. One change from it: the FXAA stage is dropped. The game runs its own morphological anti-aliasing before the upscale (programs 26fe0c70, 685adb41, 6637ac1d, seen in frame dumps), so this input is already anti-aliased, and #1552's description ("no anti-aliasing at all") was not right. With FXAA on top I saw no better edges than FSR 1 alone, and softer brick texture at 67%.

Read: fixed_share_upscale in gpu/vk/vk_draw.cpp, gpu/vk/shaders/fixed_share_upscale.comp. gen-shaders gains ffx = true so a built-in shader can include AMD's headers.

See #275.

Testing

Tested: Linux (CachyOS), RTX 3090, with the fallback forced (RX_VK_FORCE_UPSCALE_STUB=1, since this GPU runs the networks), Market, 2560x1440: the log says fixed shares' upscale: FSR 1 EASU at 67% and 50%; RX_VK_FIXED_SHARE_EASU=0 gives main's typed upscale helper path. dev.py smoke passes. vk_draw.cpp passes an llvm-mingw -fsyntax-only compile.

mise run test: 888 passed, 12 failed, 13 skipped. The same 12 fail on main @ f359e2621: test_dlssg, test_lifter, test_no_game_title, test_no_map_reload, test_present_acquire_ahead, test_present_geometry_trace, test_present_held_image, test_present_image_free, test_sync_watch_event, test_turf_budget, test_ui_renderer, test_vk_draw_overhead_lean. test_fixed_share_upscale.py and the new cases of test_upscale_fallback.py fail on main.

Since that run and suite: rebased onto main @ 3a0f7d8f (#3202, DLSS frame generation, which does not touch this path, so the numbers hold), and a failed descriptor-layout, pipeline-layout or sampler creation now leaves the pass out (checked by test_fixed_share_upscale.py; Linux and llvm-mingw syntax compiles pass).

Still to test:

  • Steam Deck (RADV): Render 50% and 67% with the Game's own upscaler in Kokiri Forest and Hyrule Field, turning the camera, expecting cleaner edges than main, no new shimmer, and the log line (@Beanstalk).
  • Windows AMD and Intel: the same, expecting the same (@Beanstalk).
  • Vulkan validation: this PC has no Khronos layer, so the pass has not run under it (by hand).

Measurements

Verdict: edges are cleaner than main's stretch; the pass costs about 0.13 ms of GPU time a frame at 1440p on an RTX 3090. Frame rate was not measured.

Setup: Linux, RTX 3090, forced fallback, Market from the market-entrance save, 2560x1440, camera still; GPU time from RX_VK_PASS_TIMING=1; screenshots below.

Before: main @ f359e262 After: this PR @ 49b0611c
50% and 67%: edges 2-pixel stair-steps continuous along diagonals
the upscale's own GPU time at 1440p a plain stretch about 0.12 to 0.15 ms (FSR 1 EASU)
vk:   0.129 ms     1.0 x    129.0 us       1.0 items    0.00 MB  fixed shares' upscale: FSR 1 EASU

#1552's Steam Deck and Test Farm numbers were taken with the FXAA stage and an older main, so they are not carried over.

RX_VK_FIXED_SHARE_EASU is new and on by default.

Risks

With the RGBA16F scene (Native HDR with PsychoV35) a fixed share does not reach this pass and is blitted as on main; the docs say so. Found by reading the code, not run.

The picture changes at 67% and 50% (and where a temporal upscaler fails at those shares or 58%) on GPUs that leave those networks out, and on NVIDIA only if the slow-network rule trips. EASU costs more GPU time than a linear stretch; on the Deck that cost is not yet measured. RX_VK_FIXED_SHARE_EASU=0 restores main's path. A pipeline that cannot be made falls back to the stretch. No saves, settings or shader caches change.

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 switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • Docs updated.
  • 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.ai/code/session_017vw8e16e9JsGLrugow9vJQ

## Summary With the **Game's own** upscaler at Render resolution 67% or 50%, many GPUs that are not NVIDIA's (the Steam Deck's among them, where Minimum and Auto pick 50%) cannot run the game's network for that size. Its fallback stretched the small picture linearly, so edges showed as 2-pixel stair-steps. It now enlarges it with AMD's FSR 1 EASU, in one compute pass. This revives #1552 by zeldaootr, closed as stale, on current `main`; their commits are kept. One change from it: **the FXAA stage is dropped.** The game runs its own morphological anti-aliasing before the upscale (programs `26fe0c70`, `685adb41`, `6637ac1d`, seen in frame dumps), so this input is already anti-aliased, and #1552's description ("no anti-aliasing at all") was not right. With FXAA on top I saw no better edges than FSR 1 alone, and softer brick texture at 67%. Read: `fixed_share_upscale` in `gpu/vk/vk_draw.cpp`, `gpu/vk/shaders/fixed_share_upscale.comp`. `gen-shaders` gains `ffx = true` so a built-in shader can include AMD's headers. See #275. ## Testing **Tested:** Linux (CachyOS), RTX 3090, with the fallback forced (`RX_VK_FORCE_UPSCALE_STUB=1`, since this GPU runs the networks), Market, 2560x1440: the log says `fixed shares' upscale: FSR 1 EASU` at 67% and 50%; `RX_VK_FIXED_SHARE_EASU=0` gives `main`'s `typed upscale helper` path. `dev.py smoke` passes. `vk_draw.cpp` passes an llvm-mingw `-fsyntax-only` compile. `mise run test`: 888 passed, 12 failed, 13 skipped. The same 12 fail on `main` @ f359e2621: `test_dlssg`, `test_lifter`, `test_no_game_title`, `test_no_map_reload`, `test_present_acquire_ahead`, `test_present_geometry_trace`, `test_present_held_image`, `test_present_image_free`, `test_sync_watch_event`, `test_turf_budget`, `test_ui_renderer`, `test_vk_draw_overhead_lean`. `test_fixed_share_upscale.py` and the new cases of `test_upscale_fallback.py` fail on `main`. Since that run and suite: rebased onto `main` @ 3a0f7d8f (#3202, DLSS frame generation, which does not touch this path, so the numbers hold), and a failed descriptor-layout, pipeline-layout or sampler creation now leaves the pass out (checked by `test_fixed_share_upscale.py`; Linux and llvm-mingw syntax compiles pass). **Still to test:** - Steam Deck (RADV): Render 50% and 67% with the Game's own upscaler in Kokiri Forest and Hyrule Field, turning the camera, expecting cleaner edges than `main`, no new shimmer, and the log line (@Beanstalk). - Windows AMD and Intel: the same, expecting the same (@Beanstalk). - Vulkan validation: this PC has no Khronos layer, so the pass has not run under it (by hand). ## Measurements **Verdict:** edges are cleaner than `main`'s stretch; the pass costs about 0.13 ms of GPU time a frame at 1440p on an RTX 3090. Frame rate was not measured. Setup: Linux, RTX 3090, forced fallback, Market from the `market-entrance` save, 2560x1440, camera still; GPU time from `RX_VK_PASS_TIMING=1`; screenshots below. | | Before: main @ f359e262 | After: this PR @ 49b0611c | |---|---|---| | 50% and 67%: edges | 2-pixel stair-steps | continuous along diagonals | | the upscale's own GPU time at 1440p | a plain stretch | about 0.12 to 0.15 ms (FSR 1 EASU) | ``` vk: 0.129 ms 1.0 x 129.0 us 1.0 items 0.00 MB fixed shares' upscale: FSR 1 EASU ``` #1552's Steam Deck and Test Farm numbers were taken with the FXAA stage and an older `main`, so they are not carried over. `RX_VK_FIXED_SHARE_EASU` is new and on by default. ## Risks With the RGBA16F scene (Native HDR with PsychoV35) a fixed share does not reach this pass and is blitted as on `main`; the docs say so. Found by reading the code, not run. The picture changes at 67% and 50% (and where a temporal upscaler fails at those shares or 58%) on GPUs that leave those networks out, and on NVIDIA only if the slow-network rule trips. EASU costs more GPU time than a linear stretch; on the Deck that cost is not yet measured. `RX_VK_FIXED_SHARE_EASU=0` restores `main`'s path. A pipeline that cannot be made falls back to the stretch. No saves, settings or shader caches change. ## 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 switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [x] Docs updated. - [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) https://claude.ai/code/session_017vw8e16e9JsGLrugow9vJQ
Where the network of a fixed share of the Render resolution row (67% `6676619641320ba7`, 58% `f10782f9e58b6a7c`, 50%
`72ba090c70fe2614`, 33% `0775215f8da720e6`) is left out, `upscale_stub`'s generic RGB9E5 fallback stretches its input
linearly with no anti-aliasing. These checks want it drawn by `fixed_share_upscale` in two passes instead:
- `tests/test_fixed_share_upscale.py` runs it with Vulkan spies: the edge pass at the input's size into an RGBA16F image,
  a barrier, the stretch at the output's size, each pass in an `RX_VK_PASS_TIMING` span of its name, every binding a
  valid image, EASU's constants, the image made and logged once and given back 120 presents after a new size replaces
  it, EASU left out beyond 2x a side (33%), an image that cannot be made logged once and not tried again, and
  `RX_VK_TAAU_FXAA` / `RX_VK_FIXED_SHARE_EASU` (both off: the plain stretch). Also `fixed_share_network`: the four keys,
  and not the same keys a bit off nor the gameplay networks.
- `tests/test_upscale_fallback.py`'s `upscale_stub` fixture now has `fixed_share_upscale`: each of the four keys takes
  it; 50%'s key a bit off, the 3/4 and full-size networks and any other program keep `typed_upscale`, and a failed
  two-pass draw falls back to it.
- `tests/test_fixed_share_upscale_shader.py`: the shader's header is the source compiled with AMD's FSR 1 header, its
  SPIR-V validates, and nothing negative or non-finite is squared into the packed output.

All three fail on main.

Assisted-by: Claude
The game's network for each fixed share of the Render resolution row is a cooperative-matrix network. `vk_shader.cpp`
leaves those out on every GPU that is not NVIDIA's (the Steam Deck, desktop AMD on Windows and Linux, Intel), wherever the
multiplies run in software, without f16 shaders (GTX 10, Polaris on RADV) or with `RX_VK_NO_F16`; on an NVIDIA card the
movie networks' linear rule takes them too once `movie_networks_slow` trips, or with `RX_VK_MOVIE_UPSCALE=linear` or
`RX_VK_FORCE_UPSCALE_STUB=1`. With the game's own upscaler, `upscale_stub`'s generic RGB9E5 fallback then stretched the
picture linearly with no anti-aliasing: at 50% (Minimum, and Auto on a Deck) every edge a 2-pixel stair step, every bright
texel a 2x2 speck.

`fixed_share_upscale` now draws those four networks' output in two dispatches of `shaders/fixed_share_upscale.comp`:
FXAA 3.11 (the 3/4 stand-in's) on the input's texel centres at the Render resolution into an RGBA16F image of that size,
then AMD FSR 1 EASU from `third_party/fidelityfx-sdk` (MIT, included unchanged) to the output's size, squared back into
the packed output. EASU only up to 2x a side, the largest ratio AMD's FSR 1 guide has a mode for (Performance, 2.0x per
dimension): 67%, 58% and 50%; 33%'s 3x gets the edge pass and the linear stretch. EASU's result stays between its four
nearest texels and a non-finite one takes the linear sample. `fixed_share_network` names the four keys; every other
program that falls back there, the 3/4 (`fd029a317a9a4b94`) and full-size (`9dc98871eb7fc101`) networks included, keeps
`typed_upscale` as before, and so does a failed pipeline or an image that cannot be made (logged once, not tried again).
Each pass is an `RX_VK_PASS_TIMING` span of its own name.

`RX_VK_TAAU_FXAA=0` leaves the edge pass out, here and in the 3/4 stand-in alike (`=2` draws the texels it moved);
`RX_VK_FIXED_SHARE_EASU=0`, a new `kill` row, stretches linearly; both give the plain stretch as before. The extra image is
the input's size, 1.8 MB at 640x360, logged when made and kept for the rest of the run. The README credits FSR 1 beside
FSR 3.1 and FSR 4. The shader is a new built-in; nothing the translator reads changes, so the shader cache stamp stays.

Assisted-by: Claude
fix(vk): the fallback upscale is FSR 1 EASU alone
Some checks failed
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
beanstalk/windows+amd 0/1 pass, 0 running, 2 queued
beanstalk/windows+intel 0/1 pass, 0 running, 2 queued
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
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
CI / Website build and checks (pull_request) Has been cancelled
d8e9a3576d
The game anti-aliases the 3D itself before the upscale, so the extra FXAA
stage gave no better edges and softened textures. One dispatch, no image of
its own, and RX_VK_TAAU_FXAA is the 3/4 stand-in's alone again.

Co-Authored-By: Zelda Ootr <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e16e9JsGLrugow9vJQ
Author
Owner

Tested in game: Linux (CachyOS), RTX 3090, the Market at 2560x1440, Game's own upscaler at 50% and 67% with the fallback forced (RX_VK_FORCE_UPSCALE_STUB=1): FSR 1 EASU draws both, cleaner edges than the plain stretch; smoke run from kokiri-start passed. Not yet run on a GPU that takes this path by itself.

Tested in game: Linux (CachyOS), RTX 3090, the Market at 2560x1440, Game's own upscaler at 50% and 67% with the fallback forced (RX_VK_FORCE_UPSCALE_STUB=1): FSR 1 EASU draws both, cleaner edges than the plain stretch; smoke run from kokiri-start passed. Not yet run on a GPU that takes this path by itself.
Author
Owner

Screenshots, Market, RTX 3090 with the fallback forced, a roof at 4x. Left: main's stretch (RX_VK_FIXED_SHARE_EASU=0). Right: this PR.

Render 50%

Render 67%

Screenshots, Market, RTX 3090 with the fallback forced, a roof at 4x. Left: `main`'s stretch (`RX_VK_FIXED_SHARE_EASU=0`). Right: this PR. ![Render 50%](https://git.magicbean.dev/attachments/361f775d-5259-45ae-a1ab-580faf8386b6) ![Render 67%](https://git.magicbean.dev/attachments/3c147444-43a0-4611-8eb6-95e79e9d859a)
res50.png
136 KiB
res67.png
147 KiB
Author
Owner

@Beanstalk steamdeck, windows amd and windows intel: this PR against main with the game's own upscaler at Render resolution 50% and 67%, Kokiri Forest and Hyrule Field, turning the camera, screenshots of edges, frame times, and the log's fixed shares' upscale line

@Beanstalk steamdeck, windows amd and windows intel: this PR against main with the game's own upscaler at Render resolution 50% and 67%, Kokiri Forest and Hyrule Field, turning the camera, screenshots of edges, frame times, and the log's `fixed shares' upscale` line
Member

Possibly related, for context:

  • issue #1290 Idea: More/Better Spacial Upscaler Options (FSR1, etc.) — Requests FSR 1 as an upscaler option
Possibly related, for context: - issue #1290 Idea: More/Better Spacial Upscaler Options (FSR1, etc.) — Requests FSR 1 as an upscaler option
HumanBean changed title from WIP: fix(vk): the fixed shares' fallback upscale is FSR 1, not a plain stretch to fix(vk): the fixed shares' fallback upscale is FSR 1, not a plain stretch 2026-12-05 02:26:39 +00:00
Member
Beanstalk test farm · an earlier run: commit d8e9a35 (the newer results are in a comment below)

Commit d8e9a35 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The screenshots and camera turns do not automatically establish cleaner edges or measure temporal shimmer; screenshot comparison only detects large picture changes.
⚠️ Note: The fallback log may be absent when a device runs the network instead, leaving the EASU path unjudged; Vulkan validation is not enabled by this plan.

Started at 02:27 UTC.

Target Result Reports VRAM peak (MB) Crashes
steamdeck ⏳ queued 0 of 1 — —
windows+amd ⏳ queued 0 of 1 — —
windows+intel ⏳ queued 0 of 1 — —

fixed-share-edges · frame time p99 (ms), main → PR at each level

Target resolution=4 (reference) resolution=2
steamdeck — —
windows+amd — —
windows+intel — —
What was tested

What will be tested · AI plan (gpt-6.1-terra)

Compare the PR with main on Steam Deck, Windows AMD and Windows Intel using the game's own upscaler at 50% and 67% render resolution. Each of three starts per side visits Kokiri Forest and Hyrule Field, captures stationary edge screenshots, turns the camera, and measures frame and GPU times for 20 seconds per place and resolution. The run records the fixed-shares upscale log line; a crash, a large screenshot difference, a pipeline failure, or a frame-time or GPU-time regression beyond the thresholds fails the PR. A missing EASU log line is reported as unjudged because a device may run the network instead of reaching the fallback.

  • Where: steamdeck (1-2 reports), windows+amd (1-2 reports), windows+intel (1-2 reports).
  • Matrix: 2 cells, each on main and the PR: resolution 4 or 2.
  • fixed-share-edges: from the repository's save kokiri-start (settings dlss=0, vsync=2, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0), then teleport to Kokiri Forest, take the picture forest-edges to compare with main, move the stick, take the picture forest-turned, measure forest for 20 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field-edges to compare with main, take the picture field-turned, measure field for 20 s (after 10 s warm-up); 3 runs on each side for each of 2 cells (1 game start a run).
  • Measured: crashes, frame times, stutters and hitches, GPU time per pass, the game's log (an expected line that never appears: could not be judged).
  • The PR fails if: it crashes; or a picture differs from main by more than 30%; or GPU time a frame is more than 20% above main; or frame time (p99) is more than 20% above main; or forbidden log lines is above 0; or expected log lines missing is above 0.
  • Time: about 44 min of game runs per tester (6 game starts), plus the two builds.
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>d8e9a35</code> (the newer results are in a comment below)</summary> Commit `d8e9a35` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/3220) ⚠️ **Note:** The screenshots and camera turns do not automatically establish cleaner edges or measure temporal shimmer; screenshot comparison only detects large picture changes. ⚠️ **Note:** The fallback log may be absent when a device runs the network instead, leaving the EASU path unjudged; Vulkan validation is not enabled by this plan. Started at 02:27 UTC. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `steamdeck` | ⏳ queued | 0 of 1 | — | — | | `windows+amd` | ⏳ queued | 0 of 1 | — | — | | `windows+intel` | ⏳ queued | 0 of 1 | — | — | **`fixed-share-edges`** · frame time p99 (ms), main → PR at each level | Target | `resolution=4` (reference) | `resolution=2` | | --- | --- | --- | | `steamdeck` | — | — | | `windows+amd` | — | — | | `windows+intel` | — | — | <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) Compare the PR with main on Steam Deck, Windows AMD and Windows Intel using the game's own upscaler at 50% and 67% render resolution. Each of three starts per side visits Kokiri Forest and Hyrule Field, captures stationary edge screenshots, turns the camera, and measures frame and GPU times for 20 seconds per place and resolution. The run records the fixed-shares upscale log line; a crash, a large screenshot difference, a pipeline failure, or a frame-time or GPU-time regression beyond the thresholds fails the PR. A missing EASU log line is reported as unjudged because a device may run the network instead of reaching the fallback. - **Where:** steamdeck (1-2 reports), windows+amd (1-2 reports), windows+intel (1-2 reports). - **Matrix:** 2 cells, each on main and the PR: resolution `4` or `2`. - **fixed-share-edges:** from the repository's save `kokiri-start` (settings dlss=0, vsync=2, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=gpu`, `RX_VK_AUTO_TUNE=0`), then teleport to Kokiri Forest, take the picture forest-edges to compare with main, move the stick, take the picture forest-turned, measure forest for 20 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field-edges to compare with main, take the picture field-turned, measure field for 20 s (after 10 s warm-up); 3 runs on each side for each of 2 cells (1 game start a run). - **Measured:** crashes, frame times, stutters and hitches, GPU time per pass, the game's log (an expected line that never appears: could not be judged). - **The PR fails if:** it crashes; or a picture differs from main by more than 30%; or GPU time a frame is more than 20% above main; or frame time (p99) is more than 20% above main; or forbidden log lines is above 0; or expected log lines missing is above 0. - **Time:** about 44 min of game runs per tester (6 game starts), plus the two builds. </details> </details>
BeanBot left a comment

Recommendation: Approve. The new fallback can submit invalid Vulkan objects when initialization fails, instead of reliably returning to the linear path. Its image quality and frame-time cost also need verification on the hardware that normally uses it. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The fixed-resolution fallback uses FSR 1 EASU to produce cleaner edges in place of a linear stretch. It adds a compute pass and pipeline setup; the reported RTX 3090 pass time is about 0.12–0.15 ms at 1440p.

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

  • L1 gpu/vk/vk_draw.cpp:12420: Initialization ignores descriptor-layout, pipeline-layout and sampler creation failures, but only checks the pipeline handle before dispatching. (more on the line) Do: Check each creation result before using its output, clean up any partially created objects, and return false so typed_upscale can take over. Add failure cases to the Vulkan-spy test.

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

  • L2 gpu/vk/vk_draw.cpp:12294: The default-on pass has not been measured or viewed on Steam Deck, a primary system that naturally takes this fallback. (more on the line) Do: Run interleaved main and PR comparisons on Steam Deck at both shares in the requested scenes, including camera motion, screenshots, average and 1% low FPS and frame times.
  • L3 gpu/vk/shaders/fixed_share_upscale.comp:29: The new shader has not been exercised on the affected AMD desktop and Intel drivers, or under Vulkan validation. (more on the line) Do: Run the requested Windows AMD and Intel comparisons and a Linux AMD RADV run at 50% and 67%, including motion, frame times and a validation-layer run.

@fix can do L1.

Checks: Still running: 11 checks.

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

Does it help: Unproven on the intended hardware. The author reports cleaner edges at 50% and 67% in a forced-fallback RTX 3090 comparison, but no run has exercised the path naturally on AMD, Intel or Steam Deck. No before-and-after frame-rate or frame-time measurements are reported.

Other systems: The path can run on AMD and Intel GPUs, Steam Deck, and NVIDIA when a network is skipped or a temporal upscale fails. The new shader and pipeline can affect image quality, GPU time and Vulkan compatibility on those systems; only forced fallback on Linux NVIDIA is reported. Other programs retain the existing typed fallback, and the 33% case returns to it when the scale exceeds the limit. No saves or renderer API structures change.

Switches: RX_VK_FIXED_SHARE_EASU is new, defaults on, and has a kill-switch row; 0 restores the linear fallback. The default's quality and performance are not yet measured on the systems that normally take the path.

Reviewed: d8e9a3576d against f359e26213: Read the repository rules, contribution guide, standards and PR template; the diff, commit messages, changed shader, tests, generator changes, documentation changes, and the relevant vk_draw.cpp fallback and dispatch code. Skimmed the rest of the large renderer and shader recipe files and related replay locking. The full vk_draw.cpp and generator file were not read in full; generated shader headers and recorded runs were not available in the checkout. docs/review-checklist.md and the neighboring Tooling AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The EASU constants match the SDK's full-image constants, and the dispatch guards output bounds.
  • The switch has a table row and both switch states are covered by the new host-side test.
  • The changed files contain no committed generated shader headers or game-derived output; the commits record AI assistance.
  • Replay is serialized by replay_mu, so the new first-use state is not shown to be concurrently initialized by replay threads.

Testing: Read-only review; no builds, tests or project scripts were run. The author reports a forced-fallback Linux RTX 3090 game run and game-free checks; CI is still running.

Overlaps and merge order: The description identifies #1552 as the earlier stale pull request whose commits are revived here; no other overlap was established.


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

**Recommendation: Approve.** The new fallback can submit invalid Vulkan objects when initialization fails, instead of reliably returning to the linear path. Its image quality and frame-time cost also need verification on the hardware that normally uses it. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The fixed-resolution fallback uses FSR 1 EASU to produce cleaner edges in place of a linear stretch. It adds a compute pass and pipeline setup; the reported RTX 3090 pass time is about 0.12–0.15 ms at 1440p. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `gpu/vk/vk_draw.cpp:12420`: Initialization ignores descriptor-layout, pipeline-layout and sampler creation failures, but only checks the pipeline handle before dispatching. (more on the line) **Do:** Check each creation result before using its output, clean up any partially created objects, and return false so typed_upscale can take over. Add failure cases to the Vulkan-spy test. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_draw.cpp:12294`: The default-on pass has not been measured or viewed on Steam Deck, a primary system that naturally takes this fallback. (more on the line) **Do:** Run interleaved main and PR comparisons on Steam Deck at both shares in the requested scenes, including camera motion, screenshots, average and 1% low FPS and frame times. - **L3** `gpu/vk/shaders/fixed_share_upscale.comp:29`: The new shader has not been exercised on the affected AMD desktop and Intel drivers, or under Vulkan validation. (more on the line) **Do:** Run the requested Windows AMD and Intel comparisons and a Linux AMD RADV run at 50% and 67%, including motion, frame times and a validation-layer run. `@fix` can do L1. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the intended hardware. The author reports cleaner edges at 50% and 67% in a forced-fallback RTX 3090 comparison, but no run has exercised the path naturally on AMD, Intel or Steam Deck. No before-and-after frame-rate or frame-time measurements are reported. **Other systems:** The path can run on AMD and Intel GPUs, Steam Deck, and NVIDIA when a network is skipped or a temporal upscale fails. The new shader and pipeline can affect image quality, GPU time and Vulkan compatibility on those systems; only forced fallback on Linux NVIDIA is reported. Other programs retain the existing typed fallback, and the 33% case returns to it when the scale exceeds the limit. No saves or renderer API structures change. **Switches:** RX_VK_FIXED_SHARE_EASU is new, defaults on, and has a kill-switch row; 0 restores the linear fallback. The default's quality and performance are not yet measured on the systems that normally take the path. **Reviewed:** d8e9a3576d7d against f359e2621315: Read the repository rules, contribution guide, standards and PR template; the diff, commit messages, changed shader, tests, generator changes, documentation changes, and the relevant vk_draw.cpp fallback and dispatch code. Skimmed the rest of the large renderer and shader recipe files and related replay locking. The full vk_draw.cpp and generator file were not read in full; generated shader headers and recorded runs were not available in the checkout. docs/review-checklist.md and the neighboring Tooling AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The EASU constants match the SDK's full-image constants, and the dispatch guards output bounds. - The switch has a table row and both switch states are covered by the new host-side test. - The changed files contain no committed generated shader headers or game-derived output; the commits record AI assistance. - Replay is serialized by replay_mu, so the new first-use state is not shown to be concurrently initialized by replay threads. **Testing:** Read-only review; no builds, tests or project scripts were run. The author reports a forced-fallback Linux RTX 3090 game run and game-free checks; CI is still running. **Overlaps and merge order:** The description identifies #1552 as the earlier stale pull request whose commits are revived here; no other overlap was established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.</sub>
@ -0,0 +26,4 @@
if (any(greaterThanEqual(g, pc.size))) return;
const vec3 lin = textureLod(src, (vec2(g) + 0.5) / vec2(pc.size), 0.0).rgb;
vec3 s = lin;
ffxFsrEasuFloat(s, uvec2(g), pc.con0, pc.con1, pc.con2, pc.con3);
Member

L3 (should fix): The new shader has not been exercised on the affected AMD desktop and Intel drivers, or under Vulkan validation.

When: These GPUs normally omit the fixed-share networks and therefore execute this shader, unlike the tested RTX 3090's normal path; output and driver compatibility remain unverified.

Do: Run the requested Windows AMD and Intel comparisons and a Linux AMD RADV run at 50% and 67%, including motion, frame times and a validation-layer run.

**L3** (should fix): The new shader has not been exercised on the affected AMD desktop and Intel drivers, or under Vulkan validation. *When:* These GPUs normally omit the fixed-share networks and therefore execute this shader, unlike the tested RTX 3090's normal path; output and driver compatibility remain unverified. **Do:** Run the requested Windows AMD and Intel comparisons and a Linux AMD RADV run at 50% and 67%, including motion, frame times and a validation-layer run.
@ -12282,3 +12292,3 @@
if (input_view && output_view && input_format == VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 &&
output_format == VK_FORMAT_B10G11R11_UFLOAT_PACK32 &&
typed_upscale(cmd, input_view, output_view, dst, 0, key, "generic RGB9E5 fallback", false)) {
((fixed_share_network(key) && fixed_share_upscale(cmd, input_view, output_view, src, dst)) ||
Member

L2 (should fix): The default-on pass has not been measured or viewed on Steam Deck, a primary system that naturally takes this fallback.

When: At the Deck's 50% and 67% render settings, EASU replaces every linear fallback frame; its effect on camera-motion shimmer, frame times and 1% lows is unknown.

Do: Run interleaved main and PR comparisons on Steam Deck at both shares in the requested scenes, including camera motion, screenshots, average and 1% low FPS and frame times.

**L2** (should fix): The default-on pass has not been measured or viewed on Steam Deck, a primary system that naturally takes this fallback. *When:* At the Deck's 50% and 67% render settings, EASU replaces every linear fallback frame; its effect on camera-motion shimmer, frame times and 1% lows is unknown. **Do:** Run interleaved main and PR comparisons on Steam Deck at both shares in the requested scenes, including camera motion, screenshots, average and 1% low FPS and frame times.
@ -12354,0 +12417,4 @@
si.magFilter = si.minFilter = VK_FILTER_LINEAR;
si.addressModeU = si.addressModeV = si.addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
si.maxLod = 0.25f;
vkCreateSampler(dev.device, &si, nullptr, &linear);
Member

L1 (should fix): Initialization ignores descriptor-layout, pipeline-layout and sampler creation failures, but only checks the pipeline handle before dispatching.

When: If sampler creation fails after the pipeline succeeds, the code pushes a combined image sampler with a null sampler and dispatches it instead of taking the promised linear fallback. If descriptor or pipeline layout creation fails, subsequent Vulkan creation calls receive invalid handles.

Do: Check each creation result before using its output, clean up any partially created objects, and return false so typed_upscale can take over. Add failure cases to the Vulkan-spy test.

**L1** (should fix): Initialization ignores descriptor-layout, pipeline-layout and sampler creation failures, but only checks the pipeline handle before dispatching. *When:* If sampler creation fails after the pipeline succeeds, the code pushes a combined image sampler with a null sampler and dispatches it instead of taking the promised linear fallback. If descriptor or pipeline layout creation fails, subsequent Vulkan creation calls receive invalid handles. **Do:** Check each creation result before using its output, clean up any partially created objects, and return false so typed_upscale can take over. Add failure cases to the Vulkan-spy test.
HumanBean force-pushed fix/fsr1-fixed-share-fallback from d8e9a3576d
Some checks failed
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
beanstalk/windows+amd 0/1 pass, 0 running, 2 queued
beanstalk/windows+intel 0/1 pass, 0 running, 2 queued
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
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
CI / Website build and checks (pull_request) Has been cancelled
to 12e1d7c55b
Some checks reported errors
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/windows+intel 0/1 pass, 0 running, 2 queued
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
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
CI / Website build and checks (pull_request) Has been cancelled
2026-12-05 02:43:19 +00:00
Compare
Author
Owner

Pushed 12e1d7c5, rebased onto main @ 3a0f7d8f. BeanBot's L1 is fixed: if the descriptor layout, pipeline layout or sampler is not made, nothing is dispatched and the plain stretch draws it, with a failing-creation case for each in the spy test.

Pushed 12e1d7c5, rebased onto main @ 3a0f7d8f. BeanBot's L1 is fixed: if the descriptor layout, pipeline layout or sampler is not made, nothing is dispatched and the plain stretch draws it, with a failing-creation case for each in the spy test.
Author
Owner

@Beanstalk steamdeck, windows amd and windows intel: this PR against main with the game's own upscaler at Render resolution 50% (resolution=4) and 67% (resolution=3, not 2: 2 is 75%, which does not take this path), Kokiri Forest and Hyrule Field, turning the camera, screenshots, frame times, and the log line fixed shares' upscale: FSR 1 EASU

@Beanstalk steamdeck, windows amd and windows intel: this PR against main with the game's own upscaler at Render resolution 50% (resolution=4) and 67% (resolution=3, not 2: 2 is 75%, which does not take this path), Kokiri Forest and Hyrule Field, turning the camera, screenshots, frame times, and the log line `fixed shares' upscale: FSR 1 EASU`
Member
Beanstalk test farm · an earlier run: commit 12e1d7c (the newer results are in a comment below)

Commit 12e1d7c · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The screenshots and turns do not automatically establish cleaner edges or measure motion shimmer; the frame-time segments begin after the turns.
⚠️ Note: The EASU initialization log is printed once per process, so it cannot independently prove that both live-switched render resolutions used the pass.
⚠️ Note: Vulkan validation and the isolated EASU pass cost are not measured; GPU total time is recorded instead.

Started at 02:44 UTC.

Target Result Reports VRAM peak (MB) Crashes
steamdeck ⏳ queued 0 of 1 — —
windows+amd ⚠️ couldn't be judged 0 of 1 — —
windows+intel ⏳ queued 0 of 1 — —

fixed-share-scenes · frame time p99 (ms), main → PR at each level

Target resolution=4 (reference) resolution=3
steamdeck — —
windows+amd — —
windows+intel — —
What was tested

What will be tested · AI plan (gpt-6.1-terra)

The PR will be compared with main on Steam Deck, Windows AMD, and Windows Intel using the game's own upscaler at 50% and 67% render resolution. Three starts per side will capture still screenshots and measure uncapped frame times and GPU time in Kokiri Forest and Hyrule Field, with camera turns at each location. The run fails for a crash, a missing successful EASU log line, excessive screenshot differences, or frame-time or GPU-time regressions over 20%.

  • Where: steamdeck (1-2 reports), windows+amd (1-2 reports), windows+intel (1-2 reports).
  • Matrix: 2 cells, each on main and the PR: resolution 4 or 3.
  • fixed-share-scenes: from the repository's save kokiri-start (settings dlss=0, vsync=2, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0), then teleport to Kokiri Forest, take the picture forest-still to compare with main, move the stick, take the picture forest-turned, measure forest for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field-still to compare with main, take the picture field-turned, measure field for 30 s (after 10 s warm-up); 3 runs on each side for each of 2 cells (1 game start a run).
  • Measured: crashes, frame times, stutters and hitches, GPU time per pass, the game's log.
  • The PR fails if: it crashes; or a picture differs from main by more than 30%; or GPU time a frame is more than 20% above main; or frame time (p99) is more than 20% above main; or forbidden log lines is above 0; or expected log lines missing is above 0; or frame time (worst 1%) is more than 20% above main.
  • Time: about 48 min of game runs per tester (6 game starts), plus the two builds.
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>12e1d7c</code> (the newer results are in a comment below)</summary> Commit `12e1d7c` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/3220) ⚠️ **Note:** The screenshots and turns do not automatically establish cleaner edges or measure motion shimmer; the frame-time segments begin after the turns. ⚠️ **Note:** The EASU initialization log is printed once per process, so it cannot independently prove that both live-switched render resolutions used the pass. ⚠️ **Note:** Vulkan validation and the isolated EASU pass cost are not measured; GPU total time is recorded instead. Started at 02:44 UTC. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `steamdeck` | ⏳ queued | 0 of 1 | — | — | | `windows+amd` | ⚠️ couldn't be judged | 0 of 1 | — | — | | `windows+intel` | ⏳ queued | 0 of 1 | — | — | **`fixed-share-scenes`** · frame time p99 (ms), main → PR at each level | Target | `resolution=4` (reference) | `resolution=3` | | --- | --- | --- | | `steamdeck` | — | — | | `windows+amd` | — | — | | `windows+intel` | — | — | <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The PR will be compared with main on Steam Deck, Windows AMD, and Windows Intel using the game's own upscaler at 50% and 67% render resolution. Three starts per side will capture still screenshots and measure uncapped frame times and GPU time in Kokiri Forest and Hyrule Field, with camera turns at each location. The run fails for a crash, a missing successful EASU log line, excessive screenshot differences, or frame-time or GPU-time regressions over 20%. - **Where:** steamdeck (1-2 reports), windows+amd (1-2 reports), windows+intel (1-2 reports). - **Matrix:** 2 cells, each on main and the PR: resolution `4` or `3`. - **fixed-share-scenes:** from the repository's save `kokiri-start` (settings dlss=0, vsync=2, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=gpu`, `RX_VK_AUTO_TUNE=0`), then teleport to Kokiri Forest, take the picture forest-still to compare with main, move the stick, take the picture forest-turned, measure forest for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field-still to compare with main, take the picture field-turned, measure field for 30 s (after 10 s warm-up); 3 runs on each side for each of 2 cells (1 game start a run). - **Measured:** crashes, frame times, stutters and hitches, GPU time per pass, the game's log. - **The PR fails if:** it crashes; or a picture differs from main by more than 30%; or GPU time a frame is more than 20% above main; or frame time (p99) is more than 20% above main; or forbidden log lines is above 0; or expected log lines missing is above 0; or frame time (worst 1%) is more than 20% above main. - **Time:** about 48 min of game runs per tester (6 game starts), plus the two builds. </details> </details>
Author
Owner

Pushed 49b0611c after a second cold review of the branch: rewritten to read test, then fix (zeldaootr's two commits, with the follow-ups folded in; the renderer and shader are as in 12e1d7c5). New: a failed-pipeline case in the spy test, the docs say the RGBA16F scene does not reach this pass (as on main), and two long doc lines are wrapped.

The farm's windows+amd jobs on 12e1d7c5 did not run this PR: their prefetch failed with ModuleNotFoundError: No module named 'renhdrum' (jb_d73278ed6142659e, jb_da4c5b14b1c82fc3), a module main does not have under scripts/.

Pushed 49b0611c after a second cold review of the branch: rewritten to read test, then fix (zeldaootr's two commits, with the follow-ups folded in; the renderer and shader are as in 12e1d7c5). New: a failed-pipeline case in the spy test, the docs say the RGBA16F scene does not reach this pass (as on main), and two long doc lines are wrapped. The farm's windows+amd jobs on 12e1d7c5 did not run this PR: their prefetch failed with `ModuleNotFoundError: No module named 'renhdrum'` (jb_d73278ed6142659e, jb_da4c5b14b1c82fc3), a module main does not have under `scripts/`.
HumanBean force-pushed fix/fsr1-fixed-share-fallback from 12e1d7c55b
Some checks reported errors
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/windows+intel 0/1 pass, 0 running, 2 queued
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
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
CI / Website build and checks (pull_request) Has been cancelled
to 49b0611cd4
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 16s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 19s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m13s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 9m59s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 9m49s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 12m0s
CI / Website build and checks (pull_request) Failing after 39s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 47m24s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m6s
2026-12-05 08:09:11 +00:00
Compare
Member

Beanstalk test farm

Commit 49b0611 · approved by nobody yet · dashboard

A member of BigBeans can review this commit and comment @Beanstalk to test it.

<!-- beanstalk:sticky --> ### Beanstalk test farm Commit `49b0611` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/3220) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
Author
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The initialization failure paths now fall back to the existing stretch. The default-on shader still needs quality, performance and compatibility results on the AMD and Intel systems it is intended to help. Recommend approval; not approved on the forge.

The fixed-share fallback uses FSR 1 EASU instead of a linear stretch for supported upscale ratios, improving the reported edges at the cost of an extra compute pass. Failed initialization leaves the existing stretch in place.

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

  • L2 gpu/vk/vk_draw.cpp:12294: The default-on pass has not been measured or viewed on Steam Deck, a primary system that naturally takes this fallback. When: At the Deck's 50% and 67% render settings, EASU replaces every linear fallback frame; its effect on camera-motion shimmer, frame times and 1% lows is unknown. Do: Run interleaved main and PR comparisons on Steam Deck at both shares in the requested scenes, including camera motion, screenshots, average and 1% low FPS and frame times.
  • L3 gpu/vk/shaders/fixed_share_upscale.comp:29: The new shader has not been exercised on the affected AMD desktop and Intel drivers, or under Vulkan validation. When: These GPUs normally omit the fixed-share networks and therefore execute this shader, unlike the tested RTX 3090's normal path; output and driver compatibility remain unverified. Do: Run the requested Windows AMD and Intel comparisons and a Linux AMD RADV run at 50% and 67%, including motion, frame times and a validation-layer run.

Since the last review (on d8e9a3576d)
Resolved: L1 (Initialization ignores descriptor-layout, pipeline-layout and sampler creation failures, b…)
Still open: L2 (The default-on pass has not been measured or viewed on Steam Deck, a primary system that n…); L3 (The new shader has not been exercised on the affected AMD desktop and Intel drivers, or un…)

Checks: Still running: 11 checks.

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

Does it help: Unproven on the primary affected systems. The author reports cleaner edges on a forced RTX 3090 fallback and 0.12–0.15 ms for the EASU pass at 1440p; there is no comparable stretch timing or frame-rate measurement.

Other systems: Steam Deck, Windows AMD and Windows Intel naturally taking the fallback remain untested. Vulkan validation is also outstanding. The RGBA16F path remains on the existing blit, and other networks retain their existing fallback.

Switches: RX_VK_FIXED_SHARE_EASU is new and defaults on; setting it to 0 restores the linear stretch. Its default remains to be assessed on the Steam Deck and other affected hardware.

Reviewed: 49b0611cd4 against 3a0f7d8f7f: Read the current fixed-share initialization and dispatch, the supplied range diff, ledger, description and comments, and the repository contribution rules and pull request template. Skimmed the overall diff and tests; the full changed code files and dependent paths were not all read in full.; nothing run (a code review).

Checked and fine:

  • The failure-path spy cases cover descriptor-layout, pipeline-layout, sampler and pipeline creation failures.
  • The fix preserves the EASU dispatch when initialization succeeds.

Testing: No commands from the project or tests were run. The author reports an in-game forced-fallback run on Linux with an RTX 3090, game-free tests and Linux and Windows syntax checks; CI is still running.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The initialization failure paths now fall back to the existing stretch. The default-on shader still needs quality, performance and compatibility results on the AMD and Intel systems it is intended to help. Recommend approval; not approved on the forge. The fixed-share fallback uses FSR 1 EASU instead of a linear stretch for supported upscale ratios, improving the reported edges at the cost of an extra compute pass. Failed initialization leaves the existing stretch in place. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_draw.cpp:12294`: The default-on pass has not been measured or viewed on Steam Deck, a primary system that naturally takes this fallback. *When:* At the Deck's 50% and 67% render settings, EASU replaces every linear fallback frame; its effect on camera-motion shimmer, frame times and 1% lows is unknown. **Do:** Run interleaved main and PR comparisons on Steam Deck at both shares in the requested scenes, including camera motion, screenshots, average and 1% low FPS and frame times. - **L3** `gpu/vk/shaders/fixed_share_upscale.comp:29`: The new shader has not been exercised on the affected AMD desktop and Intel drivers, or under Vulkan validation. *When:* These GPUs normally omit the fixed-share networks and therefore execute this shader, unlike the tested RTX 3090's normal path; output and driver compatibility remain unverified. **Do:** Run the requested Windows AMD and Intel comparisons and a Linux AMD RADV run at 50% and 67%, including motion, frame times and a validation-layer run. **Since the last review** (on d8e9a3576d7d) Resolved: L1 (Initialization ignores descriptor-layout, pipeline-layout and sampler creation failures, b…) Still open: L2 (The default-on pass has not been measured or viewed on Steam Deck, a primary system that n…); L3 (The new shader has not been exercised on the affected AMD desktop and Intel drivers, or un…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the primary affected systems. The author reports cleaner edges on a forced RTX 3090 fallback and 0.12–0.15 ms for the EASU pass at 1440p; there is no comparable stretch timing or frame-rate measurement. **Other systems:** Steam Deck, Windows AMD and Windows Intel naturally taking the fallback remain untested. Vulkan validation is also outstanding. The RGBA16F path remains on the existing blit, and other networks retain their existing fallback. **Switches:** RX_VK_FIXED_SHARE_EASU is new and defaults on; setting it to 0 restores the linear stretch. Its default remains to be assessed on the Steam Deck and other affected hardware. **Reviewed:** 49b0611cd466 against 3a0f7d8f7f34: Read the current fixed-share initialization and dispatch, the supplied range diff, ledger, description and comments, and the repository contribution rules and pull request template. Skimmed the overall diff and tests; the full changed code files and dependent paths were not all read in full.; nothing run (a code review). **Checked and fine:** - The failure-path spy cases cover descriptor-layout, pipeline-layout, sampler and pipeline creation failures. - The fix preserves the EASU dispatch when initialization succeeds. **Testing:** No commands from the project or tests were run. The author reports an in-game forced-fallback run on Linux with an RTX 3090, game-free tests and Linux and Windows syntax checks; CI is still running. **Overlaps and merge order:** Not established from the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Author
Owner

On the measured main: the numbers are from main @ f359e262; 3a0f7d8f adds #3202 (DLSS frame generation through Streamline), which does not touch the fixed shares' fallback, so they hold.

On the measured main: the numbers are from main @ f359e262; 3a0f7d8f adds #3202 (DLSS frame generation through Streamline), which does not touch the fixed shares' fallback, so they hold.
HumanBean deleted branch fix/fsr1-fixed-share-fallback 2026-12-05 16:43:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!3220
No description provided.