perf(gpu): plan dependent GPU fills behind placed copies and keep placed-page write-watch stamps #295

Open
github-bot wants to merge 2 commits from github-bot/gh-295 into main AGit
Owner

@⁠wike1701 on GitHub · 2026-11-27 20:48 UTC · original
wike1701:feat/placed-fills-and-stamps → main · +1192 −74 · 6 files · 2 commits · open

Summary

Ports two GPU coherence & flight-wait reduction fixes from TaynanGT/Vice-Tay (GPL-3.0):

  1. Remember write-watch stamps for placed GPU pages (Vice-Tay@a33271f, PR #342):
    • crates/victory-gpu/src/memory.rs: records the write-watch stamp taken before uploading a newly placed page (VICTORY_PLACE_TAKEN=0 to disable), so later refreshes only pick up newer title writes and preserve GPU updates in between.
  2. Plan dependent GPU fills behind placed copies (Vice-Tay@10675b5, PR #344):
    • crates/victory-gpu/src/host/card_steps.rs, redirect_stats.rs, host/place.rs, inplace.rs, host.rs: redirects dependent constant fills reading the destination of an in-flight placed copy directly on the GPU using the placed copy's recorded backing, avoiding CPU flight waits (fill of upload memory settles) in heavy open-world scenes while preserving alias safety (inplace::has_alias).

Verification

  • cargo test -p victory-gpu --lib -- host::card_steps:: memory:: inplace::: 27 passed, 0 failed, 1 ignored
  • cargo check -p victory-gpu --features diagnostics: ok (0 new warnings)
  • cargo xtask policy: asset policy: 288 files ok
**@⁠wike1701** on GitHub · 2026-11-27 20:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/295) `wike1701:feat/placed-fills-and-stamps` → `main` · +1192 −74 · 6 files · 2 commits · open ## Summary Ports two GPU coherence & flight-wait reduction fixes from `TaynanGT/Vice-Tay` (GPL-3.0): 1. **Remember write-watch stamps for placed GPU pages** ([`Vice-Tay@a33271f`](https://github.com/TaynanGT/Vice-Tay/commit/a33271f), PR #342): - `crates/victory-gpu/src/memory.rs`: records the write-watch stamp taken before uploading a newly placed page (`VICTORY_PLACE_TAKEN=0` to disable), so later refreshes only pick up newer title writes and preserve GPU updates in between. 2. **Plan dependent GPU fills behind placed copies** ([`Vice-Tay@10675b5`](https://github.com/TaynanGT/Vice-Tay/commit/10675b5), PR #344): - `crates/victory-gpu/src/host/card_steps.rs`, `redirect_stats.rs`, `host/place.rs`, `inplace.rs`, `host.rs`: redirects dependent constant fills reading the destination of an in-flight placed copy directly on the GPU using the placed copy's recorded backing, avoiding CPU flight waits (`fill of upload memory` settles) in heavy open-world scenes while preserving alias safety (`inplace::has_alias`). ## Verification - `cargo test -p victory-gpu --lib -- host::card_steps:: memory:: inplace::`: **27 passed, 0 failed, 1 ignored** - `cargo check -p victory-gpu --features diagnostics`: **ok** (0 new warnings) - `cargo xtask policy`: **asset policy: 288 files ok**
Ports two coherence & submission-stall fixes from TaynanGT/Vice-Tay (GPL-3.0):

1. Remember write-watch stamps for placed GPU pages (Vice-Tay a33271f / PR #342):
   - crates/victory-gpu/src/memory.rs: capture the write-watch stamp before uploading a newly placed page (VICTORY_PLACE_TAKEN=0 to disable) so subsequent refreshes only upload newer CPU writes without overwriting GPU updates in between.

2. Plan dependent GPU fills behind placed copies (Vice-Tay 10675b5 / PR #344):
   - crates/victory-gpu/src/host/card_steps.rs, redirect_stats.rs, host/place.rs, inplace.rs, host.rs: redirect constant-buffer fills that read the destination of an in-flight placed copy onto the GPU (behind the placed copy's recorded backing) instead of stalling on a CPU settle/flight wait, with alias safety (inplace::has_alias) and retry planning.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 20:54:25 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/card_steps.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/295/head:github-bot/gh-295'
git switch 'github-bot/gh-295'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-295'
git switch 'github-bot/gh-295'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-295'
git switch 'github-bot/gh-295'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-295'
git switch 'main'
git merge --squash 'github-bot/gh-295'
git switch 'main'
git merge --ff-only 'github-bot/gh-295'
git switch 'main'
git merge 'github-bot/gh-295'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.