[pr-feature] fidelityfx: support FSR 4 on Radeon 8060S (RDNA 3.5) and fix PC upscaler #53

Manually merged
TrustNo1 merged 0 commits from ggwp/Darner:feat/fsr4-radeon-8060s into main 2026-12-03 18:36:51 +00:00
Contributor

Contributor role (optional)

  • Fluxer ID: FomalhautCusimanse#7381

What it changes

  • Fetches signed amd_fidelityfx_upscaler_dx12.dll (FidelityFX SDK v2.4.0) in scripts/get-amd-fsr.ps1 and checks for it in apps/darner/src/play.rs when PC FSR is enabled.
  • Fixes fidelityfx::wrap() (GetProcAddress) to remain active when pc::active() is true even with frame generation off (!streamline::serving()).
  • In crates/darner-hle/src/modules/fidelityfx/pc.rs, enumerates GET_VERSIONS providers, selects the newest 4.x provider (e.g. 4.1.2 INT8 on Radeon 8060S / RDNA 3.5) via OVERRIDE_VERSION with 3.1.x fallback, owns ID3D12Device in Api, and retains boxed Backend/OverrideVersion descriptors on Context until destroy.
  • Allows PC FSR on Series S in apps/darner/src/run.rs, preserves the user's chosen upscale mode and Series S output switches in apps/darner/src/play.rs, and auto-selects fsr4 on AMD RDNA 2 / 3 / 3.5 (80xxS, 8xxM) / 4 adapters when --fg-type auto.

How it was tested

  • Tested revision: 5345be7 (based on 4a92569)
  • Commands and results:
    • cargo clippy --workspace --all-targets --locked -- -D warnings — pass
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings — pass
    • cargo test --locked -p darner-hle fidelityfx — 7/7 passed
    • cargo test --locked -p darner play::tests — 49/49 passed
  • Gameplay, when relevant: tested live on AMD Radeon(TM) 8060S Graphics (RDNA 3.5), Series S profile, FSR 4 upscaling (offered=["4.1.2", "3.1.6", "2.3.4"] -> selected="4.1.2"), both with FSR 3 framegen fallback and upscaling-only (framegen=0).
  • Coverage gaps: live gameplay test was on RDNA 3.5 (Radeon 8060S); RDNA 2 / 3 / 4 adapter matching is covered by unit tests.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found
## Contributor role (optional) - Fluxer ID: FomalhautCusimanse#7381 ## What it changes - Fetches signed `amd_fidelityfx_upscaler_dx12.dll` (FidelityFX SDK v2.4.0) in `scripts/get-amd-fsr.ps1` and checks for it in `apps/darner/src/play.rs` when PC FSR is enabled. - Fixes `fidelityfx::wrap()` (`GetProcAddress`) to remain active when `pc::active()` is true even with frame generation off (`!streamline::serving()`). - In `crates/darner-hle/src/modules/fidelityfx/pc.rs`, enumerates `GET_VERSIONS` providers, selects the newest `4.x` provider (e.g. `4.1.2` INT8 on Radeon 8060S / RDNA 3.5) via `OVERRIDE_VERSION` with `3.1.x` fallback, owns `ID3D12Device` in `Api`, and retains boxed `Backend`/`OverrideVersion` descriptors on `Context` until destroy. - Allows PC FSR on Series S in `apps/darner/src/run.rs`, preserves the user's chosen upscale mode and Series S output switches in `apps/darner/src/play.rs`, and auto-selects `fsr4` on AMD RDNA 2 / 3 / 3.5 (`80xxS`, `8xxM`) / 4 adapters when `--fg-type auto`. ## How it was tested - Tested revision: `5345be7` (based on `4a92569`) - Commands and results: - `cargo clippy --workspace --all-targets --locked -- -D warnings` — pass - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` — pass - `cargo test --locked -p darner-hle fidelityfx` — 7/7 passed - `cargo test --locked -p darner play::tests` — 49/49 passed - Gameplay, when relevant: tested live on **AMD Radeon(TM) 8060S Graphics** (RDNA 3.5), Series S profile, FSR 4 upscaling (`offered=["4.1.2", "3.1.6", "2.3.4"]` -> `selected="4.1.2"`), both with FSR 3 framegen fallback and upscaling-only (`framegen=0`). - Coverage gaps: live gameplay test was on RDNA 3.5 (Radeon 8060S); RDNA 2 / 3 / 4 adapter matching is covered by unit tests. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found
ggwp changed title from fidelityfx: support FSR 4 on Radeon 8060S (RDNA 3.5) and fix PC upscaler to [pr-feature] fidelityfx: support FSR 4 on Radeon 8060S (RDNA 3.5) and fix PC upscaler 2026-12-03 17:48:45 +00:00
TrustNo1 manually merged commit 295621e106 into main 2026-12-03 18:36:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
TrustNo1/Darner!53
No description provided.