GPU Present source state tracking on current main #907

Closed
Kamiloj9 wants to merge 1 commit from upstream-pr/908 into main
Kamiloj9 commented 2026-11-25 12:24:29 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Kamiloj9 on 2026-11-25T12:24:29Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6604410343 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/908). Originally posted by [Kamiloj9](https://github.com/Kamiloj9) on 2026-11-25T12:24:29Z. --- 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.
Filip722 commented 2026-11-25 14:10:54 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-25T14:08:34Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7164821642 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/908#issuecomment-7164821642). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-25T14:08:34Z. --- 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.
upstream-sync closed this pull request 2026-11-26 01:05:59 +00:00

Pull request closed

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!907
No description provided.