fix(gpu): only emit D3D12 aliasing barriers on pooled placed textures #547
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/547"
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 Glory-star on 2026-11-28T00:39:18Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Machad3x on 2026-11-28T01:56:55Z.
Tested in a batch on an RTX 3080 Ti + Ryzen 7 5700X, 1440p, DLSS Quality, title ray tracing on (VICTORY_BVH_BUILDER=1), 240 s runs into the prison cell scene. Batch: #552, #550, #548, #547, #544.
Result without #550: alive for the whole run, 67-70 ms/frame, no shader or pipeline refused, picture unchanged. No problem found in this PR.
Pull request closed