GPU: refresh placed texture aliases when their writer changes #1150

Open
github-bot wants to merge 1 commit from github-bot/gh-1150 into main AGit
Owner

@⁠Lkxex on GitHub · 2026-11-25 21:45 UTC · original
Lkxex:fix/refresh-volume-alias-writer → main · +96 −4 · 3 files · 1 commits · open

A placed texture alias can keep sampling the previous GPU writer when another source takes its place during the same command list. If the second writer is already in COPY_SOURCE, there is no barrier and the old per-destination first-use check skips the copy. Track the last source per alias per recording, so changing writers refreshes the destination even without a state transition.

Validation: on Windows D3D12, a synthetic 4x4x4 R32_UINT volume test read [1, 2, 3, 4] from the R9G9B9E5 alias on the base. With this change it reads [17, 18, 19, 20], one value from each slice of the second writer. No game files or measurements were used.

This covers switching between compatible writers within a list. The placed-UAV creation work in #114 and the copy-footprint cache work in #743 cover separate paths. The in-game cloud appearance still needs a matched capture.

**@⁠Lkxex** on GitHub · 2026-11-25 21:45 UTC · [original](https://github.com/fxceless/victory-fork/pull/1150) `Lkxex:fix/refresh-volume-alias-writer` → `main` · +96 −4 · 3 files · 1 commits · open A placed texture alias can keep sampling the previous GPU writer when another source takes its place during the same command list. If the second writer is already in COPY_SOURCE, there is no barrier and the old per-destination first-use check skips the copy. Track the last source per alias per recording, so changing writers refreshes the destination even without a state transition. Validation: on Windows D3D12, a synthetic 4x4x4 R32_UINT volume test read [1, 2, 3, 4] from the R9G9B9E5 alias on the base. With this change it reads [17, 18, 19, 20], one value from each slice of the second writer. No game files or measurements were used. This covers switching between compatible writers within a list. The placed-UAV creation work in #114 and the copy-footprint cache work in #743 cover separate paths. The in-game cloud appearance still needs a matched capture.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:28 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/texture.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/1150/head:github-bot/gh-1150'
git switch 'github-bot/gh-1150'

Merge

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