AMD frame generation runs in-game on Linux #944

Open
opened 2026-11-26 04:14:37 +00:00 by github-bot · 10 comments
Owner

@⁠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.

**@⁠AwkGrep256** on GitHub · 2026-11-24 14:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/944) 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](https://github.com/AwkGrep256/VIctory/tree/pc-fsr-framegen-test#testing-amd-frame-generation) @⁠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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:37 +00:00
Author
Owner

@⁠Castyan on GitHub · 2026-11-24 14:46 UTC · original

I'm waiting for my tokens and i do that ;) @⁠AwkGrep256

**@⁠Castyan** on GitHub · 2026-11-24 14:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7134914067) I'm waiting for my tokens and i do that ;) @⁠AwkGrep256
Author
Owner

@⁠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:

  1. When you say the world is mostly black, are the 2560x1440 scene targets black too (VICTORY_DUMP_TARGETS=1), or only the frame shown?
  2. Does the Series X reset at 114 s land on the mesh 04b9be3756e8f41c + pixel 1af4a50c7fb40c97 draw again? If DRED names a compute dispatch instead, test/world-stack-sync on Dufftwt/VIctory is worth a run. It makes the console's pipeline syncs order shader writes on the host. Until now they did nothing there.
**@⁠Dufftwt** on GitHub · 2026-11-24 14:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7134973597) @⁠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: 1. When you say the world is mostly black, are the 2560x1440 scene targets black too (`VICTORY_DUMP_TARGETS=1`), or only the frame shown? 2. Does the Series X reset at 114 s land on the mesh `04b9be3756e8f41c` + pixel `1af4a50c7fb40c97` draw again? If DRED names a compute dispatch instead, `test/world-stack-sync` on `Dufftwt/VIctory` is worth a run. It makes the console's pipeline syncs order shader writes on the host. Until now they did nothing there.
Author
Owner

@⁠Castyan on GitHub · 2026-11-24 14:48 UTC · original

@⁠vitor127wt cal also do it he is volonteer : #896

**@⁠Castyan** on GitHub · 2026-11-24 14:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7134978454) @⁠vitor127wt cal also do it he is volonteer : https://git.gtahub.st/github/Marvisak--VIctory/issues/896
Author
Owner

@⁠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.dll is mapped at start-up here. I logged every LoadLibrary call through world entry (a 7-minute run), and the title never asks for amd_fidelityfx_upscaler_xbox.dll. The only loads are dbghelp, rpcrt4 and xgameruntime. The title's own FSRCreateMasks:CS_CreateMasks is never dispatched either. @⁠AwkGrep256, does your log show the title creating an upscale context, or only frame generation? If it does, does pixel 4f4ec7b16673362f still 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.

**@⁠NuraadGit** on GitHub · 2026-11-24 16:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7137437321) @⁠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.dll` is mapped at start-up here. I logged every `LoadLibrary` call through world entry (a 7-minute run), and the title never asks for `amd_fidelityfx_upscaler_xbox.dll`. The only loads are `dbghelp`, `rpcrt4` and `xgameruntime`. The title's own `FSRCreateMasks:CS_CreateMasks` is never dispatched either. @⁠AwkGrep256, does your log show the title creating an upscale context, or only frame generation? If it does, does pixel `4f4ec7b16673362f` still 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.*
Author
Owner

@⁠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:

  • its compute program needs 64-lane waves and the pipeline is refused (131 of them on rhuantac's 3060 Ti, #732);
  • its program doesn't translate, so its dispatches are dropped (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.

**@⁠Dufftwt** on GitHub · 2026-11-24 16:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7137468309) @⁠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: - its compute program needs 64-lane waves and the pipeline is refused (131 of them on rhuantac's 3060 Ti, #732); - its program doesn't translate, so its dispatches are dropped (`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.
Author
Owner

@⁠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=0 at 1920×1080 → 3840×2160. I haven’t verified the HDR input or output pixels on that run, or whether 4f4ec7b16673362f still 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.

**@⁠AwkGrep256** on GitHub · 2026-11-24 18:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7140405643) @⁠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=0` at 1920×1080 → 3840×2160. I haven’t verified the HDR input or output pixels on that run, or whether `4f4ec7b16673362f` still 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.
Author
Owner

@⁠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) substitutes R16G16B16A16_FLOAT for 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.

**@⁠Dufftwt** on GitHub · 2026-11-24 18:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7140424909) @⁠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) substitutes `R16G16B16A16_FLOAT` for 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.
Author
Owner

@⁠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 + pixel 1af4a50c7fb40c97, 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+0x861b9f during 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-sync yet. 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.

**@⁠AwkGrep256** on GitHub · 2026-11-24 18:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7141107876) @⁠Dufftwt Quick follow-up on the [114 s Series X reset](https://git.gtahub.st/github/Marvisak--VIctory/issues/944). I couldn't pin that Proton reset on mesh `04b9be3756e8f41c` + pixel `1af4a50c7fb40c97`, 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+0x861b9f` during 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-sync` yet. 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.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 18:46 UTC · original

@⁠AwkGrep256 thanks, and no rush on the sync branch. For the amdxc64.dll crash during pipeline compilation, two ways to name the pipeline without the title:

  • victory translate --pipelines --list --jobs 1 translates 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.
  • #491 (desplmfao) records a pipeline whose creation crashed the process and skips it on the next run (VICTORY_PIPELINE_JOURNAL). That gets you past the crash in-game while the compiler issue is chased separately.

If translate --pipelines reproduces 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.

**@⁠Dufftwt** on GitHub · 2026-11-24 18:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7141132539) @⁠AwkGrep256 thanks, and no rush on the sync branch. For the `amdxc64.dll` crash during pipeline compilation, two ways to name the pipeline without the title: - `victory translate --pipelines --list --jobs 1` translates 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. - #491 (desplmfao) records a pipeline whose creation crashed the process and skips it on the next run (`VICTORY_PIPELINE_JOURNAL`). That gets you past the crash in-game while the compiler issue is chased separately. If `translate --pipelines` reproduces 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.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:54 UTC · original

Automated triage for the maintainers.

main serves the title's FidelityFX upscale calls with the PC upscaler (crates/victory-hle/src/modules/fidelityfx.rs, behind VICTORY_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

**@⁠Marvisak** on GitHub · 2026-11-25 06:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/944#issuecomment-7155282099) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T18:46:28Z at=2026-11-25T06:54:25Z --> Automated triage for the maintainers. `main` serves the title's FidelityFX upscale calls with the PC upscaler (`crates/victory-hle/src/modules/fidelityfx.rs`, behind `VICTORY_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](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#944
No description provided.