fsr: support Native AA at the selected output resolution #178

Open
github-bot wants to merge 2 commits from github-bot/gh-178 into main AGit
Owner

@⁠DecayingEagle on GitHub · 2026-12-02 10:55 UTC · original
DecayingEagle:codex/fsr-native-aa → main · +111 −28 · 5 files · 2 commits · open

Adds VICTORY_FSR_4K=nativeaa for FSR 4 anti-aliasing without reducing the title's render resolution. With VICTORY_OUTPUT=2560x1440, both the render and output sizes remain 2560×1440. Existing Quality, Balanced and Performance modes keep their current behavior.

The loader selects FidelityFX quality mode 0 and a 1.0 render scale. The panel recognizes Native AA and the FidelityFX integration test can exercise a selected output size. README and run.conf list the new mode.

Validation on RX 7900 XT / Ryzen 9 9900X, Linux, private Mesa 26.3.1 RADV and Wine 11.22:

  • Three FSR title-image tests passed against the local retail 1.0.2.1 image, including full-resolution 1440p and 1080p Native AA.
  • The host FidelityFX GPU integration test passed at 2560×1440 with provider 4.1.1 *.
  • Real gameplay logs confirm preset="nativeaa" quality=0 expected_render=[2560, 1440] output=[2560, 1440] and a provider context with matching render/output sizes. Tests use isolated copies of an existing save.
  • git diff --check passed. No game assets or dumps are included.

Gameplay was tested with RT and FG off; Native AA with FG is not claimed as validated here. The local gameplay build also includes #163, #164 and #173, which are separate from this PR.

AI assistance: Codex implemented and tested this change on the hardware above.

**@⁠DecayingEagle** on GitHub · 2026-12-02 10:55 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/178) `DecayingEagle:codex/fsr-native-aa` → `main` · +111 −28 · 5 files · 2 commits · open Adds `VICTORY_FSR_4K=nativeaa` for FSR 4 anti-aliasing without reducing the title's render resolution. With `VICTORY_OUTPUT=2560x1440`, both the render and output sizes remain 2560×1440. Existing Quality, Balanced and Performance modes keep their current behavior. The loader selects FidelityFX quality mode 0 and a 1.0 render scale. The panel recognizes Native AA and the FidelityFX integration test can exercise a selected output size. README and run.conf list the new mode. Validation on RX 7900 XT / Ryzen 9 9900X, Linux, private Mesa 26.3.1 RADV and Wine 11.22: - Three FSR title-image tests passed against the local retail 1.0.2.1 image, including full-resolution 1440p and 1080p Native AA. - The host FidelityFX GPU integration test passed at 2560×1440 with provider `4.1.1 *`. - Real gameplay logs confirm `preset="nativeaa" quality=0 expected_render=[2560, 1440] output=[2560, 1440]` and a provider context with matching render/output sizes. Tests use isolated copies of an existing save. - `git diff --check` passed. No game assets or dumps are included. Gameplay was tested with RT and FG off; Native AA with FG is not claimed as validated here. The local gameplay build also includes #163, #164 and #173, which are separate from this PR. AI assistance: Codex implemented and tested this change on the hardware above.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 11:01:00 +00:00
Author
Owner

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

Worth keeping: small, tested, and genuinely useful at 1440p. Rebase time is mostly cosmetic — the three conflicts are # label: lines that grew in run.conf.default and a compact-FPS branch near crates/victory-gpu/src/host/panel.rs:1153.

To finish it:

  • docs/SETTINGS.md:26 still says VICTORY_FSR_4K accepts "quality, balanced, performance"; it needs nativeaa in the same PR — that table is the one users and the menu are told to trust.
  • README.md:53 adds a second row for a variable that already has a row at 52 (which this PR also edits). Fold it into the existing row.
  • Mode 0 is currently proven only to be written (apps/victory/src/fsr_4k.rs:265-266 and the ratio table check title memory). Say in the body that you saw it render at 1:1, or warn in the docs that it costs full-resolution render time — a title that treats 0 as "no upscaler" loses AA and pays the cost.

The panel side is tidy; size_label() handling the equal-size case is the right fix.

**@⁠Luxuride** on GitHub · 2026-12-04 12:01 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/178#issuecomment-7410869724) Worth keeping: small, tested, and genuinely useful at 1440p. Rebase time is mostly cosmetic — the three conflicts are `# label:` lines that grew in `run.conf.default` and a compact-FPS branch near `crates/victory-gpu/src/host/panel.rs:1153`. To finish it: - `docs/SETTINGS.md:26` still says `VICTORY_FSR_4K` accepts "quality, balanced, performance"; it needs `nativeaa` in the same PR — that table is the one users and the menu are told to trust. - `README.md:53` adds a second row for a variable that already has a row at `52` (which this PR also edits). Fold it into the existing row. - Mode 0 is currently proven only to be *written* (`apps/victory/src/fsr_4k.rs:265-266` and the ratio table check title memory). Say in the body that you saw it render at 1:1, or warn in the docs that it costs full-resolution render time — a title that treats 0 as "no upscaler" loses AA *and* pays the cost. The panel side is tidy; `size_label()` handling the equal-size case is the right fix.
This pull request has changes conflicting with the target branch.
  • README.md
  • crates/victory-gpu/src/host/panel.rs
  • run.conf.default
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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