AMD frame generation runs in-game on Linux #944
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#944
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 14:24 UTC · original
I got AMD frame generation to run in the actual game on an RX 9070 XT with Proton Experimental. I tested both Series S and Series X. Both used FSR 4.1.1 for upscaling and 3.1.6 for frame generation.
Once the game sent depth and motion data, three rendered frames produced three extra frames. The swapchain counted six presents in each run. The intro stayed at 30 rendered FPS. The world was still mostly black, and Series X hit a GPU reset after about 114 seconds. I still need to check how it looks and measure input delay once the world renders steadily.
The test branch has the build and launch steps. Source and instructions
@Dufftwt This is the same AMD and Linux setup from #732. I wanted to share the result since you helped narrow down the world hang.
@Castyan If you’re up for another Windows test, could you try Series S and see whether the log shows
ffx framegen: generated game frames? So far this has only run in-game on Linux.@Castyan on GitHub · 2026-11-24 14:46 UTC · original
I'm waiting for my tokens and i do that ;) @AwkGrep256
@Dufftwt on GitHub · 2026-11-24 14:48 UTC · original
@AwkGrep256 nice work, and thanks for the mention. Serving the title's FidelityFX calls with AMD's PC upscaler may also help with the black picture reported on #732. On three NVIDIA cards (rhuantac's 3060 Ti, HrHd's, and #841), the 2560x1440 targets hold the scene, but the 3840x2160 frame shows only credits and subtitles. The step between those two is the upscale. Those cards also refuse 100+ compute pipelines that need 64-lane waves. If the console upscaler's programs are among them, your branch would route around that.
Two questions that would separate the two problems:
VICTORY_DUMP_TARGETS=1), or only the frame shown?04b9be3756e8f41c+ pixel1af4a50c7fb40c97draw again? If DRED names a compute dispatch instead,test/world-stack-synconDufftwt/VIctoryis worth a run. It makes the console's pipeline syncs order shader writes on the host. Until now they did nothing there.@Castyan on GitHub · 2026-11-24 14:48 UTC · original
@vitor127wt cal also do it he is volonteer : #896
@NuraadGit on GitHub · 2026-11-24 16:18 UTC · original
@Dufftwt A data point on "the step between those two is the upscale": on an RTX 2080 (32-lane, Series X, without this branch), the title does that step with its own draw, and the draw runs.
In a traced world frame, pixel
4f4ec7b16673362f(PS_TAA2_SpatialUpscaleWithDithering) reads a 2560x1440 f24 target and writes the presented 3840x2160 image. Its input is already black: 0 to 4 out of 1023, under scene-colour targets (2560x1440 f10) of exactly 0.0. So on this card the picture is lost before the upscale. Details are in #841.On your question 1, for this card: the 2560x1440 G-buffer targets are filled, and the HDR and composite targets at 2560x1440 are black.
What I can't say is which path the title takes when an upscaler answers.
amd_fidelityfx_loader_xbox.dllis mapped at start-up here. I logged everyLoadLibrarycall through world entry (a 7-minute run), and the title never asks foramd_fidelityfx_upscaler_xbox.dll. The only loads aredbghelp,rpcrt4andxgameruntime. The title's ownFSRCreateMasks:CS_CreateMasksis never dispatched either. @AwkGrep256, does your log show the title creating an upscale context, or only frame generation? If it does, does pixel4f4ec7b16673362fstill bind in the world?AI-assisted (Claude Code): the trace and log analysis were automated. The hardware, title copy and runs are the user's.
@Dufftwt on GitHub · 2026-11-24 16:19 UTC · original
@NuraadGit thanks, that corrects me. If the title's own upscale draw runs and its input is already black, the upscale isn't where the picture is lost, at least on your card. The loss sits between the filled G-buffer and the 2560x1440 HDR targets that stay at exactly 0.0, which is the lighting and composite stage.
That narrows the next question to the passes that should write those HDR targets. On NVIDIA there are two known ways for such a pass to do nothing:
dropped … without a host pipeline: <reason>).With your frame trace, are the dispatches or draws that bind the HDR targets for writing in the frame at all, and are any of their pipelines in the refused or dropped lines? AMD cards take wave64 programs, and AwkGrep256's world is still mostly black on an RX 9070 XT, so a dump of the same HDR targets there would show whether wave64 explains it or something else does.
@AwkGrep256 on GitHub · 2026-11-24 18:16 UTC · original
@Dufftwt @NuraadGit My native Windows RX 9070 XT log shows an upscale context with FSR 4.1.2 and the first SDK dispatch returning
result=0at 1920×1080 → 3840×2160. I haven’t verified the HDR input or output pixels on that run, or whether4f4ec7b16673362fstill binds with FSR active. The Windows run later hit device removal without breadcrumbs, so I can’t tie that or the 114-second Proton reset to the mesh/pixel pair yet.The RTX 4070 SUPER report in #730 hits an earlier failure. Slot 6 has no host texture, so it returns before the SDK call. VIctory already attempts host allocation for address-backed textures. I’m checking the allocation error and format 67 support first. The RTX 2080 trace gives us a separate check for the black frame: compare the G-buffer, HDR input, FSR output, and present so we can see where the image goes dark.
@Dufftwt on GitHub · 2026-11-24 18:17 UTC · original
@AwkGrep256 thanks, good to know the upscale context comes up on native Windows. One shortcut for the #730 failure: if format 67 is the host (DXGI) number, it's
R9G9B9E5_SHAREDEXP. D3D12 doesn't allow that format with render-target or unordered-access use, so a host texture created with either flag fails whatever the GPU. #492 (Yaekai) substitutesR16G16B16A16_FLOATfor such targets and UAVs. If the slot 6 texture has one of those flags, that's probably the whole story there.The four-point comparison (G-buffer, HDR input, FSR output, present) is exactly what would separate the upscaler from the lighting.
@AwkGrep256 on GitHub · 2026-11-24 18:45 UTC · original
@Dufftwt Quick follow-up on the 114 s Series X reset. I couldn't pin that Proton reset on mesh
04b9be3756e8f41c+ pixel1af4a50c7fb40c97, or on a compute dispatch. The trace from that run doesn't identify the command that was executing when the GPU reset.I did a separate Windows comparison on my RX 9070 XT with the prologue branch. With PC FSR on, the first upscale was accepted. With PC FSR off and the 1440p preview on, the preview selected a world texture. Both runs then hit the same access violation at
amdxc64.dll+0x861b9fduring pipeline compilation. That crash reproduced with FSR off. I still don't have a command attribution for the Proton reset.I haven't run
test/world-stack-syncyet. If the next Series X trace points to a compute dispatch, I'll compare the same save and settings with and without your branch and check whether the dispatch completes with the shader-write ordering in place.@Dufftwt on GitHub · 2026-11-24 18:46 UTC · original
@AwkGrep256 thanks, and no rush on the sync branch. For the
amdxc64.dllcrash during pipeline compilation, two ways to name the pipeline without the title:victory translate --pipelines --list --jobs 1translates every program offline, creates a host pipeline for each emitted shader, and prints a line per program. With one worker, if AMD's compiler crashes on one of them, the run stops there and the last line names it. It runs without the world or a save, and repeats exactly.VICTORY_PIPELINE_JOURNAL). That gets you past the crash in-game while the compiler issue is chased separately.If
translate --pipelinesreproduces it, the hash it stopped at is worth its own issue: a driver compiler crash on valid DXIL is reportable to AMD, and the translation may be able to avoid the pattern.@Marvisak on GitHub · 2026-11-25 06:54 UTC · original
Automated triage for the maintainers.
mainserves the title's FidelityFX upscale calls with the PC upscaler (crates/victory-hle/src/modules/fidelityfx.rs, behindVICTORY_FIDELITYFX_DIR) but refuses frame generation. The frame-generation part of this branch is open as pull request #1917 by the reporter, so review belongs there; the decision is left to the maintainers. This issue stays the place where frame generation results are discussed. As the thread found, the black world is lost before the upscale (the 2560x1440 HDR targets are already black, see #841), so it is a separate problem.Generated by Claude Code
github-bot referenced this issue2026-11-26 14:55:56 +00:00