AMD FSR files: the PC upscaler is fetched too, and scripts/get-amd-fsr.sh fetches them under Wine and Proton #3520

Open
github-bot wants to merge 1 commit from github-bot/gh-3520 into main AGit
Owner

@⁠chosenundeadsz on GitHub · 2026-11-30 00:25 UTC · original
chosenundeadsz:amd-fsr-files → main · +114 −12 · 5 files · 1 commits · open

What it changes

The PC FidelityFX path (VICTORY_PC_FSR=1) loads amd_fidelityfx_upscaler_dx12.dll, which victory get-fsr did not fetch. And the fetcher runs Windows PowerShell, which a Proton prefix does not have, as docs/linux-proton.md already says of NVIDIA's.

  • get-amd-fsr.ps1, Get-AMD-FSR.cmd, play.rs: the upscaler is fetched with the other two (SDK v2.4.0, its SHA-256 checked against AMD's copy). These are the same lines as #3011, so either can land first. With the PC upscaler asked, a folder without it is not taken for AMD's files.
  • play.rs: under Wine and Proton the question is still asked; a yes names scripts/get-amd-fsr.sh instead of starting PowerShell.
  • scripts/get-amd-fsr.sh: the Linux stand-in, in the form of get-nvidia-dlss.sh and get-mfg-unlocker.sh. It needs curl, fetches the three files with the same SHA-256 values and AMD's licence into the prefix's %LOCALAPPDATA%\victory\amd-fidelityfx, where victory.exe looks, and --to names another folder, as the PowerShell script's -To does.
  • docs/linux-proton.md: how to run it.

How it was tested

  • GPU and profile: Radeon RX 9060 XT 16 GB (RADV, Mesa 26.3.1), Linux, Proton Experimental 11.0-20261123b through Heroic, Series S, FSR 3 frame generation 2x.
  • Before: under Proton the fetch needs a Windows PowerShell the prefix does not have, and the upscaler was not fetched anywhere.
  • After: the question is shown in the console under Proton, and a yes, like victory get-fsr under Wine, names the script. The script fetched the three files into a Heroic prefix and into a folder beside victory.exe, fetched nothing on a second run, fetched a changed file again, and with one SHA-256 altered in a copy of it did not keep the file; shellcheck reports nothing. The files are the same, by SHA-256, as those #3519 ran with.
  • Not tested: Windows, where the PowerShell path changes only by the third file.
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo test passed for the crates it touches: yes, victory, cross-built with cargo-xwin and run under Wine. Two tests fail there, on main as well, because they check for Windows (windows_is_not_wine, a_copy_of_windows_own_direct3d_12_is_set_aside_for_system32s).
  • CI: on main at 41adb551 clippy already stops in victory-shader and victory-loader, and cargo xtask policy flags crates/victory-loader/src/heap_sites/frame_users.rs. Neither is touched here.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #3011, #2895, #2687
    • #3011 adds the same upscaler lines to the download, with its Series X and play-foxhound.ps1 -FgType fsr4 parts, which are not here.
    • #2895 changes how get-amd-fsr.ps1 checks the files; #2687 changes when play.rs sets the AMD files up.
    • Merges with #3519 without a conflict.

Written with an AI assistant, reviewed and tested before submission.

🤖 Generated with Claude Code

**@⁠chosenundeadsz** on GitHub · 2026-11-30 00:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3520) `chosenundeadsz:amd-fsr-files` → `main` · +114 −12 · 5 files · 1 commits · open ## What it changes The PC FidelityFX path (`VICTORY_PC_FSR=1`) loads `amd_fidelityfx_upscaler_dx12.dll`, which `victory get-fsr` did not fetch. And the fetcher runs Windows PowerShell, which a Proton prefix does not have, as `docs/linux-proton.md` already says of NVIDIA's. - `get-amd-fsr.ps1`, `Get-AMD-FSR.cmd`, `play.rs`: the upscaler is fetched with the other two (SDK v2.4.0, its SHA-256 checked against AMD's copy). These are the same lines as #3011, so either can land first. With the PC upscaler asked, a folder without it is not taken for AMD's files. - `play.rs`: under Wine and Proton the question is still asked; a yes names `scripts/get-amd-fsr.sh` instead of starting PowerShell. - `scripts/get-amd-fsr.sh`: the Linux stand-in, in the form of `get-nvidia-dlss.sh` and `get-mfg-unlocker.sh`. It needs curl, fetches the three files with the same SHA-256 values and AMD's licence into the prefix's `%LOCALAPPDATA%\victory\amd-fidelityfx`, where `victory.exe` looks, and `--to` names another folder, as the PowerShell script's `-To` does. - `docs/linux-proton.md`: how to run it. ## How it was tested - GPU and profile: Radeon RX 9060 XT 16 GB (RADV, Mesa 26.3.1), Linux, Proton Experimental 11.0-20261123b through Heroic, Series S, FSR 3 frame generation 2x. - Before: under Proton the fetch needs a Windows PowerShell the prefix does not have, and the upscaler was not fetched anywhere. - After: the question is shown in the console under Proton, and a yes, like `victory get-fsr` under Wine, names the script. The script fetched the three files into a Heroic prefix and into a folder beside `victory.exe`, fetched nothing on a second run, fetched a changed file again, and with one SHA-256 altered in a copy of it did not keep the file; shellcheck reports nothing. The files are the same, by SHA-256, as those #3519 ran with. - Not tested: Windows, where the PowerShell path changes only by the third file. - For shader changes, the wave sizes tested: not a shader change. - `cargo test` passed for the crates it touches: yes, `victory`, cross-built with cargo-xwin and run under Wine. Two tests fail there, on `main` as well, because they check for Windows (`windows_is_not_wine`, `a_copy_of_windows_own_direct3d_12_is_set_aside_for_system32s`). - CI: on `main` at 41adb551 clippy already stops in `victory-shader` and `victory-loader`, and `cargo xtask policy` flags `crates/victory-loader/src/heap_sites/frame_users.rs`. Neither is touched here. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #3011, #2895, #2687 - #3011 adds the same upscaler lines to the download, with its Series X and `play-foxhound.ps1 -FgType fsr4` parts, which are not here. - #2895 changes how `get-amd-fsr.ps1` checks the files; #2687 changes when `play.rs` sets the AMD files up. - Merges with #3519 without a conflict. Written with an AI assistant, reviewed and tested before submission. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 00:28:46 +00:00
This pull request has changes conflicting with the target branch.
  • apps/victory/src/play.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3520/head:github-bot/gh-3520'
git switch 'github-bot/gh-3520'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3520'
git switch 'github-bot/gh-3520'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3520'
git switch 'github-bot/gh-3520'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3520'
git switch 'main'
git merge --squash 'github-bot/gh-3520'
git switch 'main'
git merge --ff-only 'github-bot/gh-3520'
git switch 'main'
git merge 'github-bot/gh-3520'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3520
No description provided.