Linux under Wine: a launcher, 2.3 -> 36 frames a second on an RX 7900 GRE, people's faces #440

Open
github-bot wants to merge 72 commits from github-bot/gh-440 into main AGit
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 08:03 UTC · original
borntofrag34:linux-wine-pr → main · +7752 −327 · 60 files · 72 commits · open

VIctory under Wine on Linux: from 2.3 to 36 frames a second in the title's first scene on an RX 7900 GRE (RADV, Proton Experimental's Wine, vkd3d-proton), ray tracing off. Everything that is Wine's alone is behind on_wine() or a switch documented where it is read; on Windows nothing changes unless a switch is set.

What was found, with the runs behind each figure, is in docs/linux-wine.md; the README gets a "Linux (Wine)" section.

The launcher

  • scripts/play.sh, the counterpart of play.ps1 (Proton's Wine, vkd3d-proton and DXVK's dxgi in a prefix of their own, Microsoft's d3dcompiler_47), VICTORY_FULLSCREEN, VICTORY_SCREEN for another monitor; scripts/play-1080p.sh, the fastest settings measured.

What made it slow under Wine

  • VICTORY_WINE_MAP: the title's physical pages shown with the host's mmap; Wine's server walked its list of views at every map and unmap (768 -> 13 ms of every second).
  • VICTORY_SINGLE_LATCH, VICTORY_PIPELINE_WATCH: loops with several back edges ran vkd3d-proton's dxil-spirv out of stack; one latch a loop, and a pipeline whose making ends its worker is given up (287 -> 47.9 ms a frame).
  • VICTORY_PORT_HOME: renderer patch 1 gave a black picture; amdgpu takes memory by address only as one anonymous mapping.
  • VICTORY_CLAMP_SYNC: the two waits around a clamp of indirect arguments as enhanced barriers that name what they wait for; under RADV each legacy one emptied the card (56.4 -> 34.0 ms with VICTORY_PORT_CONSTANTS_ORDER).
  • VICTORY_JOIN_PARTS_DRAWS: submissions joined only in frames of the world, so the intro videos stay in order.

People without a face (eyes and teeth only), in every second or third run

  • VICTORY_COMPUTE_WAIT_MS (10 s under Wine): the first use of a compute pass waits for its pipeline by a budget of its own. The table a character's face is deformed by is filled once on the card; that pass was dropped past the frame's half second while its pipeline was being made, and the face's vertices all lay in one point to the end of the run. 17 runs of 17 with heads since; 2 of 5 without, by turns, with it off.
  • VICTORY_LIBRARY_NULL: an empty pipeline library asked for with a null address. vkd3d-proton refuses a blob of no bytes at an address that is not null, so no library was ever kept under Wine and every run made the world's pipelines at its first frames.

Diagnostics

  • VICTORY_PROFILE/VICTORY_STACKS and the frame recorder work under Wine; victory replay --poke and raw views in --slots; VICTORY_BARRIER_GROUPS_LOG; a log line for each first use that goes without its pipeline.

Measured on one PC and in the title's first scene only; not looked at: play, other scenes, ray tracing, other cards and drivers.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 08:03 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440) `borntofrag34:linux-wine-pr` → `main` · +7752 −327 · 60 files · 72 commits · open VIctory under Wine on Linux: from 2.3 to 36 frames a second in the title's first scene on an RX 7900 GRE (RADV, Proton Experimental's Wine, vkd3d-proton), ray tracing off. Everything that is Wine's alone is behind `on_wine()` or a switch documented where it is read; on Windows nothing changes unless a switch is set. What was found, with the runs behind each figure, is in `docs/linux-wine.md`; the README gets a "Linux (Wine)" section. **The launcher** - `scripts/play.sh`, the counterpart of `play.ps1` (Proton's Wine, vkd3d-proton and DXVK's dxgi in a prefix of their own, Microsoft's d3dcompiler_47), `VICTORY_FULLSCREEN`, `VICTORY_SCREEN` for another monitor; `scripts/play-1080p.sh`, the fastest settings measured. **What made it slow under Wine** - `VICTORY_WINE_MAP`: the title's physical pages shown with the host's `mmap`; Wine's server walked its list of views at every map and unmap (768 -> 13 ms of every second). - `VICTORY_SINGLE_LATCH`, `VICTORY_PIPELINE_WATCH`: loops with several back edges ran vkd3d-proton's dxil-spirv out of stack; one latch a loop, and a pipeline whose making ends its worker is given up (287 -> 47.9 ms a frame). - `VICTORY_PORT_HOME`: renderer patch 1 gave a black picture; amdgpu takes memory by address only as one anonymous mapping. - `VICTORY_CLAMP_SYNC`: the two waits around a clamp of indirect arguments as enhanced barriers that name what they wait for; under RADV each legacy one emptied the card (56.4 -> 34.0 ms with `VICTORY_PORT_CONSTANTS_ORDER`). - `VICTORY_JOIN_PARTS_DRAWS`: submissions joined only in frames of the world, so the intro videos stay in order. **People without a face (eyes and teeth only), in every second or third run** - `VICTORY_COMPUTE_WAIT_MS` (10 s under Wine): the first use of a compute pass waits for its pipeline by a budget of its own. The table a character's face is deformed by is filled once on the card; that pass was dropped past the frame's half second while its pipeline was being made, and the face's vertices all lay in one point to the end of the run. 17 runs of 17 with heads since; 2 of 5 without, by turns, with it off. - `VICTORY_LIBRARY_NULL`: an empty pipeline library asked for with a null address. vkd3d-proton refuses a blob of no bytes at an address that is not null, so no library was ever kept under Wine and every run made the world's pipelines at its first frames. **Diagnostics** - `VICTORY_PROFILE`/`VICTORY_STACKS` and the frame recorder work under Wine; `victory replay --poke` and raw views in `--slots`; `VICTORY_BARRIER_GROUPS_LOG`; a log line for each first use that goes without its pipeline. Measured on one PC and in the title's first scene only; not looked at: play, other scenes, ray tracing, other cards and drivers. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 08:08:55 +00:00
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 08:33 UTC · original

I tried the Wine profile from b2bf3d99 on an RX 7900 XT with RADV 26.3.1, Wine 11.22 and vkd3d-proton 71cae091. I used a 720p scene, the 4K interface plane and five empty cache directories. Adding Beqren’s release-build input patch got the scripted launch into the opening scene. The +85 s sample showed skin on the character facing the camera and a centered two-line subtitle.

The run yielded to another build at 99 s. Before that it logged 379 compute waits over 100 ms, with 29 reports where the pipeline still had no result. The longest was 10,000 ms. Multiple threads can report waits at the same time.

I’ve queued a 300 s cold run with the 10,000 ms setting and an otherwise identical 500 ms run. I’ll check how much of the startup stall they remove and whether the faces still render. Runtime source, test setup and counters

**@⁠UwUCammie** on GitHub · 2026-11-27 08:33 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213673271) I tried the Wine profile from `b2bf3d99` on an RX 7900 XT with RADV 26.3.1, Wine 11.22 and vkd3d-proton `71cae091`. I used a 720p scene, the 4K interface plane and five empty cache directories. Adding Beqren’s release-build input patch got the scripted launch into the opening scene. The +85 s sample showed skin on the character facing the camera and a centered two-line subtitle. The run yielded to another build at 99 s. Before that it logged 379 compute waits over 100 ms, with 29 reports where the pipeline still had no result. The longest was 10,000 ms. Multiple threads can report waits at the same time. I’ve queued a 300 s cold run with the 10,000 ms setting and an otherwise identical 500 ms run. I’ll check how much of the startup stall they remove and whether the faces still render. [Runtime source](https://github.com/UwUCammie/VIctory-7900XTX/commit/86c904b1), [test setup and counters](https://github.com/UwUCammie/victory-amd/commit/a7f7520d)
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 08:34 UTC · original

One more measurement, left out of this pull request because it is another contributor's work: VICTORY_WC_NO_BACK=1 from Belobug/VIctory-Belobug-AMD#477 (icecreammule277-dot), what shaders write into title memory asked for as write-combined staying on the card.

Its seven commits pick onto this branch with one trivial conflict (lib.rs, an export line). Under Wine on the same PC (RX 7900 GRE, RADV), the title's first scene, scripts/play-1080p.sh's settings, 200 s read from second 100:

Tree Without With VICTORY_WC_NO_BACK=1
this branch (merged with main), by turns, two runs each 33.2 and 32.2 ms a frame 29.0 and 27.9 ms
the Linux branch without main's order of clamps, one run each 25.1 ms (39.8 fps) 22.6 ms (44.3 fps)

The submitting thread works about 5 ms a frame less with it. The frames of the world kept of the runs with it are whole pictures, faces too, and it looked right on the screen; no more than the first scene was looked at. The commits are on linux-wine of the fork, with their author kept, for whoever wants to try them.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 08:34 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213680361) One more measurement, left out of this pull request because it is another contributor's work: `VICTORY_WC_NO_BACK=1` from Belobug/VIctory-Belobug-AMD#477 (icecreammule277-dot), what shaders write into title memory asked for as write-combined staying on the card. Its seven commits pick onto this branch with one trivial conflict (`lib.rs`, an export line). Under Wine on the same PC (RX 7900 GRE, RADV), the title's first scene, `scripts/play-1080p.sh`'s settings, 200 s read from second 100: | Tree | Without | With `VICTORY_WC_NO_BACK=1` | |---|---|---| | this branch (merged with main), by turns, two runs each | 33.2 and 32.2 ms a frame | 29.0 and 27.9 ms | | the Linux branch without main's order of clamps, one run each | 25.1 ms (39.8 fps) | 22.6 ms (44.3 fps) | The submitting thread works about 5 ms a frame less with it. The frames of the world kept of the runs with it are whole pictures, faces too, and it looked right on the screen; no more than the first scene was looked at. The commits are on `linux-wine` of the fork, with their author kept, for whoever wants to try them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 08:50 UTC · original

The full cold run finished on the RX 7900 XT. I got 6,579 accepted presents in the first 300 s from launch, or 21.93 FPS. Seconds 140–240 gave 2,006 presents, averaging 20.06 FPS. This was 1280×720 output, with five empty graphics caches, a new story and vkd3d-proton 71cae091.

The longest gap was 19.93 s. Thirteen compute waits returned without a pipeline result inside that gap. The opening shot at 85 s showed the man's face, and the driver's skin was missing in the car at 160 and 175 s. Her eyes and teeth drew. The 10,000 ms compute setting was active.

The next run changes only the compute wait to 500 ms. I’ve also staged the separate write-back off/on comparison from your follow-up. Timings and configuration, write-back test branch

**@⁠UwUCammie** on GitHub · 2026-11-27 08:50 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213975062) The full cold run finished on the RX 7900 XT. I got 6,579 accepted presents in the first 300 s from launch, or **21.93 FPS**. Seconds 140–240 gave 2,006 presents, averaging **20.06 FPS**. This was 1280×720 output, with five empty graphics caches, a new story and vkd3d-proton `71cae091`. The longest gap was 19.93 s. Thirteen compute waits returned without a pipeline result inside that gap. The opening shot at 85 s showed the man's face, and the driver's skin was missing in the car at 160 and 175 s. Her eyes and teeth drew. The 10,000 ms compute setting was active. The next run changes only the compute wait to 500 ms. I’ve also staged the separate write-back off/on comparison from your follow-up. [Timings and configuration](https://github.com/UwUCammie/victory-amd/commit/907c75b1), [write-back test branch](https://github.com/UwUCammie/VIctory-7900XTX/commit/6416fd02)
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 09:00 UTC · original

@⁠UwUCammie you are right, and thank you for measuring it. Reproduced here with every cache empty (the layer's, vkd3d-proton's and Mesa's; RX 7900 GRE, RADV 26.3.1, one run each, 240 s):

VICTORY_COMPUTE_WAIT_MS compute waits over 0.1 s longest of 1 s or more ended without the pipeline from the world's first frame to a usual frame time
10000 (what this branch had) 528 10,000 ms 95 16 about 60 s, some 25 s of it in frames of 5 s
500 433 501 ms 0 244 about 35 s

The 17 runs with faces behind the 10 s default all had vkd3d-proton's cache: no compute wait passed a tenth of a second in any of them, so I never saw the cold case. What counted there was not the length of the wait but that compute passes no longer share the frame's budget (a thread that came while another waited found nothing left and dropped its pass at once) and that their pipelines are made first.

So the default is half a second now, as in #166 (1bf01b5 on this branch). Faces were there in both cold runs above, but that is one run of each: with half a second, 798 compute first uses were still dropped in the cold run, three of the face's programs among them, so a pass that runs once can still be lost in a first run with nothing cached. The second run has the pipeline library (kept under Wine since this branch) and drops 7 to 70 first uses instead of hundreds.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 09:00 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214168214) @⁠UwUCammie you are right, and thank you for measuring it. Reproduced here with every cache empty (the layer's, vkd3d-proton's and Mesa's; RX 7900 GRE, RADV 26.3.1, one run each, 240 s): | `VICTORY_COMPUTE_WAIT_MS` | compute waits over 0.1 s | longest | of 1 s or more | ended without the pipeline | from the world's first frame to a usual frame time | |---|---|---|---|---|---| | 10000 (what this branch had) | 528 | 10,000 ms | 95 | 16 | about 60 s, some 25 s of it in frames of 5 s | | 500 | 433 | 501 ms | 0 | 244 | about 35 s | The 17 runs with faces behind the 10 s default all had vkd3d-proton's cache: no compute wait passed a tenth of a second in any of them, so I never saw the cold case. What counted there was not the length of the wait but that compute passes no longer share the frame's budget (a thread that came while another waited found nothing left and dropped its pass at once) and that their pipelines are made first. So the default is half a second now, as in #166 (1bf01b5 on this branch). Faces were there in both cold runs above, but that is one run of each: with half a second, 798 compute first uses were still dropped in the cold run, three of the face's programs among them, so a pass that runs once can still be lost in a first run with nothing cached. The second run has the pipeline library (kept under Wine since this branch) and drops 7 to 70 first uses instead of hundreds. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:01 UTC · original

The 500 ms run reached the car this time. Both faces were missing skin in the front view around 175 s. The driver was also missing skin on the 10 s run, but the passenger’s face rendered there.

The shorter wait got 4,579 presents in the first 200 s versus 3,602, and the longest gap went from 19.93 to 10.93 s. Wait reports that ended without a pipeline result went from 36 to 310. The short run yielded to another build at 209.68 s.

I’m keeping the 10 s budget for the next test and changing only whether small compute pipelines can start at creation. A 1 KiB cutoff restored faces on an earlier build here. Results and test setup

**@⁠UwUCammie** on GitHub · 2026-11-27 09:01 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214199341) The 500 ms run reached the car this time. Both faces were missing skin in the front view around 175 s. The driver was also missing skin on the 10 s run, but the passenger’s face rendered there. The shorter wait got 4,579 presents in the first 200 s versus 3,602, and the longest gap went from 19.93 to 10.93 s. Wait reports that ended without a pipeline result went from 36 to 310. The short run yielded to another build at 209.68 s. I’m keeping the 10 s budget for the next test and changing only whether small compute pipelines can start at creation. A 1 KiB cutoff restored faces on an earlier build here. [Results and test setup](https://github.com/UwUCammie/victory-amd/commit/11e9a682)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:13 UTC · original

Thanks for checking it with the vkd3d cache empty. Another 10 s run here had both faces in the same car view with early compilation disabled, so the cold skin failure varies between runs. I’m keeping the 10 s budget in the 0 vs 1 KiB early-compile comparison so it changes one setting.

I also picked up the draw-count pacing commit separately. I’ll check the opening cadence, since a successful present can repeat a video frame. Control and pacing notes

**@⁠UwUCammie** on GitHub · 2026-11-27 09:13 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214432790) Thanks for checking it with the vkd3d cache empty. Another 10 s run here had both faces in the same car view with early compilation disabled, so the cold skin failure varies between runs. I’m keeping the 10 s budget in the 0 vs 1 KiB early-compile comparison so it changes one setting. I also picked up the draw-count pacing commit separately. I’ll check the opening cadence, since a successful present can repeat a video frame. [Control and pacing notes](https://github.com/UwUCammie/victory-amd/commit/787c0b2e)
Every range a card step records (VICTORY_CARD_STEPS) is checked against
its buffer's width and the staging buffer before CopyBufferRegion: a
range past a buffer's end is left out, with a warning (the first 16, then
at powers of two), instead of being recorded.

vkd3d-proton does not validate CopyBufferRegion. On RADV a copy past a
buffer is a write by the command processor to an address of no
allocation: a GPU page fault, and when the queue reset fails a reset of
the whole GPU, which takes the Wayland compositor with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit a803fd5142)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:30 UTC · original

The 2.5 KiB cutoff got the facial-deformation pipeline ready at 2.54 s here. Both faces rendered in the car view where a repeat with early compilation off lost the driver's skin. The first 220 s had 4,143 presents with the cutoff and 3,853 without it. The longest gap was still about 20 s.

The enabled run logged device removal at 261.92 s, 658 ms before the overlap marker. I’ve kept it out of the full cold results and updated the launcher to record those two events in order. I’m keeping the same cutoff for a 2 s wait trial. Test results and setup

**@⁠UwUCammie** on GitHub · 2026-11-27 09:30 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214762564) The 2.5 KiB cutoff got the facial-deformation pipeline ready at 2.54 s here. Both faces rendered in the car view where a repeat with early compilation off lost the driver's skin. The first 220 s had 4,143 presents with the cutoff and 3,853 without it. The longest gap was still about 20 s. The enabled run logged device removal at 261.92 s, 658 ms before the overlap marker. I’ve kept it out of the full cold results and updated the launcher to record those two events in order. I’m keeping the same cutoff for a 2 s wait trial. [Test results and setup](https://github.com/UwUCammie/victory-amd/commit/a937345b)
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-27 09:35 UTC · original

Tested linux-wine-pr (b62290c) on the smallest card I have, and your preset holds: 43 ms median (24.8 fps average, p10 30 ms = 33 fps) at 1280x720 on an 8 GB card.

Environment: RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system, shared prefix), kernel 7.3.5, 30 GB RAM, Series S profile, 1280x720, built for x86_64-pc-windows-gnu.

Config median p10 p90 fps
branch, defaults, VICTORY_UPSCALER=6 54 ms 50 88 19.8
+ VICTORY_RENDER_SCALE=1.0 64 ms 53 77 18.8
+ your play-1080p.sh preset (CONSTANTS, DESCRIPTORS, CBV, FRAME_INTERVAL_MS=16.667 + DRAWS=500, CARD_BUFFERS_MIN_KB=64, JOIN_PARTS_DRAWS=500) 43 ms 30 56 24.8

300 s each, no device loss. VRAM 7,459 of 8,142 MiB in the last one, textures at 3 GB and card buffers at 2 GB.

What the 8 GB end runs into:

  1. The FSR4 path cannot run at 720p output. The title says FSR4 configuration mismatch: maxUpscaleSize must be 1920x1080; received 1280x720 and then dies with 0xc0000094 at +0x28f03e8 27 s in — the divide you describe in resolution.rs. VICTORY_UPSCALER=6 is what keeps 720p alive here.
  2. VICTORY_PORT_CONSTANTS=1 makes the title hit its own int3 (0x80000003) 4 s in, before the world, when it is on together with PORT_DESCRIPTORS/PORT_CBV (and GUARD/JOURNAL).
  3. VICTORY_PORT_GUARD=1 + VICTORY_PORT_JOURNAL=1 on top of that: 350-400 ms a frame (2.7 fps). Your preset without those two is what works; on 8 GB they are the wrong switches.
  4. VICTORY_RENDER_SCALE=1.0 costs almost nothing (53 vs 50 ms) and removes the 480p blur from the title's 2/3 scale.

Still wrong on this card: character meshes stretch now and then (less than on the Scarlett line I came from), and faces do not animate — static, but no longer collapsed to a single point, so that part of VICTORY_COMPUTE_WAIT_MS works here.

First configuration on this card that goes past 30 fps in the dips. Thank you.

**@⁠YaBulochka** on GitHub · 2026-11-27 09:35 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214852210) Tested `linux-wine-pr` (`b62290c`) on the smallest card I have, and your preset holds: **43 ms median (24.8 fps average, p10 30 ms = 33 fps) at 1280x720 on an 8 GB card**. Environment: RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system, shared prefix), kernel 7.3.5, 30 GB RAM, Series S profile, 1280x720, built for `x86_64-pc-windows-gnu`. | Config | median | p10 | p90 | fps | |---|---|---|---|---| | branch, defaults, `VICTORY_UPSCALER=6` | 54 ms | 50 | 88 | 19.8 | | + `VICTORY_RENDER_SCALE=1.0` | 64 ms | 53 | 77 | 18.8 | | + your `play-1080p.sh` preset (CONSTANTS, DESCRIPTORS, CBV, FRAME_INTERVAL_MS=16.667 + DRAWS=500, CARD_BUFFERS_MIN_KB=64, JOIN_PARTS_DRAWS=500) | **43 ms** | **30** | **56** | **24.8** | 300 s each, no device loss. VRAM 7,459 of 8,142 MiB in the last one, textures at 3 GB and card buffers at 2 GB. What the 8 GB end runs into: 1. **The FSR4 path cannot run at 720p output.** The title says `FSR4 configuration mismatch: maxUpscaleSize must be 1920x1080; received 1280x720` and then dies with `0xc0000094` at `+0x28f03e8` 27 s in — the divide you describe in `resolution.rs`. `VICTORY_UPSCALER=6` is what keeps 720p alive here. 2. **`VICTORY_PORT_CONSTANTS=1` makes the title hit its own `int3` (`0x80000003`) 4 s in**, before the world, when it is on together with `PORT_DESCRIPTORS`/`PORT_CBV` (and `GUARD`/`JOURNAL`). 3. **`VICTORY_PORT_GUARD=1` + `VICTORY_PORT_JOURNAL=1` on top of that: 350-400 ms a frame (2.7 fps).** Your preset without those two is what works; on 8 GB they are the wrong switches. 4. `VICTORY_RENDER_SCALE=1.0` costs almost nothing (53 vs 50 ms) and removes the 480p blur from the title's 2/3 scale. Still wrong on this card: character meshes stretch now and then (less than on the Scarlett line I came from), and faces do not animate — static, but no longer collapsed to a single point, so that part of `VICTORY_COMPUTE_WAIT_MS` works here. First configuration on this card that goes past 30 fps in the dips. Thank you.
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 09:46 UTC · original

@⁠YaBulochka thank you for the run on 8 GB, and for the list.

One point I cannot read for sure, (b): the table gives 43 ms with play-1080p.sh's settings, which hold VICTORY_PORT_CONSTANTS=1 with VICTORY_PORT_DESCRIPTORS=1 and VICTORY_PORT_CBV=1, and the note says VICTORY_PORT_CONSTANTS=1 ends on the title's own int3 (0x80000003) at 4 s. Which of these is it?

  1. the three VICTORY_PORT_* alone (the launcher as it is): runs, 43 ms;
  2. the same with the guard and the journal added: int3 at 4 s;
  3. something else (then: the exact line of settings of the run that stopped, and the last twenty lines of its log, would be enough).

Here on an RX 7900 GRE the launcher's settings have not stopped that way in some forty runs, but none of them had the guard or the journal on.

On (e): the faces that do not move are the same here; it is what #114 is about, and on this card #114 makes them move but wrongly (notes there). The stretched meshes I have not looked at yet.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 09:46 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215081417) @⁠YaBulochka thank you for the run on 8 GB, and for the list. One point I cannot read for sure, (b): the table gives 43 ms with `play-1080p.sh`'s settings, which hold `VICTORY_PORT_CONSTANTS=1` with `VICTORY_PORT_DESCRIPTORS=1` and `VICTORY_PORT_CBV=1`, and the note says `VICTORY_PORT_CONSTANTS=1` ends on the title's own int3 (0x80000003) at 4 s. Which of these is it? 1. the three `VICTORY_PORT_*` alone (the launcher as it is): runs, 43 ms; 2. the same with the guard and the journal added: int3 at 4 s; 3. something else (then: the exact line of settings of the run that stopped, and the last twenty lines of its log, would be enough). Here on an RX 7900 GRE the launcher's settings have not stopped that way in some forty runs, but none of them had the guard or the journal on. On (e): the faces that do not move are the same here; it is what #114 is about, and on this card #114 makes them move but wrongly (notes there). The stretched meshes I have not looked at yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:47 UTC · original

@⁠YaBulochka Was the vkd3d-proton cache empty at the start of each run, and did the 300 s start at launch? My full 720p result was 21.93 accepted presents/s on an RX 7900 XT, Series X, counting from launch with five empty caches. The mmap-backed constants path was active here with GUARD and JOURNAL left off.

I also tried a 2 s compute wait with the 2.5 KiB early-compile cutoff. In the second run both faces had skin in the car, and the longest gap over the first 245 s went from 17.83 s to 11.92 s. P99 rose from 223 to 294 ms, and 125 waits ended without a pipeline result, up from 36. Both runs yielded to a parallel build before 300 s. Settings and results

**@⁠UwUCammie** on GitHub · 2026-11-27 09:47 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215108726) @⁠YaBulochka Was the vkd3d-proton cache empty at the start of each run, and did the 300 s start at launch? My full 720p result was 21.93 accepted presents/s on an RX 7900 XT, Series X, counting from launch with five empty caches. The mmap-backed constants path was active here with GUARD and JOURNAL left off. I also tried a 2 s compute wait with the 2.5 KiB early-compile cutoff. In the second run both faces had skin in the car, and the longest gap over the first 245 s went from 17.83 s to 11.92 s. P99 rose from 223 to 294 ms, and 125 waits ended without a pipeline result, up from 36. Both runs yielded to a parallel build before 300 s. [Settings and results](https://github.com/UwUCammie/victory-amd/commit/31e144d8)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 10:00 UTC · original

One follow-up on the 2 s trial. The 11.92 s present gap still overlapped 11.91 s of the separate screen-pass waits, and only 2.99 s of reported compute waits. One screen pipeline repeatedly hit the 10 s limit across three runs. Both stages together fit within 6 KiB.

I’ve put an opt-in early-compile test in #450. It leaves the 10 s screen wait in place and uses the regular early queue. I’ll compare it with early screen compilation off using the same cold 720p executable. Wait breakdown

**@⁠UwUCammie** on GitHub · 2026-11-27 10:00 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215367465) One follow-up on the 2 s trial. The 11.92 s present gap still overlapped 11.91 s of the separate screen-pass waits, and only 2.99 s of reported compute waits. One screen pipeline repeatedly hit the 10 s limit across three runs. Both stages together fit within 6 KiB. I’ve put an opt-in early-compile test in #450. It leaves the 10 s screen wait in place and uses the regular early queue. I’ll compare it with early screen compilation off using the same cold 720p executable. [Wait breakdown](https://github.com/UwUCammie/victory-amd/commit/c2c6b4f9)
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 10:29 UTC · original

Added #351's fix to this branch (deebee8, Fedalv's commit a803fd5 picked with its author kept): with card steps on, a copy that reaches past its buffer is left out instead of recorded. play.sh turns card steps on (VICTORY_CARD_STEPS=2), and #351 reports such copies giving a GPU page fault and a whole-GPU reset on RADV.

Here (RX 7900 GRE, RADV 26.3.1), one 200 s run with it: no copy was left out ("a copy out of its buffer's range left out" never logged), no error, 23.5 ms a frame median. One launch here hung the GPU (amdgpu ring timeout, reset failed) on 2026-11-26; nothing shows this would have prevented it, it is in as a guard.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 10:29 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215941588) Added #351's fix to this branch (`deebee8`, Fedalv's commit a803fd5 picked with its author kept): with card steps on, a copy that reaches past its buffer is left out instead of recorded. `play.sh` turns card steps on (`VICTORY_CARD_STEPS=2`), and #351 reports such copies giving a GPU page fault and a whole-GPU reset on RADV. Here (RX 7900 GRE, RADV 26.3.1), one 200 s run with it: no copy was left out ("a copy out of its buffer's range left out" never logged), no error, 23.5 ms a frame median. One launch here hung the GPU (amdgpu ring timeout, reset failed) on 2026-11-26; nothing shows this would have prevented it, it is in as a guard. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 10:36 UTC · original

The write-back control lost the device at 264.32 s with write-back disabled. The guard recorded no overlap. The renderer returned DXGI_ERROR_DEVICE_REMOVED and vkd3d-proton logged VK_ERROR_DEVICE_LOST, as it did in the earlier 261.92 s run on the early-compute build. That leaves the failing command unknown.

I’ve held the write-back pair and started a separate probe on the same release executable with the driver’s fault reporting and breadcrumbs requested. The probe is excluded from timing. Reproduction notes

**@⁠UwUCammie** on GitHub · 2026-11-27 10:36 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216099328) The write-back control lost the device at 264.32 s with write-back disabled. The guard recorded no overlap. The renderer returned DXGI_ERROR_DEVICE_REMOVED and vkd3d-proton logged VK_ERROR_DEVICE_LOST, as it did in the earlier 261.92 s run on the early-compute build. That leaves the failing command unknown. I’ve held the write-back pair and started a separate probe on the same release executable with the driver’s fault reporting and breadcrumbs requested. The probe is excluded from timing. [Reproduction notes](https://github.com/UwUCammie/victory-amd/commit/c0d1260b)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 10:48 UTC · original

I tried a follow-up to the bounds guard. If recording skips a read, its write and the planner’s taken-step bookkeeping can still go through. The follow-up checks the full batch before taking any deferred steps, so an invalid range leaves the submission on the existing waiting path. The hardware flight test passed on RX 7900 XT with RADV 26.3.1 and 71cae091, including a mixed valid and invalid batch. Follow-up against linux-wine-pr

The first driver fault probe yielded at 202.54 s. The patched cold control is being built with the same write-back-disabled settings. Results so far

**@⁠UwUCammie** on GitHub · 2026-11-27 10:48 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216330623) I tried a follow-up to the bounds guard. If recording skips a read, its write and the planner’s taken-step bookkeeping can still go through. The follow-up checks the full batch before taking any deferred steps, so an invalid range leaves the submission on the existing waiting path. The hardware flight test passed on RX 7900 XT with RADV 26.3.1 and `71cae091`, including a mixed valid and invalid batch. [Follow-up against linux-wine-pr](https://github.com/borntofrag34/VIctory-7900XTX/pull/1) The first driver fault probe yielded at 202.54 s. The patched cold control is being built with the same write-back-disabled settings. [Results so far](https://github.com/UwUCammie/victory-amd/commit/ba43f95d)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 11:16 UTC · original

I found a separate worker recovery bug in the current Wine branch. With 64 general workers and two priority workers, the watcher sent 66 handles to one wait and exited when Wine rejected it. The regression reproduces the failure on Wine 11.22 and verifies both wait groups with all 66 handles. I opened the fix against your Wine branch. Follow-up PR

**@⁠UwUCammie** on GitHub · 2026-11-27 11:16 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216890079) I found a separate worker recovery bug in the current Wine branch. With 64 general workers and two priority workers, the watcher sent 66 handles to one wait and exited when Wine rejected it. The regression reproduces the failure on Wine 11.22 and verifies both wait groups with all 66 handles. I opened the fix against your Wine branch. [Follow-up PR](https://github.com/borntofrag34/VIctory-7900XTX/pull/2)
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-27 12:49 UTC · original

VICTORY_PORT_CONSTANTS=1 does not survive here; the rest of the branch runs. Reporting the data in case it is a known limit on small cards, or a bug with a cheap fix.

Build: linux-wine-pr b62290c + #451 + #454 + #434 + #437 merged locally. RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system), kernel 7.3.5, 30 GB RAM. Series S, 1280x720, VICTORY_RENDER_SCALE=1.0, VICTORY_UPSCALER=6, textures 3 GB, card buffers 2 GB.

Settings Frame Stability
PORT_CONSTANTS=0, PORT_CBV=0, CARD_BUFFERS_MIN_KB=64 50-53 ms (19-20 fps); open world median 64-71 ms 30+ minutes, no device loss, half the story played
+ PORT_CONSTANTS=1 43 ms crashes, see below

With PORT_CONSTANTS=1:

  • twice the title's own int3 (0x80000003) at victory-image-...dll+0x31f50 about 4 s in, before the world, while all the other switches were unchanged (PORT_CBV=0, no PORT_GUARD/PORT_JOURNAL);
  • otherwise a GPUVM fault on a title VA after about a minute: 0x8002b2b00000, 0x8002b5d00000 (earlier 0x800286b00000 with the same switch), then comp_1.x.0 ring timeout -> MES failed to respond to msg=SUSPEND -> device wedged, and the title reports device removed: 0x887A0005;
  • once, black patches on wall and door textures that were not there without it.

PORT_HOME is on (default under Wine), so this is not the "memory by address is not one anonymous mapping" case.

Question: is PORT_CONSTANTS expected to work under Wine/RADV at all, or is it Windows-only in practice? If it should work, tell me what to collect — the fault address is a title VA, and the int3 is at one fixed site, so it may narrow quickly. The 7 ms it buys (50 -> 43 ms) is the difference between 20 and 23 fps here, which matters on a card this small.

For reference, the stable configuration above is already a big win over the fork I came from (Op-lite/victory-scarlett: 63-67 ms with 38 ms of copies). Your #440 took copies down to 10-12 ms and gave the first 30+ fps dips on this card.

**@⁠YaBulochka** on GitHub · 2026-11-27 12:49 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7218710994) `VICTORY_PORT_CONSTANTS=1` does not survive here; the rest of the branch runs. Reporting the data in case it is a known limit on small cards, or a bug with a cheap fix. Build: `linux-wine-pr` `b62290c` + #451 + #454 + #434 + #437 merged locally. RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system), kernel 7.3.5, 30 GB RAM. Series S, 1280x720, `VICTORY_RENDER_SCALE=1.0`, `VICTORY_UPSCALER=6`, textures 3 GB, card buffers 2 GB. | Settings | Frame | Stability | |---|---|---| | `PORT_CONSTANTS=0`, `PORT_CBV=0`, `CARD_BUFFERS_MIN_KB=64` | 50-53 ms (19-20 fps); open world median 64-71 ms | **30+ minutes, no device loss**, half the story played | | + `PORT_CONSTANTS=1` | 43 ms | crashes, see below | With `PORT_CONSTANTS=1`: - twice the title's own `int3` (`0x80000003`) at `victory-image-...dll+0x31f50` about 4 s in, before the world, while all the other switches were unchanged (`PORT_CBV=0`, no `PORT_GUARD`/`PORT_JOURNAL`); - otherwise a `GPUVM fault` on a title VA after about a minute: `0x8002b2b00000`, `0x8002b5d00000` (earlier `0x800286b00000` with the same switch), then `comp_1.x.0 ring timeout` -> `MES failed to respond to msg=SUSPEND` -> `device wedged`, and the title reports `device removed: 0x887A0005`; - once, black patches on wall and door textures that were not there without it. `PORT_HOME` is on (default under Wine), so this is not the "memory by address is not one anonymous mapping" case. Question: is `PORT_CONSTANTS` expected to work under Wine/RADV at all, or is it Windows-only in practice? If it should work, tell me what to collect — the fault address is a title VA, and the `int3` is at one fixed site, so it may narrow quickly. The 7 ms it buys (50 -> 43 ms) is the difference between 20 and 23 fps here, which matters on a card this small. For reference, the stable configuration above is already a big win over the fork I came from (Op-lite/victory-scarlett: 63-67 ms with 38 ms of copies). Your #440 took copies down to 10-12 ms and gave the first 30+ fps dips on this card.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 13:09 UTC · original

I hit a similar failure with VICTORY_PORT_CONSTANTS=1 on an RX 7900 XT under Wine 11.22. In a matched saved-waterfront run, the HUD drew over a black world with in-place constants enabled. With the switch off, the same save and camera showed the world at all four checkpoints. I also saw an early breakpoint in a separate run. That was an older build, so I can’t tie it to the same fault on your 7600 XT. Results and settings

I’d keep the switch off on that build given the ring timeout. If you still have the failed run’s logs, the first vkd3d error and the kernel lines immediately before the first GPUVM fault would help. The exact merge SHAs would make it easier to match the breakpoint. No need to trigger another reset or send a dump.

**@⁠UwUCammie** on GitHub · 2026-11-27 13:09 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7219134623) I hit a similar failure with `VICTORY_PORT_CONSTANTS=1` on an RX 7900 XT under Wine 11.22. In a matched saved-waterfront run, the HUD drew over a black world with in-place constants enabled. With the switch off, the same save and camera showed the world at all four checkpoints. I also saw an early breakpoint in a separate run. That was an older build, so I can’t tie it to the same fault on your 7600 XT. [Results and settings](https://github.com/UwUCammie/victory-amd/commit/2dd26fa2) I’d keep the switch off on that build given the ring timeout. If you still have the failed run’s logs, the first vkd3d error and the kernel lines immediately before the first GPUVM fault would help. The exact merge SHAs would make it easier to match the breakpoint. No need to trigger another reset or send a dump.
Three changes of others, taken together as bordersky/victory-linux carries them
(its tree at 2294b83 against avatarmanz main 9576c45; the translator's and the
descriptors' files only, applied without a conflict):

- avatarmanz/VIctory-7900XTX pull request 114, by secure-silicon: d16 accesses
  ask for the kind of a view in a table too.
- fxceless/victory-fork pull request 927, by tippythetaidum: halves moved
  through a 16-bit buffer view keep their bits (the face network computed
  zeros).
- the raw typed loads (VICTORY_RAW_TYPED_LOADS, on; 0 off), from
  bordersky/victory-linux.

On an RX 7900 GRE (RADV 26.3.1, vkd3d-proton 3.2.0) pull request 114 alone
left mouths wide open (run 103); with the three the lips follow the lines and
close between them, and eyes blink (run 117: one run of 100 s, the frames of
three lines looked at). The frame is as long as before: 28.9 ms against 28.8
over the same stretch (runs 117 and 108).

TRANSLATOR_VERSION and the shader cache's format change: every shader is
translated again. docs/linux-wine.md: what put it right and what was tried
before.

Co-Authored-By: tippythetaidum <[email protected]>
Co-Authored-By: bordersky <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
The faces commit before this one added the field; this test is this branch's
own and was not in the trees the change came from, so the workspace's tests
did not compile (cargo xwin check --workspace --tests).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 13:21 UTC · original

@⁠YaBulochka thank you, this is the report I needed. Short answer: VICTORY_PORT_CONSTANTS is meant to work under Wine/RADV, but so far it has only been shown to hold on one card and one scene. With what you see, keep it off on yours until we have the lines below.

What holds here. RX 7900 GRE, RADV 26.3.1, vkd3d-proton 3.2.0, Proton Experimental's Wine. 88 launches with renderer port 1 on: no panic, no rejected submission, no lost device, no int3. The limits matter, though: all 88 are in the opening cutscene, 100-240 s, Series X 1920x1080. None was in play, none in Series S, none with the system Wine 11.22 or Mesa 27-devel. @⁠UwUCammie's black world on a 7900 XT points the same way: it is not only an 8 GB thing.

What VICTORY_PORT_HOME does under Wine. vkd3d-proton backs a heap opened on a section's view with memory of its own, so the card read zeros. Instead, the title's 32-bit graphics pages are shown as the process's own memory, made one mapping first (whole_home), and the heap is opened right where the title has them. At opening, the card is asked whether it sees the bytes. If it reads zeros, the stretch is tried 4 times, then given up (home_given_up) and copied as before. That check only runs at opening, so zeros later in a run (your black patches?) would not be caught.

Guesses, not verified:

  • The int3 at victory-image+0x31f50 is not one of the layer's patched sites, so it is most likely an assert of the title itself. Before the world, what this switch changes is where the 32-bit graphics pages are placed; an assert in the title's allocator is plausible, nothing more.
  • 0x8002b2b00000 is a GPU virtual address, not one of the title's: its 32-bit graphics pages sit around 0x0afa0000-0x104a0000 here. A heap opened on process memory (userptr) where a page is then unmapped, remapped or made read-only gives exactly this kind of fault, or a rejected submission. I measured the read-only case here: every submission is rejected. With 7.46 of 8.14 GB in use, eviction is possible too. I can't tell the two apart yet.

What would narrow it, beyond what @⁠UwUCammie asked for (the first vkd3d error, the kernel lines just before the first GPUVM fault, the exact SHAs):

  1. Every "renderer port 1" line, from both victory_gpu::port and victory_hle::modules::xmem: regions in place and their size, refusals with their why (not one stretch of a section / not committed / by the host / no buffer), the opening's card_reads_it and attempt, and any "the card reads zeros in the heap".
  2. The periodic line "renderer port 1 (VICTORY_PORT_CONSTANTS=1): N regions ... since the start refused: ..." nearest to the fault.
  3. The last 30 lines before the int3, and whether the int3 still comes with VICTORY_PORT_HOME=0. Then the card reads zeros, but the pages are not placed, which separates the placing from the heap.
  4. VRAM in use at the fault, and if you can, one run in Series X or with less VRAM taken, for the eviction idea.
  5. If you can, the same test without your four local merges (#451, #454, #434, #437), on the branch's current head 3f9ac64, to rule them out. I haven't read them, and #434 changes what card steps read after a submission is sent.

No need to cause another reset just for this: the logs of the runs you already have are enough.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 13:21 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7219373643) @⁠YaBulochka thank you, this is the report I needed. Short answer: `VICTORY_PORT_CONSTANTS` is meant to work under Wine/RADV, but so far it has only been shown to hold on one card and one scene. With what you see, keep it off on yours until we have the lines below. **What holds here.** RX 7900 GRE, RADV 26.3.1, vkd3d-proton 3.2.0, Proton Experimental's Wine. 88 launches with renderer port 1 on: no panic, no rejected submission, no lost device, no int3. The limits matter, though: all 88 are in the opening cutscene, 100-240 s, Series X 1920x1080. None was in play, none in Series S, none with the system Wine 11.22 or Mesa 27-devel. @⁠UwUCammie's black world on a 7900 XT points the same way: it is not only an 8 GB thing. **What `VICTORY_PORT_HOME` does under Wine.** vkd3d-proton backs a heap opened on a section's view with memory of its own, so the card read zeros. Instead, the title's 32-bit graphics pages are shown as the process's own memory, made one mapping first (`whole_home`), and the heap is opened right where the title has them. At opening, the card is asked whether it sees the bytes. If it reads zeros, the stretch is tried 4 times, then given up (`home_given_up`) and copied as before. That check only runs at opening, so zeros later in a run (your black patches?) would not be caught. **Guesses, not verified:** - The `int3` at `victory-image+0x31f50` is not one of the layer's patched sites, so it is most likely an assert of the title itself. Before the world, what this switch changes is where the 32-bit graphics pages are placed; an assert in the title's allocator is plausible, nothing more. - `0x8002b2b00000` is a GPU virtual address, not one of the title's: its 32-bit graphics pages sit around `0x0afa0000-0x104a0000` here. A heap opened on process memory (userptr) where a page is then unmapped, remapped or made read-only gives exactly this kind of fault, or a rejected submission. I measured the read-only case here: every submission is rejected. With 7.46 of 8.14 GB in use, eviction is possible too. I can't tell the two apart yet. **What would narrow it**, beyond what @⁠UwUCammie asked for (the first vkd3d error, the kernel lines just before the first GPUVM fault, the exact SHAs): 1. Every "renderer port 1" line, from both `victory_gpu::port` and `victory_hle::modules::xmem`: regions in place and their size, refusals with their `why` (not one stretch of a section / not committed / by the host / no buffer), the opening's `card_reads_it` and `attempt`, and any "the card reads zeros in the heap". 2. The periodic line "renderer port 1 (VICTORY_PORT_CONSTANTS=1): N regions ... since the start refused: ..." nearest to the fault. 3. The last 30 lines before the `int3`, and whether the `int3` still comes with `VICTORY_PORT_HOME=0`. Then the card reads zeros, but the pages are not placed, which separates the placing from the heap. 4. VRAM in use at the fault, and if you can, one run in Series X or with less VRAM taken, for the eviction idea. 5. If you can, the same test without your four local merges (#451, #454, #434, #437), on the branch's current head `3f9ac64`, to rule them out. I haven't read them, and #434 changes what card steps read after a submission is sent. No need to cause another reset just for this: the logs of the runs you already have are enough. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 13:41 UTC · original

I checked the two older RX 7900 XT logs. The run with a black world accepted one 185 MB graphics-memory region. The last counters show one region refused because it wasn’t one stretch of a section, zero host refusals, and zero regions forgotten. That run completed the saved route with the HUD visible. The separate startup breakpoint run had already accepted the same size region and reported zero refusals before the breakpoint.

Those builds predate the card_reads_it counters, so the logs can’t tell us what the GPU saw through the imported heap. Saved-route comparison and settings

**@⁠UwUCammie** on GitHub · 2026-11-27 13:41 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7219814038) I checked the two older RX 7900 XT logs. The run with a black world accepted one 185 MB graphics-memory region. The last counters show one region refused because it wasn’t one stretch of a section, zero host refusals, and zero regions forgotten. That run completed the saved route with the HUD visible. The separate startup breakpoint run had already accepted the same size region and reported zero refusals before the breakpoint. Those builds predate the `card_reads_it` counters, so the logs can’t tell us what the GPU saw through the imported heap. [Saved-route comparison and settings](https://github.com/UwUCammie/victory-amd/commit/2dd26fa2)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 14:30 UTC · original

I got a stage trace through the first long gap on the RX 7900 XT, with the 10 s compute wait and five empty caches. It was a 10.37 s gap. The driver’s compute pipeline creation calls overlapped 9.21 s of it, compared with 1.04 s before worker claims and about 5 ms in root signature work. These are wall times, and waits can overlap. The run yielded to another build at 38 s. I’ve queued a CPU sample inside that window to see where the driver threads spend their time. Trace summary

**@⁠UwUCammie** on GitHub · 2026-11-27 14:30 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7220861568) I got a stage trace through the first long gap on the RX 7900 XT, with the 10 s compute wait and five empty caches. It was a 10.37 s gap. The driver’s compute pipeline creation calls overlapped 9.21 s of it, compared with 1.04 s before worker claims and about 5 ms in root signature work. These are wall times, and waits can overlap. The run yielded to another build at 38 s. I’ve queued a CPU sample inside that window to see where the driver threads spend their time. [Trace summary](https://github.com/UwUCammie/victory-amd/commit/a2fbe905)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 14:40 UTC · original

The CPU sample completed this time. It covered 30.32–36.59 s after launch inside the first long gap. RADV accounted for 52.64% of about 28,000 user-mode samples. The 12 pipeline workers used 8.67 CPU-seconds per second of wall time over that window. I’ve queued cold runs with 6 and 14 general workers against the default 10 on the same 720p face build, keeping the 3 KiB cutoff and 10 s wait. Profile and test settings

**@⁠UwUCammie** on GitHub · 2026-11-27 14:40 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221076383) The CPU sample completed this time. It covered 30.32–36.59 s after launch inside the first long gap. RADV accounted for 52.64% of about 28,000 user-mode samples. The 12 pipeline workers used 8.67 CPU-seconds per second of wall time over that window. I’ve queued cold runs with 6 and 14 general workers against the default 10 on the same 720p face build, keeping the 3 KiB cutoff and 10 s wait. [Profile and test settings](https://github.com/UwUCammie/victory-amd/commit/b9d94b60)
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-27 14:51 UTC · original

FSR 4 runs under Wine on RDNA3 at the title's own resolution with two small changes. Both are in this branch's own code, no Windows behaviour changes.

1. VICTORY_PC_FSR=1: load the PC provider without the 4K preset. Today use_host_dir is only called under -Fsr4K, which also forces VICTORY_DISPLAY_MODE=3840x2160. This is the same change Belobug #532 makes; it lets Series S stay at 1080p output while FidelityFX serves the upscale.

// apps/victory/src/run.rs, before `let image = if let Some(preset) = fsr {`
if fsr.is_none() && execute && std::env::var_os("VICTORY_PC_FSR").is_some_and(|v| v == "1") {
    let dir = cfg.fidelityfx_dir.as_deref().context(
        "PC FidelityFX requires amd_fidelityfx_upscaler_dx12.dll. Set VICTORY_FIDELITYFX_DIR or [paths].fidelityfx_dir to its folder.",
    )?;
    victory_hle::modules::fidelityfx::use_host_dir(dir)
        .map_err(anyhow::Error::msg)
        .with_context(|| format!("loading the PC FSR upscaler from {}", dir.display()))?;
}

2. Accept any FSR 4.x provider, not only 4.1.2. Under Wine the shim reports 4.1.1 *, so is_fsr_4_1_2() rejects the one provider that is there and FSR 4 never loads. fidelityfx.rs: keep is_fsr_4_1_2 as the first choice, fall back to any 4.<minor>.<patch>[letter] (4.0.2c exists too), and allow it in the context-creation check as well.

fn is_fsr_4(name: &str) -> bool {
    let Some(rest) = name.strip_prefix("4.") else { return false };
    let core = rest.trim_end_matches(" *");
    let parts: Vec<&str> = core.split('.').collect();
    parts.len() == 2
        && parts.iter().all(|part| {
            let digits = part.trim_end_matches(|c: char| c.is_ascii_alphabetic());
            !digits.is_empty() && digits.chars().all(|c| c.is_ascii_digit())
        })
}

What it ran as here. RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22, kernel 7.3.5, 30 GB RAM. FSR4_UPGRADE=1, DXIL_SPIRV_CONFIG=wmma_rdna3_workaround, VICTORY_UPSCALER=7, VICTORY_FIDELITYFX_DIR with the Redstone SDK DLLs, and amdxc64.dll (Proton 11.0) plus amdxcffx64.dll (Proton Hotfix) in system32.

FidelityFX: selected PC upscaler version="4.1.1 *"
FidelityFX: upscaler context on the host provider="4.1.1 *" render=[1280, 720] output=[1920, 1080]

Frame: 76 ms median in a 7,659-draw scene, 32 ms of it on the GPU, about 4 ms more than the title's own upscaler; no device loss in the run.

For whoever tries the other variant: int8 4.0.2c loads too (version="4.0.2c") but fills the frame with white sparkle noise on this card; official 4.1.1 is clean. Neither amd_fidelityfx_upscaler_dx12.dll shipped by STALKER 2 (4.0.2) nor Forza Horizon 6 (4.0.3) is accepted in place of the driver's amdxcffx64.dll — the shim needs that one.

If this is welcome here I can send it as a separate PR against the branch; it is the two hunks above and nothing else.

**@⁠YaBulochka** on GitHub · 2026-11-27 14:51 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221313257) FSR 4 runs under Wine on RDNA3 at the title's own resolution with two small changes. Both are in this branch's own code, no Windows behaviour changes. **1. `VICTORY_PC_FSR=1`: load the PC provider without the 4K preset.** Today `use_host_dir` is only called under `-Fsr4K`, which also forces `VICTORY_DISPLAY_MODE=3840x2160`. This is the same change Belobug #532 makes; it lets Series S stay at 1080p output while FidelityFX serves the upscale. ```rust // apps/victory/src/run.rs, before `let image = if let Some(preset) = fsr {` if fsr.is_none() && execute && std::env::var_os("VICTORY_PC_FSR").is_some_and(|v| v == "1") { let dir = cfg.fidelityfx_dir.as_deref().context( "PC FidelityFX requires amd_fidelityfx_upscaler_dx12.dll. Set VICTORY_FIDELITYFX_DIR or [paths].fidelityfx_dir to its folder.", )?; victory_hle::modules::fidelityfx::use_host_dir(dir) .map_err(anyhow::Error::msg) .with_context(|| format!("loading the PC FSR upscaler from {}", dir.display()))?; } ``` **2. Accept any FSR 4.x provider, not only 4.1.2.** Under Wine the shim reports `4.1.1 *`, so `is_fsr_4_1_2()` rejects the one provider that is there and FSR 4 never loads. `fidelityfx.rs`: keep `is_fsr_4_1_2` as the first choice, fall back to any `4.<minor>.<patch>[letter]` (`4.0.2c` exists too), and allow it in the context-creation check as well. ```rust fn is_fsr_4(name: &str) -> bool { let Some(rest) = name.strip_prefix("4.") else { return false }; let core = rest.trim_end_matches(" *"); let parts: Vec<&str> = core.split('.').collect(); parts.len() == 2 && parts.iter().all(|part| { let digits = part.trim_end_matches(|c: char| c.is_ascii_alphabetic()); !digits.is_empty() && digits.chars().all(|c| c.is_ascii_digit()) }) } ``` **What it ran as here.** RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22, kernel 7.3.5, 30 GB RAM. `FSR4_UPGRADE=1`, `DXIL_SPIRV_CONFIG=wmma_rdna3_workaround`, `VICTORY_UPSCALER=7`, `VICTORY_FIDELITYFX_DIR` with the Redstone SDK DLLs, and `amdxc64.dll` (Proton 11.0) plus `amdxcffx64.dll` (Proton Hotfix) in `system32`. ``` FidelityFX: selected PC upscaler version="4.1.1 *" FidelityFX: upscaler context on the host provider="4.1.1 *" render=[1280, 720] output=[1920, 1080] ``` Frame: 76 ms median in a 7,659-draw scene, 32 ms of it on the GPU, about 4 ms more than the title's own upscaler; no device loss in the run. For whoever tries the other variant: int8 `4.0.2c` loads too (`version="4.0.2c"`) but fills the frame with white sparkle noise on this card; official `4.1.1` is clean. Neither `amd_fidelityfx_upscaler_dx12.dll` shipped by STALKER 2 (4.0.2) nor Forza Horizon 6 (4.0.3) is accepted in place of the driver's `amdxcffx64.dll` — the shim needs that one. If this is welcome here I can send it as a separate PR against the branch; it is the two hunks above and nothing else.
Author
Owner

@⁠ntgata1-dotcom on GitHub · 2026-11-27 15:06 UTC · original

On RDNA 4: RX 9070 XT, Arch Linux, this PR at deebee8

A second card for this PR, beside the RX 7900 GRE.

  • RX 9070 XT 16 GB, Ryzen 9 7900X, 32 GB, Arch Linux (kernel 7.3.5), Mesa RADV 26.3.1
  • Proton Experimental experimental-11.0-20261112 (vkd3d-proton 3.2.0), Microsoft's 64-bit d3dcompiler_47.dll
  • diag build cross-built with cargo-xwin; shaders translated ahead with play.sh --cmd shaders (25,790 in the cache, 195 do not translate)
  • --windowed --no-hud, Enter pressed by --start

Frame times are from the 5-second log lines of world frames in the first scene, grouped by draws a frame:

Launch 2,500+ draws 500-2,500 draws
play.sh --start, first launch (empty pipeline cache) 63.9 ms (15.6 fps), 32 samples 47.0 ms (21.3 fps), 15 samples
play-1080p.sh, second launch 36.2 ms (27.6 fps), 35 samples (p10 27.0, p90 62.1) 26.3 ms (38 fps), 16 samples

The second launch's figures leave out its first ~25 s in the world. Frames there took ~400 ms while the VICTORY_PORT_CBV set's shaders were translated, as the script's comment says. After that, one 5-second window came out at 301 ms. These weren't measured like yours (seconds 140-240 of scripted runs), so they don't compare directly with your 27.1 ms.

What I saw:

  • No crash and no GPU reset in either launch (5 and 5.5 minutes).
  • In the second launch the picture looked right apart from the mouths.
  • Mouths don't move when people speak, in both launches. That's item 11 in docs/linux-wine.md, so it isn't specific to RDNA 3.

AI-assisted (Claude Code). Measured on my own machine; no game data in this comment.

**@⁠ntgata1-dotcom** on GitHub · 2026-11-27 15:06 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221643405) **On RDNA 4: RX 9070 XT, Arch Linux, this PR at `deebee8`** A second card for this PR, beside the RX 7900 GRE. - RX 9070 XT 16 GB, Ryzen 9 7900X, 32 GB, Arch Linux (kernel 7.3.5), Mesa RADV 26.3.1 - Proton Experimental `experimental-11.0-20261112` (vkd3d-proton 3.2.0), Microsoft's 64-bit `d3dcompiler_47.dll` - `diag` build cross-built with cargo-xwin; shaders translated ahead with `play.sh --cmd shaders` (25,790 in the cache, 195 do not translate) - `--windowed --no-hud`, Enter pressed by `--start` Frame times are from the 5-second log lines of world frames in the first scene, grouped by draws a frame: | Launch | 2,500+ draws | 500-2,500 draws | |---|---|---| | `play.sh --start`, first launch (empty pipeline cache) | 63.9 ms (15.6 fps), 32 samples | 47.0 ms (21.3 fps), 15 samples | | `play-1080p.sh`, second launch | **36.2 ms (27.6 fps)**, 35 samples (p10 27.0, p90 62.1) | **26.3 ms (38 fps)**, 16 samples | The second launch's figures leave out its first ~25 s in the world. Frames there took ~400 ms while the `VICTORY_PORT_CBV` set's shaders were translated, as the script's comment says. After that, one 5-second window came out at 301 ms. These weren't measured like yours (seconds 140-240 of scripted runs), so they don't compare directly with your 27.1 ms. What I saw: - No crash and no GPU reset in either launch (5 and 5.5 minutes). - In the second launch the picture looked right apart from the mouths. - **Mouths don't move when people speak, in both launches.** That's item 11 in `docs/linux-wine.md`, so it isn't specific to RDNA 3. *AI-assisted (Claude Code). Measured on my own machine; no game data in this comment.*
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-27 15:11 UTC · original

@⁠borntofrag34 answering (b): the 43 ms was the three PORT_* alone — PORT_CONSTANTS=1, PORT_DESCRIPTORS=1, PORT_CBV=1, no PORT_GUARD, no PORT_JOURNAL. That is exactly play-1080p.sh's set, and it ran 300 s on the 7600 XT.

The int3 (0x80000003 at +0x31f50, 4 s in) came when I added VICTORY_PORT_GUARD=1 and VICTORY_PORT_JOURNAL=1 on top; and separately once with the three PORT_* and CARD_BUFFERS_MIN_KB=64 in a build that also had #434 merged. Since then I took #446 (clear stale constant-buffer descriptors) into the tree, and with it PORT_CONSTANTS=1 ran 7 minutes and then a 30-minute session without the title's int3 or a device loss, at 43 ms in a light scene. So I cannot tie the int3 to PORT_CONSTANTS alone; guard/journal are the only reproducible part.

On VICTORY_WC_NO_BACK=1 from #477: thank you for measuring it. That is the one I want next — our copy-back is 17-19 ms a frame for 7-10 MB, the biggest CPU item left here.

One more data point for the ring timeout: mine are GPUVM fault on a title VA right after vkd3d_memory_transfer_queue_flush_locked: Clearing allocation 0: 65536, then comp_1.x.0 ring timeout -> MES failed to respond to msg=SUSPEND. If deebee8 is the bounds guard for card-steps copies, that fits: we run VICTORY_CARD_STEPS=2 in the preset. I will rebase onto deebee8 and report whether the faults stop.

**@⁠YaBulochka** on GitHub · 2026-11-27 15:11 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221755403) @⁠borntofrag34 answering (b): the 43 ms was the **three `PORT_*` alone** — `PORT_CONSTANTS=1`, `PORT_DESCRIPTORS=1`, `PORT_CBV=1`, no `PORT_GUARD`, no `PORT_JOURNAL`. That is exactly `play-1080p.sh`'s set, and it ran 300 s on the 7600 XT. The `int3` (`0x80000003` at `+0x31f50`, 4 s in) came when I added `VICTORY_PORT_GUARD=1` and `VICTORY_PORT_JOURNAL=1` on top; and separately once with the three `PORT_*` and `CARD_BUFFERS_MIN_KB=64` in a build that also had #434 merged. Since then I took #446 (clear stale constant-buffer descriptors) into the tree, and with it `PORT_CONSTANTS=1` ran 7 minutes and then a 30-minute session without the title's `int3` or a device loss, at 43 ms in a light scene. So I cannot tie the `int3` to `PORT_CONSTANTS` alone; guard/journal are the only reproducible part. On `VICTORY_WC_NO_BACK=1` from #477: thank you for measuring it. That is the one I want next — our copy-back is 17-19 ms a frame for 7-10 MB, the biggest CPU item left here. One more data point for the ring timeout: mine are `GPUVM fault` on a title VA right after `vkd3d_memory_transfer_queue_flush_locked: Clearing allocation 0: 65536`, then `comp_1.x.0 ring timeout` -> `MES failed to respond to msg=SUSPEND`. If `deebee8` is the bounds guard for card-steps copies, that fits: we run `VICTORY_CARD_STEPS=2` in the preset. I will rebase onto `deebee8` and report whether the faults stop.
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 15:15 UTC · original

@⁠ntgata1-dotcom thank you for the RDNA 4 run: a second card with no crash and no GPU reset, 27.6 fps in the heavier frames at 1080p, is what this branch needed. The mouths are fixed since then. e47cce0 (in this PR at 542d441) brings #114 together with the half views of fxceless#927 and the raw typed loads, the three Fedalv described for the 7900 XTX. On the RX 7900 GRE the lips now follow the lines and close between them, at no frame cost. If you rebuild from the current head, your translations will be redone once (the translator version changed).

@⁠YaBulochka yes, please send it as a separate PR against linux-wine-pr. VICTORY_PC_FSR=1 and accepting any FSR 4.x provider are both small, off by default, and the Wine shim's "4.1.1 *" is the case we hit here too (on the RX 7900 GRE the SDK offered "4.1.1 *, 3.1.5, 2.3.4" and the title stopped at start). Your notes on the 4.0.2c int8 path and on which amdxcffx64.dll the shim needs would be worth a line in docs/linux-wine.md in the same PR.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 15:15 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221830996) @⁠ntgata1-dotcom thank you for the RDNA 4 run: a second card with no crash and no GPU reset, 27.6 fps in the heavier frames at 1080p, is what this branch needed. The mouths are fixed since then. `e47cce0` (in this PR at `542d441`) brings #114 together with the half views of fxceless#927 and the raw typed loads, the three Fedalv described for the 7900 XTX. On the RX 7900 GRE the lips now follow the lines and close between them, at no frame cost. If you rebuild from the current head, your translations will be redone once (the translator version changed). @⁠YaBulochka yes, please send it as a separate PR against `linux-wine-pr`. `VICTORY_PC_FSR=1` and accepting any FSR 4.x provider are both small, off by default, and the Wine shim's "4.1.1 *" is the case we hit here too (on the RX 7900 GRE the SDK offered "4.1.1 *, 3.1.5, 2.3.4" and the title stopped at start). Your notes on the `4.0.2c` int8 path and on which `amdxcffx64.dll` the shim needs would be worth a line in `docs/linux-wine.md` in the same PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
XMem reports every protection the title asks for; copies up (refreshes,
copies, fills, placed steps) and copies back are counted by whether their
title memory was asked for as write-combined, uncached or cached, in one
line beside the frame line. Off by default: no cost unless set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit cab8a6d5841e165173691f283c6d6c17d6b4611a)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit a78f7887019635fd5a94055953628605f9d107db)
The console's CPU does not read write-combined memory back, and in a busy
scene (belorx_8) all of the copy-back went there. Such ranges (64 KiB and
up, VICTORY_WC_NO_BACK_MIN_KB) are not declared as written, from lists and
from picked views: no snapshot, compare or copy back. They are noted as the
card's on their copy, and a refresh that cannot tell what the CPU wrote
(memory not watched) leaves them out; where watched, pages the CPU writes
are still sent up. Off by default; counted on the VICTORY_WC_STATS line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 8b12def5c848c1f990a2e30d3882e05288f98c31)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 5cd64b22f9fc44278c7ff7e4729c5b84c5338c89)
After fxceless/victory-fork issue #1169's read census. With
VICTORY_WC_NO_BACK=1, the ranges whose shaders' writes stay on the card
are kept in one set; once a second their 4 KiB pages get PAGE_GUARD,
holding the write guards' lock alone and never on a block those guards
keep read-only or the kernel is writing for the title (kernel_writing
takes the census's guards off). A first handler counts each guard hit:
our tagged paths (copy and texture refreshes, our copies), the title's
reads and writes inside the ranges by instruction (named by module on the
line), and touches beside them in a guarded page. Measurement only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit eb088aaffe58f8cafff63d870a1207f2f616c367)
A refresh of a part the CPU wrote sent it up whole from title memory,
which under VICTORY_WC_NO_BACK holds older bytes than the card beside the
CPU's own: those went over what shaders wrote. card_owns now marks the copy
keep_stores (the dword-exact path of VICTORY_SEND_CHANGED, for that copy):
the CPU's side holds what title memory held, as nothing comes back. A
value written over the same value is not seen. The VICTORY_WC_NO_BACK line
also counts refreshes that left such ranges out because the memory is not
watched (what the CPU wrote there does not go up), and bytes left to copies
not in the card's memory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 79c95664332b758b1e571a4f6546863026aed586)
Where the memory is not write-watched a refresh cannot tell what the CPU
wrote there, and left the card's ranges out: what the CPU wrote never went
up (295-576 such refreshes a frame in run belorx_11). A copy in host memory
holds what shaders wrote itself, and a refresh of a part the CPU wrote went
over it. Both are copied back as before now, and counted on the line.
The dword-exact sending of dabd381a is its own switch,
VICTORY_WC_KEEP_STORES=1, off: it does not see a value written over the
same value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 0834177e0d921452a3d26fe3f96606ec0caefe57)
shadow::card_dirty asked every copy in the card's memory at every submission:
some 3,450 copies, 28 times a frame, where about 130 had changed. Sampled under
Wine it was 6.9 % of the submitting thread's time (VICTORY_PROFILE, run 123),
the largest single function of ours there.

A copy now lists itself when something is put into its dirty ranges, and with
VICTORY_CARD_TOUCHED=1 only the listed ones are asked, in the order of their
title addresses; the dead ones go from the list of all once in 4,096 askings.
Unset, every copy is asked as before, so Windows is unchanged. Under
diagnostics VICTORY_AB can turn it while the title runs: the list is kept
either way.

By turns of 10 s in one run on the Linux branch without main (run 124,
RX 7900 GRE): the thread's time for these copies 2.60 -> 1.30 ms a frame, its
work 23.7 -> 22.6 ms; the frame 27.2 -> 26.0 ms, within what the scene moves it
by between phases. On this branch, a run with it against one without (runs
132 and 131): 1.3 against 2.5 ms a frame for these copies.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
VICTORY_WC_NO_BACK is Belobug/VIctory-Belobug-AMD pull request 477, by
icecreammule277-dot (the seven commits before these two). On this branch, the
launcher's other settings, 200 s read from second 100, one run each: 38.0 ms a
frame without (run 130), 33.8 with (run 131), the submitting thread working
33.5 and 27.0 ms of them. With both settings the kept frames of the world are
whole pictures, faces too (run 132).

docs/linux-wine.md: items 12 (VICTORY_WC_NO_BACK), 13 (where the submitting
thread's time goes, VICTORY_CARD_TOUCHED, and what was tried and not kept) and
14 (this branch is slower than the Linux branch alone: not looked for yet).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 15:49 UTC · original

Two additions to this branch (now at 1d4c13d), both set by scripts/play-1080p.sh:

VICTORY_WC_NO_BACK=1 is in now: the seven commits of Belobug/VIctory-Belobug-AMD#477 by @⁠icecreammule277-dot, picked as they are with their author. Thank you for it: it is the largest single gain measured on this branch. What shaders write into title memory the title asked for as write-combined stays on the card instead of being copied back.

this branch, RX 7900 GRE, RADV 26.3.1, 1920x1080, 200 s read from second 100 ms a frame the submitting thread works
before (3721030) 38.0 33.5 ms
with VICTORY_WC_NO_BACK=1 33.8 27.0 ms

One run each, in the opening cutscene; the frames kept of the run with it are whole pictures, faces too. @⁠YaBulochka, this is the one you asked for first: on your card the copy back was the largest item, so the gain there may well be larger than here.

VICTORY_CARD_TOUCHED=1 is new: at every submission (28 a frame) the layer asked each of the 3,450 copies it keeps in the card's memory whether it had changed, where some 130 had. It now asks only the ones marked as changed. Found with VICTORY_PROFILE under Wine, where that one function was 6.9 % of the submitting thread's samples. By turns of 10 s in one run: its time for these copies 2.60 -> 1.30 ms a frame. Small, and unset it changes nothing.

Also in docs/linux-wine.md (items 12 to 14): what was tried the same day and not kept (the Series S profile, two presents in the line, joined parts sent in one call), and that a thread priority asked above normal changes nothing on a default Linux setup, since Wine may not raise one (Max nice priority 0).

Thanks as well to @⁠UwUCammie for the two fixes merged earlier (the card-step bounds and the pipeline workers' handle groups), and to @⁠Fedalv for #351.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 15:49 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7222531308) Two additions to this branch (now at 1d4c13d), both set by `scripts/play-1080p.sh`: **`VICTORY_WC_NO_BACK=1`** is in now: the seven commits of Belobug/VIctory-Belobug-AMD#477 by @⁠icecreammule277-dot, picked as they are with their author. Thank you for it: it is the largest single gain measured on this branch. What shaders write into title memory the title asked for as write-combined stays on the card instead of being copied back. | this branch, RX 7900 GRE, RADV 26.3.1, 1920x1080, 200 s read from second 100 | ms a frame | the submitting thread works | |---|---|---| | before (3721030) | 38.0 | 33.5 ms | | with `VICTORY_WC_NO_BACK=1` | 33.8 | 27.0 ms | One run each, in the opening cutscene; the frames kept of the run with it are whole pictures, faces too. @⁠YaBulochka, this is the one you asked for first: on your card the copy back was the largest item, so the gain there may well be larger than here. **`VICTORY_CARD_TOUCHED=1`** is new: at every submission (28 a frame) the layer asked each of the 3,450 copies it keeps in the card's memory whether it had changed, where some 130 had. It now asks only the ones marked as changed. Found with `VICTORY_PROFILE` under Wine, where that one function was 6.9 % of the submitting thread's samples. By turns of 10 s in one run: its time for these copies 2.60 -> 1.30 ms a frame. Small, and unset it changes nothing. Also in `docs/linux-wine.md` (items 12 to 14): what was tried the same day and not kept (the Series S profile, two presents in the line, joined parts sent in one call), and that a thread priority asked above normal changes nothing on a default Linux setup, since Wine may not raise one (`Max nice priority 0`). Thanks as well to @⁠UwUCammie for the two fixes merged earlier (the card-step bounds and the pipeline workers' handle groups), and to @⁠Fedalv for #351. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Item 14 said this branch was 6 ms a frame slower than the Linux branch without
main. That compared runs that kept every eighth frame of the world as a
picture (VICTORY_CAPTURE_WORLD=1) with runs that did not, and keeping them
costs several ms a frame. In turn, 200 s each, no frames kept (runs 133 to
136): 31.1 and 27.0 ms a frame here, 26.6 and 27.9 there. The mistake was mine.

scripts/play-1080p.sh: VICTORY_WC_NO_BACK's gain as a difference (both of its
runs kept frames), not as two levels.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 16:07 UTC · original

I pulled 1d4c13d into my 720p benchmark build. The dirty-range test passed with VICTORY_CARD_TOUCHED off and on on the RX 7900 XT (RADV 26.3.1, Wine 11.22, vkd3d-proton 71cae091). It checks writes made before registration, overlapping ranges, and writes made after a scan has drained them.

I’m measuring this one switch first, with write-back on in both runs. Both will start from a fresh story and empty graphics caches and count every stall in the first 300 seconds. Test source

**@⁠UwUCammie** on GitHub · 2026-11-27 16:07 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7222889474) I pulled `1d4c13d` into my 720p benchmark build. The dirty-range test passed with `VICTORY_CARD_TOUCHED` off and on on the RX 7900 XT (RADV 26.3.1, Wine 11.22, vkd3d-proton `71cae091`). It checks writes made before registration, overlapping ranges, and writes made after a scan has drained them. I’m measuring this one switch first, with write-back on in both runs. Both will start from a fresh story and empty graphics caches and count every stall in the first 300 seconds. [Test source](https://github.com/UwUCammie/VIctory-7900XTX/commit/8687cd22)
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 16:09 UTC · original

A correction to my comment above, about the table.

The two figures in it (38.0 and 33.8 ms a frame) are both from runs that also kept every eighth frame of the world as a picture (VICTORY_CAPTURE_WORLD=1, to look at faces afterwards). Keeping them costs several ms a frame, so both levels are too high. The difference between them, about 4 ms for VICTORY_WC_NO_BACK=1, stands: both runs paid the same cost.

Without keeping frames, this branch at 1d4c13d, 200 s read from second 100, two runs: 31.1 and 27.0 ms a frame (32 to 37 frames a second), the submitting thread working 22.2 and 19.1 ms. That is the level to expect on an RX 7900 GRE in the opening cutscene.

The branch's docs/linux-wine.md said for a few minutes that it was 6 ms slower than my Linux branch without main: wrong, the same mistake, corrected in 89d93e2. In turn and without kept frames the two are not told apart (26.6 and 27.9 ms there).

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 16:09 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7222921556) A correction to my comment above, about the table. The two figures in it (38.0 and 33.8 ms a frame) are both from runs that also kept every eighth frame of the world as a picture (`VICTORY_CAPTURE_WORLD=1`, to look at faces afterwards). Keeping them costs several ms a frame, so both levels are too high. The difference between them, about 4 ms for `VICTORY_WC_NO_BACK=1`, stands: both runs paid the same cost. Without keeping frames, this branch at 1d4c13d, 200 s read from second 100, two runs: 31.1 and 27.0 ms a frame (32 to 37 frames a second), the submitting thread working 22.2 and 19.1 ms. That is the level to expect on an RX 7900 GRE in the opening cutscene. The branch's `docs/linux-wine.md` said for a few minutes that it was 6 ms slower than my Linux branch without main: wrong, the same mistake, corrected in 89d93e2. In turn and without kept frames the two are not told apart (26.6 and 27.9 ms there). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-27 16:20 UTC · original

A follow-up on FSR 4 with the PC provider at the title's resolution, because I think I found why it looks noisy.

The host dispatch gets no jitter and no masks. From the log of a run with VICTORY_PC_FSR=1, FSR 4.1.1 on RDNA3:

FidelityFX 4 recorded the title's temporal dispatch
  render=[1280, 720] output=[1920, 1080]
  backing_extents=[Some((1280,720)), Some((1280,720)), Some((1280,720)), None, None, None, Some((1920,1080))]
  jitter=[-0.0, -0.0]
  motion_vector_scale=[1.0, 1.0]
  first upscaling, host formats of its textures formats=[10, 19, 34, 67]

So colour, depth and motion vectors arrive, but jitter is 0.0 and three resource slots (exposure, reactive mask, transparency mask) are absent. FSR 4 is a temporal ML upscaler: with a zero jitter it never gets a second sample, and without the transparency/reactive mask it treats additive particles and transparent surfaces as solid, stable geometry. Its history then carries noise instead of resolving it.

What that looks like in game: bright red-white "sparkles" over the car body and glass whenever the car's own dust/smoke particles are on screen (the brake-light reflection is just what makes them red). The same drive with VICTORY_UPSCALER=6 (title's own upscaler) is clean, frame for frame. The pesticide spray from the plane is clean even with FSR 4, so it is not every particle, only the ones that pass through the upscaler's history.

Two likely causes, and I cannot tell which without the title's side:

  1. the console FidelityFX call this build makes really does pass zero jitter and no masks (its TAA may own the jitter, and the Xbox entry point may not fill exposure/reactive/transparency at this title's settings), or
  2. our HLE maps the console's resource slots to the PC provider's slots wrongly, so masks that the title does pass land in None.

Question: is the slot order in DispatchUpscale::resources known to match the console's ffxDispatch order for this FidelityFX version, and is jitter expected to be the title's TAA jitter or the upscaler's own? If you tell me which, I can dump the raw dispatch (jitter, motion scale, and the formats of all seven slots) for a few frames with particles on screen.

Until then UPSCALER=6 is the honest setting on this card: FSR 4 is sharper but leaves the particles noisy.

**@⁠YaBulochka** on GitHub · 2026-11-27 16:20 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7223134906) A follow-up on FSR 4 with the PC provider at the title's resolution, because I think I found why it looks noisy. **The host dispatch gets no jitter and no masks.** From the log of a run with `VICTORY_PC_FSR=1`, FSR 4.1.1 on RDNA3: ``` FidelityFX 4 recorded the title's temporal dispatch render=[1280, 720] output=[1920, 1080] backing_extents=[Some((1280,720)), Some((1280,720)), Some((1280,720)), None, None, None, Some((1920,1080))] jitter=[-0.0, -0.0] motion_vector_scale=[1.0, 1.0] first upscaling, host formats of its textures formats=[10, 19, 34, 67] ``` So colour, depth and motion vectors arrive, but `jitter` is **0.0** and three resource slots (exposure, reactive mask, transparency mask) are **absent**. FSR 4 is a temporal ML upscaler: with a zero jitter it never gets a second sample, and without the transparency/reactive mask it treats additive particles and transparent surfaces as solid, stable geometry. Its history then carries noise instead of resolving it. **What that looks like in game:** bright red-white "sparkles" over the car body and glass whenever the car's own dust/smoke particles are on screen (the brake-light reflection is just what makes them red). The same drive with `VICTORY_UPSCALER=6` (title's own upscaler) is clean, frame for frame. The pesticide spray from the plane is clean even with FSR 4, so it is not every particle, only the ones that pass through the upscaler's history. Two likely causes, and I cannot tell which without the title's side: 1. the console FidelityFX call this build makes really does pass zero jitter and no masks (its TAA may own the jitter, and the Xbox entry point may not fill exposure/reactive/transparency at this title's settings), or 2. our HLE maps the console's resource slots to the PC provider's slots wrongly, so masks that the title does pass land in `None`. Question: is the slot order in `DispatchUpscale::resources` known to match the console's `ffxDispatch` order for this FidelityFX version, and is `jitter` expected to be the title's TAA jitter or the upscaler's own? If you tell me which, I can dump the raw dispatch (jitter, motion scale, and the formats of all seven slots) for a few frames with particles on screen. Until then `UPSCALER=6` is the honest setting on this card: FSR 4 is sharper but leaves the particles noisy.
(cherry picked from commit c546f849c19414365f61b0f66c52b587292550ec)
(cherry picked from commit 1a90bf03b9fa08fcb6b159d391e68686338de481)
(cherry picked from commit e1309cb71bea8f17c9c431144aba64c88334b8dd)
(cherry picked from commit 3407f67b23)
(cherry picked from commit 8a86a45a01)
(cherry picked from commit 3345a6de23)
(cherry picked from commit 14cdb13369)
Adapt the preflight fix from cwWwWwW in fxceless/victory-fork#1460 to the split physical page table. The regression also requests a different valid first page so a partial remap cannot pass.
Adapt avatarmanz/VIctory-7900XTX#457 to the Wine branch.
(cherry picked from commit f5f3c6cb2dfd2533acc162e3cda988472bb9a567)
v_cmp_f_{f32,f16} and v_cmp_tru_{f32,f16} lowered to fcmp false and
fcmp true (predicates 0 and 15). DXC folds those away, so drivers never
see them from it, and WARP removes its device at the first dispatch of
a pipeline that has one ("The GPU device instance has been suspended").
The hardware adapter (RTX 5080) runs them. A removed WARP device stays
removed for the process, so everything after it fails too.

They are false and true whatever the operands, NaNs included (RDNA2
ISA), so they now lower as constants, as the integer v_cmp_f/v_cmp_t
already do. FALSE and TRUE stay in the predicate table, unused.

Found with a sweep of every 32-bit VALU instruction on the hardware
adapter against WARP: all 62 compares now run and agree on both.

Test: float_compares_that_are_always_false_or_true, f32 and f16 with
ordinary and NaN operands, on the hardware adapter and WARP. On main
WARP's dispatch fails with the device suspended.

(cherry picked from commit e3ee55bdbd)
(cherry picked from commit b004cdecd4e4a89f144ecf65e52f7dcf30fa8c8a)
Adapt the source snapshot from fxceless/victory-fork#1460 (378a0e05) to the split Wine page table and its batched mapper. Resolve each range before modifying any of its destination pages.
Carry the raster wait reservation fix from 47767768 to the Wine branch. Apply the same frame ordering to the compute deadline so a late recorder cannot restart the current frame wait.
(cherry picked from commit af8ae075e2c955ee8ecd9999310337bbbe1036e7)
(cherry picked from commit 33c9041f26284d16401a057992be69a6ac94b5b0)
(cherry picked from commit d166203352a1d15e749e0407b8587abd33b0f033)
(cherry picked from commit bbf71d6e6826c31a3d0d72ba311de04c63f48dd9)
(cherry picked from commit d34baaceb6f230c7cf3a1421d429fc6827de4abd)
# Conflicts:
#	crates/victory-shader/src/lib.rs
# Conflicts:
#	crates/victory-gpu/src/pipeline/make.rs
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 16:27 UTC · original

The shim uses the same seven-slot order as the public PC header. On a dispatch the provider accepts, it replaces each non-null texture with its host equivalent in the same slot. If an input is present but can’t be resolved, the shim returns an error. So those Nones mean the shim read nulls at those offsets. The bridge still assumes the console layout matches the PC layout there.

Jitter is copied from the incoming dispatch. The AMD SDK expects the offset already applied when rendering the input frame. The current log only shows the first successful dispatch per context, so one zero sample doesn’t tell us what happened during the drive. A short summary during the smoke would help: how many frames had nonzero jitter, and how many supplied exposure, reactive, or transparency inputs. Presence counts are enough. PC header · AMD jitter guidance

**@⁠UwUCammie** on GitHub · 2026-11-27 16:27 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7223289860) The shim uses the same seven-slot order as the public PC header. On a dispatch the provider accepts, it replaces each non-null texture with its host equivalent in the same slot. If an input is present but can’t be resolved, the shim returns an error. So those `None`s mean the shim read nulls at those offsets. The bridge still assumes the console layout matches the PC layout there. Jitter is copied from the incoming dispatch. The AMD SDK expects the offset already applied when rendering the input frame. The current log only shows the first successful dispatch per context, so one zero sample doesn’t tell us what happened during the drive. A short summary during the smoke would help: how many frames had nonzero jitter, and how many supplied exposure, reactive, or transparency inputs. Presence counts are enough. [PC header](https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK/blob/main/Kits/FidelityFX/upscalers/include/ffx_upscale.h) · [AMD jitter guidance](https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK/blob/main/Kits/FidelityFX/docs/techniques/super-resolution-upscaler.md#jittering)
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-27 16:37 UTC · original

Correction to my own report above, with the summary they asked for: the jitter is fine. The jitter=[-0.0, -0.0] I quoted was only the first dispatch (the log prints one line per context). I added a summary every 600 dispatches and among a normal drive:

FidelityFX: jitter over the last dispatches (x,y): 0 is no offset at all
  dispatches=600  moving=564  largest=0.490
  dispatches=600  moving=567  largest=0.490

So ~94 % of dispatches carry a sub-pixel offset, up to 0.49 px — the title does apply jitter and we pass it through. Scratch point 1 of my previous comment.

What stays is the masks: exposure, reactive and transparency are None in the dispatch here, so the console call really passes nulls at those offsets (as @⁠UwUCammie said, the shim only sees nulls). And the behaviour fits that: with the same null masks,

  • FSR 4.1.1 sparkles on additive particles (dust/smoke from the car) — red-white dots that stay in the history; VICTORY_UPSCALER=6 is clean frame for frame;
  • FSR 3.1.5 (same provider path, VICTORY_FSR_VERSION=3.1.5) is clean on the same drive, just softer. It also gets null masks, so the ML upscaler is the sensitive one.

So the practical split for this title is: FSR 3.1.5 = clean, FSR 4.1.1 = sharper but sparkles on particles, the title's own upscaler = worst of the three but no temporal component at all.

Frame time here (7600 XT, 720p -> 1080p, heavy street): FSR 4.1.1 62-76 ms, FSR 3.1.5 103-106 ms in that spot, so 4.1.1 is also cheaper. Not a controlled comparison yet — different traffic in the scene — but the direction is clear.

If a reactive/transparency mask can be synthesised cheaply (the ambient stand-in already knows which pixels are particles? probably not), FSR 4 might become usable. Otherwise 3.1.5 is the honest default on this card.

The patch that produced the summary is in my fork (asked_version, note_jitter), if you want it in the branch for future FSR work.

**@⁠YaBulochka** on GitHub · 2026-11-27 16:37 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7223474434) Correction to my own report above, with the summary they asked for: **the jitter is fine.** The `jitter=[-0.0, -0.0]` I quoted was only the first dispatch (the log prints one line per context). I added a summary every 600 dispatches and among a normal drive: ``` FidelityFX: jitter over the last dispatches (x,y): 0 is no offset at all dispatches=600 moving=564 largest=0.490 dispatches=600 moving=567 largest=0.490 ``` So ~94 % of dispatches carry a sub-pixel offset, up to 0.49 px — the title does apply jitter and we pass it through. Scratch point 1 of my previous comment. What stays is the masks: exposure, reactive and transparency are `None` in the dispatch here, so the console call really passes nulls at those offsets (as @⁠UwUCammie said, the shim only sees nulls). And the behaviour fits that: with the same null masks, - **FSR 4.1.1** sparkles on additive particles (dust/smoke from the car) — red-white dots that stay in the history; `VICTORY_UPSCALER=6` is clean frame for frame; - **FSR 3.1.5** (same provider path, `VICTORY_FSR_VERSION=3.1.5`) is **clean** on the same drive, just softer. It also gets null masks, so the ML upscaler is the sensitive one. So the practical split for this title is: FSR 3.1.5 = clean, FSR 4.1.1 = sharper but sparkles on particles, the title's own upscaler = worst of the three but no temporal component at all. Frame time here (7600 XT, 720p -> 1080p, heavy street): FSR 4.1.1 62-76 ms, FSR 3.1.5 103-106 ms in that spot, so 4.1.1 is also cheaper. Not a controlled comparison yet — different traffic in the scene — but the direction is clear. If a reactive/transparency mask can be synthesised cheaply (the ambient stand-in already knows which pixels are particles? probably not), FSR 4 might become usable. Otherwise 3.1.5 is the honest default on this card. The patch that produced the summary is in my fork (`asked_version`, `note_jitter`), if you want it in the branch for future FSR work.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 16:49 UTC · original

Thanks for checking the longer window. The two samples confirm that the shim passes the title’s jitter through during the drive. The clean 3.1.5 result on the same provider path is useful too. I’d keep explicit provider selection separate from generating a reactive mask. AMD’s helper needs both the opaque-only color buffer and the composited color buffer, and this bridge currently receives just one color input. AMD reactive-mask guidance

**@⁠UwUCammie** on GitHub · 2026-11-27 16:49 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7223716603) Thanks for checking the longer window. The two samples confirm that the shim passes the title’s jitter through during the drive. The clean 3.1.5 result on the same provider path is useful too. I’d keep explicit provider selection separate from generating a reactive mask. AMD’s helper needs both the opaque-only color buffer and the composited color buffer, and this bridge currently receives just one color input. [AMD reactive-mask guidance](https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK/blob/main/Kits/FidelityFX/docs/techniques/super-resolution-upscaler.md#automatically-generating-reactivity)
This pull request can be merged automatically.
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/440/head:github-bot/gh-440'
git switch 'github-bot/gh-440'

Merge

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