Fix D3D12 frame and texture handling #69
No reviewers
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!69
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/69/head"
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?
@Tems-py on GitHub · 2026-11-22 23:33 UTC · original
Tems-py:fix/d3d12-frame-and-texture-handling→main· +86 −49 · 5 files · 1 commits · merged 2026-11-23 09:59 UTCSummary
github-bot referenced this pull request2026-11-26 04:19:41 +00:00
@Tems-py on GitHub · 2026-11-22 23:37 UTC · original
@Foniass on GitHub · 2026-11-23 02:39 UTC · original
For the reviewer, since #84 touches the same problem: on NVIDIA the shared shader-visible heap holds 1 000 000 view descriptors. Minecraft's eight view heaps need 1 179 632, so the last two got no range in it, and their draws read other heaps' slots (blank frames). This PR's first item binds such a heap separately. #84 gives every view heap its place in the shared heap a page at a time instead, so no heap is left out, and draws that mix descriptors from several heaps keep working.
The two don't fight: with #84 every view heap is in the shared heap, so the
pc_heapschange here never has a private heap to pick. They merge cleanly, andmain+ #84 + #86 + #68 + #67 + this PR passes the full test suite on an RTX 5070 Ti. The rest of this PR (aliasing barriers, PresentX ordering, texture refresh) is independent of #84.Intel Arc: if its
MaxViewDescriptorHeapSizeis also 1 000 000, #84 alone should fix the flicker there too. Not tested, there's no Arc here.@ivall on GitHub · 2026-11-23 09:59 UTC · original
Merged. Checked on an RX 9070 (RDNA4):
cargo test --workspacewith the retail samples (shader pack, console DLLs, texture archive) – natively, and withXCL_SPLIT_WAVE64=1(new inba905cf: forces the split wave64 form on RDNA, which runs both wave sizes, so the NVIDIA path can be checked on AMD). XDefiant (title screen correct, 6 299 translated pipelines, 0 translation errors), Minecraft and Unicorn Overlord run.One change on top (
593a237): with #84 every view heap goes into the shared heap and is created CPU-only, so a heap that found no room there is a non-shader-visible PC heap – binding it inpc_heapswould be invalid. A title's own view heap is now bound only when it is shader visible; otherwise the shared heap stays bound, as before.