Present: blend the second present plane (the Series S interface) over the first, fixing the black boot and missing prompts #1079

Open
KyleS98 wants to merge 5 commits from upstream-pr/1081 into main
KyleS98 commented 2026-11-25 18:44:57 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-25T18:44:57Z.


What

With --console series-s the title presents two planes, not one:

plane what size placement
0 the game 1920x1080 R8G8B8A8 [0, 0, 1.0, 1.0] (the whole screen)
1 the interface 3840x2160 R8G8B8A8 [0, 0, 1.0, 1.0]

The plane descriptions are 72 bytes apart. I read them from title memory at present: token and count, then the resources, source rects, placement rects, and further fields.

We only showed plane 0. So with the Series S profile everything the title draws on its interface plane was missing:

  • the boot screens: the account picker, the Rockstar logo, the loading art. The screen stayed black for over a minute, which is the "black screen, no loading intro" people report;
  • the "NINE MONTHS AGO" card;
  • the in-game prompts ("Move around / Move the camera").

With --console series-x the title presents one 3840x2160 plane with everything in it, which is why the X profile shows them.

Change

  • A new crates/victory-gpu/src/compose.rs adds one small pass. Plane 0 reaches the back buffer by the same CopyResource as with one plane; a full-screen triangle then draws plane 1 over it, blended by the pipeline with premultiplied alpha, which is what display planes take. (Since 7f27af9; before that the pass sampled both planes and blended in its shader. See the update below.)
  • It runs only when the title presents a second plane. With one plane the present is the same CopyResource as before.
  • The pass compiles its HLSL with the existing host::compile (FXC, SM 5.1), like the depth-plane pass. It writes its descriptors into a 16-slot ring of its own. It has no sampler: plane 1 is filtered in the shader from four texels, and the root signature (one table of one view) is serialized from its description.
  • VICTORY_PLANE_ALPHA=straight switches to straight alpha. VICTORY_PLANES=0 turns the blend off.
  • With VICTORY_ASYNC_PRESENT, a two-plane present isn't sent behind the queue's line. It falls back to the present in line, which blends.

Tested

RTX 3090 Ti, Windows 11, warm shader cache, --console series-s, grabs every 5 to 8 s:

  • This branch (upstream d510ee4 plus this commit): the account picker shows within 15 s and stays up, because main has no scripted input. On plain main plus #835 the same boot was black for the whole 240 s.
  • With our other branches (#798 and the Neo defaults), scripted Enter presses, 7-minute run:
    • The loading art (jungle, flamingos, the Lucia and Jason posters) shows from about 20 s.
    • Then "NINE MONTHS AGO" over the cutscene, then the cell with the "Move around / Move the camera" prompt.
    • The cell runs at 6.7 fps (150 ms a frame) with and without the pass, so it costs nothing visible.
    • Before this, the same build was black until the world rendered, and the prompts never appeared.

I haven't confirmed whether the console blends premultiplied or straight. Interface pixels that are fully opaque or fully transparent come out the same either way. If someone sees dark or light fringes around interface text, VICTORY_PLANE_ALPHA=straight is the A/B to try.

Update, 2026-11-27 (7f27af9)

  • A correction. As first pushed, the pass's root signature had a static sampler, and on current main that alone made the title's own picture wrong on an NVIDIA card (bright yellow hair and a wall lit in blocks in the prologue's cell, in every run with it and none without). The pass now has no sampler; measurements and the table of what does and does not trigger it are in this comment.
  • The root signature is no longer written inside the pixel shader, so the pass can be made where the compiler returns a shader without it (Wine, found by Filip722 in this thread).
  • A read-back test of the pass (compose/readback.rs, after Filip722's fixture).
  • The corner box is drawn with two planes too (1268535, found by hadrianhola in this thread).
  • Tested again on 1f5d17a (with #798, #1388, #1414) and on 9a9091d (alone, and with #798): details in the comment linked above.

AI-assisted (Claude Code; the first version with Claude Opus 5.5, this update with Claude Fable 5.2); runs and grabs on my machine; no game data in the change.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5497144540 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081). Originally posted by [KyleS98](https://github.com/KyleS98) on 2026-11-25T18:44:57Z. --- ## What With `--console series-s` the title presents **two planes**, not one: | plane | what | size | placement | |---|---|---|---| | 0 | the game | 1920x1080 R8G8B8A8 | `[0, 0, 1.0, 1.0]` (the whole screen) | | 1 | the interface | 3840x2160 R8G8B8A8 | `[0, 0, 1.0, 1.0]` | The plane descriptions are 72 bytes apart. I read them from title memory at present: token and count, then the resources, source rects, placement rects, and further fields. We only showed plane 0. So with the Series S profile everything the title draws on its interface plane was missing: - the boot screens: the account picker, the Rockstar logo, the loading art. The screen stayed black for over a minute, which is the "black screen, no loading intro" people report; - the "NINE MONTHS AGO" card; - the in-game prompts ("Move around / Move the camera"). With `--console series-x` the title presents one 3840x2160 plane with everything in it, which is why the X profile shows them. ## Change - A new `crates/victory-gpu/src/compose.rs` adds one small pass. Plane 0 reaches the back buffer by the same `CopyResource` as with one plane; a full-screen triangle then draws plane 1 over it, blended by the pipeline with **premultiplied alpha**, which is what display planes take. (Since `7f27af9`; before that the pass sampled both planes and blended in its shader. See the update below.) - It runs only when the title presents a second plane. With one plane the present is the same `CopyResource` as before. - The pass compiles its HLSL with the existing `host::compile` (FXC, SM 5.1), like the depth-plane pass. It writes its descriptors into a 16-slot ring of its own. It has **no sampler**: plane 1 is filtered in the shader from four texels, and the root signature (one table of one view) is serialized from its description. - `VICTORY_PLANE_ALPHA=straight` switches to straight alpha. `VICTORY_PLANES=0` turns the blend off. - With `VICTORY_ASYNC_PRESENT`, a two-plane present isn't sent behind the queue's line. It falls back to the present in line, which blends. ## Tested RTX 3090 Ti, Windows 11, warm shader cache, `--console series-s`, grabs every 5 to 8 s: - **This branch** (upstream `d510ee4` plus this commit): the account picker shows within 15 s and stays up, because main has no scripted input. On plain main plus #835 the same boot was black for the whole 240 s. - **With our other branches** (#798 and the Neo defaults), scripted Enter presses, 7-minute run: - The loading art (jungle, flamingos, the Lucia and Jason posters) shows from about 20 s. - Then "NINE MONTHS AGO" over the cutscene, then the cell with the "Move around / Move the camera" prompt. - The cell runs at **6.7 fps (150 ms a frame) with and without the pass**, so it costs nothing visible. - Before this, the same build was black until the world rendered, and the prompts never appeared. I haven't confirmed whether the console blends premultiplied or straight. Interface pixels that are fully opaque or fully transparent come out the same either way. If someone sees dark or light fringes around interface text, `VICTORY_PLANE_ALPHA=straight` is the A/B to try. ## Update, 2026-11-27 (`7f27af9`) - **A correction.** As first pushed, the pass's root signature had a static sampler, and on current `main` that alone made the title's own picture wrong on an NVIDIA card (bright yellow hair and a wall lit in blocks in the prologue's cell, in every run with it and none without). The pass now has no sampler; measurements and the table of what does and does not trigger it are in [this comment](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7216141453). - The root signature is no longer written inside the pixel shader, so the pass can be made where the compiler returns a shader without it (Wine, found by Filip722 in this thread). - A read-back test of the pass (`compose/readback.rs`, after Filip722's fixture). - The corner box is drawn with two planes too (`1268535`, found by hadrianhola in this thread). - Tested again on `1f5d17a` (with #798, #1388, #1414) and on `9a9091d` (alone, and with #798): details in the comment linked above. AI-assisted (Claude Code; the first version with Claude Opus 5.5, this update with Claude Fable 5.2); runs and grabs on my machine; no game data in the change.
Dathinel commented 2026-11-25 19:09:47 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Dathinel on 2026-11-25T18:55:12Z.


Test report from the small end: RTX 3050 Laptop 4 GB (driver 610.62, 32-lane waves), Ryzen 7 7435HS, Windows 11 26200, title build 1.0.2.1. Release build, no VICTORY_* switches, window on a 1920x1080 screen.

Before (main d510ee4, --console series-s): the window stays black through boot. A desktop screenshot 42 s in is fully black while the caption reads 30 fps and 11 draws/frame; the log shows every draw run, textures uploaded and nothing dropped. The same binary without --console (Series X) shows the loading art at that moment, so it is the profile, not the build.

After (local merge of this PR and #798 onto d510ee4, both apply cleanly; --console series-s):

  • 45 s in: the interface is there (the profile and player prompts at the bottom right).
  • 62 s in: the intro video fills the window, 30 fps, 4 draws/frame.

So the black boot is fixed on this card. The log still has the slot=0x218 "pipeline creation method that is not implemented" lines, as before; no new warnings.

Not tested: the world (the run was stopped at 75 s), so nothing here about #798's effect or about video memory, which is what I expect to bite first on 4 GB; this PR alone without #798; Series X with this PR.

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

<!-- greyfinch-sync:fxceless/victory-fork:comment:7171580707 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7171580707). Originally posted by [Dathinel](https://github.com/Dathinel) on 2026-11-25T18:55:12Z. --- Test report from the small end: RTX 3050 Laptop 4 GB (driver 610.62, 32-lane waves), Ryzen 7 7435HS, Windows 11 26200, title build 1.0.2.1. Release build, no `VICTORY_*` switches, window on a 1920x1080 screen. **Before** (`main` d510ee4, `--console series-s`): the window stays black through boot. A desktop screenshot 42 s in is fully black while the caption reads 30 fps and 11 draws/frame; the log shows every draw run, textures uploaded and nothing dropped. The same binary without `--console` (Series X) shows the loading art at that moment, so it is the profile, not the build. **After** (local merge of this PR and #798 onto d510ee4, both apply cleanly; `--console series-s`): - 45 s in: the interface is there (the profile and player prompts at the bottom right). - 62 s in: the intro video fills the window, 30 fps, 4 draws/frame. So the black boot is fixed on this card. The log still has the `slot=0x218` "pipeline creation method that is not implemented" lines, as before; no new warnings. Not tested: the world (the run was stopped at 75 s), so nothing here about #798's effect or about video memory, which is what I expect to bite first on 4 GB; this PR alone without #798; Series X with this PR. AI-assisted (Claude Code). No game data attached.
HLVM04 commented 2026-11-25 19:09:47 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HLVM04 on 2026-11-25T18:56:35Z.


On the open question (premultiplied or straight): on the Series X profile the title composites its interface layer into the single plane itself, and that final draw uses blend one / one-minus-source-alpha. So the title's own compositing is premultiplied, which matches this PR's default.

Independent data point, RTX 5070 Ti, Series S profile: we see the same two planes (plane 0 the 1920x1080 world, plane 1 a 3840x2160 format 28 layer with menus, loading art, the intro video and the HUD's control hints; descriptions 0x48 bytes apart). A local pass of ours that draws planes 1-3 over the window buffer with one / one-minus-source-alpha (source rect, linear sampler, scaled full-window quad) brings back the intro video and the in-world control hints. No video texture was refused or dropped in those runs, so the black boot is the missing plane, not a texture format. We haven't run this PR's code itself.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7171611668 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7171611668). Originally posted by [HLVM04](https://github.com/HLVM04) on 2026-11-25T18:56:35Z. --- On the open question (premultiplied or straight): on the Series X profile the title composites its interface layer into the single plane itself, and that final draw uses blend one / one-minus-source-alpha. So the title's own compositing is premultiplied, which matches this PR's default. Independent data point, RTX 5070 Ti, Series S profile: we see the same two planes (plane 0 the 1920x1080 world, plane 1 a 3840x2160 format 28 layer with menus, loading art, the intro video and the HUD's control hints; descriptions 0x48 bytes apart). A local pass of ours that draws planes 1-3 over the window buffer with one / one-minus-source-alpha (source rect, linear sampler, scaled full-window quad) brings back the intro video and the in-world control hints. No video texture was refused or dropped in those runs, so the black boot is the missing plane, not a texture format. We haven't run this PR's code itself.
LeonardoS11 commented 2026-11-25 20:09:30 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by LeonardoS11 on 2026-11-25T19:56:44Z.


This fixes it on an RTX 3080 Ti as well. Windows 11, 64 GB RAM, diag build with diagnostics, --console series-s, this PR merged onto 79cfdd9 together with other open PRs (#798 among them). Before it the window stayed black through the boot screens and the loading screen until the 3D world started (frames saved at 30 s and 60 s were fully black; I had noted that on #798). With it the loading art is there at 60 s and the boot sequence shows, as the person at the keyboard confirmed without being asked. The world's picture is unchanged in the first room. Not checked yet: the in-game prompts and the pause menu. (Frames saved by me on the hardware above; written with Claude Code.)

<!-- greyfinch-sync:fxceless/victory-fork:comment:7172975169 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7172975169). Originally posted by [LeonardoS11](https://github.com/LeonardoS11) on 2026-11-25T19:56:44Z. --- This fixes it on an RTX 3080 Ti as well. Windows 11, 64 GB RAM, `diag` build with `diagnostics`, `--console series-s`, this PR merged onto 79cfdd9 together with other open PRs (#798 among them). Before it the window stayed black through the boot screens and the loading screen until the 3D world started (frames saved at 30 s and 60 s were fully black; I had noted that on #798). With it the loading art is there at 60 s and the boot sequence shows, as the person at the keyboard confirmed without being asked. The world's picture is unchanged in the first room. Not checked yet: the in-game prompts and the pause menu. (Frames saved by me on the hardware above; written with Claude Code.)
rafaconvaitis commented 2026-11-26 00:06:09 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by rafaconvaitis on 2026-11-25T23:39:35Z.


An RTX 4070 Series S datapoint on Flamingo 63d976b (native Windows/D3D12, driver 616.64). This pin has its own multi-plane implementation. I added an opt-in metadata trace and compared the two pause states in the same running title:

  • At the playable prison window the pause menu and Retry Checkpoint were visible. 85?92 draws/frame, zero dropped for missing host pipelines.
  • During the playable shop tutorial the pause showed a blurred game background and no menu entries. 48 draws/frame, zero dropped for missing host pipelines. The aiming prompt resurfaced upon returning to play.
  • In both pause states the title passed two planes inline. Both had valid host resources and the compositor completed. Plane 0 was 1920x1080 and plane 1 was 3840x2160, both format 28, flags 0, full source rectangles. The same two planes also carried visible boot UI in this launch.

This confirms a narrower shop-pause case even when two planes are admitted to composition. The trace did not read the contents of the UI render target. There is an earlier Series S blank-pause comparison at https://github.com/fxceless/victory-fork/pull/86#issuecomment-7146049906 .

<!-- greyfinch-sync:fxceless/victory-fork:comment:7177871367 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7177871367). Originally posted by [rafaconvaitis](https://github.com/rafaconvaitis) on 2026-11-25T23:39:35Z. --- An RTX 4070 Series S datapoint on Flamingo `63d976b` (native Windows/D3D12, driver 616.64). This pin has its own multi-plane implementation. I added an opt-in metadata trace and compared the two pause states in the same running title: - At the playable prison window the pause menu and Retry Checkpoint were visible. 85?92 draws/frame, zero dropped for missing host pipelines. - During the playable shop tutorial the pause showed a blurred game background and no menu entries. 48 draws/frame, zero dropped for missing host pipelines. The aiming prompt resurfaced upon returning to play. - In both pause states the title passed two planes inline. Both had valid host resources and the compositor completed. Plane 0 was 1920x1080 and plane 1 was 3840x2160, both format 28, flags 0, full source rectangles. The same two planes also carried visible boot UI in this launch. This confirms a narrower shop-pause case even when two planes are admitted to composition. The trace did not read the contents of the UI render target. There is an earlier Series S blank-pause comparison at https://github.com/fxceless/victory-fork/pull/86#issuecomment-7146049906 .
KyleS98 commented 2026-11-26 09:08:06 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-26T08:52:28Z.


Thank you all for testing this. Where it stands:

  • Confirmed fixing the black boot on an RTX 3050 Laptop 4 GB (@Dathinel), an RTX 3080 Ti (@LeonardoS11) and my RTX 3090 Ti; @HLVM04 sees the same two planes on an RTX 5070 Ti and gets the video and hints back with an independent pass.
  • @HLVM04, thanks for the evidence on the blend: the title's own Series X composite uses one / one-minus-source-alpha, so premultiplied stays the default here and VICTORY_PLANE_ALPHA=straight stays only as a test switch.
  • @rafaconvaitis, your shop-pause case (both planes admitted and composited, a blurred background and no menu entries) reads to me as the entries not being in plane 1 at that moment, which would be the content of the interface target and not the composition. This PR does not address it; I have not reproduced it.

The branch is merged up to main 46bf535 (head 08ab041; the conflict was only the module list).

Re-checked on the RTX 3090 Ti, Series S profile, 280 s from boot: the loading art and boot screens are shown as before.

Edit, correcting what I first wrote here: with this PR alone on main the Series S world still goes black a few seconds after the prologue's title card. That is not a new regression and not from this PR; it is the upscaler problem #798 is for (plain 46bf535 shows the same black world, Series X is fine, and my build that carries both PRs shows the cell). So on Series S the two belong together: this one for the boot screens and prompts, #798 for the world.

AI-assisted (Claude Code, Claude Fable 5.2).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7187126047 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7187126047). Originally posted by [KyleS98](https://github.com/KyleS98) on 2026-11-26T08:52:28Z. --- Thank you all for testing this. Where it stands: - Confirmed fixing the black boot on an RTX 3050 Laptop 4 GB (@Dathinel), an RTX 3080 Ti (@LeonardoS11) and my RTX 3090 Ti; @HLVM04 sees the same two planes on an RTX 5070 Ti and gets the video and hints back with an independent pass. - @HLVM04, thanks for the evidence on the blend: the title's own Series X composite uses one / one-minus-source-alpha, so premultiplied stays the default here and `VICTORY_PLANE_ALPHA=straight` stays only as a test switch. - @rafaconvaitis, your shop-pause case (both planes admitted and composited, a blurred background and no menu entries) reads to me as the entries not being in plane 1 at that moment, which would be the content of the interface target and not the composition. This PR does not address it; I have not reproduced it. The branch is merged up to `main` `46bf535` (head `08ab041`; the conflict was only the module list). Re-checked on the RTX 3090 Ti, Series S profile, 280 s from boot: the loading art and boot screens are shown as before. Edit, correcting what I first wrote here: with this PR alone on `main` the Series S world still goes black a few seconds after the prologue's title card. That is not a new regression and not from this PR; it is the upscaler problem #798 is for (plain `46bf535` shows the same black world, Series X is fine, and my build that carries both PRs shows the cell). So on Series S the two belong together: this one for the boot screens and prompts, #798 for the world. AI-assisted (Claude Code, Claude Fable 5.2).
hadrianhola commented 2026-11-26 17:56:36 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by hadrianhola on 2026-11-26T17:56:36Z.


Tested together with #798 on an 8 GB card, where the Series S profile turns out to be the better way to play:

Machine: RTX 4060 8 GB desktop, driver 610.88, HAGS on · i7-5820K (6C/12T) · 32 GB · Windows 10 22H2 19045.
Build: main at a20809d + #856 (Agility on Windows 10) + this PR + #798, release, --console series-s. Switches: the timing-run set from diagnostics/README.md without GPU_TIMING/DRED, plus VICTORY_CARD_HASH_LEN=1 VICTORY_LOOKUP_CACHE=1 VICTORY_HEAP_WORKER=1 VICTORY_SETTLE_ROOM=1 VICTORY_PARALLEL_REFRESH=1. Unattended, 600 s from launch, idle at the cell window.

  • This PR alone (without #798): the account picker, the loading art and "NINE MONTHS AGO" show; the world is black, while the log shows it running at 6.5–6.9 fps with ~4,300 draws a frame. That is #798's case.
  • With #798: the bar cutscene, the cell, the yard and the "Move around / Move the camera" prompt all show. Numbers in the #798 comment.

One gap: with two planes the corner box is not drawn, and its load line (the machine's load over the last second) never appears in the log. The two-plane branch in Host::present presents and returns right after Compose::record, so it skips crate::fpsbox::draw (and, in diagnostics builds, capture::read_back / capture::probe), which the one-plane branch runs after its CopyResource. Drawing the box onto the back buffer after the blend would keep both profiles' readings comparable.

AI-assisted (Claude Code).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7199872475 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7199872475). Originally posted by [hadrianhola](https://github.com/hadrianhola) on 2026-11-26T17:56:36Z. --- Tested together with #798 on an **8 GB card**, where the Series S profile turns out to be the better way to play: **Machine:** RTX 4060 8 GB desktop, driver 610.88, HAGS on · i7-5820K (6C/12T) · 32 GB · Windows 10 22H2 19045. **Build:** `main` at `a20809d` + #856 (Agility on Windows 10) + this PR + #798, release, `--console series-s`. Switches: the `timing-run` set from `diagnostics/README.md` without `GPU_TIMING`/`DRED`, plus `VICTORY_CARD_HASH_LEN=1 VICTORY_LOOKUP_CACHE=1 VICTORY_HEAP_WORKER=1 VICTORY_SETTLE_ROOM=1 VICTORY_PARALLEL_REFRESH=1`. Unattended, 600 s from launch, idle at the cell window. - **This PR alone** (without #798): the account picker, the loading art and "NINE MONTHS AGO" show; the world is black, while the log shows it running at 6.5–6.9 fps with ~4,300 draws a frame. That is #798's case. - **With #798:** the bar cutscene, the cell, the yard and the "Move around / Move the camera" prompt all show. Numbers in the #798 comment. One gap: **with two planes the corner box is not drawn, and its load line (`the machine's load over the last second`) never appears in the log.** The two-plane branch in `Host::present` presents and returns right after `Compose::record`, so it skips `crate::fpsbox::draw` (and, in diagnostics builds, `capture::read_back` / `capture::probe`), which the one-plane branch runs after its `CopyResource`. Drawing the box onto the back buffer after the blend would keep both profiles' readings comparable. _AI-assisted (Claude Code)._
KyleS98 commented 2026-11-27 00:50:47 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-27T00:50:47Z.


@hadrianhola thank you, both for the 8 GB run and for reading the present path: you are right, and it is fixed in 1268535.

The branch that blends the second plane presented and returned straight after the blend pass, so it never reached fpsbox::draw. That call is also what starts the load sampler, which is why the "machine's load over the last second" line was missing as well. Now the back buffer moves from the present state to a copy's destination after the blend, the box is copied on, and it moves back. A failed Present is also reported once, as on the one-plane path.

Checked on an RTX 3090 Ti, Series S profile, 110 s from boot with this branch alone: the box shows its figures (frame rate, processor, card, memory) over the account picker's and the loading screens' art, and over the world's frame afterwards; no exception. I did not grep for the load line itself (my log filter left that module out); the box showed the sampler's figures, so it is running.

Not changed, on purpose: the diagnostics' frame capture and the black-frame probe are still skipped with two planes. Both look at the title's first plane only, and that plane is black by design while the 2D screens are up, so the probe would call every boot frame black. If captures of the blended picture are wanted, that is a read-back of the back buffer and belongs in its own change.

AI-assisted (Claude Code, Claude Fable 5.2).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7206800931 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7206800931). Originally posted by [KyleS98](https://github.com/KyleS98) on 2026-11-27T00:50:47Z. --- @hadrianhola thank you, both for the 8 GB run and for reading the present path: you are right, and it is fixed in `1268535`. The branch that blends the second plane presented and returned straight after the blend pass, so it never reached `fpsbox::draw`. That call is also what starts the load sampler, which is why the "machine's load over the last second" line was missing as well. Now the back buffer moves from the present state to a copy's destination after the blend, the box is copied on, and it moves back. A failed `Present` is also reported once, as on the one-plane path. Checked on an RTX 3090 Ti, Series S profile, 110 s from boot with this branch alone: the box shows its figures (frame rate, processor, card, memory) over the account picker's and the loading screens' art, and over the world's frame afterwards; no exception. I did not grep for the load line itself (my log filter left that module out); the box showed the sampler's figures, so it is running. Not changed, on purpose: the diagnostics' frame capture and the black-frame probe are still skipped with two planes. Both look at the title's first plane only, and that plane is black by design while the 2D screens are up, so the probe would call every boot frame black. If captures of the blended picture are wanted, that is a read-back of the back buffer and belongs in its own change. AI-assisted (Claude Code, Claude Fable 5.2).
Filip722 commented 2026-11-27 08:51:07 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T08:51:07Z.


I reproduced a compositor initialization failure on the RTX 5060 Laptop GPU with NVIDIA 615.78.08, GE-Proton11-14, and vkd3d-proton 3.2.0, using this PR at 1268535a and a synthetic 5 × 3 pixel readback.

  • The original Wine D3DCompile path returned DXBC for both stages. The pixel shader had no RTS0 part, and root signature creation returned 0x80004005.
  • Serializing the same two-SRV table, pixel constant and static sampler as a fallback let both original DXBC shaders run. All 15 transparent, half-alpha and opaque test pixels matched on the RTX.
  • Compiling the pixel shader through the runtime DXC helper also worked. It returned DXIL with an embedded root signature and matched the same 15 pixels.

This was an offscreen GPU test of this PR's composition path. I measured gameplay separately on an older integration.

The tested fallback and readback fixture apply directly on 1268535a. The two-file branch passed the same physical RTX pixel test with no DXC helper changes and the staged asset check.

Assisted by Codex (GPT-6.2-Sol High).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7213996342 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7213996342). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-27T08:51:07Z. --- I reproduced a compositor initialization failure on the RTX 5060 Laptop GPU with NVIDIA 615.78.08, GE-Proton11-14, and vkd3d-proton 3.2.0, using this PR at `1268535a` and a synthetic 5 × 3 pixel readback. - The original Wine D3DCompile path returned DXBC for both stages. The pixel shader had no `RTS0` part, and root signature creation returned `0x80004005`. - Serializing the same two-SRV table, pixel constant and static sampler as a fallback let both original DXBC shaders run. All 15 transparent, half-alpha and opaque test pixels matched on the RTX. - Compiling the pixel shader through the runtime DXC helper also worked. It returned DXIL with an embedded root signature and matched the same 15 pixels. This was an offscreen GPU test of this PR's composition path. I measured gameplay separately on an older integration. The [tested fallback and readback fixture](https://github.com/Filip722/victory-fork/commit/8f14ae9d0784d00fdb2d41233537d555b830b1cd) apply directly on `1268535a`. The two-file branch passed the same physical RTX pixel test with no DXC helper changes and the staged asset check. Assisted by Codex (GPT-6.2-Sol High).
KyleS98 commented 2026-11-27 10:39:07 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-27T10:39:07Z.


@Filip722 thank you for the Wine run and the fixture. Both are in 7f27af9, in another shape, because the same push takes the sampler out of this pass altogether. That has a reason of its own, and it is a correction to my last comment: this PR as it stood (1268535) broke the title's own picture on my NVIDIA card. My "checked on an RTX 3090 Ti" there was 110 s from boot and never looked at the world.

What was wrong. main at 1f5d17a, Series S profile, RTX 3090 Ti, driver 616.92, prologue cell: with this PR the main character's hair came out bright yellow and the wall beside her lit in blocks, as if the shadows were gone. Every run that made the pass's static sampler showed it (14 runs with the pass as it stood or cut down, 6 more with nothing but one extra root signature); none of 11 runs without it did.

What it was not. Not the blend, not the shader reading the first plane, not the state changes. The picture was the same with the pass made and never recorded, with it made on a thread of its own, and with no pass at all: only its root signature made, which no list ever bound.

What it is, as far as I got. One more static sampler unlike the title's own, made before them. The title's translated pipelines carry 23 different static samplers in their first 2,048 root signatures; mine was linear and clamped, with the root signature language's values for the rest (maximum anisotropy 16, border opaque white, no last level).

one extra root signature of one view and one static sampler, never bound (beside the new pass, which has none) picture
linear, clamped, the language's other values wrong
the title's own linear clamped sampler (anisotropy 1, border transparent black, levels 0 to 12) with the last level unbounded wrong
the same with maximum anisotropy 16 wrong
the same with border opaque white wrong
the same with comparison function "less or equal" (a filter that does not compare makes no use of it) right
none; or a shader-visible view heap alone right

So the order in which different static samplers are first made on the device decides what the title's pipelines sample with. A host sampler heap grown to 2,048 defined slots changes nothing, so it is not a sampler index past the title's 128-slot heap. What I have since seen points at the pipeline library: on 9a9091d one and the same build (this branch with #798) with the same switches shows the wrong picture on the library that earlier launches had filled and the right one from an empty library. I am still testing that and will write it up on its own if it holds, since it reaches beyond this PR.

What changed here.

  • The pass has no sampler. Its root signature is one table of one view; the interface plane is filtered in the shader from four texels read as they are.
  • The root signature is serialized from its description and no longer written inside the pixel shader, so a compiler that returns the shader without it (your Wine case: no RTS0, 0x80004005) makes no difference. That is your fallback made the only path; with no sampler and no constant left it is a dozen lines.
  • The first plane reaches the back buffer by the same copy the one-plane path makes, bit for bit; the pipeline blends the second over it (premultiplied; VICTORY_PLANE_ALPHA=straight as before).
  • Your read-back fixture is in as a test of the new form (compose/readback.rs, credited in the commit). It runs on whatever host device there is instead of asking for one card by name, and checks the same fifteen texels (clear, half covered, opaque) over a back buffer that already holds a first plane. It passes here on the RTX 3090 Ti.
  • Merged with main at 9a9091d (the conflict was the module list).

Tested in the game (RTX 3090 Ti, driver 616.92, --console series-s, hands off, 250 to 330 s a run):

  • 1f5d17a with #798, #1388 and #1414: the boot logos, the account picker and the loading art show; in the cell the hair is dark, the wall evenly dark, the print on the shirt there; 17.8 to 18 frames a second as before; 0 exceptions.
  • 9a9091d, this branch alone: the logos, the picker and the loading art show; the world is black, which is #798's case, as @hadrianhola found above.
  • 9a9091d with #798, from an empty pipeline library: the cell as in the first line, 0 exceptions. Switches: VICTORY_BVH_BUILDER=0, VICTORY_DENY_PIPELINES_FILE with the ray-tracing programs, VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=told VICTORY_FILLS_PLAIN=1, and VICTORY_INDIRECT_WINDOW=1 VICTORY_JOIN_PARTS=1 VICTORY_BACK_OWN_VIEW=1 VICTORY_INDIRECT_GATHER=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_LEVELS_ON_DEMAND=1 VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_MERGE_GAP=64 VICTORY_MERGE_RUNS=4096 VICTORY_STAGING_POOL=0 VICTORY_COPY_PLAIN=1 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1280.

If you can spare a run of your Wine setup on 7f27af9, that would tell whether the pass now gets made there.

AI-assisted (Claude Code, Claude Fable 5.2).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7216141453 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1081#issuecomment-7216141453). Originally posted by [KyleS98](https://github.com/KyleS98) on 2026-11-27T10:39:07Z. --- @Filip722 thank you for the Wine run and the fixture. Both are in `7f27af9`, in another shape, because the same push takes the sampler out of this pass altogether. That has a reason of its own, and it is a correction to my last comment: **this PR as it stood (`1268535`) broke the title's own picture on my NVIDIA card.** My "checked on an RTX 3090 Ti" there was 110 s from boot and never looked at the world. **What was wrong.** `main` at `1f5d17a`, Series S profile, RTX 3090 Ti, driver 616.92, prologue cell: with this PR the main character's hair came out bright yellow and the wall beside her lit in blocks, as if the shadows were gone. Every run that made the pass's static sampler showed it (14 runs with the pass as it stood or cut down, 6 more with nothing but one extra root signature); none of 11 runs without it did. **What it was not.** Not the blend, not the shader reading the first plane, not the state changes. The picture was the same with the pass made and never recorded, with it made on a thread of its own, and with no pass at all: only its root signature made, which no list ever bound. **What it is, as far as I got.** One more static sampler unlike the title's own, made before them. The title's translated pipelines carry 23 different static samplers in their first 2,048 root signatures; mine was linear and clamped, with the root signature language's values for the rest (maximum anisotropy 16, border opaque white, no last level). | one extra root signature of one view and one static sampler, never bound (beside the new pass, which has none) | picture | |---|---| | linear, clamped, the language's other values | wrong | | the title's own linear clamped sampler (anisotropy 1, border transparent black, levels 0 to 12) with the last level unbounded | wrong | | the same with maximum anisotropy 16 | wrong | | the same with border opaque white | wrong | | the same with comparison function "less or equal" (a filter that does not compare makes no use of it) | right | | none; or a shader-visible view heap alone | right | So the order in which different static samplers are first made on the device decides what the title's pipelines sample with. A host sampler heap grown to 2,048 defined slots changes nothing, so it is not a sampler index past the title's 128-slot heap. What I have since seen points at the pipeline library: on `9a9091d` one and the same build (this branch with #798) with the same switches shows the wrong picture on the library that earlier launches had filled and the right one from an empty library. I am still testing that and will write it up on its own if it holds, since it reaches beyond this PR. **What changed here.** - The pass has no sampler. Its root signature is one table of one view; the interface plane is filtered in the shader from four texels read as they are. - The root signature is serialized from its description and no longer written inside the pixel shader, so a compiler that returns the shader without it (your Wine case: no `RTS0`, `0x80004005`) makes no difference. That is your fallback made the only path; with no sampler and no constant left it is a dozen lines. - The first plane reaches the back buffer by the same copy the one-plane path makes, bit for bit; the pipeline blends the second over it (premultiplied; `VICTORY_PLANE_ALPHA=straight` as before). - Your read-back fixture is in as a test of the new form (`compose/readback.rs`, credited in the commit). It runs on whatever host device there is instead of asking for one card by name, and checks the same fifteen texels (clear, half covered, opaque) over a back buffer that already holds a first plane. It passes here on the RTX 3090 Ti. - Merged with `main` at `9a9091d` (the conflict was the module list). **Tested in the game** (RTX 3090 Ti, driver 616.92, `--console series-s`, hands off, 250 to 330 s a run): - `1f5d17a` with #798, #1388 and #1414: the boot logos, the account picker and the loading art show; in the cell the hair is dark, the wall evenly dark, the print on the shirt there; 17.8 to 18 frames a second as before; 0 exceptions. - `9a9091d`, this branch alone: the logos, the picker and the loading art show; the world is black, which is #798's case, as @hadrianhola found above. - `9a9091d` with #798, from an empty pipeline library: the cell as in the first line, 0 exceptions. Switches: `VICTORY_BVH_BUILDER=0`, `VICTORY_DENY_PIPELINES_FILE` with the ray-tracing programs, `VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=told VICTORY_FILLS_PLAIN=1`, and `VICTORY_INDIRECT_WINDOW=1 VICTORY_JOIN_PARTS=1 VICTORY_BACK_OWN_VIEW=1 VICTORY_INDIRECT_GATHER=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_LEVELS_ON_DEMAND=1 VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_MERGE_GAP=64 VICTORY_MERGE_RUNS=4096 VICTORY_STAGING_POOL=0 VICTORY_COPY_PLAIN=1 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1280`. If you can spare a run of your Wine setup on `7f27af9`, that would tell whether the pass now gets made there. AI-assisted (Claude Code, Claude Fable 5.2).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1081:upstream-pr/1081'
git switch 'upstream-pr/1081'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1081'
git switch 'upstream-pr/1081'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1081'
git switch 'upstream-pr/1081'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1081'
git switch 'main'
git merge --squash 'upstream-pr/1081'
git switch 'main'
git merge --ff-only 'upstream-pr/1081'
git switch 'main'
git merge 'upstream-pr/1081'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!1079
No description provided.