hle: accept HelixSR FSR 4.1 provider version #378

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

@⁠maple-quartz18 on GitHub · 2026-12-03 21:18 UTC · original
maple-quartz18:fix/helixsr-fsr41-provider → main · +6 −1 · 1 files · 1 commits · open

Summary

Accept the HelixSR FSR 4 provider name HLX FSR 4 (4.1.2) when selecting a host FidelityFX upscaler.

Why

The provider DLL was found and reported HLX FSR 4 (4.1.2), but is_fsr_4_1 only accepted names beginning with 4.1.. That caused select_version to reject the available HelixSR provider before context creation.

Change

Strip the exact HLX FSR 4 (...) wrapper before applying the existing 4.1.x version check. Standard 4.1.x provider names keep their current behavior. The same predicate is used during provider selection and post-context validation.

Validation

  • JOBS=8 ./build.sh completed successfully on the CachyOS host.
  • HelixSR runtime/provider initialization has not yet been verified in a game run.
**@⁠maple-quartz18** on GitHub · 2026-12-03 21:18 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/378) `maple-quartz18:fix/helixsr-fsr41-provider` → `main` · +6 −1 · 1 files · 1 commits · open ## Summary Accept the HelixSR FSR 4 provider name `HLX FSR 4 (4.1.2)` when selecting a host FidelityFX upscaler. ## Why The provider DLL was found and reported `HLX FSR 4 (4.1.2)`, but `is_fsr_4_1` only accepted names beginning with `4.1.`. That caused `select_version` to reject the available HelixSR provider before context creation. ## Change Strip the exact `HLX FSR 4 (...)` wrapper before applying the existing 4.1.x version check. Standard `4.1.x` provider names keep their current behavior. The same predicate is used during provider selection and post-context validation. ## Validation - `JOBS=8 ./build.sh` completed successfully on the CachyOS host. - HelixSR runtime/provider initialization has not yet been verified in a game run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 21:25:29 +00:00
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-12-03 22:17 UTC · original

Additional information: I inspected the fsr4.1.2-igpu-cyboman-rdna3-2026-11-22 DLL variants. Their binaries contain these version strings:

  • 4.1.2-exact-igpu-r3-cyboman
  • 4.1.2-lossy-igpu-r3-cyboman
  • 4.1.2l-exact-igpu-r3-cyboman
  • 4.1.2l-lossy-igpu-r3-cyboman

All four strings already match the existing 4.1. prefix check, so the HelixSR wrapper fix in this PR should not be needed for these names. This is based on static inspection of the DLLs, not a runtime provider query; I have not yet verified context creation or in-game rendering on the Radeon 8060S.

**@⁠maple-quartz18** on GitHub · 2026-12-03 22:17 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/378#issuecomment-7394013304) Additional information: I inspected the `fsr4.1.2-igpu-cyboman-rdna3-2026-11-22` DLL variants. Their binaries contain these version strings: - `4.1.2-exact-igpu-r3-cyboman` - `4.1.2-lossy-igpu-r3-cyboman` - `4.1.2l-exact-igpu-r3-cyboman` - `4.1.2l-lossy-igpu-r3-cyboman` All four strings already match the existing `4.1.` prefix check, so the HelixSR wrapper fix in this PR should not be needed for these names. This is based on static inspection of the DLLs, not a runtime provider query; I have not yet verified context creation or in-game rendering on the Radeon 8060S.
Author
Owner

@⁠Luxuride on GitHub · 2026-12-04 12:03 UTC · original

Cheap and useful if the provider name is real — right now nobody but you can tell whether it is. fidelityfx.rs:306-309 handles exactly HLX FSR 4 (<version>) and nothing else: not HLX FSR 4 <version>, not (v4.1.2), not a trailing space. The PR body is the title, so there is no evidence of the actual string.

Two things and it is a two-minute merge:

  • Paste one log line with the real name. The available: … list at fidelityfx.rs:361 prints every name the SDK offers, so one run log settles it.
  • Add a test. is_fsr_4_1 has none, while the module has a healthy test module (fidelityfx.rs:771+); four asserts over "4.1.2", "4.10.1", "HLX FSR 4 (4.1.2)", "4.1." is the cheapest coverage in the backlog.

No defect in the widening itself: accepting the same name in the post-create check at fidelityfx.rs:463 is right — it must accept what the picker accepted.

**@⁠Luxuride** on GitHub · 2026-12-04 12:03 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/378#issuecomment-7410925444) Cheap and useful if the provider name is real — right now nobody but you can tell whether it is. `fidelityfx.rs:306-309` handles exactly `HLX FSR 4 (<version>)` and nothing else: not `HLX FSR 4 <version>`, not `(v4.1.2)`, not a trailing space. The PR body is the title, so there is no evidence of the actual string. Two things and it is a two-minute merge: - Paste one log line with the real name. The `available: …` list at `fidelityfx.rs:361` prints every name the SDK offers, so one run log settles it. - Add a test. `is_fsr_4_1` has none, while the module has a healthy test module (`fidelityfx.rs:771+`); four asserts over `"4.1.2"`, `"4.10.1"`, `"HLX FSR 4 (4.1.2)"`, `"4.1."` is the cheapest coverage in the backlog. No defect in the widening itself: accepting the same name in the post-create check at `fidelityfx.rs:463` is right — it must accept what the picker accepted.
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-12-04 12:08 UTC · original

Cheap and useful if the provider name is real — right now nobody but you can tell whether it is. fidelityfx.rs:306-309 handles exactly HLX FSR 4 (<version>) and nothing else: not HLX FSR 4 <version>, not (v4.1.2), not a trailing space. The PR body is the title, so there is no evidence of the actual string.

Two things and it is a two-minute merge:

  • Paste one log line with the real name. The available: … list at fidelityfx.rs:361 prints every name the SDK offers, so one run log settles it.
  • Add a test. is_fsr_4_1 has none, while the module has a healthy test module (fidelityfx.rs:771+); four asserts over "4.1.2", "4.10.1", "HLX FSR 4 (4.1.2)", "4.1." is the cheapest coverage in the backlog.

No defect in the widening itself: accepting the same name in the post-create check at fidelityfx.rs:463 is right — it must accept what the picker accepted.

Can you take use of custom Fsr4 dll like 4.1.2l-lossy-igpu-r3-cyboman to gain more performance?

**@⁠maple-quartz18** on GitHub · 2026-12-04 12:08 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/378#issuecomment-7411032416) > Cheap and useful if the provider name is real — right now nobody but you can tell whether it is. `fidelityfx.rs:306-309` handles exactly `HLX FSR 4 (<version>)` and nothing else: not `HLX FSR 4 <version>`, not `(v4.1.2)`, not a trailing space. The PR body is the title, so there is no evidence of the actual string. > > Two things and it is a two-minute merge: > > * Paste one log line with the real name. The `available: …` list at `fidelityfx.rs:361` prints every name the SDK offers, so one run log settles it. > * Add a test. `is_fsr_4_1` has none, while the module has a healthy test module (`fidelityfx.rs:771+`); four asserts over `"4.1.2"`, `"4.10.1"`, `"HLX FSR 4 (4.1.2)"`, `"4.1."` is the cheapest coverage in the backlog. > > No defect in the widening itself: accepting the same name in the post-create check at `fidelityfx.rs:463` is right — it must accept what the picker accepted. Can you take use of custom Fsr4 dll like 4.1.2l-lossy-igpu-r3-cyboman to gain more performance?
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-12-05 04:25 UTC · original

is_fsr_4_1 runs on whatever build the user points the HLE at (it parses the string ffxQuery returns at context creation), and HelixSR reports itself as HLX FSR 4 (4.1.x) instead of 4.1.x. Without this the version check rejects a HelixSR DLL the user already has, so the accept-the-string change is needed regardless of how the DLL got onto disk.

A ./setup.sh helixsr step to fetch the DLL is a reasonable separate convenience, but it doesn't cover someone supplying their own build and it doesn't change what ffxQuery returns — so it wouldn't replace this. I'd keep this PR as the version fix and file the download step on its own if you want it; happy to open that as a follow-up.

**@⁠maple-quartz18** on GitHub · 2026-12-05 04:25 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/378#issuecomment-7431830233) is_fsr_4_1 runs on whatever build the user points the HLE at (it parses the string ffxQuery returns at context creation), and HelixSR reports itself as HLX FSR 4 (4.1.x) instead of 4.1.x. Without this the version check rejects a HelixSR DLL the user already has, so the accept-the-string change is needed regardless of how the DLL got onto disk. A ./setup.sh helixsr step to fetch the DLL is a reasonable separate convenience, but it doesn't cover someone supplying their own build and it doesn't change what ffxQuery returns — so it wouldn't replace this. I'd keep this PR as the version fix and file the download step on its own if you want it; happy to open that as a follow-up.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-378'
git switch 'github-bot/gh-378'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-378'
git switch 'github-bot/gh-378'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-378'
git switch 'main'
git merge --squash 'github-bot/gh-378'
git switch 'main'
git merge --ff-only 'github-bot/gh-378'
git switch 'main'
git merge 'github-bot/gh-378'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.