Refresh texture views after writes through a mapped alias #379
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/TaynanGT--Vice-Tay!379
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-379"
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?
@TaynanGT on GitHub · 2026-11-27 21:12 UTC · original
TaynanGT:fix/refresh-aliased-texture-writes→main· +226 −17 · 6 files · 3 commits · draftA placed texture can share its physical pages with another virtual address. A write through that address used to open the guards but only queue a texture update for the address that was written. A view in a second descriptor heap could keep sampling an old upload. A mapped copy also sent its notice before copying, which let a texture pass consume the notice while the old bytes were still visible.
Use the existing physical-page index to project the changed byte range into the other views, then enqueue those ranges together for each subscribed heap. Mapped copies publish the change on exit, including partial-copy paths. Physical-page writes that already enumerate every view keep their existing path.
The Windows regression maps one page into two addresses. It copies bytes through the first, checks the fingerprint through the second, and verifies that both descriptor heaps become due. It also covers an unrelated page, a replaced slot and a pass draining notices before a copy finishes. All assertions ran on the local D3D12 host. The existing per-heap write, remap and late-publication tests passed alongside it.
Related: #371 keeps notices for each subscribed heap. #303 measures repeated texture changes discovered by polling. The alias warning in a local scene motivated this fix. The specific material associated with that warning still needs to be identified in a frame 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.