fix(gpu): only emit D3D12 aliasing barriers on pooled placed textures #999
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/999"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by adwen-007 on 2026-11-28T10:56:47Z.
Problem
When
VICTORY_TEXTURE_POOL=1is active, bothhost.rs(host state prelude) andtexture.rs(record_upload) emit aD3D12_RESOURCE_BARRIER_TYPE_ALIASINGbarrier on a texture's first upload by checking onlycrate::pool::on().If a texture is too large for a pool block (or falls back to
CreateCommittedResourcefor any reason), D3D12 rejects the aliasing barrier on a committed resource andID3D12GraphicsCommandList::Close()fails withE_INVALIDARG (0x80070057):Fix
pool::is_pooled(texture: &ID3D12Resource) -> bool, which checks whether ourRECLAIM_KEYprivate data interface is attached viaGetPrivateData(&RECLAIM_KEY, &mut size, None).is_ok()(zeroAddRef, zero locks, checked once on first upload).crates/victory-gpu/src/host.rsandcrates/victory-gpu/src/texture.rsonpool::is_pooled(...).Verification
0x80070057crash on committed fallback textures; 20+ minute gameplay sessions with 0 crashes.