FidelityFX: -Fsr4K takes FSR 3.1 where the SDK offers no 4.1.2 (#323) #336

Manually merged
github merged 1 commit from github-bot/gh-336 into a-publier 2026-11-27 00:57:57 +00:00 AGit
Owner

@⁠hussainmussa on GitHub · 2026-11-26 20:45 UTC · original
hussainmussa:fix/fsr4k-provider-message → a-publier · +80 −18 · 5 files · 1 commits · merged 2026-11-26 22:30 UTC

Fixes #323.

select_version took only a provider named 4.1.2 and failed otherwise, so -Fsr4K could not start on a card AMD's SDK offers no FSR 4 for.

What changes

  • The provider is 4.1.2 where the SDK offers it, otherwise the newest 3.1.x. The log warns when 3.1 stands in, and says its picture differs from 4's.
  • With neither, the run stops before the title starts, names what was offered, and says to run without -Fsr4K.
  • The check after context creation compares against the provider that was asked for, rather than against 4.1.2.
  • The choice is a function of its own (choose), with unit tests. README, play.ps1 and the error context no longer promise 4.1.2.

Tested on an RTX 4070, Windows 11, Rust 1.98.1, with AMD's signed amd_fidelityfx_upscaler_dx12.dll 4.1.2.4555 (SDK v2.4.0):

  • Before: tests/fidelityfx.rs fails with no FSR 4.1.2 provider for this adapter (available: 3.1.6, 2.3.4).
  • After: provider 3.1.6, context made, two frames dispatched, output read back.
  • cargo test -p victory-hle --lib fidelityfx: 5 passed.
  • Clippy: nothing in the changed files.

Not tested

  • Against the title. FSR 3.1's picture in the game is not checked, which the issue lists as a concern.
  • An AMD card with FSR 4.1.2, where behaviour should be unchanged.
  • The full workspace test suite.

Related: #285 discussed a victory doctor warning for this case. With the fallback, that check would only need to report which version will be used.

Written with AI assistance (Claude); built and tested on my own machine.

**@⁠hussainmussa** on GitHub · 2026-11-26 20:45 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/336) `hussainmussa:fix/fsr4k-provider-message` → `a-publier` · +80 −18 · 5 files · 1 commits · merged 2026-11-26 22:30 UTC Fixes #323. `select_version` took only a provider named `4.1.2` and failed otherwise, so `-Fsr4K` could not start on a card AMD's SDK offers no FSR 4 for. **What changes** - The provider is 4.1.2 where the SDK offers it, otherwise the newest 3.1.x. The log warns when 3.1 stands in, and says its picture differs from 4's. - With neither, the run stops before the title starts, names what was offered, and says to run without `-Fsr4K`. - The check after context creation compares against the provider that was asked for, rather than against 4.1.2. - The choice is a function of its own (`choose`), with unit tests. README, `play.ps1` and the error context no longer promise 4.1.2. **Tested** on an RTX 4070, Windows 11, Rust 1.98.1, with AMD's signed `amd_fidelityfx_upscaler_dx12.dll` 4.1.2.4555 (SDK v2.4.0): - Before: `tests/fidelityfx.rs` fails with `no FSR 4.1.2 provider for this adapter (available: 3.1.6, 2.3.4)`. - After: provider `3.1.6`, context made, two frames dispatched, output read back. - `cargo test -p victory-hle --lib fidelityfx`: 5 passed. - Clippy: nothing in the changed files. **Not tested** - Against the title. FSR 3.1's picture in the game is not checked, which the issue lists as a concern. - An AMD card with FSR 4.1.2, where behaviour should be unchanged. - The full workspace test suite. **Related:** #285 discussed a `victory doctor` warning for this case. With the fallback, that check would only need to report which version will be used. Written with AI assistance (Claude); built and tested on my own machine.
select_version took only a provider named 4.1.2 and failed otherwise, so
-Fsr4K could not start on a card AMD's SDK offers no FSR 4 for. It now
takes 4.1.2 where there is one and the newest 3.1.x otherwise, and the log
says when 3.1 stands in. With neither, the run stops before the title
starts, names what was offered and says to run without -Fsr4K.

The check after context creation compares against the provider that was
asked for, rather than against 4.1.2.

Tested on an RTX 4070 (Windows 11, Rust 1.98.1) with AMD's signed
amd_fidelityfx_upscaler_dx12.dll 4.1.2.4555 (SDK v2.4.0):
- before: tests/fidelityfx.rs fails, "no FSR 4.1.2 provider for this
  adapter (available: 3.1.6, 2.3.4)"
- after: provider 3.1.6, context made, two frames dispatched
- cargo test -p victory-hle --lib fidelityfx: 5 passed

Not run against the title: FSR 3.1's picture in the game is not checked.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:50:02 +00:00
Author
Owner

@⁠hussainmussa on GitHub · 2026-11-26 20:49 UTC · original

I don't have the game files, so I can't check the one thing this leaves open: how FSR 3.1 looks in the title.

If anyone with the game and a card that gets no FSR 4.1.2 from AMD's SDK (NVIDIA, Intel, RDNA 1-3) can try this branch, a log line and a screenshot would settle it:

git fetch origin pull/336/head:pr336
git switch pr336
scripts\play.ps1 -Exe <path> -Fsr4K quality

The log should warn that FSR 3.1 is used in place of 4.1.2 and then report the provider at context creation. A run on an RX 9000 card, to confirm 4.1.2 is still picked there, would be welcome too.

**@⁠hussainmussa** on GitHub · 2026-11-26 20:49 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/336#issuecomment-7203108698) I don't have the game files, so I can't check the one thing this leaves open: how FSR 3.1 looks in the title. If anyone with the game and a card that gets no FSR 4.1.2 from AMD's SDK (NVIDIA, Intel, RDNA 1-3) can try this branch, a log line and a screenshot would settle it: ``` git fetch origin pull/336/head:pr336 git switch pr336 scripts\play.ps1 -Exe <path> -Fsr4K quality ``` The log should warn that FSR 3.1 is used in place of 4.1.2 and then report the provider at context creation. A run on an RX 9000 card, to confirm 4.1.2 is still picked there, would be welcome too.
github manually merged commit 4dc700c99e into a-publier 2026-11-27 00:57:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.