Repository navigation
Conversation
CreatePlacedResourceX of a buffer at 0x5fffd0000 (0x546000 bytes) ran from sparse window 1 into window 2. title_buffer_window returned None once the buffer passed its window's end, so place_at_title_address gave up and the buffer fell back to a committed DEFAULT buffer: every view of it was an empty V#, found in a title run by tracing the placed buffers. A title's reservations may straddle sparse windows (sparse_reserve), shaders already carry across windows, and sparse::place_buffer checks the windows of both ends and maps the tiles of each. So accept a buffer whose windows k..=last are all sparse; a run into a window that is not sparse stays refused. The test a_buffer_may_run_on_into_the_next_sparse_window failed without this (left None, right Some((1, true))); the old assertion that expected None across a sparse window's end now expects Some((0, true)). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
On RTX 5070 12 GB / NVIDIA 616.92, I verified that a single placed buffer returns the expected bytes on both sides of the sparse window 1 → 2 boundary at head The native fixture used XCL's actual 4 GiB sparse windows, with the boundary at
The crossing placement began 128 bytes into the first tile and ended 128 bytes before the end of the second. XCL recorded a 128-byte native buffer offset, which the readback used. Two fresh processes produced identical counts, with zero skips and a healthy device in both. This exercises normal sparse placement and data upload for a known address. It did not exercise automatic reservation under fragmentation, shader V# sampling, or the retail sequence mentioned in the description. AI use: OpenAI Codex (GPT-6) prepared the test-only fixture, ran the native checks and wrote this report. |
|
merge-check claim |
|
merge-check Tested: On the clean head, Not tested: a title run at this head, automatic cross-window reservation under fragmentation, shader reads from the resulting view, AMD/Intel, and the four excluded tests. |
|
merge-check |
|
No open or merged PR makes the same change (#2886, merged, keeps single-window AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
A buffer that a title places with CreatePlacedResourceX can run past the end of one sparse window and into the next. One did in a title run on a tree from before #2886, which keeps a reservation of one window or less inside a single window: 0x546000 bytes at 0x5fffd0000, going from sparse window 1 into window 2. This has not been reproduced on 54225f5, where
sparse_reservestill places across windows when no single window has room.title_buffer_windowreturned None as soon as a buffer passed the end of its window. Soplace_at_title_addressgave up, the buffer fell back to a committed DEFAULT buffer, and every view of it was an empty V#.The console gives CreatePlacedResourceX a plain GPU virtual address. XCL's 4 GiB windows have no console counterpart. A title reservation can already straddle sparse windows (
sparse_reservefalls back to placing across windows), andsparse::place_bufferchecks the windows of both ends and maps the tiles of each. So a buffer whose windows k..=last are all sparse is now accepted. A run into a window that is not sparse (a view, committed or empty window) is still refused.What is in it
crates/xcl/src/hle/d3d12x/real.rs:title_buffer_windowaccepts a buffer over a sparse window's end when every window it reaches is sparse.gpu_view_tests::a_buffer_may_run_on_into_the_next_sparse_window. Without the fix it fails (left None, right Some((1, true))). The existing assertion "across a sparse window's end" now expects Some((0, true)) instead of None.Tested
cargo test -p xcl --lib --no-fail-fast -- --test-threads=2: the test binary aborted with exit code 0x7C10003 on both trees, after 1385 ok on this PR and 1384 on the base. This abort is already reported on nvidia-dev in [OFFICIAL] Merge queue: which PRs can be merged next, and how to claim a merge check #3041 (comment). The 393 tests that had not run were then run one at a time (--exact <name> --test-threads=1): 390 passed, 3 ignored, 0 failed, on both trees.title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels,stream_recheck_keeps_the_whole_upload_baseline_over_partial_uploads,stream_recheck_partial_upload_without_an_entry_queues_a_whole_upload,stream_recheck_schedule_catches_late_writes_and_resets_milestones.cargo test --workspacewith--test-threads=4; the other test binaries kept running after the lib aborted (exact cargo flags not recorded). All test binaries other than the lib: 132 passed, 0 failed, 20 ignored, on both trees.no wave64, plus three f16/f32 forms refused for gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426,no heap windowsand a driver-cache test that needs Developer Mode), and 1 outside it (heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows).Regression run
Both runs were made on the same retail title for 60 s with
XCL_PREPARE=0and the same scripted presses. The first block is from main b937fba (same title, 60 s,XCL_PREPARE=0, same presses, made the same day for #1448); the second is from nvidia-dev 54225f5, the base of this PR, for a like-for-like comparison; the third is this PR's head.Not tested
AI use