GPU Present source state tracking on current main #908

Closed
github-bot wants to merge 1 commit from gh-pr/908/head into gh-pr/908/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-25 12:24 UTC · original
Kamiloj9:codex/present-submit-state → main · +79 −46 · 3 files · 1 commits · closed without merging

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.

**@⁠Kamiloj9** on GitHub · 2026-11-25 12:24 UTC · [original](https://github.com/fxceless/victory-fork/pull/908) `Kamiloj9:codex/present-submit-state` → `main` · +79 −46 · 3 files · 1 commits · closed without merging 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/victory-fork#564.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:53:37 +00:00
github-bot closed this pull request 2026-11-26 03:53:37 +00:00
Author
Owner

@⁠Filip722 on GitHub · 2026-11-25 14:08 UTC · original

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.

**@⁠Filip722** on GitHub · 2026-11-25 14:08 UTC · [original](https://github.com/fxceless/victory-fork/pull/908#issuecomment-7164821642) 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.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.