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
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3857
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3857"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@duckey-dev on GitHub · 2026-11-30 09:30 UTC · original
duckey-dev:amd-fsr-pc-upscaler→main· +426 −59 · 7 files · 3 commits · openWhat 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:run.rspassedupscaler_modeonlyavailable.dlssas "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".enable_host_fsr4loaded AMD's frame generation only forVICTORY_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).--fg-type fsrwithout DLSS said "FRAME GEN OFF: DLSS IS OFF (FSR 3 NEEDS DLSS'S UPSCALING)". Only the experimentalfsr4setVICTORY_PC_FSR, andget-amd-fsr.ps1did not fetchamd_fidelityfx_upscaler_dx12.dll.What it changes
scripts/get-amd-fsr.ps1): also fetchesamd_fidelityfx_upscaler_dx12.dllwith its pinned SHA-256. This is the fetch-script part of game6coder's #1236; #3011 and #3520 carry the same line and hash.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.fidelityfx/pc.rs,streamline.rs,streamline/fsr.rs,fidelityfx.rs):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(formerlyenable_host_fsr4) loads AMD's frame generation for the PC upscaler whether or not FSR 4 is asked. WithVICTORY_PC_FSR=1, FSR 3 frame generation is no longer refused for want of DLSS.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.GetProcAddresslookup of the FidelityFX loader is served like an import when only the PC upscaler is active.play.rs):--fg-type fsrwith frame generation asked (--framegen, or saved in F1) setsVICTORY_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.autoanddlssare unchanged.fsrnorfsr4shows the "FSR 3 needs DLSS" note any more (thefsr4half is #2642's fix too).fsr, and NVIDIA's are still offered where DLSS is planned.Tests added:
newestprovider pick (pc.rs), notice lines for the PC upscaler (fsr.rs), launcher settings forfsrwith and without DLSS (play.rs).How it was tested
--fg-type fsrrefused as needing DLSS;fsr4frame generation fell back to plain presents.cargo testpassed for the crates it touches: no failure that main does not have on this machine (the new tests pass; main'smenutests shareVICTORY_HOMEand 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
fsr4path would take it instead of the FSR 3 fallback.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 newstreamline/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 beforefidelityfx/pc.rsexisted, and it conflicts with current main in five files.nvidia_card()), preferring the folder that also holds the upscaler DLL, an F1 row that says FSR upscales in DLSS's place, anauto/1switch 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).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 olderfidelityfxfolder 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 andplay-foxhound.ps1/Get-AMD-FSR.cmdchanges.-FgType fsr4), so on this card (no 4.0.2 generator) it gets upscaling but no frame generation.#2248 (RB-404): Fading trees fix, and PC FSR 4 actually turning on for Series X. It has the same
run.rsfix 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_FSRforfsronly when NVIDIA's files are absent, renamesenable_host_fsr4toenable_host_fsr_framegen(the same body as ourenable_host_framegen), and drops the "needs DLSS" refusal.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).--dlss off.play.rs,run.rsandstreamline.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_fsrcondition 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 inplay.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
6bfa994cdfto8cd9df340dView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.