GPU: refresh placed texture aliases when their writer changes #1150
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1150
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1150"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Lkxex on GitHub · 2026-11-25 21:45 UTC · original
Lkxex:fix/refresh-volume-alias-writer→main· +96 −4 · 3 files · 1 commits · openA 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.
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.Merge
Merge the changes and update on Forgejo.