fix(gpu): only emit D3D12 aliasing barriers on pooled placed textures #999
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!999
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@adwen-007 on GitHub · 2026-11-28 10:56 UTC · original
adwen-007:pr/fix-aliasing-barrier-committed→main· +17 −4 · 3 files · 1 commits · merged 2026-11-28 19:39 UTCProblem
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.