Keep placed-copy read-through on the recorded GPU resource #330

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

@⁠TaynanGT on GitHub · 2026-11-27 16:59 UTC · original
TaynanGT:fix/ultrareview-placed-source → main · +423 −29 · 3 files · 2 commits · draft

This candidate builds on #285 by Petr Seifert. A fill reading through a placed copy now checks the identity of the GPU resource recorded by the copy. A narrower lookup can otherwise resolve to a different resource with an overlapping address range. Keep the conservative fallback when the resource differs.

Nine isolated planner tests passed, including a pair of resources with nested ranges. The full build and a matched run with the current Series S profile are pending. The earlier #285 test did not establish a sustained FPS gain. Coordinate the shared planning code with #322 before merging.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:59 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/330) `TaynanGT:fix/ultrareview-placed-source` → `main` · +423 −29 · 3 files · 2 commits · draft This candidate builds on #285 by Petr Seifert. A fill reading through a placed copy now checks the identity of the GPU resource recorded by the copy. A narrower lookup can otherwise resolve to a different resource with an overlapping address range. Keep the conservative fallback when the resource differs. Nine isolated planner tests passed, including a pair of resources with nested ranges. The full build and a matched run with the current Series S profile are pending. The earlier #285 test did not establish a sustained FPS gain. Coordinate the shared planning code with #322 before merging.
With `VICTORY_PLACED_ORDER=1` a fill taken to the card that reads bytes
a copy at its place in an earlier list writes refused the submission
(`BEHIND_PLACED`), or had it cut behind the copy's list: our list runs in
front of all of them, so it would read the bytes before the copy.

Such a fill now reads the placed copy's source host copy at the same
offset, which holds those bytes before the copy runs. Only when:

- the fill lies wholly inside the copy's destination;
- the copy reads a host copy on the card, not upload memory;
- nothing ahead of the copy in the submission writes its source (a
  shader write or another placed copy), and no buffer copy of the
  submission does;
- no buffer copy or shader write between the copy and the fill writes
  the fill's bytes;
- a later placed copy that writes the fill's bytes covers all of them
  (the fill then reads that one's source).

Anything else behind a placed copy is refused or cut as before, and so
is every case with the switch off. `Does` gains the shader writes the
lists declare (`GpuWrite`) for these checks.

What stands between the copy and each fill is gathered in one pass over
the steps behind the copy.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:03:37 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/host/card_steps.rs
  • crates/victory-gpu/src/host/place.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/330/head:github-bot/gh-330'
git switch 'github-bot/gh-330'

Merge

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