Skip D3D12 aliasing barriers for committed textures #1

Manually merged
github merged 1 commit from gh-pr/1/head into gh-pr/1/base 2026-11-30 14:09:06 +00:00
Owner

@⁠Hrvojko on GitHub · 2026-11-29 16:55 UTC · original
Hrvojko:fix/committed-texture-aliasing → main · +1 −1 · 1 files · 1 commits · merged 2026-11-29 18:34 UTC

ReVIctory emitted a first-upload aliasing barrier whenever texture pooling was enabled, including for textures that fell back to committed allocations. D3D12 rejects aliasing barriers on committed resources, causing startup to fail with validation message 528 and HRESULT 0x80070057.

Check whether the texture actually belongs to the shared heap pool before emitting the barrier. Pooled textures still receive the barrier on their first upload.

Testing: Reproduced the startup crash on an AMD Radeon RX 7800 XT. With the patch, the diagnostics build ran with -Safe and the D3D12 debug layer enabled, reached frame 512 without the aliasing error, and exited normally.

**@⁠Hrvojko** on GitHub · 2026-11-29 16:55 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/1) `Hrvojko:fix/committed-texture-aliasing` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-11-29 18:34 UTC ReVIctory emitted a first-upload aliasing barrier whenever texture pooling was enabled, including for textures that fell back to committed allocations. D3D12 rejects aliasing barriers on committed resources, causing startup to fail with validation message 528 and HRESULT 0x80070057. Check whether the texture actually belongs to the shared heap pool before emitting the barrier. Pooled textures still receive the barrier on their first upload. Testing: Reproduced the startup crash on an AMD Radeon RX 7800 XT. With the patch, the diagnostics build ran with -Safe and the D3D12 debug layer enabled, reached frame 512 without the aliasing error, and exited normally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 14:09:04 +00:00
github manually merged commit da9a8083d3 into gh-pr/1/base 2026-11-30 14:09:06 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.