D3D12.X: preserve pending CPU writes during sparse readback #1847
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!1847
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1847"
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?
@gloger2003 on GitHub · 2026-11-24 21:44 UTC · original
gloger2003:fix/sparse-readback-keep-cpu-writes→main· +157 −43 · 2 files · 1 commits · draftA sparse readback can restore the previous GPU contents over CPU writes that have not been uploaded yet. A partial readback can also mark adjacent CPU bytes as synchronized even though the GPU has never seen those bytes.
What is in it
Tested
c160d86and passed on this branch. It reads the GPU bytes again after the next submit.cargo build --offline --locked --workspaceandcargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output. The repeated workspace run reported 859 passed, 0 failed and 42 ignored. The optional heap-window test reported a skip in the standard configuration and passed separately withXCL_HEAP_WINDOWS=1. The first run hit the cubemap idle-page reclamation assertion, followed by two poisoned-lock failures. Those tests passed in the rerun. A controlled 2.2-second delay before the second placement also reproduced the original cubemap assertion on unmodified mainc160d86. Known cubemap test issue #718Regression run
main
PR
Not tested
AI use
@upipibi on GitHub · 2026-11-24 22:55 UTC · original
Reproduced and fixed on NVIDIA: RTX 3070 8 GB, driver 616.56, Windows 11, debug.
main689f2dbwith onlytests/sparse_readback_cpu_writes.rscopied in:sparse_readback_preserves_an_unsubmitted_cpu_chunkfails, 2 of 2 runs ("the readback must preserve the unsubmitted CPU chunk").76ac614merged onto689f2db(clean): passes, 2 of 2. The lib tests matchingsparse(minusgpu_sparse_vram, for #1727): 16 passed, 0 failed.AI-assisted (Claude Code). Synthetic tests only.
@DavidM1911 on GitHub · 2026-11-25 01:15 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.