Series S: the second present plane, and a plain stretch for the upscale dispatch #188
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!188
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-188"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@sagouindupm on GitHub · 2026-11-24 22:21 UTC · original
sagouindupm:series-s-pr→main· +1113 −9 · 9 files · 9 commits · openGets 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 offfxDispatchis bound to ours. An upscale dispatch (type0x10001, 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 currentmain; the rebase brought in only the two lane-mask commits):--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.VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1, same mode, about five minutes: no debug-layer message, no device removal.After the rebase (
66804e3, now19a0240: the same tree, commit messages rewritten):cargo check --release -p victorypasses;cargo test --release -p victory-gpu -p victory-hle: 110 passed, 0 failed, 1 ignored and 95 passed, 0 failed, plusno_dll_planting1 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, plusno_dll_planting1 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 itcargo test --release -p victory-gpu --lib: 115 passed, 0 failed, 1 ignored. Filip722 confirmedc022e4dunder Proton (thread below).Not tested
c022e4d(the compiler there writes none into the shader, reported in the thread below); the HLSL itself still goes throughhost::compile.Related
AI use
🤖 Generated with Claude Code
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.8dd30ab): the R9G9B9E5 stand-in is in main now 2f81ff8a65@N7z on GitHub · 2026-11-24 22:57 UTC · original
Works here: with this branch,
--console series-srenders menus, loading and the world instead of a black screen.Setup
pr-188at66804e3,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_planting1 passed.From the log (about 3.5 minutes)
stand-in is used format=67 stand_in=10,a present's second plane is drawn over the first format=28, andupscale dispatch ... render=[1280, 720] upscale=[1920, 1080].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.)
@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 at19a0240, merged as a fast-forward onto forkmain(2119b0e). Run with--console series-s --unimplemented zero.Before (fork
mainwithout this PR): the window and theVICTORY_CAPTUREframes were solid black at 5-19 draws/frame. The log showedamd_fidelityfx_upscaler_xbox.dllrefused by the host policy.With this PR:
ERRORlines, no device removal/DRED.Remaining warnings (same as without the PR): unimplemented pipeline creation methods at device slots
0x1c8and0x218, 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.
@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
19a0240onto #63 plus a local shader visibility fix. Git range-diff matched all four patches. Both profiles used the same checkpoint and diagnostics settings, includingVICTORY_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.
@sagouindupm on GitHub · 2026-11-24 23:57 UTC · original
Thanks for the review; all three items are addressed in
82231c3.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.ffxDispatchwas not found), it now returnsFFX_API_RETURN_ERRORand 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.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, andResource's fields), the unanswered dispatch returning an error, and the plane choice. For the last one the predicate moved out of the present intosecond_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:
make_stretchis no longer cached: it is tried again at the next dispatch, with one warning.RINGandSTRETCH_RINGnow 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.Verification on
82231c3:cargo test --release -p victory-gpu -p victory-hle: 113 passed, 0 failed, 1 ignored; 97 passed, 0 failed;no_dll_planting1 passed. One release run with--console series-son 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.
@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-protonec20719. All seven window samples from a 25-second run were black. With a local change that serializes the overlay and stretch root signatures usingD3D12SerializeRootSignature, 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
RTS0chunk. Both calls toCreateRootSignaturefailed withE_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.
@sagouindupm on GitHub · 2026-11-25 00:44 UTC · original
@Filip722 thank you, that was precise enough to act on.
c022e4don this branch serializes both root signatures withD3D12SerializeRootSignature(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 anRTS0part.On Windows it behaves as before:
cargo test --release -p victory-gpu --lib114 passed, 0 failed, 1 ignored; one release run with--console series-son 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 onc022e4dthat 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.
@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. On82231c3, all seven samples were black. Onc022e4d, 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_stretchon82231c3and passed onc022e4d. All four focused display tests passed and the GPU readback ran on the NVIDIA adapter.I also ran the full Windows-target
victory-gpuunit 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.
@sagouindupm on GitHub · 2026-11-25 01:28 UTC · original
@Filip722 taken as
03d1791(cherry-picked with-xfrom your76687ee, your authorship kept). Here on Windows, RTX 3050 8 GB:cargo test --release -p victory-gpu --lib115 passed, 0 failed, 1 ignored, withover::readback::stretch_and_overlay_preserve_the_expected_pixelsamong them. Thanks for the Proton confirmation ofc022e4dtoo.@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) andc022e4d(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.
@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
main310c6ebwith the #188 stack at03d1791, the #20 code at16b6305, and the four newer main test callers already adapted. The combined build still fails atcrates/victory-gpu/src/over.rs:137,138,358:E0308, expected&str, foundPCSTR. 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 localsimports. With just that change,cargo test --offline --locked --target x86_64-pc-windows-gnullvm -j2 -p victory-gpu --lib --features diagnostics --no-runlinked. 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 printedno D3D12 device; skipping display readbackand Rust reported it asok. 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--nocaptureand 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 addingat = min(at, scale - 0.5 / float2(sw, sh));immediately beforeSampleLevel, 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.
@sagouindupm on GitHub · 2026-11-25 04:44 UTC · original
@ArturoWolff thank you, reproduced and fixed in
3ed3b19.(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.s!(...)around the entry names and profiles inover.rs): I leave the standalone head as it is, as you say, and will adapt it in whichever of the two merges second.AI-assisted: Claude Code (Claude Fable 5.2) wrote the test and applied the fix.
@ArturoWolff on GitHub · 2026-11-25 04:55 UTC · original
Thanks for picking this up. I retested
3ed3b19on GE-Proton11-14 / llvmpipe 26.3.1, this time from the standalone PR head, without #20. Both of your committedover::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.
@sagouindupm on GitHub · 2026-11-25 05:51 UTC · original
Merged
main8dd30abinto this branch (merge commit2f81ff8, no force-push). The one conflict was the stand-in's log line inresource.rs:mainnow carries the R9G9B9E5 stand-in itself, so I tookmain's side and this PR no longer changesresource.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.
@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):2f81ff8, merged into8dd30abplus VIcky's commits. VIcky adds a heap map for the 1,000,000-view cap and per-program wave64 switches; neither touches presentation.VICTORY_SHADER_OPT=0, the 14CS_ShadowRenderTiled*hashes inVICTORY_WAVE_DEEP_SKIPS_NOT(#62). Diag build, same save as our Series X runs, 9 min.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.
@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
310c6eb6plus other open PRs, among them #610 withVICTORY_TEXTURE_DROP_MIPS=1. Against Series X on the same tree and night:full card refusing new textures). In Series S all of them were there and lit. Softer, with dotted edges on hair
and frames.
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.
330-810 ms at 9,000-10,500 draws. So on 8 GB this mode moves the limit by a scene or two.
mission the boat sits in a square hole in the water.
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.@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.
@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 (
main9376fd6+ PR head2f81ff8,--console series-s). Loading art was visible and the game audio stream was non-silent.over.rsprecede the actual draw/dispatch. Neither is a GPU-completion or presentation receipt.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
9376fd6Series 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 markedPresentreturnedS_OKat 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.
@cdomergue on GitHub · 2026-11-25 10:04 UTC · original
For comparison with the Proton report, I tested the same
9376fd6+2f81ff8merge 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.@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.
@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
0b0074eat the moment). On0b0074eI 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: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.
@Exopus-0x65f7ad0 on GitHub · 2026-11-25 19:43 UTC · original
Tested on RTX 5060 Ti 8 GB (Windows 11) on top of fork
maind510ee4. 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 withmaininhost.rspresent(): the framelog wrapper andpresent_nowboth need theoverargument. Alsoqueue.rs's held present (VICTORY_ASYNC_PRESENT) callspresentwith 3 arguments; I passedNonethere. 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
@MKmajster on GitHub · 2026-11-25 22:30 UTC · original
How this merges on current
main(3973179and later, up toca8829f), and how it ran with that.The conflict is in
Host::present. Main's frame log now wraps it:presenttimes the call and passes it on topresent_now. I kept that wrapper. Both functions take this PR'sover: Option<(&ID3D12Resource, u32)>, andpresentpassesoveron topresent_now.One more call site. Main's held present (
Held::Presentinqueue.rs, used withVICTORY_ASYNC_PRESENT, off by default) callspresent(texture, state, frame). After the merge it needs the overlay as well. As a stopgap I passNonethere, so withASYNC_PRESENT=1the overlay would be missing. The fuller fix is to carry the overlay inHeld::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.
@ErRusso on GitHub · 2026-11-24 23:26 UTC · original · requested changes
Reviewed at
19a0240against2119b0e. 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-hlepasses.victory-gpu --libunder Wine: 110 passed, 0 failed, 1 ignored.victory-hle --libunder Wine: 94 passed, 1 failed (net::tests::only_loopback_is_reachable, Wine lacksWSAConnectByList; unrelated).Requesting changes for three concrete items:
over.rs:245-247writes out of bounds for non-multiple-of-8 sizes.Dispatch(width.div_ceil(8), height.div_ceil(8), 1)launches threads pasttarget's width/height, and the shader writestarget[id.xy]unconditionally. The tested 1920x1080 and 1280x720 happen to divide by 8, but the pass is generic. Addif (id.x >= width || id.y >= height) return;(pass the dimensions in the constants or useGetDimensions) instead of relying on typed-UAV out-of-bounds writes being discarded.ffx.rs:108-111returns success when there is no real dispatch. IfREAL == 0andupscale_stretchreturns false,dispatchreturns0(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 onREAL != 0inrun.rsso the original import is not replaced when no fallback exists.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,Upscaleoffsets forrender/upscale(not justoutput), 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_stretchcaches a failedmake_stretchasNoneforever (over.rs:334), unlikeover::record, which retries. A transient first-call failure leaves the output black for the session.RING = 16andSTRETCH_RING = 64are fixed in-flight assumptions; document or derive them from the maximum presents/dispatches sent ahead.host::compile; without #20's root-signature fallback they will failCreateRootSignature. Worth noting as a dependency for Proton/Series S.@ErRusso on GitHub · 2026-11-25 11:15 UTC · original · approved these changes
Reviewed at
2f81ff8against8dd30ab. All three blocking items are addressed:target.GetDimensions(width, height)and returns forid.x >= width || id.y >= height;over::tests::the_stretch_writes_inside_its_target_onlyasserts the guard is in the source.ffx::dispatchreturnsFFX_API_RETURN_ERRORand logs once when neither the stretch nor the title's ownffxDispatchanswers;ffx::tests::a_dispatch_nothing_answers_is_an_errorcovers a non-upscale dispatch and a null description.over::testscoverstyped()and the bounds guard,queue::plane_testscovers the second-plane predicate over seven cases, andffx::testscovers theUpscale/Resourceoffsets.Verified here:
cargo xwin check --release --target x86_64-pc-windows-msvc -p victory-gpu -p victory-hlepasses.over::tests3 passed,queue::plane_tests1 passed,ffx::tests2 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.
@gmankab on GitHub · 2026-11-26 11:52 UTC · original
I rebased the six presentation and stretch commits onto
ceb9e1f7and 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 changesThe 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
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.Merge
Merge the changes and update on Forgejo.