GPU: refresh placed texture aliases when their writer changes #1147
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T21:45:15Z.
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.