FidelityFX: Series X switches to the host upscaler and its render scale (rework of #1284) #1793
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1793
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1793"
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?
@AwkGrep256 on GitHub · 2026-11-24 22:40 UTC · original
AwkGrep256:pc-fsr-v2→main· +560 −5 · 6 files · 1 commits · openHow to try it
Use a diagnostics build, point
VICTORY_FIDELITYFX_DIRat the SDK’sKits/FidelityFX/signedbindirectory and run with--console series-xand both switches:VICTORY_UPSCALER=7VICTORY_FFX_SCALE=0.5Changes after triage
Hardware results
Windows, RX 9070 XT, title 1.0.2.1, Series X, FidelityFX SDK 2.4.0.
f25e735+ the fork FSR patch from #86, local test commit29b55f0result=0) at 1920×1080 → 3840×2160, and in a second run at 2560×1440 → 3840×2160. I checked captured frames from Lucia’s story cutscene in each run. The process was still rendering when I stopped it at the 260-second test limit.This reworks the Series X portion of #1284 on top of main’s FidelityFX module.
Both Windows clippy runs, all 701 workspace tests, and the diagnostics build passed locally on the reviewed revision.
@AwkGrep256 on GitHub · 2026-11-24 23:04 UTC · original
@Marvisak @Dufftwt @marquezinii update after a run in the title. The description is updated with the full details.
VICTORY_UPSCALER)VICTORY_FFX_SCALE=0.5)fidelityfxmoduleamdxc64.dll+0x861b9f), same crash without FidelityFXThe PR is now only the two Series X switches. My earlier claim that PC GPUs cannot write RGB9E5 through a typed UAV was wrong; the RX 9070 XT and WARP both report support for it.
@marquezinii for #1704/#1715: main's module has no RGB9E5 issue on these GPUs, so the DLSS path should be able to sit next to it without a format workaround.
@AwkGrep256 on GitHub · 2026-11-24 23:51 UTC · original
@catminou4 thanks for the look. One correction: #1793 doesn't supersede #1704/#1715. Those add DLSS (upscaling and frame generation through Streamline); this PR only adds the Series X switches for main's FidelityFX path, and the RGB9E5 part is gone since the first version. The DLSS PRs would need a rebase onto main's
fidelityfxmodule, not a close.@justlovett0 on GitHub · 2026-11-25 03:22 UTC · original
Tested on Windows 10 (19044), RTX 3080, title build 1.0.2.1, release + diagnostics, Series X profile (ported onto the fxceless fork).
The patches apply cleanly: "upscaler picker at title+0x7e93f0 returns 7 (4 direct calls)" and "FidelityFX render scale at title+0x28ef680 set to 0.6667". The stretch pass fires (colour 2560x1440 -> output). But the title then crashes: unhandled
0xc0000094(integer overflow) at title+0x28f03e8, immediately after the dispatch.The same crash occurs at scale
0.5(colour 1920x1080), at the same address — so it is independent of the scale value and looks like the title's post-dispatch FidelityFX path on Series X rather than the render-scale computation itself. The picker/scale RVAs match 1.0.2.1.Sharing in case forcing the FidelityFX picker on Series X needs an additional patch beyond the scale method on this build/card. With the picker left at the title's own upscaler (no patch), Series X renders native 4K stably.
@Marvisak on GitHub · 2026-11-25 06:24 UTC · original · edited 2026-11-26 01:19 UTC
Automated triage for the maintainers.
Needs work. This still needs the maintainer's decision. The head (
0c9187d) has not changed since the last review.On your replies: thanks for the further runs on the 7900 XTX fork and the RX 6800 XT report. They add AMD results, but the open points from the last review are unchanged in the code:
0xc0000094right after the dispatch on an RTX 3080 is still unexplained; it needs an explanation, a fix, or an NVIDIA run on this exact head.PICKER(62 bytes) andSCALE(SCALE_SPAN= 0x68) inapps/victory/src/title_patch.rsare still whole function bodies. Please trim each to the shortest pattern that matches once and check the rewritten bytes separately (docs/asset-policy.md).victory-game;apps/victoryshould only call them.On your question whether an opt-in title patch like this would be taken upstream: that is the maintainer's call, which is why it is flagged for them.
CI: passing (
check).Generated by Claude Code
@AwkGrep256 on GitHub · 2026-11-25 10:13 UTC · original
@Marvisak an update after the triage.
What main lacks: Series S already uses the host FidelityFX upscaler, but Series X cannot select it. With this PR, a diagnostics build lets Series X select it and choose its internal render resolution (
VICTORY_UPSCALER=7, andVICTORY_FFX_SCALE=0.5for 1080p → 4K).Cargo.tomlorCargo.lockchange: a diagnostics-only loader helper uses the loader's existing Windows APIs.Both sites are found before either is written, the scale is written first, and a partial patch stops startup.
Hardware (RX 9070 XT, Series X profile, title 1.0.2.1, FSR 4.1.2)
f25e735with the FSR patch from fxceless/victory-fork#86result=0at 1920×1080 → 3840×2160, and at 2560×1440 → 3840×2160 in a second run; story cutscene frames checked in bothThe pushed commit
0c9187dpasses both Windows clippy runs and all 701 workspace tests locally. Its own game run is still pending because the GPU was busy with another VIctory process; I'll add the log when it's done.@AwkGrep256 on GitHub · 2026-11-25 13:40 UTC · original
I reran the game on the exact pushed revision,
0c9187d, on Windows with an RX 9070 XT, title 1.0.2.1 and FidelityFX SDK 2.4.0.0.50.6667amdxc64.dll+0x861b9fduring shader compilation.The earlier story cutscene tests on fxceless
f25e735plus the fork FSR patch in #86 reached successful dispatches at both 4K input scales. The measurements above use the upstream PR head.Independent Series X tests welcome. Build with
cargo build --profile diag -p victory --features diagnostics, setVICTORY_FIDELITYFX_DIRto the SDK'sKits/FidelityFX/signedbin, then useVICTORY_UPSCALER=7andVICTORY_FFX_SCALE=0.5or0.6667with--console series-x. If you try it, please share your GPU and driver version, the logged provider and render/output sizes, and whether a story frame rendered. A few relevant log lines are enough.@AwkGrep256 on GitHub · 2026-11-25 14:19 UTC · original · edited 2026-11-25 14:38 UTC
@Marvisak Here is the hardware summary for the Series X host-FSR path. The upstream PR is still the Series X selector and internal render-scale change. The longer gameplay run used the AMD fork with that change ported over.
0c9187d, RX 9070 XTamdxc64.dll+0x861b9freproduced with FSR off.0.6667. They describe #2441 as the fallback that presents the completed 1440p image when the SDK path is unavailable. Tester reportThe AMD follow-up also verified 2× presentation in a short framegen sample. That result belongs to #1917 and its provider-selection follow-up. Sustained presentation FPS and input latency are still open measurements. AMD fork PR · Framegen PR #1917
@CocoBeans64 on GitHub · 2026-11-25 19:51 UTC · original
Tested on Windows 10 22H2 (19045), RX 6800 XT, Agility SDK runtime (#84), merged with #1997 on
13f91ca, diag build, FidelityFX SDK 2.4.0. Both patches applied (patched upscaler picker (returns 7),patched FidelityFX render scale (0.5)), and FSR 4.1.2 runs at 1920×1080 → 3840×2160. The image is fine on a 1080p screen.In the 300 s after the world shows: median 1.5 fps, the same as native. GPU 191 against ~216 ms/frame; preparing (~306 ms) and copying back (~155 ms) dominate here and do not depend on resolution. No crash.
@AwkGrep256 on GitHub · 2026-11-25 20:01 UTC · original
@CocoBeans64, thanks for testing this on the RX 6800 XT and including a native comparison. This confirms that both Series X patches applied and FSR 4.1.2 ran at 1080p → 4K on your Windows 10 setup with #1997 merged in. The five minutes in the world without a crash are helpful too.
The timing comparison is especially useful. GPU time went from about 216 to 191 ms per frame, and median FPS stayed at 1.5 with frame preparation and copy-back still dominating. That gives us a clear result for both compatibility and performance.
Your test report
@AwkGrep256 on GitHub · 2026-11-26 00:29 UTC · original · edited 2026-11-26 00:37 UTC
✅ Tested on another fork: FSR at 1080p and 1440p → 4K
This PR's render-scale switch, with the host FidelityFX path, now runs on avatarmanz/VIctory-7900XTX (the fastest fork right now): avatarmanz/VIctory-7900XTX#53.
VICTORY_FFX_SCALE=0.5render=[1920, 1080] output=[3840, 2160]VICTORY_FFX_SCALE=0.6666667render=[2560, 1440] output=[3840, 2160]title+0x7e93f0,title+0x28ef680), and the first host upscale returnsresult=0.RX 9070 XT, Ryzen 7 9800X3D, 32 GB, Series X profile, FidelityFX SDK 2.4.0 (upscaler 4.1.2).
📜 Log evidence
Our own log lines from the measured runs (click a mode):
A · Baseline: title's own upscaler · 18.4 fps rendered
A-20261126-025054B · FSR 1080p → 2160p: render 1920×1080 → 3840×2160 · 19.7 fps rendered
B-20261126-025703C · FSR 1440p → 2160p: render 2560×1440 → 3840×2160 · 20.0 fps rendered
C-20261126-030546@AwkGrep256 on GitHub · 2026-11-26 00:37 UTC · original
@Marvisak, a short status for review: this PR now runs on a second codebase too (the 7900 XTX fork), on an RX 9070 XT.
title+0x7e93f0, scaletitle+0x28ef680render=[1920, 1080]and[2560, 1440]→[3840, 2160],result=0VICTORY_UPSCALER/VICTORY_FFX_SCALEare setResults and logs are in the comment above. Is an opt-in, title-specific switch like this something you'd take upstream?
View 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.