feat(recomplauncher): AMD FSR 4 ticks for the setup step, on Windows and Linux #2488

Open
mrdev023 wants to merge 1 commit from mrdev023/Longshot:feat/recomplauncher-fsr4 into main
First-time contributor

Summary

RecompLauncher's setup step had no way to turn on AMD FSR 4: a player had to build with --fsr by hand. This adds it to
recomplauncher.json, on both systems. It is the FSR 4 part of #354 (its DLSS tick is already on main). See #354.

  • Windows: an AMD FSR 4 tick (fsr4, AMD GPUs) builds with --fsr --fetch-fsr-runtime --accept-amd-license.
    It shows AMD's FidelityFX SDK license first, at the commit scripts/fetch.py pins (FSR_COMMIT).
  • Linux: AMD publishes no FSR 4 runtime, and --fetch-fsr-runtime only prints a message there. So the Linux tick
    (fsr4_linux) only builds with --fsr, with no license to accept. An optional input (fsr4_library, role dlc, .so
    only) lets the player pick a Vulkan FSR 4 library. The launcher places it before each start in the game folder
    (into: "Longshot") as amd_fidelityfx_upscaler_vk.so, the name gpu/vk/vk_fsr4.cpp loads (kLoader), whatever
    the picked file is called.

Read first: recomplauncher.json (inputs, prepare.options), then the new test in tests/test_recomplauncher_json.py.

Testing

Tested:

  • Linux (NixOS), AMD Radeon RX 9070 XT, RADV (Mesa 26.3.1), RecompLauncher with Longshot v3.2.0 and this
    recomplauncher.json: the setup screen showed the AMD FSR 4 tick (no license) and the .so row under Add-ons. With a
    Vulkan FSR 4 library picked (under another folder), the build ran with --fsr (the game folder has .longshot_fsr),
    the launcher placed it as Longshot/amd_fidelityfx_upscaler_vk.so (a hard link to the picked file), and in the game
    FSR 4 ran: fsr4.log selected 4.1.1 Vulkan FP8 on the RX 9070 XT.
  • Game-free: python -I tests/test_recomplauncher_json.py passes (14 tests, with the new
    test_fsr4_on_windows_and_linux), and the file validates against RecompLauncher's docs/recomplauncher.schema.json
    and its input rules (src-tauri/src/inputs.rs validate).

Still to test:

  • Windows, AMD RDNA 4, RecompLauncher: tick AMD FSR 4, accept AMD's license, build and play, expecting AMD's two DLLs in
    the game folder and FSR 4 offered in the Upscaler row (by hand)

Measurements

Nothing to measure: a setup manifest and a test, no change to what the game runs.

Risks

  • The .so row also shows on Windows: RecompLauncher's inputs have no os filter. Its label says Linux only; a .so
    picked there is never loaded.
  • Picking another .so later does not replace the one already placed: the launcher leaves a file it finds there alone.
    Deleting Longshot/amd_fidelityfx_upscaler_vk.so lets the new one in.
  • Both ticks are shown with an AMD GPU only, as in #354, although the game also offers FSR 4 (Lite stand-in) on other
    GPUs. Dropping "gpu": "amd" would show them everywhere.
  • Turning it off: untick it and the next build drops --fsr; a revert is enough.

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): tests/run_all.py --strict on this PC
    gives 313 passed, 649 failed, 18 skipped, the same 649 as on main @ 9046a8d7 (none fails only here). Each of them is
    --strict refusing a tool this NixOS PC lacks (a C++ compiler, the Vulkan and SPIR-V headers, spirv-val,
    glslang, PIL); tests/test_recomplauncher_json.py passes.
  • 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 check under tests/ that reads changed source is updated, not weakened.
  • 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 RecompLauncher's setup step had no way to turn on AMD FSR 4: a player had to build with `--fsr` by hand. This adds it to `recomplauncher.json`, on both systems. It is the FSR 4 part of #354 (its DLSS tick is already on `main`). See #354. - **Windows:** an **AMD FSR 4** tick (`fsr4`, AMD GPUs) builds with `--fsr --fetch-fsr-runtime --accept-amd-license`. It shows AMD's FidelityFX SDK license first, at the commit `scripts/fetch.py` pins (`FSR_COMMIT`). - **Linux:** AMD publishes no FSR 4 runtime, and `--fetch-fsr-runtime` only prints a message there. So the Linux tick (`fsr4_linux`) only builds with `--fsr`, with no license to accept. An optional input (`fsr4_library`, role `dlc`, `.so` only) lets the player pick a Vulkan FSR 4 library. The launcher places it before each start in the game folder (`into: "Longshot"`) as `amd_fidelityfx_upscaler_vk.so`, the name `gpu/vk/vk_fsr4.cpp` loads (`kLoader`), whatever the picked file is called. Read first: `recomplauncher.json` (`inputs`, `prepare.options`), then the new test in `tests/test_recomplauncher_json.py`. ## Testing **Tested:** - Linux (NixOS), AMD Radeon RX 9070 XT, RADV (Mesa 26.3.1), RecompLauncher with Longshot v3.2.0 and this `recomplauncher.json`: the setup screen showed the AMD FSR 4 tick (no license) and the `.so` row under Add-ons. With a Vulkan FSR 4 library picked (under another folder), the build ran with `--fsr` (the game folder has `.longshot_fsr`), the launcher placed it as `Longshot/amd_fidelityfx_upscaler_vk.so` (a hard link to the picked file), and in the game FSR 4 ran: `fsr4.log` selected `4.1.1 Vulkan FP8` on the RX 9070 XT. - Game-free: `python -I tests/test_recomplauncher_json.py` passes (14 tests, with the new `test_fsr4_on_windows_and_linux`), and the file validates against RecompLauncher's `docs/recomplauncher.schema.json` and its input rules (`src-tauri/src/inputs.rs` `validate`). **Still to test:** - Windows, AMD RDNA 4, RecompLauncher: tick AMD FSR 4, accept AMD's license, build and play, expecting AMD's two DLLs in the game folder and FSR 4 offered in the Upscaler row (by hand) ## Measurements Nothing to measure: a setup manifest and a test, no change to what the game runs. ## Risks - The `.so` row also shows on Windows: RecompLauncher's inputs have no `os` filter. Its label says Linux only; a `.so` picked there is never loaded. - Picking another `.so` later does not replace the one already placed: the launcher leaves a file it finds there alone. Deleting `Longshot/amd_fidelityfx_upscaler_vk.so` lets the new one in. - Both ticks are shown with an AMD GPU only, as in #354, although the game also offers FSR 4 (Lite stand-in) on other GPUs. Dropping `"gpu": "amd"` would show them everywhere. - Turning it off: untick it and the next build drops `--fsr`; a revert is enough. ## 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): `tests/run_all.py --strict` on this PC gives 313 passed, 649 failed, 18 skipped, the same 649 as on `main` @ 9046a8d7 (none fails only here). Each of them is `--strict` refusing a tool this NixOS PC lacks (a C++ compiler, the Vulkan and SPIR-V headers, `spirv-val`, `glslang`, PIL); `tests/test_recomplauncher_json.py` passes. - [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 check under `tests/` that reads changed source is updated, not weakened. - [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)
feat(recomplauncher): AMD FSR 4 ticks for the setup step, on Windows and Linux
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
80116c5636
Windows: an AMD FSR 4 tick builds with --fsr and fetches AMD's runtime
(--fetch-fsr-runtime), once AMD's FidelityFX SDK license is accepted; the
license link is the commit scripts/fetch.py pins.

Linux: AMD publishes no FSR 4 runtime, so its tick only builds with --fsr,
with no license to accept, and an optional input lets the player pick a
Vulkan FSR 4 library (.so). The launcher places it in the game folder as
amd_fidelityfx_upscaler_vk.so, where gpu/vk/vk_fsr4.cpp loads it.

The FSR 4 part of #354 (its DLSS tick is already on main).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
mrdev023 changed title from feat(recomplauncher): AMD FSR 4 ticks for the setup step, on Windows and Linux to WIP: feat(recomplauncher): AMD FSR 4 ticks for the setup step, on Windows and Linux 2026-11-24 21:46:39 +00:00
mrdev023 changed title from WIP: feat(recomplauncher): AMD FSR 4 ticks for the setup step, on Windows and Linux to feat(recomplauncher): AMD FSR 4 ticks for the setup step, on Windows and Linux 2026-11-24 22:03:38 +00:00
mrdev023 force-pushed feat/recomplauncher-fsr4 from 80116c5636
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to e15eea72bc
Some checks failed
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 4s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-24 22:20:26 +00:00
Compare
Merge origin/main into feat/recomplauncher-fsr4
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 18s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
7a9ef06b87
Resolve tests/test_recomplauncher_json.py: keep main's rewritten checks
(the Rust longshot-builder, game/ folder, builds/default game folder) and
re-add test_fsr4_on_windows_and_linux on top, adapted to the new builder:
--upscaler fsr4 --accept-licenses amd, and the fsr4_library input placed in
builds/default, the game folder longshot-builder builds into.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
mrdev023 force-pushed feat/recomplauncher-fsr4 from 7a9ef06b87
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 18s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 3b01b3d38f
Some checks are pending
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Blocked by required conditions
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Blocked by required conditions
CI / longshot-builder end to end (synthetic game) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 21s
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
2026-11-25 19:33:30 +00:00
Compare
Some checks are pending
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Blocked by required conditions
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Blocked by required conditions
CI / longshot-builder end to end (synthetic game) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 21s
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'feat/recomplauncher-fsr4:mrdev023-feat/recomplauncher-fsr4'
git switch 'mrdev023-feat/recomplauncher-fsr4'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2488
No description provided.