Fix D3D12 frame and texture handling #68
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/69"
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 ivall/xcl. Originally posted by Tems-py on 2026-11-22T23:33:27Z.
Summary
Imported from ivall/xcl. Originally posted by Tems-py on 2026-11-22T23:37:56Z.
Imported from ivall/xcl. Originally posted by Foniass on 2026-11-23T02:39:19Z.
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.Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T09:59:48Z.
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.