D3D12.X: a title texture's pages can be unmapped while submitted draws still sample it (#288) #475
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#475
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Cattn on GitHub · 2026-11-24 00:49 UTC · original
From a static review (no builds or runs) of
2997c9a:This follows up on #288.
unmap_supersededenqueues tile removal on XCL's separate mapping queue. The existing fence wait orders later title submissions after mapping changes, so removal can still race with previously submitted draws that sample the texture. This is a GPU-ordering bug, and I found no indication of malicious code.Defer the unmap until fences from the queues that used the texture confirm its last GPU use has completed.
github.com/ivall/xcl@2997c9aca6/crates/xcl/src/hle/d3d12x/vram.rs (L505-L519)github.com/ivall/xcl@2997c9aca6/crates/xcl/src/hle/d3d12x/vram.rs (L564-L576)Review by Claude Code (Claude Opus 5.5) with a gpt-6.2-sol audit subagent; I checked each point against the code.