fix(gpu): avoid aliasing barriers for independently committed texture uploads #662

Open
github-bot wants to merge 5 commits from github-bot/gh-662 into main AGit
Owner

@⁠tommiehansen on GitHub · 2026-12-06 02:21 UTC · original
tommiehansen:fix/committed-texture-prelude-alias-20261206 → main · +141 −5 · 5 files · 5 commits · open

Why

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.

**@⁠tommiehansen** on GitHub · 2026-12-06 02:21 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/662) `tommiehansen:fix/committed-texture-prelude-alias-20261206` → `main` · +141 −5 · 5 files · 5 commits · open ## Why 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](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47596727858). [Corrected baseline](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47597249936) and [all four combined #655/#659 switch combinations](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47597247097) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 02:23:50 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/662/head:github-bot/gh-662'
git switch 'github-bot/gh-662'

Merge

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