D3D12.X: the sparse windows' line counts mapped tiles the CPU never wrote #2895
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!2895
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2895/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?
@Prime1997 on GitHub · 2026-11-26 22:16 UTC · original
Prime1997:contrib/nv-sparse-unwritten-tiles-line→nvidia-dev· +16 −0 · 1 files · 1 commits · merged 2026-11-26 22:58 UTCRequested by Prime · project thread
The sparse windows' periodic line gets a second line: how many of the windows' own mapped tiles never had a CPU write sent to them (every committed page still without
senthashes), and how many MB that is. No behaviour change.Part of #2688 (workstream 4).
Why
On the Series S profile a retail title commits a page pool of 63,632 pages of 64 KiB in a sparse window up front, and each committed page gets a video-memory tile at the commit. This line showed 3,751 of 4,323 MB of those tiles never got a byte from the CPU (RTX 3060 Ti 8 GB), which is what an opt-in lazy mapping (stacked on this) acts on.
What is in it
crates/xcl/src/hle/d3d12x/sparse.rs:never_sentand the line next to "sparse windows: N submits".Tested
cargo test --locked --workspace --no-fail-fast -- --test-threads=4withXCL_DXC_DIRset to DXC 1.9.2609.5: 1816 passed, 9 failed, 48 ignored. The 9 failures are the same tests that fail onnvidia-deveae01502itself (1816passed,9failed,48ignored there, same command):async_compute_pso_registers_real_pso_and_not_standin,console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,gpu::recomp::tests::gpu_compute_thread_limits_leave_the_lanes_past_them_out,hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays,hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels,split_compute_prefers_the_offline_whole_pipeline,two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs.Build and test (Windows, no GPU)fails here onhle::d3d12x::sparse::tests::a_gpu_write_into_a_gpu_view_lands_in_its_cpu_view(the WARP device is removed, 0x887a0005). That test passes on the card above, on this branch and oneae01502, and fails the same way on the other open pull requests againstnvidia-dev(#2905, for one).Regression run
A commit of
main(b49be183, the last one before the shader preparation screen of #2555, which prepares every record before the title and so does not fit a 60 s run):The base of this PR,
nvidia-deveae01502:This PR's head:
Not tested
AI use
Claude Code (Claude Fable 5.2 and Claude Opus 5.5) wrote the code, ran the suite and the regression runs on the hardware above, and wrote this description; Prime asked for it and owns the account. We coordinate the 8 GB work on the XCL Discord too: https://discord.gg/gK3y7WRRY
🤖 Generated with Claude Code
@saintwolf on GitHub · 2026-11-26 22:55 UTC · original
Tested and reviewed commit
f3cd0a5b(merged cleanly ontonvidia-deveae01502alongside#2892–#2894,#2896,#2897, zero conflicts).Tested
32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 build 26300,rustc 1.100.0, debug test buildcargo test -p xcl --lib hle::d3d12x::sparse::tests:: -- --test-threads=1: 66 passed, 0 failed, 1 ignored (early_commit_timing), 0 skippedReview notes
never_sent(&s.mapped)), zero behavioral change. Clean and ready to merge ahead of#2897.Not tested
AI use