Skip to content

GPU Present source state tracking on current main - #908

Closed
Kamiloj9 wants to merge 1 commit into
fxceless:mainfrom
Kamiloj9:codex/present-submit-state
Closed

Kamiloj9 wants to merge 1 commit into
fxceless:mainfrom
Kamiloj9:codex/present-submit-state

Conversation

@Kamiloj9

Copy link
Copy Markdown

Forward port of AscilCH’s state-tracking fix from #564 to a253706, including that revision’s optional VICTORY_ASYNC_PRESENT path.

The Present copy list retains the HostTexture and lets the submission prelude transition it to COPY_SOURCE under the submission lock. The async queue holds the same texture rather than a state sampled before preceding lists execute. This also avoids a redundant source barrier on consecutive Presents. Swap-chain back-buffer transitions still surround the copy.

Verification used an independently reviewed diff, cargo check --workspace --all-features, staged asset policy, and a synthetic WARP regression that Presents the same texture twice starting from COPY_DEST. The regression failed before the fix and passed on both trees. The public tree passed with VICTORY_LATE_WAIT=0 and 3. The test calls host Present directly, so the async queue worker and title runtime remain untested.

Carry the host texture through the asynchronous present queue and transition it in the command-list prelude. Based on the fix by AscilCH in fxceless#564.
@Filip722

Copy link
Copy Markdown

Independent Proton check of the Present change in 83f6b852 on Bazzite 44, RTX 5060 Laptop 8 GB, NVIDIA 615.78.08 and GE-Proton 11-14 (vkd3d-proton build cae8353ed7959c4+). Windows MSVC build with Rust 1.98.1.

The supplied 64×64 two-Present state fixture passed with a test-only hardware-adapter selection and a device-removal check after each call, at both VICTORY_LATE_WAIT=0 and 3. It exercised the fixed code on the NVIDIA adapter and verified the tracked COPY_SOURCE state. These direct calls cover host Present state.

For a Series S comparison, I added the unchanged #908 commit to the same private #938 integration and used an identical cache/prefix seed, launch settings and host guards. The baseline and patched title-window captures were uniformly black from the first sampled frame. Their last observed scene recording was 74 and 87 first-bound pipelines respectively. Both ended on the host RAM guard with no recorded NVIDIA Xid. This integration takes the first present plane, and Series S second-plane composition is covered separately by #188.

Testing and report prepared with OpenAI Codex assistance.

PiloteCode pushed a commit to PiloteCode/victory-fork that referenced this pull request Nov 25, 2026
…stlane

Shaders: a helper lane's v_readfirstlane reads its own value (fxceless#908)
@Kamiloj9 Kamiloj9 closed this Nov 26, 2026
@Kamiloj9
Kamiloj9 deleted the codex/present-submit-state branch November 26, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants