AMD FSR on cards without DLSS: the PC FidelityFX upscaler runs on Series X (FSR 4 or 3.1, the newest offered), FSR 3 frame generation on it (--fg-type fsr) #3857

Open
duckey-dev wants to merge 3 commits from upstream-pr/3857 into main
duckey-dev commented 2026-11-30 09:30:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by duckey-dev on 2026-11-30T09:30:05Z.


Update, 30 Nov (rebased onto main c71899d). Where the text below differs, this note holds.

  • Three commits now, not four. Main merged #2248, which has the same available.dlss || pc_mode line as this PR's "Series X path" commit, so that commit fell away and main's stays. Point 2 under "What it changes" is main's now.
  • The provider query in fidelityfx/pc.rs is this PR's (it also asks for the provider by id and feeds the on-screen notice); #2248's provider_version() helper, which did the logging half, is removed in its favour.
  • Of the related PRs listed below, only #2248 has merged; the others are as described.
  • Checks on the rebased branch: both of CI's clippy runs add no warning over main, and cargo test --workspace has no failure that main does not have on this machine.

What was wrong

On a Radeon (RX 7900 XTX) the PC FidelityFX path that main already has (victory_hle::modules::fidelityfx::pc, VICTORY_PC_FSR=1) never upscaled anything in the world:

  • The path was cut off on Series X. run.rs passed upscaler_mode only available.dlss as "something takes the upscalings at any size". With the PC upscaler and no DLSS, Series X took the "title's own FidelityFX" branch: the title's FidelityFX path was left out, the build's patches kept the title's own upscaler, no FidelityFX context was made, and the log never showed "PC FidelityFX upscaler created".
  • The SDK picked the provider. The check counted the upscaler versions but never asked for one, so which FSR ran (and whether it was FSR 4) was up to the SDK's default, and nothing said which one it was.
  • Frame generation was tied to FSR 4 only. enable_host_fsr4 loaded AMD's frame generation only for VICTORY_FSR_FRAMEGEN=4. FSR 4 needs the exact 4.0.2 generator and 4.0.0 swap chain, and AMD's SDK v2.4.0 offers neither on this card. It offers upscaler 4.1.2 / 3.1.6 / 2.3.4 and frame generation 3.1.6 only. So FSR 4 frame generation fell back to plain presents, and FSR 3 frame generation (VICTORY_FSR_FRAMEGEN=1) was refused as "needs DLSS", even though the PC upscaler's dispatches already record depth, motion vectors and camera the same way DLSS's do (record_host_upscale).
  • The launcher had no way in. --fg-type fsr without DLSS said "FRAME GEN OFF: DLSS IS OFF (FSR 3 NEEDS DLSS'S UPSCALING)". Only the experimental fsr4 set VICTORY_PC_FSR, and get-amd-fsr.ps1 did not fetch amd_fidelityfx_upscaler_dx12.dll.

What it changes

  1. Fetch script (scripts/get-amd-fsr.ps1): also fetches amd_fidelityfx_upscaler_dx12.dll with its pinned SHA-256. This is the fetch-script part of game6coder's #1236; #3011 and #3520 carry the same line and hash.
  2. Series X path (run.rs): upscaler_mode(..., available.dlss || pc_mode, ...). The PC upscaler takes any size, as DLSS does, so the title's FidelityFX path goes in at the mode's scale. This is the same one-line fix as #3011 and #2248, which found it first.
  3. PC FidelityFX path (fidelityfx/pc.rs, streamline.rs, streamline/fsr.rs, fidelityfx.rs):
    • The check lists every upscaler version the SDK offers on the device (id, name) and picks the newest by its version numbers: FSR 4 where offered, else the newest 3.1. This is the same choice #1236 makes.
    • Each context asks for that provider by id (ffxOverrideVersion). If the SDK refuses, it is made again with the SDK's own choice. The provider it was made with is logged (ffxQueryGetProviderVersion).
    • enable_host_framegen (formerly enable_host_fsr4) loads AMD's frame generation for the PC upscaler whether or not FSR 4 is asked. With VICTORY_PC_FSR=1, FSR 3 frame generation is no longer refused for want of DLSS.
    • With FSR 4 asked where the adapter has no 4.0.2 generator / 4.0.0 swap chain, or the back buffer is not R8G8B8A8, FSR 3 frame generation runs instead of plain presents. Each swap chain logs the frame-generation and swap-chain versions the SDK offers, which shows whether the exact-name check can ever match on a card.
    • The start's lines and on-screen notice say what runs: UPSCALING: AMD FSR 4.1.2, FRAME GEN: FSR 3 2X, FRAME GEN: FSR 3 2X (NO FSR 4 GENERATOR HERE). They also say why not when the upscaler or the frame-generation DLLs did not start.
    • A GetProcAddress lookup of the FidelityFX loader is served like an import when only the PC upscaler is active.
    • Memory is held back for frame generation when AMD's DLLs were loaded for it.
  4. Launcher (play.rs):
    • On Series X, --fg-type fsr with frame generation asked (--framegen, or saved in F1) sets VICTORY_PC_FSR=1. The layer uses it only where DLSS does not upscale: no NVIDIA files, --dlss off, or a card without DLSS. It runs at the DLSS line's mode (quality for off or DLAA), with FSR 3 frame generation on it.
    • With DLSS on, FSR 3 runs on DLSS as before and the PC upscaler only stands by. DLAA with DLSS keeps FSR 3 off (#663).
    • Series S, auto and dlss are unchanged.
    • Neither fsr nor fsr4 shows the "FSR 3 needs DLSS" note any more (the fsr4 half is #2642's fix too).
    • AMD's files are offered for fsr, and NVIDIA's are still offered where DLSS is planned.

Tests added: newest provider pick (pc.rs), notice lines for the PC upscaler (fsr.rs), launcher settings for fsr with and without DLSS (play.rs).

How it was tested

  • GPU and profile: AMD Radeon RX 7900 XTX, AMD Ryzen 7 7800X3D, Windows 11, Series X, no DLSS, ray tracing off. AMD FidelityFX SDK v2.4.0 DLLs (from the fetch script).
  • Before: no upscaling by the PC path ("PC FidelityFX upscaler created" never logged); --fg-type fsr refused as needing DLSS; fsr4 frame generation fell back to plain presents.
  • After: FSR 4.1.2 upscaling through the PC FidelityFX upscaler, and FSR 3 frame generation on its upscalings.
  • Checked by eye only. The picture is upscaled and frame generation is on. No frame-time or fps numbers were taken. The game runs were on a branch that also held other open pull requests; this branch is the same four commits on main (they applied without conflicts).
  • cargo test passed for the crates it touches: no failure that main does not have on this machine (the new tests pass; main's menu tests share VICTORY_HOME and fail now and then when run in parallel, with or without this change). Both of CI's clippy runs add no warning over main.

Not tested

  • NVIDIA cards. Nothing should change with DLSS on, but the stand-by path (DLSS files present, DLSS fails to start on the card) was not run.
  • Intel Arc.
  • Other AMD cards, including RDNA 4, where the SDK may offer the FSR 4 generator and the fsr4 path would take it instead of the FSR 3 fallback.
  • Series S, and FidelityFX SDK DLLs other than v2.4.0.
  • HDR or other back-buffer formats with frame generation.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. I read each PR's diff against main.

  • #1236 (game6coder): [FSR] Add support for FSR framegen and upscaling on AMD GPUs. Same goal and the same provider choice (FSR 4 else the newest 3.1, by ffxOverrideVersion), but a second, separate upscaler: a new streamline/fsr_upscale.rs (about 450 lines) that records AMD's upscaler from the Streamline layer's evaluate path. It is based on a main from before fidelityfx/pc.rs existed, and it conflicts with current main in five files.

    • Ours builds on the PC FidelityFX path main already has, so there is one AMD upscaler path instead of two.
    • Its fetch-script line is taken here, credited.
    • Parts of #1236 that are better and not in ours: skipping the DLSS download on a non-NVIDIA card (nvidia_card()), preferring the folder that also holds the upscaler DLL, an F1 row that says FSR upscales in DLSS's place, an auto / 1 switch and FSR sharpness. These would sit well on top of this PR.
  • #3011 (rgroenewoudt): FSR 4 on cards without DLSS: Series X upscaler, upscaler DLL download, docs. It contains our commit 2 exactly (available.dlss || pc_mode), the same fetch-script line and hash, and a provider-name log after context creation (ours logs the same query and also asks for the provider first).

    • Better than ours: the launcher's fidelityfx_dir(here, upscaler) requires the upscaler DLL when the PC upscaler is used, and the fetch checks that it arrived. Ours does not. With an older fidelityfx folder holding only the two frame-generation DLLs, ours finds that folder, does not offer the download, and the start says "AMD's PC FidelityFX upscaler did not start". It also has docs and play-foxhound.ps1 / Get-AMD-FSR.cmd changes.
    • It stays on FSR 4 frame generation only (-FgType fsr4), so on this card (no 4.0.2 generator) it gets upscaling but no frame generation.
    • If #3011 lands first, our commits 1 and 2 drop out, and its folder check should be kept over ours.
  • #2248 (RB-404): Fading trees fix, and PC FSR 4 actually turning on for Series X. It has the same run.rs fix and the same provider-name log, bundled with an unrelated descriptor fix. Ours adds nothing over it on that line.

  • #3519 (chosenundeadsz): Frame generation: FSR 3 without DLSS through the PC FidelityFX upscaler, where NVIDIA's files are not. The closest in intent to our commits 3 and 4. It sets VICTORY_PC_FSR for fsr only when NVIDIA's files are absent, renames enable_host_fsr4 to enable_host_fsr_framegen (the same body as our enable_host_framegen), and drops the "needs DLSS" refusal.

    • It keeps upscaler_mode(..., available.dlss, ...). On Series X the title's FidelityFX path is still left out, so on its own the PC upscaler never runs there (it needs #3011 or #2248).
    • It does not cover a card with NVIDIA's files present where DLSS does not start (a Radeon with a shared install), or --dlss off.
    • It fixes the scene at quality instead of the DLSS line's mode, and has no FSR 4 to FSR 3 fallback and no provider choice.
    • Ours covers the same ground and more; its Linux/Proton doc section is independent of ours. The two conflict textually in play.rs, run.rs and streamline.rs; one should be closed in favour of the other.
  • #3520 (chosenundeadsz): AMD FSR files: the PC upscaler is fetched too, and scripts/get-amd-fsr.sh fetches them under Wine and Proton. The same fetch-script line and hash as our commit 1. It has the same launcher folder check as #3011 (better than ours, see above) plus a Wine/Proton fetch script. Complementary: if it lands first, our commit 1 drops out.

  • #2642 (masteraapjes): Avoid false DLSS requirement warning for FSR 4. It has the same !pc_fsr condition on the "FSR 3 needs DLSS" note that ours makes (ours as !pc_fsr && !pc_fsr3). Its tests are more thorough and agree with our behaviour. A small textual conflict in play.rs; either can rebase on the other.

  • #2687 (Yoruiopz): Skip AMD SDK setup when FSR frame generation is disabled. It rewrites the condition in prepare() that ours also touches. A small textual conflict, and no disagreement in behaviour.

  • #3728 (kc01-8): FSR 3 frame generation: make the swap chain with FidelityFX SDK 2.3.0's DLLs too. Complementary; no textual conflict. Ours was tested with v2.4.0 DLLs only.

  • #2895 (saakedev): Verify AMD FSR downloads without Get-FileHash. Complementary hashing change in the same script, with no conflict.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5562575474 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3857). Originally posted by [duckey-dev](https://github.com/duckey-dev) on 2026-11-30T09:30:05Z. --- > **Update, 30 Nov (rebased onto main c71899d).** Where the text below differs, this note holds. > - **Three commits now, not four.** Main merged #2248, which has the same `available.dlss || pc_mode` line as this PR's "Series X path" commit, so that commit fell away and main's stays. Point 2 under "What it changes" is main's now. > - **The provider query** in `fidelityfx/pc.rs` is this PR's (it also asks for the provider by id and feeds the on-screen notice); #2248's `provider_version()` helper, which did the logging half, is removed in its favour. > - Of the related PRs listed below, only #2248 has merged; the others are as described. > - Checks on the rebased branch: both of CI's clippy runs add no warning over main, and `cargo test --workspace` has no failure that main does not have on this machine. ## What was wrong On a Radeon (RX 7900 XTX) the PC FidelityFX path that main already has (`victory_hle::modules::fidelityfx::pc`, `VICTORY_PC_FSR=1`) never upscaled anything in the world: - **The path was cut off on Series X.** `run.rs` passed `upscaler_mode` only `available.dlss` as "something takes the upscalings at any size". With the PC upscaler and no DLSS, Series X took the "title's own FidelityFX" branch: the title's FidelityFX path was left out, the build's patches kept the title's own upscaler, no FidelityFX context was made, and the log never showed "PC FidelityFX upscaler created". - **The SDK picked the provider.** The check counted the upscaler versions but never asked for one, so which FSR ran (and whether it was FSR 4) was up to the SDK's default, and nothing said which one it was. - **Frame generation was tied to FSR 4 only.** `enable_host_fsr4` loaded AMD's frame generation only for `VICTORY_FSR_FRAMEGEN=4`. FSR 4 needs the exact 4.0.2 generator and 4.0.0 swap chain, and AMD's SDK v2.4.0 offers neither on this card. It offers upscaler 4.1.2 / 3.1.6 / 2.3.4 and frame generation 3.1.6 only. So FSR 4 frame generation fell back to plain presents, and FSR 3 frame generation (`VICTORY_FSR_FRAMEGEN=1`) was refused as "needs DLSS", even though the PC upscaler's dispatches already record depth, motion vectors and camera the same way DLSS's do (`record_host_upscale`). - **The launcher had no way in.** `--fg-type fsr` without DLSS said "FRAME GEN OFF: DLSS IS OFF (FSR 3 NEEDS DLSS'S UPSCALING)". Only the experimental `fsr4` set `VICTORY_PC_FSR`, and `get-amd-fsr.ps1` did not fetch `amd_fidelityfx_upscaler_dx12.dll`. ## What it changes 1. **Fetch script** (`scripts/get-amd-fsr.ps1`): also fetches `amd_fidelityfx_upscaler_dx12.dll` with its pinned SHA-256. This is the fetch-script part of game6coder's #1236; #3011 and #3520 carry the same line and hash. 2. **Series X path** (`run.rs`): `upscaler_mode(..., available.dlss || pc_mode, ...)`. The PC upscaler takes any size, as DLSS does, so the title's FidelityFX path goes in at the mode's scale. This is the same one-line fix as #3011 and #2248, which found it first. 3. **PC FidelityFX path** (`fidelityfx/pc.rs`, `streamline.rs`, `streamline/fsr.rs`, `fidelityfx.rs`): - The check lists every upscaler version the SDK offers on the device (id, name) and picks the newest by its version numbers: FSR 4 where offered, else the newest 3.1. This is the same choice #1236 makes. - Each context asks for that provider by id (`ffxOverrideVersion`). If the SDK refuses, it is made again with the SDK's own choice. The provider it was made with is logged (`ffxQueryGetProviderVersion`). - `enable_host_framegen` (formerly `enable_host_fsr4`) loads AMD's frame generation for the PC upscaler whether or not FSR 4 is asked. With `VICTORY_PC_FSR=1`, FSR 3 frame generation is no longer refused for want of DLSS. - With FSR 4 asked where the adapter has no 4.0.2 generator / 4.0.0 swap chain, or the back buffer is not R8G8B8A8, FSR 3 frame generation runs instead of plain presents. Each swap chain logs the frame-generation and swap-chain versions the SDK offers, which shows whether the exact-name check can ever match on a card. - The start's lines and on-screen notice say what runs: `UPSCALING: AMD FSR 4.1.2`, `FRAME GEN: FSR 3 2X`, `FRAME GEN: FSR 3 2X (NO FSR 4 GENERATOR HERE)`. They also say why not when the upscaler or the frame-generation DLLs did not start. - A `GetProcAddress` lookup of the FidelityFX loader is served like an import when only the PC upscaler is active. - Memory is held back for frame generation when AMD's DLLs were loaded for it. 4. **Launcher** (`play.rs`): - On Series X, `--fg-type fsr` with frame generation asked (`--framegen`, or saved in F1) sets `VICTORY_PC_FSR=1`. The layer uses it only where DLSS does not upscale: no NVIDIA files, `--dlss off`, or a card without DLSS. It runs at the DLSS line's mode (quality for off or DLAA), with FSR 3 frame generation on it. - With DLSS on, FSR 3 runs on DLSS as before and the PC upscaler only stands by. DLAA with DLSS keeps FSR 3 off (#663). - Series S, `auto` and `dlss` are unchanged. - Neither `fsr` nor `fsr4` shows the "FSR 3 needs DLSS" note any more (the `fsr4` half is #2642's fix too). - AMD's files are offered for `fsr`, and NVIDIA's are still offered where DLSS is planned. Tests added: `newest` provider pick (pc.rs), notice lines for the PC upscaler (fsr.rs), launcher settings for `fsr` with and without DLSS (play.rs). ## How it was tested - GPU and profile: AMD Radeon RX 7900 XTX, AMD Ryzen 7 7800X3D, Windows 11, Series X, no DLSS, ray tracing off. AMD FidelityFX SDK v2.4.0 DLLs (from the fetch script). - Before: no upscaling by the PC path ("PC FidelityFX upscaler created" never logged); `--fg-type fsr` refused as needing DLSS; `fsr4` frame generation fell back to plain presents. - After: FSR 4.1.2 upscaling through the PC FidelityFX upscaler, and FSR 3 frame generation on its upscalings. - **Checked by eye only.** The picture is upscaled and frame generation is on. No frame-time or fps numbers were taken. The game runs were on a branch that also held other open pull requests; this branch is the same four commits on main (they applied without conflicts). - `cargo test` passed for the crates it touches: no failure that main does not have on this machine (the new tests pass; main's `menu` tests share `VICTORY_HOME` and fail now and then when run in parallel, with or without this change). Both of CI's clippy runs add no warning over main. ## Not tested - NVIDIA cards. Nothing should change with DLSS on, but the stand-by path (DLSS files present, DLSS fails to start on the card) was not run. - Intel Arc. - Other AMD cards, including RDNA 4, where the SDK may offer the FSR 4 generator and the `fsr4` path would take it instead of the FSR 3 fallback. - Series S, and FidelityFX SDK DLLs other than v2.4.0. - HDR or other back-buffer formats with frame generation. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. I read each PR's diff against main. - **#1236 (game6coder): [FSR] Add support for FSR framegen and upscaling on AMD GPUs.** Same goal and the same provider choice (FSR 4 else the newest 3.1, by `ffxOverrideVersion`), but a second, separate upscaler: a new `streamline/fsr_upscale.rs` (about 450 lines) that records AMD's upscaler from the Streamline layer's evaluate path. It is based on a main from before `fidelityfx/pc.rs` existed, and it conflicts with current main in five files. - Ours builds on the PC FidelityFX path main already has, so there is one AMD upscaler path instead of two. - Its fetch-script line is taken here, credited. - Parts of #1236 that are better and not in ours: skipping the DLSS download on a non-NVIDIA card (`nvidia_card()`), preferring the folder that also holds the upscaler DLL, an F1 row that says FSR upscales in DLSS's place, an `auto` / `1` switch and FSR sharpness. These would sit well on top of this PR. - **#3011 (rgroenewoudt): FSR 4 on cards without DLSS: Series X upscaler, upscaler DLL download, docs.** It contains our commit 2 exactly (`available.dlss || pc_mode`), the same fetch-script line and hash, and a provider-name log after context creation (ours logs the same query and also asks for the provider first). - **Better than ours:** the launcher's `fidelityfx_dir(here, upscaler)` requires the upscaler DLL when the PC upscaler is used, and the fetch checks that it arrived. Ours does not. With an older `fidelityfx` folder holding only the two frame-generation DLLs, ours finds that folder, does not offer the download, and the start says "AMD's PC FidelityFX upscaler did not start". It also has docs and `play-foxhound.ps1` / `Get-AMD-FSR.cmd` changes. - It stays on FSR 4 frame generation only (`-FgType fsr4`), so on this card (no 4.0.2 generator) it gets upscaling but no frame generation. - If #3011 lands first, our commits 1 and 2 drop out, and its folder check should be kept over ours. - **#2248 (RB-404): Fading trees fix, and PC FSR 4 actually turning on for Series X.** It has the same `run.rs` fix and the same provider-name log, bundled with an unrelated descriptor fix. Ours adds nothing over it on that line. - **#3519 (chosenundeadsz): Frame generation: FSR 3 without DLSS through the PC FidelityFX upscaler, where NVIDIA's files are not.** The closest in intent to our commits 3 and 4. It sets `VICTORY_PC_FSR` for `fsr` only when NVIDIA's files are absent, renames `enable_host_fsr4` to `enable_host_fsr_framegen` (the same body as our `enable_host_framegen`), and drops the "needs DLSS" refusal. - It keeps `upscaler_mode(..., available.dlss, ...)`. On Series X the title's FidelityFX path is still left out, so on its own the PC upscaler never runs there (it needs #3011 or #2248). - It does not cover a card with NVIDIA's files present where DLSS does not start (a Radeon with a shared install), or `--dlss off`. - It fixes the scene at quality instead of the DLSS line's mode, and has no FSR 4 to FSR 3 fallback and no provider choice. - Ours covers the same ground and more; its Linux/Proton doc section is independent of ours. The two conflict textually in `play.rs`, `run.rs` and `streamline.rs`; one should be closed in favour of the other. - **#3520 (chosenundeadsz): AMD FSR files: the PC upscaler is fetched too, and scripts/get-amd-fsr.sh fetches them under Wine and Proton.** The same fetch-script line and hash as our commit 1. It has the same launcher folder check as #3011 (better than ours, see above) plus a Wine/Proton fetch script. Complementary: if it lands first, our commit 1 drops out. - **#2642 (masteraapjes): Avoid false DLSS requirement warning for FSR 4.** It has the same `!pc_fsr` condition on the "FSR 3 needs DLSS" note that ours makes (ours as `!pc_fsr && !pc_fsr3`). Its tests are more thorough and agree with our behaviour. A small textual conflict in `play.rs`; either can rebase on the other. - **#2687 (Yoruiopz): Skip AMD SDK setup when FSR frame generation is disabled.** It rewrites the condition in `prepare()` that ours also touches. A small textual conflict, and no disagreement in behaviour. - **#3728 (kc01-8): FSR 3 frame generation: make the swap chain with FidelityFX SDK 2.3.0's DLLs too.** Complementary; no textual conflict. Ours was tested with v2.4.0 DLLs only. - **#2895 (saakedev): Verify AMD FSR downloads without Get-FileHash.** Complementary hashing change in the same script, with no conflict. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3857:upstream-pr/3857'
git switch 'upstream-pr/3857'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3857'
git switch 'upstream-pr/3857'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3857'
git switch 'upstream-pr/3857'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3857'
git switch 'main'
git merge --squash 'upstream-pr/3857'
git switch 'main'
git merge --ff-only 'upstream-pr/3857'
git switch 'main'
git merge 'upstream-pr/3857'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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