GPU: composite multiple PresentX planes (fixes Series S black UI/menus) #211
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!211
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/211/head"
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?
@Yaekai on GitHub · 2026-11-24 01:28 UTC · original
Yaekai:feat/gpu-presentx-multiplane→main· +576 −49 · 2 files · 10 commits · closed without mergingProblem
When running with
--console series-s, GTA VI callsPresentXwith 2 planes:1920×10803D scene buffer (black during menus)3840×2160UI/HUD overlay planePreviously,
queue::presentonly readplane_parameters[0]and ignored planes1..planes, causing--console series-sto display a solid black screen on menus and lose the UI/HUD overlay in gameplay.Changes
crates/victory-gpu/src/queue.rs:Pad
Planeto the observed 72-byte (0x48) array stride (const _: () = assert!(size_of::<Plane>() == 0x48);) soplane_parameters[1..]indexes cleanly.Host::present, restoring each plane's resource state afterward.crates/victory-gpu/src/host.rs:CopyResourcefast path whenplanes.len() == 1.planes.len() >= 2, size the swap chain to the maximum(width, height)across planes and lazily compile a small built-in fullscreen-triangle compositor (Compositor, viaD3DCompile):1..are composited on top with premultiplied alpha (ONE,INV_SRC_ALPHA).VICTORY_CAPTURE) and black-frame probes read back the composited backbuffer.Verification
--profile diag -p victory --features diagnosticscleanly with 0 warnings in modified code.--console series-s+VICTORY_D3D12_DEBUG=1+VICTORY_CAPTURE:frame-150.pngandframe-256.pngwere 100% solid black ((0, 0, 0)), whileVICTORY_DUMP_TARGETSshowed the menu rendered onto the3840×2160Plane 1 texture.presenting to a window width=3840 height=2160 format=28, 0 D3D12 debug layer errors from the compositor, andframe-150.png/frame-256.pngrender the crisp 4K menu UI cleanly.@kykifox1337-source on GitHub · 2026-11-24 01:48 UTC · original
Tested on NVIDIA and Windows 10, without the debug layer: it fixes the black screen here too.
Setup: Windows 10 22H2 (19045), i7-8700K, RTX 2070 SUPER 8 GB (driver 610.88), diag build of
maind2a4bae+ #175 (Windows 10 needs the Agility runtime to draw at all) + this PR at24a387d,--console series-s,VICTORY_CAPTURE. Counts only.presenting to a window width=3840 height=2160The device was removed (
0x887A0004, no DRED) about 45 s after the world loaded. Series X mode on the same build was removed the same way, so it is not from this PR; it looks like the NVIDIA world hang in #71.AI-assisted (Claude Code); I ran everything above myself.
@cdomergue on GitHub · 2026-11-24 01:49 UTC · original
Tested
24a387don Windows with an RTX 4070 SUPER in Series S mode. On main (d2a4bae), the window stayed black. With this PR alone, I could see the profile selector, choose Player, and use the first-run settings. The navigation options and button prompts were readable in French.The last screen I saw was purple. The log ended with a memory allocation failure before I reached the world.
I recommend merging this PR. It fixes the black menus on my setup and lets me get through the settings.
@Castyan on GitHub · 2026-11-24 09:42 UTC · original
Independent A/B test on
mainat8e79c80, with only PR #211 at24a387dapplied to the second build.Setup — Windows 11 Pro x64 build 26300, Ryzen 5 9600X, 16 GB RAM, RTX 5060 installed. Both builds used Rust 1.98.1, the
diagprofile, Series S, and the WARP software adapter. Both were observed for 60 seconds with fresh, separate cache and data directories and no scripted input.mainBoth processes were still running at the end of the observation. The monitored logs showed no commit-limit error, device removal, or unhandled exception. The same temporary measurement in both builds logged only the black/non-black result of VIctory's existing grid probe at every 30th frame and at powers of two. No frame captures were saved. The automated observation establishes that the sampled output became non-black with the PR. Menu readability and gameplay were outside this measurement.
AI-assisted test automation and report.
@Alex-Devxx on GitHub · 2026-11-24 09:48 UTC · original
Tested this PR locally on top of
c7a5f49with--console series-son an AMD Radeon RX 7600 (RDNA 3):32.0.32029.2010)diag(VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1,VICTORY_LOG=info)b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93Before vs. After (Series S)
c7a5f49):presenting to a window width=1920 height=1080 format=28; completely black screen during boot/menus (audio and controller worked in the background).presenting to a window width=3840 height=2160 format=28; menus/UI render cleanly at 30.0 fps (~1.6–3.3 ms GPU time, 0 dropped draws).DXGI_ERROR_DEVICE_HUNGwith aview heappage fault at slot1402368). Scene itself remains dark as expected (304 untranslated shaders, 1160–4804 draws/frame dropped), and cleanly saved the pipeline library on exit (made=615,loaded=362).WARNlines noted in world load:victory_gpu::resource: a GPU address above 40 bits address=0x130d8920000,pipeline state slot=0x58,command list slot=0x1a8.@rubcov666 on GitHub · 2026-11-24 10:38 UTC · original
Confirmed the Series S profile-screen fix on Windows 11 WARP. I tested upstream
ffe310eb2098and the same revision with only the compositor change from24a387d700bc. Both used the diagnostic build, the same 1.0.2.1 title, fresh cache and save directories, and no input. I closed each run after frame 512.Regression test. The attached patch adds a Windows WARP test that calls the production
PresentXpath with generated solid-color RGBA8 textures. The base is 32×32 and the overlay is 64×64. The existing readback returns the brightest RGB channel, which can be checked exactly for each uniform image.The same test failed on main and passed with the PR. The ordinary diagnostic
victory-gpulibrary suite on the patched build also passed (53 passed, 2 ignored). Extract the patch in the checkout and run these commands in a Windows desktop PowerShell session.Ryzen 7 9800X3D, Windows 11 Pro 26300.9974, WARP 10.0.26100.9818, Rust 1.98.1. The title comparison covers the profile screen. Baseline title runs.
Test execution and reporting were assisted by Codex on this PC.
presentx-two-planes.zip
@Castyan on GitHub · 2026-11-24 11:13 UTC · original
Follow-up A/B on
mainatffe310e, with only PR #211 at24a387dapplied to the second build.Both builds used Rust 1.98.1, the
diagprofile, Windows 11 x64, Series S, and WARP, with separate fresh VIctory caches and profiles. There was no scripted input. Counts below use only samples within the first 60 seconds.mainI kept the candidate running for 155 seconds. It was still running at the cutoff, and all 69 sampled frames from the first non-black sample through the cutoff were non-black. The monitored logs showed no device removal or Win32 commit-limit error. The probe recorded only black/non-black values from VIctory's existing grid. No frame captures were saved.
For context, a separate earlier manual run with #211 on
8e79c80ended after about 133 seconds with DXGI codes0x887A0004and0x887A0005following a submission of 24 lists. The extended run above covers unattended startup and does not replay that manual input sequence.AI-assisted test automation and report.
@EgoraWyn on GitHub · 2026-11-24 14:26 UTC · original
Test report: NVIDIA RTX 3060 Laptop 6 GB (Ampere, 32-lane waves). The same fix as in the two NVIDIA reports above, an A/B against #492, and a Series S world that stays up for 4.5 minutes on the set from #71.
Setup: Windows 11 build 26300, driver 596.21 (32.0.15.9621), i5-12450H, 32 GB RAM, title 1.0.2.1 (own copy), Rust 1.98.1,
--profile diag --features diagnostics, the process held to 4 logical CPUs.Base for every row:
8e79c80+ #493 (c48b240) + #206 (05981dd) + #189 (d0fd9bf) + #454 (d2c93fa) +MIN_DYNAMIC = 1 << 18(#747), the set from #71 that keeps 32-lane cards up in the world. This PR at24a387dand #492 atb57e10dmerge onto it without conflicts.Menus,
--console series-s, no input, 70 s per build (frames saved withVICTORY_CAPTURE):Without either PR the picture is black as well: plain
mainffe310e(75 s, no input) and the base tree (420 s with scripted keys, 30 fps and 44 draws/frame at the end; 958 of its 959 captured frames are black, the other one a dim grey).World, base + #211 + #492,
--console series-s, scripted keys through the first-run setup,VICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=32 VICTORY_D3D12_DRED=1, 420 s, shader cache cold:main:ffe310e+ the same PRs with #189 at its new headb472733, all clean merges, Series S: world for the last 3.5 minutes of a 420 s run, 0.2–1.2 fps, no device removal.Memory, Series S against Series X mode (same machine and base; Series X without this PR and #492; highest value of the run unless noted):
series-s(+ #211 + #492)series-x(base)nvidia-smi)Not tested: this PR without #492 in the world (the world runs had both), other GPUs, the debug layer. One run per row.
AI use: Claude Code (Claude Fable 5.2) built the trees, ran the runs and wrote this report from the logs; a second tool (Codex) checked the numbers against the logs. The hardware, the title copy and the runs are the user's.
@BaggyALPHA on GitHub · 2026-11-24 15:09 UTC · original
Independent live WARP comparison of the branch point
9aef3d9and PR headaf9a911. The tree diff between them is limited to the two PresentX source files. Both builds used Series S, the diagnostics profile, separate fresh caches and profiles, and the same scripted input and capture settings.cargo test --locked --profile diag -p victory-gpu --features diagnostics compositor -- --nocapture --test-threads=1withVICTORY_D3D12_WARP=1.AI-assisted test execution and write-up (OpenAI Codex).
@jamesn-xt on GitHub · 2026-11-24 16:22 UTC · original · edited 2026-11-24 16:24 UTC
Verified on Windows 11 x64 build 26200, Ryzen 5 5600, 32 GiB RAM, RTX 4080 / NVIDIA 617.42, pinned Rust 1.98.1. Tested PR head
2fb7a8bmerged cleanly ontoffe310eplus the independent capture-directory fix from #1146.The Series S baseline captured only black frames through frame 1024. With this PR, the captured output includes player-selection prompts, the Rockstar splash, and a fully rendered Navigation Experience setup screen; the native window also displayed Legal Notices. Startup ran at 30 fps. The 150-second bounded hardware run was stopped intentionally; complete main menu, video and world rendering were not verified. The format-86/115 resource-creation warnings remain, so those should not be conflated with this presentation-layer fix.
Diagnostics GPU tests passed (55 passed, 1 ignored) and the diagnostics build succeeded. I also added synthetic pixel-readback assertions to the existing compositor recovery test: retry composition after the injected failure, then require premultiplied half-blue over red to produce RGBA
[127,0,128,255]. This passed on RTX 4080 and WARP; all-target/all-feature GPU Clippy and asset policy passed. Supplemental test PR against your branch: https://github.com/Yaekai/VIctory/pull/2 (commitf74bf40). It contains only synthetic test changes and is available for cherry-picking.No game screenshots, retail logs or derived assets attached.
Follow-up: with the saved setup profile, a subsequent WARP run also displayed distinct frames of the animated startup sequence, roughly 6 fps. Afterward it entered another dark/slow stage, so I am not claiming a complete main menu or world. The original hardware run's 30 fps applies to the setup screens.
@rpmaster2 on GitHub · 2026-11-24 18:50 UTC · original · edited 2026-11-24 18:58 UTC
@Yaekai a short AMD data point for this PR, without a conclusion about the picture overall.
Host: RX 9070 XT 16 GB, Adrenalin 26.11.2, Windows 11 26300,
main@ffe310e, diag build,--console series-s, 300 s per run, same save,Enterat 10/20/30/60/90 s.All three reach the world here, and in all three the layered UI stopped drawing on top of itself, so this session does not isolate #211 as the requirement for either. The two-plane description still fits what
--console series-sdoes, but I have not proven it on this host.Caveat: one run per variant, screen impressions only, no
cargo test, and the plane path was not checked in isolation.AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and screen observations; the hardware and the dump are mine.
@Capi360 on GitHub · 2026-11-24 21:41 UTC · original
Independent Series S test on Windows 11 Pro build 26200, Ryzen 7 5700X3D, 32 GiB RAM, RTX 3060 Ti 8 GiB, NVIDIA driver 616.56.
I ran the #1638 NVIDIA stack with #242, then repeated with #211 integrated using the same profile and cache starting point. The Series S output before #211 was black in the sampled frames, including frames 600 and 1400. With composition, the intro and loading image came back. The center sample went from 0% colored pixels to 99.7% at frame 600 and 87.3% at frame 1400. Both compositor tests passed on this system.
I stopped at low Windows commit headroom during loading, so this verifies the display change through the intro and loading screen. Gameplay and its HUD remain unverified in this run.
Exact source revision. AI-assisted.
@giacbiologicbomb on GitHub · 2026-11-24 22:21 UTC · original
Tested a local adaptation of this PR on Windows with an RTX 5070 and about 15 GB RAM, using
--console series-s. Before this adaptation the window was black; with the local adaptation I could see the loading screen reach its end. I did not see the world.This was not an unmodified PR build: it was adapted on top of an fxceless-based local stack, with the fork's asynchronous presentation path replaced by synchronous presentation. The compositor initialization test passed, but the game result is not isolated to this PR.
In a later run without a free-RAM cutoff, the process ended after roughly 121 seconds. Its log reported
no host list for a state prelude; device removedwith an invalid-call/state message. Available RAM had been around 0.3 GB shortly before exit. I cannot tell whether memory pressure, the local adaptation, or something else caused the GPU failure.@giacbiologicbomb on GitHub · 2026-11-24 22:45 UTC · original
Follow-up to my earlier report: I tried Series S again on a cleaner local baseline: stack8 at
25b72e6plus my adapted #211 compositor (a5a7a34), without the later stack9/JMAN fixes. The build passed and the title started, but it ended after approximately 84 seconds, before I saw the world.The log reports
host GPU device removed after a submission of 1 lists, with no DRED breadcrumbs and an invalid-call/state removal reason. Available physical RAM briefly reached approximately 0.30 GB; I did not use an automatic RAM cutoff on this run. I cannot determine from these logs whether memory pressure, my adaptation, another change in the combined baseline, or something else caused the removal. This is not an unmodified PR-head test.@EgoRaInevitable on GitHub · 2026-11-24 23:35 UTC · original
I tested #211 on Linux/Proton, merged onto latest main.
PR head
8cd5cc6c47, merged onto main70564ae(merge commit f4581aa) in a local worktree. Diagnostics build:--profile diag -p victory --features diagnostics, cargo-xwin 0.24.1, Rust 1.98.1.System: CachyOS 7.3.5, Ryzen 5 5600X, RTX 3060 Ti 8 GB, driver 620.73.04. Runtime: Proton Experimental
experimental-11.0-20261112, vkd3d-proton 3.2.0, DXVK from Proton Experimental. Run:--console series-s,VICTORY_CAPTURE.An earlier Series S run on main was a black screen on my machine. With #211:
presenting to a window width=3840 height=2160 format=28;The run later ended after ~78 s with
NVRM NV_ERR_NO_MEMORYwhile host textures reached ~6152 MB. That is the 8 GB card limit, not this PR; no XMem mapping failures were logged. Recommend merge.AI-assisted: build/run/capture analysis; I verified the display was actually not black and rendered the menu and intro.
@Marvisak on GitHub · 2026-11-25 00:00 UTC · original
Automated triage for the maintainers. Closing because it breaks a repository rule (see
docs/asset-policy.mdand the project rules): nothing taken from the console SDK or the game, no weakening of the asset policy, and the title stays offline.If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
@Yaekai on GitHub · 2026-11-25 00:35 UTC · original
This looks like a false positive from automated triage — this PR only modifies crates/victory-gpu/src/host.rs and crates/victory-gpu/src/queue.rs, contains no game assets, binaries, or console SDK code/headers, uses only synthetic 32×32 render-target tests and a standard 10-line fullscreen-triangle HLSL shader, keeps everything offline, and passes cargo xtask policy.
In case the SDK struct name in the Plane doc comment / PR description tripped the check, I've replaced it with a neutral description of the observed 0x48-byte stride. Could this be re-checked and reopened?
@Calvix2k on GitHub · 2026-11-25 01:21 UTC · original
Independent confirmation on Windows 10 22H2 + RX 7800 XT (RDNA3), rebasing this PR's head onto main
4118f33with only our Agility opt-in (#175) added:The next blocker here is unrelated to presentation: descriptor::create_placed_srv hands descriptor::record a handle in memory that VirtualQuery reports as not committed/writable (␀x336f0f60); guarding the write lets the title continue and it then hits the null write at ictory-image+0x23cf683 (#1118), so the placed view is needed. That is the Series S descriptor-heap case, not this PR.
The triage closure (asset policy) is a false positive from where I sit: this changes only crates/victory-gpu/src/host.rs and queue.rs, adds a ~10-line HLSL compositor compiled at runtime, and cargo xtask policy passes on the rebased tree. Please re-check/reopen.
Pull request closed