fix(gpu): avoid aliasing barriers for independently committed texture uploads #662
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/lobomfz--VIctory-xmem!662
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-662"
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?
@tommiehansen on GitHub · 2026-12-06 02:21 UTC · original
tommiehansen:fix/committed-texture-prelude-alias-20261206→main· +141 −5 · 5 files · 5 commits · openWhy
The asynchronous texture prelude unconditionally records an aliasing barrier on the first upload. The D3D12 debug layer rejects this for independently committed resources:
Committed Resource cannot use aliasing barrier since committed resource memory cannot be aliased(E_INVALIDARG). The exact fixture reproduces the failure on unchanged upstream production source, with both texture optimizations disabled.What changes
Carry actual committed-allocation provenance from host texture allocation to HostTexture, and skip only the invalid first-upload alias barrier for known independently committed resources. Preserve placed/reserved/unknown-resource barriers, normal transitions and deferred ownership. Do not infer independence from the absence of a pool piece.
Validation
Unchanged baseline and four failed combinations. Corrected baseline and all four combined #655/#659 switch combinations pass. Exact asynchronous readback exercises committed and placed allocations, three deferred submissions, external owner release and fence retirement with the debug layer enabled.
Compatibility
Independent correctness fix; no performance or gameplay FPS claim. The allocation-provenance field overlaps #657, so retain a single definition when integrating that PR. No changes to #655/#659 optimization behavior.
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.