Series S: the second present plane, and a plain stretch for the upscale dispatch #188

Open
github-bot wants to merge 9 commits from github-bot/gh-188 into main AGit
Owner

@⁠sagouindupm on GitHub · 2026-11-24 22:21 UTC · original
sagouindupm:series-s-pr → main · +1113 −9 · 9 files · 9 commits · open

Update (8dd30ab): main now carries the R9G9B9E5 stand-in itself, so after the merge of main this PR no longer changes resource.rs. What it adds is the second present plane, the stand-in stretch for the upscale dispatch and their tests; the two commits of #32 are still in the branch's history but change nothing against main.

Gets the Series S mode (--console series-s) from a black window to a rendered world on an 8 GB NVIDIA card. Stacked on #32 (its two commits are the first two here, unchanged, by their author); the commits after them are this PR's.

Merge order: #32 first, then this. Once #32 is merged I rebase this branch onto main, which leaves only this PR's own commits; if this is merged first instead, #32's two commits come in with it and #32 can be closed as merged. Please do not merge both as they stand.

What is in it

  • crates/victory-gpu/src/over.rs (new), host.rs, queue.rs: a present's second plane is drawn over the first. In Series S mode the title presents two planes (game image 1920x1080, interface 3840x2160 with alpha 0 where empty) and only the first was shown, so menus and loading screens were black. The second plane is drawn after the copy of the first, stretched to the back buffer and blended by its alpha (taken as premultiplied). Its views are kept in a ring, so presents sent ahead keep theirs.
  • crates/victory-hle/src/modules/ffx.rs (new), apps/victory/src/run.rs, crates/victory-gpu/src/list.rs: the executable's import of ffxDispatch is bound to ours. An upscale dispatch (type 0x10001, the public FidelityFX API layout; the title renders 1280x720 and asks for 1920x1080) becomes a compute pass that writes the output from bilinear samples of the colour input, then replays the list's state. Any other dispatch, and an upscale that cannot be stretched, goes to the title's own DLL. The console upscaler's passes are not translated ("falling back to NewBE" in the title's log), so its output was never written and the world was black behind the interface.

Tested

  • NVIDIA GeForce RTX 3050 8 GB, Intel Core i5-12400F, 32 GB RAM, Windows 11 Pro 26200, Rust 1.98.1.

  • Runs were made on 8f3f488 (these commits before the rebase onto current main; the rebase brought in only the two lane-mask commits):

    • release build, --console series-s, about five minutes: menus and loading at 30 fps; the opening cutscene renders at 0.4 to 1.2 s a frame with peaks of 3 s; the card about a quarter busy; 7 GB of video memory; no host error.
    • diag build with VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1, same mode, about five minutes: no debug-layer message, no device removal.
    • Series X on the same machine before these commits' last one: world renders at 2 to 7 s a frame (for comparison, not a test of this change).
  • After the rebase (66804e3, now 19a0240: the same tree, commit messages rewritten): cargo check --release -p victory passes; cargo test --release -p victory-gpu -p victory-hle: 110 passed, 0 failed, 1 ignored and 95 passed, 0 failed, plus no_dll_planting 1 passed.

  • After the review (82231c3): cargo test --release -p victory-gpu -p victory-hle: 113 passed, 0 failed, 1 ignored and 97 passed, 0 failed, plus no_dll_planting 1 passed. One release run with --console series-s, about 3.5 minutes: both passes fire, the world renders, no host error.

  • After c022e4d (explicit root signatures): cargo test --release -p victory-gpu --lib: 114 passed, 0 failed, 1 ignored, three times; an earlier run of the whole test binary ended in an access violation once and did not again. One release run with --console series-s, about 3 minutes: both passes fire, menus and the world render, no host error.

  • 03d1791 (by Filip722) adds a GPU read-back test of both passes; with it cargo test --release -p victory-gpu --lib: 115 passed, 0 failed, 1 ignored. Filip722 confirmed c022e4d under Proton (thread below).

Not tested

  • Wine / Proton: not run here. The two root signatures are serialized by the runtime since c022e4d (the compiler there writes none into the shader, reported in the thread below); the HLSL itself still goes through host::compile.
  • Series X after the last commit (it does not dispatch the upscaler in the runs made, but that was not rerun).
  • AMD and Intel cards; any card other than the one above.
  • Gameplay past the opening cutscene; planes after the second; a plane's placement parameters.
  • The stretch has no temporal accumulation or sharpening and ignores the depth and motion inputs: edges are aliased and the jitter the title applies is visible.

Related

  • Marvisak/VIctory#211 composites every plane on upstream's present path; it did not apply here (it conflicts with presents sent ahead), which is why this has its own pass.
  • Marvisak/VIctory#1284 (PC FSR) and #1704 (DLSS) answer the same dispatch with a real upscaler; the stretch is a stand-in until one of them fits this tree.

AI use

  • Claude Code with Claude Fable 5.2 wrote this PR's commits and this description and made the runs above.

🤖 Generated with Claude Code

**@⁠sagouindupm** on GitHub · 2026-11-24 22:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/188) `sagouindupm:series-s-pr` → `main` · +1113 −9 · 9 files · 9 commits · open > **Update (`8dd30ab`):** `main` now carries the R9G9B9E5 stand-in itself, so after the merge of `main` this PR no longer changes `resource.rs`. What it adds is the second present plane, the stand-in stretch for the upscale dispatch and their tests; the two commits of #32 are still in the branch's history but change nothing against `main`. Gets the Series S mode (`--console series-s`) from a black window to a rendered world on an 8 GB NVIDIA card. Stacked on #32 (its two commits are the first two here, unchanged, by their author); the commits after them are this PR's. **Merge order:** #32 first, then this. Once #32 is merged I rebase this branch onto `main`, which leaves only this PR's own commits; if this is merged first instead, #32's two commits come in with it and #32 can be closed as merged. Please do not merge both as they stand. **What is in it** - `crates/victory-gpu/src/over.rs` (new), `host.rs`, `queue.rs`: a present's second plane is drawn over the first. In Series S mode the title presents two planes (game image 1920x1080, interface 3840x2160 with alpha 0 where empty) and only the first was shown, so menus and loading screens were black. The second plane is drawn after the copy of the first, stretched to the back buffer and blended by its alpha (taken as premultiplied). Its views are kept in a ring, so presents sent ahead keep theirs. - `crates/victory-hle/src/modules/ffx.rs` (new), `apps/victory/src/run.rs`, `crates/victory-gpu/src/list.rs`: the executable's import of `ffxDispatch` is bound to ours. An upscale dispatch (type `0x10001`, the public FidelityFX API layout; the title renders 1280x720 and asks for 1920x1080) becomes a compute pass that writes the output from bilinear samples of the colour input, then replays the list's state. Any other dispatch, and an upscale that cannot be stretched, goes to the title's own DLL. The console upscaler's passes are not translated ("falling back to NewBE" in the title's log), so its output was never written and the world was black behind the interface. **Tested** - NVIDIA GeForce RTX 3050 8 GB, Intel Core i5-12400F, 32 GB RAM, Windows 11 Pro 26200, Rust 1.98.1. - Runs were made on `8f3f488` (these commits before the rebase onto current `main`; the rebase brought in only the two lane-mask commits): - release build, `--console series-s`, about five minutes: menus and loading at 30 fps; the opening cutscene renders at 0.4 to 1.2 s a frame with peaks of 3 s; the card about a quarter busy; 7 GB of video memory; no host error. - diag build with `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1`, same mode, about five minutes: no debug-layer message, no device removal. - Series X on the same machine before these commits' last one: world renders at 2 to 7 s a frame (for comparison, not a test of this change). - After the rebase (`66804e3`, now `19a0240`: the same tree, commit messages rewritten): `cargo check --release -p victory` passes; `cargo test --release -p victory-gpu -p victory-hle`: 110 passed, 0 failed, 1 ignored and 95 passed, 0 failed, plus `no_dll_planting` 1 passed. - After the review (`82231c3`): `cargo test --release -p victory-gpu -p victory-hle`: 113 passed, 0 failed, 1 ignored and 97 passed, 0 failed, plus `no_dll_planting` 1 passed. One release run with `--console series-s`, about 3.5 minutes: both passes fire, the world renders, no host error. - After `c022e4d` (explicit root signatures): `cargo test --release -p victory-gpu --lib`: 114 passed, 0 failed, 1 ignored, three times; an earlier run of the whole test binary ended in an access violation once and did not again. One release run with `--console series-s`, about 3 minutes: both passes fire, menus and the world render, no host error. - `03d1791` (by Filip722) adds a GPU read-back test of both passes; with it `cargo test --release -p victory-gpu --lib`: 115 passed, 0 failed, 1 ignored. Filip722 confirmed `c022e4d` under Proton (thread below). **Not tested** - Wine / Proton: not run here. The two root signatures are serialized by the runtime since `c022e4d` (the compiler there writes none into the shader, reported in the thread below); the HLSL itself still goes through `host::compile`. - Series X after the last commit (it does not dispatch the upscaler in the runs made, but that was not rerun). - AMD and Intel cards; any card other than the one above. - Gameplay past the opening cutscene; planes after the second; a plane's placement parameters. - The stretch has no temporal accumulation or sharpening and ignores the depth and motion inputs: edges are aliased and the jitter the title applies is visible. **Related** - Marvisak/VIctory#211 composites every plane on upstream's present path; it did not apply here (it conflicts with presents sent ahead), which is why this has its own pass. - Marvisak/VIctory#1284 (PC FSR) and #1704 (DLSS) answer the same dispatch with a real upscaler; the stretch is a stand-in until one of them fits this tree. **AI use** - Claude Code with Claude Fable 5.2 wrote this PR's commits and this description and made the runs above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
No PC GPU renders to R9G9B9E5, so CreateRenderTargetView on such a
target removes the device. Add it to the existing stand-in table, next
to the 16-bit colour formats.

(cherry picked from commit 7dc19f21f1)
(cherry picked from commit 9ba864a83e)
Two passes of ours for the title's Series S mode, in a new module `over`.

A present there has two planes: the game image at 1920x1080 and the
interface at 3840x2160, empty texels zero with alpha zero. Only the first
plane's first resource was shown, so the window was black through the menus
and loading screens. The second plane (its description 0x48 bytes after the
first, laid out the same) is now drawn over the back buffer after the copy
of the first: one triangle, the plane sampled across the whole buffer,
blended by its alpha, taken as premultiplied.

`list::upscale_stretch` records, on a title list, a compute pass that writes
a texture from the bilinear samples of the top-left part of another, then
replays the list's state. It is what the upscale dispatch is given in place
of the console upscaler (next commit).

Measured on an RTX 3050 8 GB, Windows 11: with `--console series-s` the
menus and loading screens are visible at 30 fps where the window was black.
One plane behaves as before. No test yet; planes after the second and a
plane's placement parameters are not read.
In its Series S mode the title renders at 1280x720 and calls the console's
FidelityFX upscaler (`ffxDispatch` of amd_fidelityfx_loader_xbox.dll) to make
the 1920x1080 output. The loader and upscaler are the title's own DLLs and
run, but the upscaler's passes are compute pipelines in a container that is
not translated ("falling back to NewBE" in the title's log), so the output
was never written: the world was black behind the interface.

The executable's import of `ffxDispatch` is now bound to ours. An upscale
dispatch (type 0x10001, the public FidelityFX API's layout) is recorded as
`victory_gpu::list::upscale_stretch` of its colour input into its output;
any other dispatch, and an upscale that could not be stretched, goes to the
title's DLL. The DLL is not registered as an HLE module: that kept the
title's own from loading and left its other three entry points missing.

Measured on an RTX 3050 8 GB, Windows 11, release build, on top of the
R9G9B9E5 stand-in (#32): the Series S world renders (opening cutscene), 0.4
to 1.2 s a frame with peaks of 3 s, the card about a quarter busy, 7 GB of
video memory, no host error in a five-minute run. Series X is not affected
in the run made (it does not dispatch the upscaler).

Not done: temporal accumulation, sharpening, use of the depth and motion
inputs. No test yet. Only the opening cutscene was looked at.
What the review of #188 asked for.

- over.rs: the stretch's groups are 8 by 8 and reach past a target whose
  size is not a multiple of 8; the shader now reads the target's size and
  returns for texels outside it, instead of leaving them to out-of-bounds
  writes being dropped.
- ffx.rs: a dispatch that was neither stretched nor passed to the title's
  own DLL (none found) returned success with the output unwritten. It now
  returns FFX_API_RETURN_ERROR and says so once in the log.
- queue.rs: the choice of a present's second plane is a function of its own
  (`second_plane`), so it can be tested.
- over.rs: a stretch pass that could not be made is tried again at the next
  dispatch, as the pass over a present is; the two view rings say what their
  fixed sizes rest on.

Tests: the typed-format mapping and the stretch's bounds guard
(`over::tests`), the second plane's choice over seven cases
(`queue::plane_tests`), the upscale description's offsets and the
unanswered dispatch (`ffx::tests`).

`cargo test --release -p victory-gpu -p victory-hle`: 113 passed, 0 failed,
1 ignored; 97 passed, 0 failed; `no_dll_planting` 1 passed. One release run
with `--console series-s` on an RTX 3050 8 GB, about 3.5 minutes: both
passes fire, the world renders, no host error.
Under Wine / Proton the system compiler compiles a [RootSignature] attribute
without writing the signature into the shader, so CreateRootSignature on the
shader failed and both passes of over.rs were never made: Series S stayed
black there (reported on #188, Bazzite, RTX 5060 Laptop, vkd3d-proton).

The signatures are now built from descriptions and serialized with
D3D12SerializeRootSignature: a table of the plane and a bilinear sampler for
the pass over a present; four constants, a table of the source and the
target, and the sampler for the stretch. The sources no longer name one.

cargo test --release -p victory-gpu --lib: 114 passed, 0 failed, 1 ignored
(three runs; an earlier run of the whole test binary ended in an access
violation once and did not again). One release run with --console series-s
on an RTX 3050 8 GB, Windows 11, about 3 minutes: both passes fire, menus
and the world render, no host error. Not run under Wine here.
Run the real stretch and overlay passes on a 3 by 2 blue scene and a 5 by 3 synthetic overlay. Read back the output and check every texel for transparent, half-alpha and opaque regions. On the RTX 5060 Laptop under Proton the previous revision fails to record the stretch and the serialized-root revision passes.

Assisted-by: OpenAI Codex (GPT-6.2-Sol)
(cherry picked from commit 76687ee3b125e7b94bd9db12549fd36705e91023)
The title's colour can be the top left of a larger texture. The sampler clamps at the texture's edge, not at the rendered size's, so the last column and row took in texels beside it. The coordinate now stays half a texel inside the rendered size.

Reported with the fix and the measurement by ArturoWolff on #188; the readback test gets a padded source for it (red beside a blue 3 by 2 scene in a 4 by 3 texture: top right was (51,0,204), now blue).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:37:50 +00:00
Author
Owner

@⁠N7z on GitHub · 2026-11-24 22:57 UTC · original

Works here: with this branch, --console series-s renders menus, loading and the world instead of a black screen.

Setup

  • Laptop: NVIDIA GeForce RTX 4060 Laptop GPU 8 GB, Intel Core i7-13620H, 16 GB RAM, Windows 11 Pro 26200.
  • pr-188 at 66804e3, cargo build --release -p victory, no extra environment variables.
  • cargo test --release -p victory-gpu -p victory-hle: 110 passed, 1 ignored; 95 passed; no_dll_planting 1 passed.

From the log (about 3.5 minutes)

  • All three parts fire: stand-in is used format=67 stand_in=10, a present's second plane is drawn over the first format=28, and upscale dispatch ... render=[1280, 720] upscale=[1920, 1080].
  • Menus and loading: 30 fps.
  • World: 1.3–2.1 fps (peak 3.2), 480–790 ms/frame, 2,700–7,100 draws/frame, 350–2,150 dropped without a host pipeline.
  • No device removal, no host error; the run ended when I closed the game.

On the same machine, Series X runs out of RAM after about 7 minutes, so Series S is the useful mode for 16 GB / 8 GB machines.

No game data.

(AI-assisted: Claude Code built the branch, read the log and wrote this comment.)

**@⁠N7z** on GitHub · 2026-11-24 22:57 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7146838720) Works here: with this branch, `--console series-s` renders menus, loading and the world instead of a black screen. **Setup** - Laptop: NVIDIA GeForce RTX 4060 Laptop GPU 8 GB, Intel Core i7-13620H, 16 GB RAM, Windows 11 Pro 26200. - `pr-188` at `66804e3`, `cargo build --release -p victory`, no extra environment variables. - `cargo test --release -p victory-gpu -p victory-hle`: 110 passed, 1 ignored; 95 passed; `no_dll_planting` 1 passed. **From the log (about 3.5 minutes)** - All three parts fire: `stand-in is used format=67 stand_in=10`, `a present's second plane is drawn over the first format=28`, and `upscale dispatch ... render=[1280, 720] upscale=[1920, 1080]`. - Menus and loading: 30 fps. - World: 1.3–2.1 fps (peak 3.2), 480–790 ms/frame, 2,700–7,100 draws/frame, 350–2,150 dropped without a host pipeline. - No device removal, no host error; the run ended when I closed the game. On the same machine, Series X runs out of RAM after about 7 minutes, so Series S is the useful mode for 16 GB / 8 GB machines. No game data. (AI-assisted: Claude Code built the branch, read the log and wrote this comment.)
Author
Owner

@⁠Jonirulah on GitHub · 2026-11-24 23:12 UTC · original

Tested on Windows, works for menus in Series S mode.

Setup: NVIDIA GeForce RTX 3070 Laptop GPU, AMD Ryzen 7 5800H, 32 GB RAM, Windows 11 IoT Enterprise LTSC (build 26100), rustc 1.99.0. Diag build (--profile diag --features diagnostics) of this branch at 19a0240, merged as a fast-forward onto fork main (2119b0e). Run with --console series-s --unimplemented zero.

Before (fork main without this PR): the window and the VICTORY_CAPTURE frames were solid black at 5-19 draws/frame. The log showed amd_fidelityfx_upscaler_xbox.dll refused by the host policy.

With this PR:

  • The first-boot setup screen ("UI TEXT SIZE") renders correctly at a steady 30 fps.
  • Once it moves into the heavier scene, it runs at about 2.5-4 fps (280-390 ms/frame, ~160 draws/frame). The picture there is still mostly a flat dark frame so far, and I haven't confirmed yet whether that's the cutscene or loading.
  • After ~2 minutes: no ERROR lines, no device removal/DRED.

Remaining warnings (same as without the PR): unimplemented pipeline creation methods at device slots 0x1c8 and 0x218, depth bounds test dropped on 4 pipelines, and the host view heap capped at 1,000,000.

Thanks, this fixes the black Series S menus here.

**@⁠Jonirulah** on GitHub · 2026-11-24 23:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7147147136) Tested on Windows, works for menus in Series S mode. **Setup:** NVIDIA GeForce RTX 3070 Laptop GPU, AMD Ryzen 7 5800H, 32 GB RAM, Windows 11 IoT Enterprise LTSC (build 26100), rustc 1.99.0. Diag build (`--profile diag --features diagnostics`) of this branch at `19a0240`, merged as a fast-forward onto fork `main` (`2119b0e`). Run with `--console series-s --unimplemented zero`. **Before (fork `main` without this PR):** the window and the `VICTORY_CAPTURE` frames were solid black at 5-19 draws/frame. The log showed `amd_fidelityfx_upscaler_xbox.dll` refused by the host policy. **With this PR:** - The first-boot setup screen ("UI TEXT SIZE") renders correctly at a steady 30 fps. - Once it moves into the heavier scene, it runs at about 2.5-4 fps (280-390 ms/frame, ~160 draws/frame). The picture there is still mostly a flat dark frame so far, and I haven't confirmed yet whether that's the cutscene or loading. - After ~2 minutes: no `ERROR` lines, no device removal/DRED. Remaining warnings (same as without the PR): unimplemented pipeline creation methods at device slots `0x1c8` and `0x218`, depth bounds test dropped on 4 pipelines, and the host view heap capped at 1,000,000. Thanks, this fixes the black Series S menus here.
Author
Owner

@⁠ryotdev on GitHub · 2026-11-24 23:29 UTC · original

Confirmed a lit 3D scene on a desktop RTX 5070, Windows, NVIDIA 610.88. I applied the four commits from 19a0240 onto #63 plus a local shader visibility fix. Git range-diff matched all four patches. Both profiles used the same checkpoint and diagnostics settings, including VICTORY_LATE_WAIT=3.

With --console series-s, loading artwork and the prison yard both appeared in the actual window. At the same rear doorway, the dominant world viewport was 1280×720 versus 2560×1440 on my Series X reference. The foreground chain-link was visible on Series X and absent in the Series S view. The character’s hair also showed bright stippling on Series S. The profiles differ, so this comparison leaves the cause open.

The last Series S interval was 424 ms/frame at 4,481 draws. All nine timing intervals late in the Series S capture were still compiling pipelines from its fresh cache. A warm-cache comparison would be needed to establish a speed difference. The run reached its target frame without device removal.

AI-assisted build, capture, and review.

**@⁠ryotdev** on GitHub · 2026-11-24 23:29 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7147453519) Confirmed a lit 3D scene on a desktop RTX 5070, Windows, NVIDIA 610.88. I applied the four commits from `19a0240` onto #63 plus a local shader visibility fix. Git range-diff matched all four patches. Both profiles used the same checkpoint and diagnostics settings, including `VICTORY_LATE_WAIT=3`. With `--console series-s`, loading artwork and the prison yard both appeared in the actual window. At the same rear doorway, the dominant world viewport was 1280×720 versus 2560×1440 on my Series X reference. The foreground chain-link was visible on Series X and absent in the Series S view. The character’s hair also showed bright stippling on Series S. The profiles differ, so this comparison leaves the cause open. The last Series S interval was 424 ms/frame at 4,481 draws. All nine timing intervals late in the Series S capture were still compiling pipelines from its fresh cache. A warm-cache comparison would be needed to establish a speed difference. The run reached its target frame without device removal. AI-assisted build, capture, and review.
Author
Owner

@⁠sagouindupm on GitHub · 2026-11-24 23:57 UTC · original

Thanks for the review; all three items are addressed in 82231c3.

  1. Out-of-bounds writes. The stretch now reads the target's size (GetDimensions) and returns for texels outside it, so sizes that are not multiples of 8 no longer rely on out-of-bounds writes being dropped.
  2. Success with no real dispatch. When the dispatch is neither stretched nor passed on (the title's own ffxDispatch was not found), it now returns FFX_API_RETURN_ERROR and logs that once. I kept the interception unconditional and made the failure visible instead, so a missing loader shows up as an error from the call rather than as a black frame.
  3. Tests. Added: the typed() mapping, the bounds guard in the stretch's source, the upscale description's offsets (list, colour, depth, motion, output, jitter, motion_scale, render, upscale, and Resource's fields), the unanswered dispatch returning an error, and the plane choice. For the last one the predicate moved out of the present into second_plane, tested over seven cases (one plane, no descriptions, same resource, empty plane, no list, null resource, and the valid one). No GPU test of the two passes yet; I agree that would be better and say so under Not tested.

Process: the description now states the merge order (#32 first; I rebase once it lands so only this PR's commits remain).

Non-blocking:

  • A failed make_stretch is no longer cached: it is tried again at the next dispatch, with one warning.
  • RING and STRETCH_RING now say what their fixed sizes rest on. They are still constants, not derived from the number of presents sent ahead; I can derive them if you prefer.
  • Wine: noted in the description as a dependency on #20.

Verification on 82231c3: cargo test --release -p victory-gpu -p victory-hle: 113 passed, 0 failed, 1 ignored; 97 passed, 0 failed; no_dll_planting 1 passed. One release run with --console series-s on an RTX 3050 8 GB, about 3.5 minutes: both passes fire, the world renders, no host error.

AI-assisted: Claude Code (Claude Fable 5.2) wrote the changes and this reply and made the run.

**@⁠sagouindupm** on GitHub · 2026-11-24 23:57 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7147973154) Thanks for the review; all three items are addressed in `82231c3`. 1. **Out-of-bounds writes.** The stretch now reads the target's size (`GetDimensions`) and returns for texels outside it, so sizes that are not multiples of 8 no longer rely on out-of-bounds writes being dropped. 2. **Success with no real dispatch.** When the dispatch is neither stretched nor passed on (the title's own `ffxDispatch` was not found), it now returns `FFX_API_RETURN_ERROR` and logs that once. I kept the interception unconditional and made the failure visible instead, so a missing loader shows up as an error from the call rather than as a black frame. 3. **Tests.** Added: the `typed()` mapping, the bounds guard in the stretch's source, the upscale description's offsets (`list`, `colour`, `depth`, `motion`, `output`, `jitter`, `motion_scale`, `render`, `upscale`, and `Resource`'s fields), the unanswered dispatch returning an error, and the plane choice. For the last one the predicate moved out of the present into `second_plane`, tested over seven cases (one plane, no descriptions, same resource, empty plane, no list, null resource, and the valid one). No GPU test of the two passes yet; I agree that would be better and say so under Not tested. Process: the description now states the merge order (#32 first; I rebase once it lands so only this PR's commits remain). Non-blocking: - A failed `make_stretch` is no longer cached: it is tried again at the next dispatch, with one warning. - `RING` and `STRETCH_RING` now say what their fixed sizes rest on. They are still constants, not derived from the number of presents sent ahead; I can derive them if you prefer. - Wine: noted in the description as a dependency on #20. Verification on `82231c3`: `cargo test --release -p victory-gpu -p victory-hle`: 113 passed, 0 failed, 1 ignored; 97 passed, 0 failed; `no_dll_planting` 1 passed. One release run with `--console series-s` on an RTX 3050 8 GB, about 3.5 minutes: both passes fire, the world renders, no host error. AI-assisted: Claude Code (Claude Fable 5.2) wrote the changes and this reply and made the run.
Author
Owner

@⁠Filip722 on GitHub · 2026-11-25 00:08 UTC · original

On 82231c3, the Series S account picker was black on Bazzite 44 with an RTX 5060 Laptop GPU (8 GB), driver 615.78.08, Proton Experimental 11.0-20261112 and vkd3d-proton ec20719. All seven window samples from a 25-second run were black. With a local change that serializes the overlay and stretch root signatures using D3D12SerializeRootSignature, five of six samples showed the account picker. The runs used separate prefixes cloned from the same seed, the same cache contents at launch and no input.

An asset-free test isolated the failure. Wine’s compiler returned success for both shaders but emitted no RTS0 chunk. Both calls to CreateRootSignature failed with E_FAIL. After the change, four focused tests passed on the RTX, including a readback of all 15 pixels from a stretched blue scene with transparent, premultiplied green and opaque red overlay regions. This comparison ends at the account picker.

OpenAI Codex assisted with the patch, testing and report.

**@⁠Filip722** on GitHub · 2026-11-25 00:08 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7148189688) On `82231c3`, the Series S account picker was black on Bazzite 44 with an RTX 5060 Laptop GPU (8 GB), driver 615.78.08, Proton Experimental 11.0-20261112 and vkd3d-proton `ec20719`. All seven window samples from a 25-second run were black. With a local change that serializes the overlay and stretch root signatures using `D3D12SerializeRootSignature`, five of six samples showed the account picker. The runs used separate prefixes cloned from the same seed, the same cache contents at launch and no input. An asset-free test isolated the failure. Wine’s compiler returned success for both shaders but emitted no `RTS0` chunk. Both calls to `CreateRootSignature` failed with `E_FAIL`. After the change, four focused tests passed on the RTX, including a readback of all 15 pixels from a stretched blue scene with transparent, premultiplied green and opaque red overlay regions. This comparison ends at the account picker. OpenAI Codex assisted with the patch, testing and report.
Author
Owner

@⁠sagouindupm on GitHub · 2026-11-25 00:44 UTC · original

@⁠Filip722 thank you, that was precise enough to act on. c022e4d on this branch serializes both root signatures with D3D12SerializeRootSignature (a table of the plane and a sampler for the pass over a present; four constants, a table of source and target, and the sampler for the stretch), and the two sources no longer carry a [RootSignature] attribute, so nothing depends on the compiler writing an RTS0 part.

On Windows it behaves as before: cargo test --release -p victory-gpu --lib 114 passed, 0 failed, 1 ignored; one release run with --console series-s on an RTX 3050 8 GB, both passes fire, menus and the world render. I cannot run it under Wine here, so if you can rerun your seven-sample check on c022e4d that would settle it.

Your read-back test (the stretched blue scene with the transparent, premultiplied green and opaque red overlay regions) is exactly the GPU test the review asked for and that this PR still lacks. If you are willing to push it somewhere, I will take it into this branch with your authorship.

AI-assisted: Claude Code (Claude Fable 5.2) wrote the change and this reply and made the run.

**@⁠sagouindupm** on GitHub · 2026-11-25 00:44 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7148833641) @⁠Filip722 thank you, that was precise enough to act on. `c022e4d` on this branch serializes both root signatures with `D3D12SerializeRootSignature` (a table of the plane and a sampler for the pass over a present; four constants, a table of source and target, and the sampler for the stretch), and the two sources no longer carry a `[RootSignature]` attribute, so nothing depends on the compiler writing an `RTS0` part. On Windows it behaves as before: `cargo test --release -p victory-gpu --lib` 114 passed, 0 failed, 1 ignored; one release run with `--console series-s` on an RTX 3050 8 GB, both passes fire, menus and the world render. I cannot run it under Wine here, so if you can rerun your seven-sample check on `c022e4d` that would settle it. Your read-back test (the stretched blue scene with the transparent, premultiplied green and opaque red overlay regions) is exactly the GPU test the review asked for and that this PR still lacks. If you are willing to push it somewhere, I will take it into this branch with your authorship. AI-assisted: Claude Code (Claude Fable 5.2) wrote the change and this reply and made the run.
Author
Owner

@⁠Filip722 on GitHub · 2026-11-25 00:54 UTC · original

Confirmed on the RTX 5060 Laptop (8 GB), Bazzite 44, NVIDIA 615.78.08, Proton Experimental 11.0-20261112 and vkd3d-proton 3.2.0 (ec20719). I repeated the 25-second Series S run with the unmodified release binaries and separate copies of the same prefix, settings and caches. On 82231c3, all seven samples were black. On c022e4d, the first two samples were black and the next five matched the previously verified account picker pixel for pixel. Both runs used zero cgroup swap.

The test-only commit is ready to cherry-pick onto this branch. It runs the stretch and overlay, reads all 15 output texels, and checks the transparent, half-green and opaque-red regions. The fixture failed at record_stretch on 82231c3 and passed on c022e4d. All four focused display tests passed and the GPU readback ran on the NVIDIA adapter.

I also ran the full Windows-target victory-gpu unit suite under Proton with that same fixture. The old revision had 109 passed, 5 failed and 1 ignored. The new revision had 111 passed, 4 failed and 1 ignored. Both had failures in the argument-clamp build, indirect scratch reuse, rejected pipeline-library blob and depth-plane draw tests. This comparison verified the menu and both display passes. It ended before gameplay.

OpenAI Codex (GPT-6.2-Sol) assisted with the fixture, builds, testing and report.

**@⁠Filip722** on GitHub · 2026-11-25 00:54 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7149014840) Confirmed on the RTX 5060 Laptop (8 GB), Bazzite 44, NVIDIA 615.78.08, Proton Experimental 11.0-20261112 and vkd3d-proton 3.2.0 (`ec20719`). I repeated the 25-second Series S run with the unmodified release binaries and separate copies of the same prefix, settings and caches. On `82231c3`, all seven samples were black. On `c022e4d`, the first two samples were black and the next five matched the previously verified account picker pixel for pixel. Both runs used zero cgroup swap. The [test-only commit](https://github.com/Filip722/VIctory/commit/76687ee3b125e7b94bd9db12549fd36705e91023) is ready to cherry-pick onto this branch. It runs the stretch and overlay, reads all 15 output texels, and checks the transparent, half-green and opaque-red regions. The fixture failed at `record_stretch` on `82231c3` and passed on `c022e4d`. All four focused display tests passed and the GPU readback ran on the NVIDIA adapter. I also ran the full Windows-target `victory-gpu` unit suite under Proton with that same fixture. The old revision had 109 passed, 5 failed and 1 ignored. The new revision had 111 passed, 4 failed and 1 ignored. Both had failures in the argument-clamp build, indirect scratch reuse, rejected pipeline-library blob and depth-plane draw tests. This comparison verified the menu and both display passes. It ended before gameplay. OpenAI Codex (GPT-6.2-Sol) assisted with the fixture, builds, testing and report.
Author
Owner

@⁠sagouindupm on GitHub · 2026-11-25 01:28 UTC · original

@⁠Filip722 taken as 03d1791 (cherry-picked with -x from your 76687ee, your authorship kept). Here on Windows, RTX 3050 8 GB: cargo test --release -p victory-gpu --lib 115 passed, 0 failed, 1 ignored, with over::readback::stretch_and_overlay_preserve_the_expected_pixels among them. Thanks for the Proton confirmation of c022e4d too.

@⁠ErRusso this is the GPU test of the two passes your review said would be better than the pure checks: it runs the stretch and the pass over a present and reads the output texels back. With 82231c3 (bounds guard, error instead of silent success, unit tests) and c022e4d (root signatures serialized by the runtime, which also removes the Wine dependency you noted), I think every point of the review is covered. Could you take another look when you have time?

AI-assisted: Claude Code (Claude Fable 5.2) made the cherry-pick and the run and wrote this comment.

**@⁠sagouindupm** on GitHub · 2026-11-25 01:28 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7149581212) @⁠Filip722 taken as `03d1791` (cherry-picked with `-x` from your `76687ee`, your authorship kept). Here on Windows, RTX 3050 8 GB: `cargo test --release -p victory-gpu --lib` 115 passed, 0 failed, 1 ignored, with `over::readback::stretch_and_overlay_preserve_the_expected_pixels` among them. Thanks for the Proton confirmation of `c022e4d` too. @⁠ErRusso this is the GPU test of the two passes your review said would be better than the pure checks: it runs the stretch and the pass over a present and reads the output texels back. With `82231c3` (bounds guard, error instead of silent success, unit tests) and `c022e4d` (root signatures serialized by the runtime, which also removes the Wine dependency you noted), I think every point of the review is covered. Could you take another look when you have time? AI-assisted: Claude Code (Claude Fable 5.2) made the cherry-pick and the run and wrote this comment.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 04:13 UTC · original · edited 2026-11-25 04:25 UTC

For anyone testing the Series S display passes together with the Wine DXC fallback (#20): I cross-built main 310c6eb with the #188 stack at 03d1791, the #20 code at 16b6305, and the four newer main test callers already adapted. The combined build still fails at crates/victory-gpu/src/over.rs:137,138,358: E0308, expected &str, found PCSTR. Unlike the four earlier callers, these three create the actual overlay and stretch pipelines.

For that combination only, keep the entry names and shader profiles unchanged, remove s!(...) around them ("corner", "vs_5_1"; "over", "ps_5_1"; "stretch", "cs_5_1"), and remove the two now-unused local s imports. With just that change, cargo test --offline --locked --target x86_64-pc-windows-gnullvm -j2 -p victory-gpu --lib --features diagnostics --no-run linked. This is a rebase note, not a requested change to the standalone #188 head.

I ran the resulting Windows binary under GE-Proton11-14: all three over::tests:: checks passed. In a separate software-only run, the pixel-readback test printed no D3D12 device; skipping display readback and Rust reported it as ok. No texels were checked in that run; it does not independently confirm the author's Windows GPU readback or Filip722's Proton account-picker result. For headless comparisons, run that test with --nocapture and check for the skip message before counting it as a pixel pass.

Software pixel readback follow-up. With VKD3D_DEBUG=trace, vkd3d-proton 3.2.0 reported that this llvmpipe adapter did not support the requested D3D feature level 12_0. I made the no-device branch fail the test locally, then ran the same test binary twice with only the requested feature level changed. At 12_0 it failed before readback (exit 101); at 11_0 the stretch and overlay ran and all three rows matched the five expected RGBA8 texels (exit 0). Wine used GE-Proton11-14 with only the Mesa software Vulkan driver available. The shader sources, display passes and expected pixels were unchanged between arms. This gives a headless Linux test for these two passes on this configuration, not evidence for lowering the game runtime requirement, RTX rendering, or gameplay.

Padded input regression (STRETCH, 03d1791): The existing readback fills the whole source with blue, so it cannot catch filtering across the rendered rectangle. In the same strict llvmpipe/Proton fixture, I filled a 4×3 source with a blue 3×2 top-left render region and red padding, stretched [3, 2] to 5×3, and kept the overlay transparent. Expected solid blue. Before: top-right RGBA (51,0,204,255), bottom-right (85,0,170,255). The sampler clamps to the physical texture edge, not the render-region edge. After querying the source dimensions and adding at = min(at, scale - 0.5 / float2(sw, sh)); immediately before SampleLevel, all 15 pixels were pure blue; the original overlay readback passed both before and after. No change to the root signature or runtime feature level is needed for this shader fix. This demonstrates edge bleed under partial-source upscaling, not the cause of a black world.

AI disclosure: Hermes Agent performed the combined build and isolated tests and wrote this comment on ArturoWolff's behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 04:13 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7152649168) · edited 2026-11-25 04:25 UTC For anyone testing the Series S display passes **together with** the Wine DXC fallback (#20): I cross-built `main` `310c6eb` with the #188 stack at `03d1791`, the #20 code at `16b6305`, and the [four newer main test callers already adapted](https://git.gtahub.st/github/fxceless--victory-fork/pulls/20). The combined build still fails at `crates/victory-gpu/src/over.rs:137,138,358`: `E0308`, expected `&str`, found `PCSTR`. Unlike the four earlier callers, these three create the actual overlay and stretch pipelines. For that combination only, keep the entry names and shader profiles unchanged, remove `s!(...)` around them (`"corner", "vs_5_1"`; `"over", "ps_5_1"`; `"stretch", "cs_5_1"`), and remove the two now-unused local `s` imports. With just that change, `cargo test --offline --locked --target x86_64-pc-windows-gnullvm -j2 -p victory-gpu --lib --features diagnostics --no-run` linked. This is a rebase note, not a requested change to the standalone #188 head. I ran the resulting Windows binary under GE-Proton11-14: all three `over::tests::` checks passed. In a separate software-only run, the pixel-readback test printed `no D3D12 device; skipping display readback` and Rust reported it as `ok`. No texels were checked in that run; it does not independently confirm the author's Windows GPU readback or Filip722's Proton account-picker result. For headless comparisons, run that test with `--nocapture` and check for the skip message before counting it as a pixel pass. **Software pixel readback follow-up.** With `VKD3D_DEBUG=trace`, vkd3d-proton 3.2.0 reported that this llvmpipe adapter did not support the requested D3D feature level 12_0. I made the no-device branch fail the test locally, then ran the same test binary twice with only the requested feature level changed. At 12_0 it failed before readback (exit 101); at 11_0 the stretch and overlay ran and all three rows matched the five expected RGBA8 texels (exit 0). Wine used GE-Proton11-14 with only the Mesa software Vulkan driver available. The shader sources, display passes and expected pixels were unchanged between arms. This gives a headless Linux test for these two passes on this configuration, not evidence for lowering the game runtime requirement, RTX rendering, or gameplay. **Padded input regression (`STRETCH`, `03d1791`):** The existing readback fills the whole source with blue, so it cannot catch filtering across the rendered rectangle. In the same strict llvmpipe/Proton fixture, I filled a 4×3 source with a blue 3×2 top-left render region and red padding, stretched `[3, 2]` to 5×3, and kept the overlay transparent. Expected solid blue. Before: top-right RGBA `(51,0,204,255)`, bottom-right `(85,0,170,255)`. The sampler clamps to the physical texture edge, not the render-region edge. After querying the source dimensions and adding `at = min(at, scale - 0.5 / float2(sw, sh));` immediately before `SampleLevel`, all 15 pixels were pure blue; the original overlay readback passed both before and after. No change to the root signature or runtime feature level is needed for this shader fix. This demonstrates edge bleed under partial-source upscaling, not the cause of a black world. AI disclosure: Hermes Agent performed the combined build and isolated tests and wrote this comment on ArturoWolff's behalf.
Author
Owner

@⁠sagouindupm on GitHub · 2026-11-25 04:44 UTC · original

@⁠ArturoWolff thank you, reproduced and fixed in 3ed3b19.

  • The readback test now also runs with a padded source (a blue 3 by 2 scene in a 4 by 3 texture that is red elsewhere, empty interface). Before the fix, on an RTX 3050 on Windows, the top right texel read (51, 0, 204, 255), the same value you saw under llvmpipe; with your one line (at = min(at, scale - 0.5 / float2(sw, sh))) all 15 are blue.
  • cargo test --release -p victory-gpu --lib: 116 passed, 0 failed, 1 ignored.
  • Noted for the #20 combination (s!(...) around the entry names and profiles in over.rs): I leave the standalone head as it is, as you say, and will adapt it in whichever of the two merges second.
  • Your point on the skip message is fair: the readback test passes without checking anything when there is no device. On this machine it does run on the card (it failed before the fix).

AI-assisted: Claude Code (Claude Fable 5.2) wrote the test and applied the fix.

**@⁠sagouindupm** on GitHub · 2026-11-25 04:44 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7153115628) @⁠ArturoWolff thank you, reproduced and fixed in `3ed3b19`. - The readback test now also runs with a padded source (a blue 3 by 2 scene in a 4 by 3 texture that is red elsewhere, empty interface). Before the fix, on an RTX 3050 on Windows, the top right texel read `(51, 0, 204, 255)`, the same value you saw under llvmpipe; with your one line (`at = min(at, scale - 0.5 / float2(sw, sh))`) all 15 are blue. - `cargo test --release -p victory-gpu --lib`: 116 passed, 0 failed, 1 ignored. - Noted for the #20 combination (`s!(...)` around the entry names and profiles in `over.rs`): I leave the standalone head as it is, as you say, and will adapt it in whichever of the two merges second. - Your point on the skip message is fair: the readback test passes without checking anything when there is no device. On this machine it does run on the card (it failed before the fix). AI-assisted: Claude Code (Claude Fable 5.2) wrote the test and applied the fix.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 04:55 UTC · original

Thanks for picking this up. I retested 3ed3b19 on GE-Proton11-14 / llvmpipe 26.3.1, this time from the standalone PR head, without #20. Both of your committed over::readback:: tests ran: 2 passed, 0 failed, 115 filtered out. The padded case checked all 15 output texels against opaque blue; the original overlay case still matched its three expected rows.

Compared with my earlier run, this exercises your committed fixture and stretch shader, not my local reproduction. The only local changes were to request feature level 11_0 for this software test device and panic instead of skipping if the device was absent. No changes to the shader, pixel assertions, or compiler path. This confirms your RTX 3050 result on a second backend for these two passes; no retail run or gameplay claim.

AI disclosure: Hermes Agent cross-built the PR head, ran the software readbacks, and wrote this reply on ArturoWolff’s behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 04:55 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7153294738) Thanks for picking this up. I retested `3ed3b19` on GE-Proton11-14 / llvmpipe 26.3.1, this time from the standalone PR head, **without #20**. Both of your committed `over::readback::` tests ran: **2 passed, 0 failed, 115 filtered out**. The padded case checked all 15 output texels against opaque blue; the original overlay case still matched its three expected rows. Compared with my earlier run, this exercises your committed fixture and stretch shader, not my local reproduction. The only local changes were to request feature level 11_0 for this software test device and panic instead of skipping if the device was absent. No changes to the shader, pixel assertions, or compiler path. This confirms your RTX 3050 result on a second backend for these two passes; no retail run or gameplay claim. AI disclosure: Hermes Agent cross-built the PR head, ran the software readbacks, and wrote this reply on ArturoWolff’s behalf.
Author
Owner

@⁠sagouindupm on GitHub · 2026-11-25 05:51 UTC · original

Merged main 8dd30ab into this branch (merge commit 2f81ff8, no force-push). The one conflict was the stand-in's log line in resource.rs: main now carries the R9G9B9E5 stand-in itself, so I took main's side and this PR no longer changes resource.rs. What is left is the two display passes and the dispatch hook only (over.rs, over/readback.rs, ffx.rs, and their call sites).

On Windows, RTX 3050 8 GB: cargo test --release -p victory-gpu -p victory-hle: 137 passed, 0 failed, 3 ignored; 100 passed, 0 failed.

AI-assisted: Claude Code (Claude Fable 5.2) did the merge and ran the tests.

**@⁠sagouindupm** on GitHub · 2026-11-25 05:51 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7154206693) Merged `main` `8dd30ab` into this branch (merge commit `2f81ff8`, no force-push). The one conflict was the stand-in's log line in `resource.rs`: `main` now carries the R9G9B9E5 stand-in itself, so I took `main`'s side and this PR no longer changes `resource.rs`. What is left is the two display passes and the dispatch hook only (`over.rs`, `over/readback.rs`, `ffx.rs`, and their call sites). On Windows, RTX 3050 8 GB: `cargo test --release -p victory-gpu -p victory-hle`: 137 passed, 0 failed, 3 ignored; 100 passed, 0 failed. AI-assisted: Claude Code (Claude Fable 5.2) did the merge and ran the tests.
Author
Owner

@⁠Xeltax on GitHub · 2026-11-25 07:25 UTC · original

Tested on an RTX 4080 16 GB (driver 621.01, Windows 11 Pro 26200, own copy, --console series-s):

  • Build: this PR's head 2f81ff8, merged into 8dd30ab plus VIcky's commits. VIcky adds a heap map for the 1,000,000-view cap and per-program wave64 switches; neither touches presentation.
  • Settings: no loop limit, VICTORY_SHADER_OPT=0, the 14 CS_ShadowRenderTiled* hashes in VICTORY_WAVE_DEEP_SKIPS_NOT (#62). Diag build, same save as our Series X runs, 9 min.
Series S, without this PR Series S, with this PR Series X, same build and scene
picture after loading black world rendered (cell window scene, lit) rendered
fps in the world, settled 5.1–5.3 (running unseen) 5.7–6.0 3.5–4.5
draws per frame ~4,400 ~4,380 ~4,800–7,500
device removal none none none

The second plane and the stretch work here, with no corruption at the frame edges that I could see in the captures. Same defects as Series X: dark areas where only ray-traced light would reach, and some grain on the hair. One run, so the fps figures are one sample.

AI-assisted (Claude Code); measured on my machine with my own copy, nothing from the game attached.

**@⁠Xeltax** on GitHub · 2026-11-25 07:25 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7155849199) **Tested on an RTX 4080 16 GB** (driver 621.01, Windows 11 Pro 26200, own copy, `--console series-s`): - **Build:** this PR's head `2f81ff8`, merged into `8dd30ab` plus VIcky's commits. VIcky adds a heap map for the 1,000,000-view cap and per-program wave64 switches; neither touches presentation. - **Settings:** no loop limit, `VICTORY_SHADER_OPT=0`, the 14 `CS_ShadowRenderTiled*` hashes in `VICTORY_WAVE_DEEP_SKIPS_NOT` (#62). Diag build, same save as our Series X runs, 9 min. | | Series S, without this PR | Series S, with this PR | Series X, same build and scene | |---|---|---|---| | picture after loading | black | **world rendered** (cell window scene, lit) | rendered | | fps in the world, settled | 5.1–5.3 (running unseen) | **5.7–6.0** | 3.5–4.5 | | draws per frame | ~4,400 | ~4,380 | ~4,800–7,500 | | device removal | none | none | none | The second plane and the stretch work here, with no corruption at the frame edges that I could see in the captures. Same defects as Series X: dark areas where only ray-traced light would reach, and some grain on the hair. One run, so the fps figures are one sample. AI-assisted (Claude Code); measured on my machine with my own copy, nothing from the game attached.
Author
Owner

@⁠CuteBooty on GitHub · 2026-11-25 08:04 UTC · original

Series S mode on an RTX 3070 8 GB: the first scenes fit on the card, and the prologue can be finished

The PR's commits (through 40bdf6ae) on a tree at main 310c6eb6 plus other open PRs, among them #610 with
VICTORY_TEXTURE_DROP_MIPS=1. Against Series X on the same tree and night:

Prison scenes, settled medians Series X Series S (this PR)
Frame 454 ms (54 lines) about 240 ms (46 lines at 3,000-5,000 draws)
On the card 233 ms 59-80 ms
Copying back 372 ms 135-144 ms
Card memory 6,777 of 6,673 MB (over) 5,130-5,200 of 7,250 MB
Textures due 7,559 40-210
  • Picture: in Series X the cellmate's skin, the table, and the hallway's doors, ceiling and floor were missing (a
    full card refusing new textures). In Series S all of them were there and lit. Softer, with dotted edges on hair
    and frames.
  • Four Series S runs of 11 to 25 minutes without device removal. Two went through the counsellor scene, the
    robbery, the rooftop and the car chase; the last one reached the arrest, where a story save was written
    (the SARC container, 256,000 bytes, 20.5 minutes after launch), and then the first mission of Chapter I.
    A fresh launch loaded that save: back in the world, past the prologue, about 90 seconds after launch.
  • From the robbery on the card fills again (6.2-6.5 of 6.8-7.1 GB, 5,000-12,000 textures due) and frames are
    330-810 ms at 9,000-10,500 draws. So on 8 GB this mode moves the limit by a scene or two.
  • Wrong contents (not missing) on a few textures: a guard's armband, a bag, a pair of glasses. In the first
    mission the boat sits in a square hole in the water.
  • First launch was not slow here: 3,224 shader cache hits, 8-10 misses.

Setup: RTX 3070 8 GB (driver 621.24, 32-lane waves), Ryzen 5 3600, 32 GB, Windows 11, Series S mode (PR #188), 1920x1080, VICTORY_TEXTURE_DROP_MIPS=1, relay at its default (stage 2), card buffers 1 / 1024 MB, a diagnostics build of a tree with a number of open PRs picked.

**@⁠CuteBooty** on GitHub · 2026-11-25 08:04 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7156571496) **Series S mode on an RTX 3070 8 GB: the first scenes fit on the card, and the prologue can be finished** The PR's commits (through 40bdf6ae) on a tree at main 310c6eb6 plus other open PRs, among them #610 with `VICTORY_TEXTURE_DROP_MIPS=1`. Against Series X on the same tree and night: | Prison scenes, settled medians | Series X | Series S (this PR) | |---|---|---| | Frame | 454 ms (54 lines) | about 240 ms (46 lines at 3,000-5,000 draws) | | On the card | 233 ms | 59-80 ms | | Copying back | 372 ms | 135-144 ms | | Card memory | 6,777 of 6,673 MB (over) | 5,130-5,200 of 7,250 MB | | Textures due | 7,559 | 40-210 | - Picture: in Series X the cellmate's skin, the table, and the hallway's doors, ceiling and floor were missing (a full card refusing new textures). In Series S all of them were there and lit. Softer, with dotted edges on hair and frames. - Four Series S runs of 11 to 25 minutes without device removal. Two went through the counsellor scene, the robbery, the rooftop and the car chase; the last one reached the arrest, where a story save was written (the SARC container, 256,000 bytes, 20.5 minutes after launch), and then the first mission of Chapter I. A fresh launch loaded that save: back in the world, past the prologue, about 90 seconds after launch. - From the robbery on the card fills again (6.2-6.5 of 6.8-7.1 GB, 5,000-12,000 textures due) and frames are 330-810 ms at 9,000-10,500 draws. So on 8 GB this mode moves the limit by a scene or two. - Wrong contents (not missing) on a few textures: a guard's armband, a bag, a pair of glasses. In the first mission the boat sits in a square hole in the water. - First launch was not slow here: 3,224 shader cache hits, 8-10 misses. Setup: RTX 3070 8 GB (driver 621.24, 32-lane waves), Ryzen 5 3600, 32 GB, Windows 11, Series S mode (PR #188), 1920x1080, `VICTORY_TEXTURE_DROP_MIPS=1`, relay at its default (stage 2), card buffers 1 / 1024 MB, a diagnostics build of a tree with a number of open PRs picked.
Author
Owner

@⁠sagouindupm on GitHub · 2026-11-25 08:22 UTC · original

@⁠CuteBooty thank you, that is the furthest anyone has reported in this mode: the prologue finished, a story save written and loaded again, and Chapter I reached on an 8 GB card, in 11 to 25 minute runs without a device removal. Your numbers match mine on an RTX 3050 8 GB in the first room (about 240 ms a frame, 5.1 to 5.3 GB of the card, textures due in the tens to hundreds; #616), and your observation that from the robbery on the card fills again is the useful part for whoever picks up the 8 GB side next.

AI-assisted: Claude Code.

**@⁠sagouindupm** on GitHub · 2026-11-25 08:22 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7156943614) @⁠CuteBooty thank you, that is the furthest anyone has reported in this mode: the prologue finished, a story save written and loaded again, and Chapter I reached on an 8 GB card, in 11 to 25 minute runs without a device removal. Your numbers match mine on an RTX 3050 8 GB in the first room (about 240 ms a frame, 5.1 to 5.3 GB of the card, textures due in the tens to hundreds; #616), and your observation that from the robbery on the card fills again is the useful part for whoever picks up the 8 GB side next. AI-assisted: Claude Code.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 08:30 UTC · original · edited 2026-11-25 09:22 UTC

Linux / desktop RTX 4060 8 GB, 16 GB system RAM, GE-Proton11-14. My earlier readback test exercised the passes on llvmpipe. This time the title itself reached both of sagouindupm’s display passes on the physical GPU (main 9376fd6 + PR head 2f81ff8, --console series-s). Loading art was visible and the game audio stream was non-silent.

  • 08:19:48.891 UTC: second-plane pipeline initialized, format 28.
  • 08:20:57.934–57.954: the title requested a 1280×720 → 1920×1080 upscale; the runtime initialized the stretch pipeline. Both messages in over.rs precede the actual draw/dispatch. Neither is a GPU-completion or presentation receipt.
  • 08:21:02.990: our external guard stopped the run at 759 MiB host MemAvailable (768 MiB cutoff; no OOM kill). The last screen capture was at 08:20:57.272, before stretch pipeline initialization. There is no post-stretch frame here to judge as lit or black.

For comparison, at 85 s from the first supervisor sample the game service group had 3.92 GiB swapped on Series S + this PR versus 0.62 GiB in our stock 9376fd6 Series X run. One run each, different profiles, not matched game frames: this does not isolate a memory regression in the PR. Unlike the Windows reports above we can confirm the title reached both paths, not a playable room or settled frame time.

Second Linux run, same 9376fd6 + 2f81ff8, with a one-shot capture trigger: the first marked Present returned S_OK at 09:19:47.877661 UTC (frame 1367), after sagouindupm’s stretch dispatch had been recorded. This time we have two 1920×1080 captures of the private Xwayland display after that marker. Both decoded to RGB min=max=0 in every channel. Neither is a readback of the exact swap-chain buffer; no physical-monitor capture was retained after the marker. The game audio stream was non-silent in this run (97,220 of 98,304 samples nonzero in one block). The same 768 MiB host guard then stopped the game at 774,408 KiB available, with no recorded OOM kill. This narrows the previous timing gap, not the cause: it does not tell us whether the stretch input already contained black, or whether a world would have appeared later.

AI disclosure: Hermes Agent ran the Linux comparisons, checked the logs and decoded capture pixels, and updated this comment for ArturoWolff.

**@⁠ArturoWolff** on GitHub · 2026-11-25 08:30 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7157115867) · edited 2026-11-25 09:22 UTC Linux / desktop RTX 4060 8 GB, 16 GB system RAM, GE-Proton11-14. My earlier [readback test](https://git.gtahub.st/github/fxceless--victory-fork/pulls/188) exercised the passes on llvmpipe. This time the title itself reached **both of sagouindupm’s display passes** on the physical GPU (`main` `9376fd6` + PR head `2f81ff8`, `--console series-s`). Loading art was visible and the game audio stream was non-silent. - **08:19:48.891 UTC:** second-plane pipeline initialized, format 28. - **08:20:57.934–57.954:** the title requested a 1280×720 → 1920×1080 upscale; the runtime initialized the stretch pipeline. Both messages in `over.rs` precede the actual draw/dispatch. Neither is a GPU-completion or presentation receipt. - **08:21:02.990:** our external guard stopped the run at 759 MiB host `MemAvailable` (768 MiB cutoff; no OOM kill). The **last screen capture was at 08:20:57.272, before stretch pipeline initialization**. There is no post-stretch frame here to judge as lit or black. For comparison, at 85 s from the first supervisor sample the game service group had 3.92 GiB swapped on Series S + this PR versus 0.62 GiB in our stock `9376fd6` Series X run. One run each, different profiles, not matched game frames: this does **not** isolate a memory regression in the PR. Unlike the Windows reports above we can confirm the title reached both paths, not a playable room or settled frame time. **Second Linux run, same `9376fd6` + `2f81ff8`, with a one-shot capture trigger:** the first marked `Present` returned `S_OK` at 09:19:47.877661 UTC (frame 1367), after sagouindupm’s stretch dispatch had been recorded. This time we have two 1920×1080 captures of the private Xwayland display *after* that marker. Both decoded to RGB min=max=0 in every channel. Neither is a readback of the exact swap-chain buffer; no physical-monitor capture was retained after the marker. The game audio stream was non-silent in this run (97,220 of 98,304 samples nonzero in one block). The same 768 MiB host guard then stopped the game at 774,408 KiB available, with no recorded OOM kill. This narrows the previous timing gap, not the cause: it does not tell us whether the stretch input already contained black, or whether a world would have appeared later. AI disclosure: Hermes Agent ran the Linux comparisons, checked the logs and decoded capture pixels, and updated this comment for ArturoWolff.
Author
Owner

@⁠cdomergue on GitHub · 2026-11-25 10:04 UTC · original

For comparison with the Proton report, I tested the same 9376fd6 + 2f81ff8 merge on Windows with an RTX 4070 SUPER (12 GB, driver 616.92), release build, --console series-s. The menus and loading artwork were visible. After the 720p → 1080p upscale started, I saw subtitles over a black background. Later in the same run, the lit cell window and watchtower appeared. On this setup, an early black frame after the upscale started did not predict the final result.

**@⁠cdomergue** on GitHub · 2026-11-25 10:04 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7159181151) For comparison with the Proton report, I tested the same `9376fd6` + `2f81ff8` merge on Windows with an RTX 4070 SUPER (12 GB, driver 616.92), release build, `--console series-s`. The menus and loading artwork were visible. After the 720p → 1080p upscale started, I saw subtitles over a black background. Later in the same run, the lit cell window and watchtower appeared. On this setup, an early black frame after the upscale started did not predict the final result.
Author
Owner

@⁠Filip722 on GitHub · 2026-11-25 14:21 UTC · original

The second-plane part of this PR independently restores the Series S interface and loading art under Proton on an RTX 5060 Laptop with 8 GB VRAM. Tested on Bazzite 44, NVIDIA 615.78.08, GE-Proton 11-14 and vkd3d-proton build cae8353ed7959c4+, with an Intel Core 7 240H and 16 GB host RAM.

I ported the compositor onto a private integration of #938 and #908 while retaining #798’s upscaler selection. The launcher build used Rust 1.98.1 and Windows MSVC. The plane-selection test and real GPU fixture passed. The latter checked the expected transparent, half-alpha and opaque pixels.

The baseline and compositor run used the same Series S launch settings, separate cloned prefixes, cache seed and resource guards. All 93 baseline captures were uniformly black. With the second plane composited, 63 of 71 captures had visible content, including the account-picker controls, startup logo and loading art. The last two captures were black during the scene transition. The run recorded 29 new pipeline bindings and ended around 287 seconds on the host RAM guard, without a recorded NVIDIA Xid. Gameplay and input response remain unverified.

Testing and report prepared with OpenAI Codex assistance.

**@⁠Filip722** on GitHub · 2026-11-25 14:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7165164321) The second-plane part of this PR independently restores the Series S interface and loading art under Proton on an RTX 5060 Laptop with 8 GB VRAM. Tested on Bazzite 44, NVIDIA 615.78.08, GE-Proton 11-14 and vkd3d-proton build `cae8353ed7959c4+`, with an Intel Core 7 240H and 16 GB host RAM. I ported the compositor onto a private integration of #938 and #908 while retaining #798’s upscaler selection. The launcher build used Rust 1.98.1 and Windows MSVC. The plane-selection test and real GPU fixture passed. The latter checked the expected transparent, half-alpha and opaque pixels. The baseline and compositor run used the same Series S launch settings, separate cloned prefixes, cache seed and resource guards. All 93 baseline captures were uniformly black. With the second plane composited, 63 of 71 captures had visible content, including the account-picker controls, startup logo and loading art. The last two captures were black during the scene transition. The run recorded 29 new pipeline bindings and ended around 287 seconds on the host RAM guard, without a recorded NVIDIA Xid. Gameplay and input response remain unverified. Testing and report prepared with OpenAI Codex assistance.
Author
Owner

@⁠Ortomanic on GitHub · 2026-11-25 15:40 UTC · original

One more Linux data point for the second-plane half, from an RTX 5080 (CachyOS, Wine 11.22, vkd3d-proton 3.1.r64, driver 620.73.04, --console series-s).

I have not run this branch (it conflicts with 0b0074e at the moment). On 0b0074e I carry a separate, smaller composition of plane 1 over plane 0 for the same reason, and the before and after match what is reported here:

  • Without it: every captured frame before the world is black (frames 64 to 1,024 at 0 % non-black), and the world has no subtitles.
  • With it: frames 256, 512 and 1,024 all have content (logos, menu, loading art), the intro video plays, and subtitles are drawn over the lit first room.

So the diagnosis (the interface is on the second plane, with alpha 0 where empty) holds on this card and on plain Wine as well. For the upscale half I use the title's own upscaler through #258 rather than the stretch, so I cannot speak to that part. Once this is rebased I will drop my version and test this one in its place.

AI-assisted (Claude Code); captures are from runs on this PC.

**@⁠Ortomanic** on GitHub · 2026-11-25 15:40 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7167215679) One more Linux data point for the second-plane half, from an **RTX 5080** (CachyOS, Wine 11.22, vkd3d-proton 3.1.r64, driver 620.73.04, `--console series-s`). I have not run this branch (it conflicts with `0b0074e` at the moment). On `0b0074e` I carry a separate, smaller composition of plane 1 over plane 0 for the same reason, and the before and after match what is reported here: - **Without it:** every captured frame before the world is black (frames 64 to 1,024 at 0 % non-black), and the world has no subtitles. - **With it:** frames 256, 512 and 1,024 all have content (logos, menu, loading art), the intro video plays, and subtitles are drawn over the lit first room. So the diagnosis (the interface is on the second plane, with alpha 0 where empty) holds on this card and on plain Wine as well. For the upscale half I use the title's own upscaler through #258 rather than the stretch, so I cannot speak to that part. Once this is rebased I will drop my version and test this one in its place. AI-assisted (Claude Code); captures are from runs on this PC.
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-25 19:43 UTC · original

Tested on RTX 5060 Ti 8 GB (Windows 11) on top of fork main d510ee4. Without it, Series S was a black window from start to end, though the game ran blind. With it, the title screen, loading art, cutscene and first room all show. One conflict with main in host.rs present(): the framelog wrapper and present_now both need the over argument. Also queue.rs's held present (VICTORY_ASYNC_PRESENT) calls present with 3 arguments; I passed None there. One note: the loading screen with the artwork waits for a second press of Enter in Series S. Series S gives the best frame rate on this 16 GB machine (19 GB private instead of 23.6 for Series X).

🤖 Generated with Claude Code

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-25 19:43 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7172683007) Tested on RTX 5060 Ti 8 GB (Windows 11) on top of fork `main` d510ee4. Without it, Series S was a black window from start to end, though the game ran blind. With it, the title screen, loading art, cutscene and first room all show. One conflict with `main` in `host.rs` `present()`: the framelog wrapper and `present_now` both need the `over` argument. Also `queue.rs`'s held present (`VICTORY_ASYNC_PRESENT`) calls `present` with 3 arguments; I passed `None` there. One note: the loading screen with the artwork waits for a second press of Enter in Series S. Series S gives the best frame rate on this 16 GB machine (19 GB private instead of 23.6 for Series X). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠MKmajster on GitHub · 2026-11-25 22:30 UTC · original

How this merges on current main (3973179 and later, up to ca8829f), and how it ran with that.

The conflict is in Host::present. Main's frame log now wraps it: present times the call and passes it on to present_now. I kept that wrapper. Both functions take this PR's over: Option<(&ID3D12Resource, u32)>, and present passes over on to present_now.

One more call site. Main's held present (Held::Present in queue.rs, used with VICTORY_ASYNC_PRESENT, off by default) calls present(texture, state, frame). After the merge it needs the overlay as well. As a stopgap I pass None there, so with ASYNC_PRESENT=1 the overlay would be missing. The fuller fix is to carry the overlay in Held::Present, as #1053's branch does.

Run. RTX 3070 8 GB, 16 GB RAM, Windows 11, --console series-s, on that tree with #258, #883, #1016, #1014, #1020 and #1032. The interface, loading art, cutscene and the first room all show. With the switches from #1083 (draw windows, gather, COPY_PLAIN, JOIN_PARTS, BACK_OWN_VIEW, ASYNC_SUBMIT, QUEUE2, a 4 GB texture budget) the median frame is 144–155 ms. A 10-minute run kept 18.5 GB private memory flat, with no errors and no device loss.

AI-assisted (Claude Code). No game data attached.

**@⁠MKmajster** on GitHub · 2026-11-25 22:30 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7176457253) How this merges on current `main` (3973179 and later, up to ca8829f), and how it ran with that. **The conflict** is in `Host::present`. Main's frame log now wraps it: `present` times the call and passes it on to `present_now`. I kept that wrapper. Both functions take this PR's `over: Option<(&ID3D12Resource, u32)>`, and `present` passes `over` on to `present_now`. **One more call site.** Main's held present (`Held::Present` in `queue.rs`, used with `VICTORY_ASYNC_PRESENT`, off by default) calls `present(texture, state, frame)`. After the merge it needs the overlay as well. As a stopgap I pass `None` there, so with `ASYNC_PRESENT=1` the overlay would be missing. The fuller fix is to carry the overlay in `Held::Present`, as #1053's branch does. **Run.** RTX 3070 8 GB, 16 GB RAM, Windows 11, `--console series-s`, on that tree with #258, #883, #1016, #1014, #1020 and #1032. The interface, loading art, cutscene and the first room all show. With the switches from #1083 (draw windows, gather, `COPY_PLAIN`, `JOIN_PARTS`, `BACK_OWN_VIEW`, `ASYNC_SUBMIT`, `QUEUE2`, a 4 GB texture budget) the median frame is 144–155 ms. A 10-minute run kept 18.5 GB private memory flat, with no errors and no device loss. AI-assisted (Claude Code). No game data attached.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-24 23:26 UTC · original · requested changes

Reviewed at 19a0240 against 2119b0e. The first two commits are #32's and unmodified; the review below covers the last two.

Verification:

  • cargo xwin check --release -p victory-gpu -p victory-hle passes.
  • victory-gpu --lib under Wine: 110 passed, 0 failed, 1 ignored.
  • victory-hle --lib under Wine: 94 passed, 1 failed (net::tests::only_loopback_is_reachable, Wine lacks WSAConnectByList; unrelated).

Requesting changes for three concrete items:

  1. over.rs:245-247 writes out of bounds for non-multiple-of-8 sizes. Dispatch(width.div_ceil(8), height.div_ceil(8), 1) launches threads past target's width/height, and the shader writes target[id.xy] unconditionally. The tested 1920x1080 and 1280x720 happen to divide by 8, but the pass is generic. Add if (id.x >= width || id.y >= height) return; (pass the dimensions in the constants or use GetDimensions) instead of relying on typed-UAV out-of-bounds writes being discarded.

  2. ffx.rs:108-111 returns success when there is no real dispatch. If REAL == 0 and upscale_stretch returns false, dispatch returns 0 (FFX success) without writing the output or calling the title's DLL. That is the silent-black case this PR is meant to remove, and it also masks a missing loader/export. Return a non-zero FFX error, or log once and make the interception conditional on REAL != 0 in run.rs so the original import is not replaced when no fallback exists.

  3. No tests for the new logic. The compile-time offset_of!(Upscale, output) assert is good, but the PR adds 671 lines of unsafe ABI/descriptor code with no test. Please add at least unit tests for the pure pieces: typed() mappings, Upscale offsets for render/upscale (not just output), and the plane-selection predicate. A GPU test for the stretch/over passes would be better, but the pure checks are the minimum.

Process: #32 is still open and its two commits are carried here. Please state the merge order explicitly (or rebase this onto #32) so reviewers do not merge #32 twice or merge this without #32's review.

Non-blocking:

  • record_stretch caches a failed make_stretch as None forever (over.rs:334), unlike over::record, which retries. A transient first-call failure leaves the output black for the session.
  • RING = 16 and STRETCH_RING = 64 are fixed in-flight assumptions; document or derive them from the maximum presents/dispatches sent ahead.
  • On Wine, both new shaders go through host::compile; without #20's root-signature fallback they will fail CreateRootSignature. Worth noting as a dependency for Proton/Series S.
**@⁠ErRusso** on GitHub · 2026-11-24 23:26 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#pullrequestreview-6049030092) · **requested changes** Reviewed at `19a0240` against `2119b0e`. The first two commits are #32's and unmodified; the review below covers the last two. Verification: - `cargo xwin check --release -p victory-gpu -p victory-hle` passes. - `victory-gpu --lib` under Wine: 110 passed, 0 failed, 1 ignored. - `victory-hle --lib` under Wine: 94 passed, 1 failed (`net::tests::only_loopback_is_reachable`, Wine lacks `WSAConnectByList`; unrelated). Requesting changes for three concrete items: 1. **`over.rs:245-247` writes out of bounds for non-multiple-of-8 sizes.** `Dispatch(width.div_ceil(8), height.div_ceil(8), 1)` launches threads past `target`'s width/height, and the shader writes `target[id.xy]` unconditionally. The tested 1920x1080 and 1280x720 happen to divide by 8, but the pass is generic. Add `if (id.x >= width || id.y >= height) return;` (pass the dimensions in the constants or use `GetDimensions`) instead of relying on typed-UAV out-of-bounds writes being discarded. 2. **`ffx.rs:108-111` returns success when there is no real dispatch.** If `REAL == 0` and `upscale_stretch` returns false, `dispatch` returns `0` (FFX success) without writing the output or calling the title's DLL. That is the silent-black case this PR is meant to remove, and it also masks a missing loader/export. Return a non-zero FFX error, or log once and make the interception conditional on `REAL != 0` in `run.rs` so the original import is not replaced when no fallback exists. 3. **No tests for the new logic.** The compile-time `offset_of!(Upscale, output)` assert is good, but the PR adds 671 lines of unsafe ABI/descriptor code with no test. Please add at least unit tests for the pure pieces: `typed()` mappings, `Upscale` offsets for `render`/`upscale` (not just `output`), and the plane-selection predicate. A GPU test for the stretch/over passes would be better, but the pure checks are the minimum. Process: #32 is still open and its two commits are carried here. Please state the merge order explicitly (or rebase this onto #32) so reviewers do not merge #32 twice or merge this without #32's review. Non-blocking: - `record_stretch` caches a failed `make_stretch` as `None` forever (`over.rs:334`), unlike `over::record`, which retries. A transient first-call failure leaves the output black for the session. - `RING = 16` and `STRETCH_RING = 64` are fixed in-flight assumptions; document or derive them from the maximum presents/dispatches sent ahead. - On Wine, both new shaders go through `host::compile`; without #20's root-signature fallback they will fail `CreateRootSignature`. Worth noting as a dependency for Proton/Series S.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-25 11:15 UTC · original · approved these changes

Reviewed at 2f81ff8 against 8dd30ab. All three blocking items are addressed:

  1. Bounds guard: the stretch shader now reads target.GetDimensions(width, height) and returns for id.x >= width || id.y >= height; over::tests::the_stretch_writes_inside_its_target_only asserts the guard is in the source.
  2. Unanswered dispatch: ffx::dispatch returns FFX_API_RETURN_ERROR and logs once when neither the stretch nor the title's own ffxDispatch answers; ffx::tests::a_dispatch_nothing_answers_is_an_error covers a non-upscale dispatch and a null description.
  3. Tests: over::tests covers typed() and the bounds guard, queue::plane_tests covers the second-plane predicate over seven cases, and ffx::tests covers the Upscale/Resource offsets.

Verified here:

  • cargo xwin check --release --target x86_64-pc-windows-msvc -p victory-gpu -p victory-hle passes.
  • Under Wine 11.22 (Windows test binaries): over::tests 3 passed, queue::plane_tests 1 passed, ffx::tests 2 passed.

The non-blocking items are also handled: the failed stretch is retried rather than cached as None, and both view rings now document what their fixed sizes rest on. The merge order is stated in the body (#32 first, then this). I did not re-run the GPU title path; the hardware reports in the thread cover it.

LGTM.

**@⁠ErRusso** on GitHub · 2026-11-25 11:15 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#pullrequestreview-6056596503) · **approved these changes** Reviewed at `2f81ff8` against `8dd30ab`. All three blocking items are addressed: 1. **Bounds guard:** the stretch shader now reads `target.GetDimensions(width, height)` and returns for `id.x >= width || id.y >= height`; `over::tests::the_stretch_writes_inside_its_target_only` asserts the guard is in the source. 2. **Unanswered dispatch:** `ffx::dispatch` returns `FFX_API_RETURN_ERROR` and logs once when neither the stretch nor the title's own `ffxDispatch` answers; `ffx::tests::a_dispatch_nothing_answers_is_an_error` covers a non-upscale dispatch and a null description. 3. **Tests:** `over::tests` covers `typed()` and the bounds guard, `queue::plane_tests` covers the second-plane predicate over seven cases, and `ffx::tests` covers the `Upscale`/`Resource` offsets. Verified here: - `cargo xwin check --release --target x86_64-pc-windows-msvc -p victory-gpu -p victory-hle` passes. - Under Wine 11.22 (Windows test binaries): `over::tests` 3 passed, `queue::plane_tests` 1 passed, `ffx::tests` 2 passed. The non-blocking items are also handled: the failed stretch is retried rather than cached as `None`, and both view rings now document what their fixed sizes rest on. The merge order is stated in the body (#32 first, then this). I did not re-run the GPU title path; the hardware reports in the thread cover it. LGTM.
Author
Owner

@⁠gmankab on GitHub · 2026-11-26 11:52 UTC · original

I rebased the six presentation and stretch commits onto ceb9e1f7 and tested the Series S checkpoint on Fedora 45 with an RX 6800, Wine and vkd3d-proton 3.2.0. The rebase preserves the timed present wrapper and retains the second resource and its state for queued presents, following the existing queue changes. Tested branch · Queue changes

The benchmark initially captured black PNGs because it read the first plane before composition. Reading the composed buffer produced visible content in 26 of 28 captures. The same 28 frame numbers were black with the original readback. Both asynchronous switches were enabled. Captured frames use the synchronous readback path. The latest captured frame showed illustrated loading. Readback commit

Both GPU readback tests ran on RADV and passed. The plane parser test passed too.

Tested-on: Radeon RX 6800, Fedora Linux 45, Wine and RADV
Assisted-by: gpt-6.2 sol xhigh

**@⁠gmankab** on GitHub · 2026-11-26 11:52 UTC · [original](https://github.com/fxceless/victory-fork/pull/188#issuecomment-7191270104) I rebased the six presentation and stretch commits onto `ceb9e1f7` and tested the Series S checkpoint on Fedora 45 with an RX 6800, Wine and vkd3d-proton 3.2.0. The rebase preserves the timed present wrapper and retains the second resource and its state for queued presents, following the existing queue changes. [Tested branch](https://github.com/gmankab/victory/tree/contrib/fx-series-s-pr188-current) · [Queue changes](https://git.gtahub.st/github/fxceless--victory-fork/pulls/1053) The benchmark initially captured black PNGs because it read the first plane before composition. Reading the composed buffer produced visible content in 26 of 28 captures. The same 28 frame numbers were black with the original readback. Both asynchronous switches were enabled. Captured frames use the synchronous readback path. The latest captured frame showed illustrated loading. [Readback commit](https://github.com/gmankab/victory/commit/19cca8561fdfed01b74ce2aa57152514126bddd9) Both GPU readback tests ran on RADV and passed. The plane parser test passed too. Tested-on: Radeon RX 6800, Fedora Linux 45, Wine and RADV Assisted-by: gpt-6.2 sol xhigh
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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