D3D12.X: a stalled sparse upload retries its unsent chunks and reuses no busy allocator #2821
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!2821
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2821"
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?
@KOLESNiii on GitHub · 2026-11-26 14:29 UTC · original
KOLESNiii:d3d12x-sparse-ring-stall→main· +470 −48 · 1 files · 6 commits · openStacked on #1277 and #1419; only the top four commits belong here. Part of #1833. This is S1 from the extraction plan in #2787.
#1277 (ExoCalibra) stops
upload_dirtyfrom looping forever, holding the sparseSTATElock, when the staging ring's oldest fence never advances. That loop blockedxcl-activityand every later title submit. #1419 (gridoe) stops a fence wait from returning early on a stale signal of the reused event. ettehn saw that happen after a timed-out wait on this PR. This PR ports #2778's two follow-ups (bmjask) and adds two fixes to the retry:upload_dirtyreturns whether everything was submitted. A synchronousreadback_nowstops instead of copying stale GPU bytes over CPU memory when its upload did not go through.begin_slotreturnsNoneinstead of resetting an allocator the GPU may still be using, and checks Reset/Close results. The readback path stops before Reset or before writing to CPU memory when its wait, Close or Reset fails. Failed zero-fills go back toto_zero. The normal path is unchanged.STATE, KDenKC).The title's own work is not held back while the sparse queue is stalled. Work submitted during the stall can read the chunks left unsent (see gut0to's review thread).
What is in it
D3D12.X: stop sparse upload_dirty ring wait when fence times out: #1277's commit, author kept. For currentmain, I added the twoStatefieldsmainhas since gained (quarantined,queue_fences) to its test's initializer. Without them the test does not compile. #1277 needs the same fix when it is rebased.D3D12.X: wait_for ignores stale signals on the reusable sparse fence event: #1419's commit, author kept. On top of #1277,wait_for_mspasses its own timeout towait_fence_untiland still returns whether the fence was reached.D3D12.X: stop stalled sparse ring reclaim cleanly(crates/xcl/src/hle/d3d12x/sparse.rs), ported fromfaea307a. The conflicts were resolved by hand: #2778'sstalltracing span and its quarantine-fence helpers are left out. Tests:a_stalled_ring_retries_only_the_unsubmitted_dirty_suffix,a_stalled_upload_ring_returns_and_retries_exact_chunks.D3D12.X: abort sparse allocator reuse after wait failure(same file), ported from37271a3c. It keepsmain's readbackExecuteCommandListscall, not #2778'snative_queue_execute. The stalled-ring test also checks that a slot whose wait timed out is not reset.D3D12.X: sparse chunks a stalled upload left unsent are scanned again(same file):retry_pages,scan_retry_pages. Test:unsent_chunks_are_scanned_again_without_a_new_cpu_write.D3D12.X: sparse CPU writes wait for tile clears that could not be sent(same file):upload_zeros_then_dirty. Tests:cpu_writes_wait_for_tile_clears_that_could_not_be_submitted, and the empty-runs case ina_stalled_ring_retries_only_the_unsubmitted_dirty_suffix.Tested
cargo test --workspace -- --test-threads=4on970b8a4a: 1441 passed, 0 failed, 47 ignoredSKIPPEDon this adapter: 24 recompiler GPU tests withno wave64(or the wave32 per-lane form refused), andheap_window_out_of_memory_falls_back_to_the_switch_formwithno heap windowscargo test -p xcl --lib hle::d3d12x::sparse -- --test-threads=1: 23 passed, 0 failed, 1 ignored (early_commit_timing)the unsent chunks were not found again, andupload_zeros_then_dirtyreturning true because the CPU writes were submitted)cargo test -p xcl --lib --no-run)sparsefilter run above was on43425fba; the empty-runs guard was squashed in after it.475341d1, including an AMD RX 9070 XT run of the sparse tests (DarkPanda69). They do not cover the last two commits or #1419's.Regression run
Both runs with
XCL_PRESS_AT=15:A.main:This PR:
Neither run logged a
sparse:warning, so no fence wait timed out and the new failure paths were not reached. The PR's run went through the normal upload path (sparse windows: 4096 submits, 1671 MB of CPU writes uploadedat 42 s).Not tested
AI use
🤖 Generated with Claude Code
@ettehn on GitHub · 2026-11-26 14:53 UTC · original
Independent Windows check on
475341d1ee5b173dee4107562b2fd38a5fe73dc3(RTX 5070 Ti Laptop, driver 621.24, Windows 11 x64 build 26200, Rust 1.97.1 MSVC). The stock sparse tests passed 20/0/1 with no capability skips. A recovery check with a real gated D3D12 queue uncovered an interaction with #1419.The local fixture logically fills the staging ring, queues a real copy behind a gate fence, and dirties two adjacent 64-byte chunks. The 20 ms upload and allocator waits correctly time out without submitting anything. After releasing the gate, the rescan correctly selects the same 128 bytes and the retry submits. The following wait for fence 4 returns false at completed value 3, with a “5000 ms” warning even though the entire test finished in 0.38–0.50 s. An earlier registration on the shared auto-reset event can still wake this later wait. The focused test reproduced the premature return in 6/6 fresh processes.
I then used the unchanged
wait_fence_untilhelper and test from #1419 (3861d2e2b561482933c657802cc5801b28bc60ba) locally on this head, passing the existingwait_for_mstimeout into the helper. The sparse suite was 22 passed, 0 failed, 1 ignored, and the gated check then passed 10/10 fresh processes. The retry submitted the expected 128 bytes and an actual GPU readback matched all 4,096 bytes, including the untouched neighbors.Command:
cargo test --locked --offline -p xcl --lib -j 2 hle::d3d12x::sparse::tests -- --test-threads=1 --nocapture; repeats ran the gated fixture alone from the resulting test executable. Synthetic fault injection only, no retail run. OpenAI Codex (6.2sol) assisted with verification.@DarkPanda69 on GitHub · 2026-11-26 14:56 UTC · original · edited 2026-11-26 18:36 UTC
Update for head
970b8a4: same, 23 passed, 0 failed, 1 ignored, 0 SKIPPED on the RX 9070 XT, applied onmain8b957be.Update for head
43425fb: still passes. Applied onmain8b957be,hle::d3d12x::sparsegives 23 passed, 0 failed, 1 ignored, 0 SKIPPED on the RX 9070 XT (the first adapter, as below).AMD run for the Not tested line.
Tested: pass, head
475341dapplied onmainb49be18, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X.cargo test -p xcl --lib -- hle::d3d12x::sparse --test-threads=4 --nocapture:a_stalled_ring_retries_only_the_unsubmitted_dirty_suffix,a_stalled_upload_ring_returns_and_retries_exact_chunksandupload_dirty_exits_when_ring_fence_wait_times_outare among them.The sparse tests make their device with
D3D12CreateDevice(None, ..), so they ran on the first adapter, which is the RX 9070 XT here.Not tested: a real stalled sparse queue in a title; Reset/Close failures; Intel.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@Royalflamejlh on GitHub · 2026-11-26 14:59 UTC · original
Under Wine + vkd3d-proton on an RTX 4070, this pull request's
sparse::tests passed, and in 3 title runs with it no sparse fence wait timed out: nosparse:warning was printed, with it or without it. The title stopped presenting about where it does without it (72.1 to 76.2 s, against 76.1 and 86.7 s in 2 runs without it), and no run lost the device.Setup:
mainb49be18+ #684 (e56dbc3, which our runs need to get this far), against the same + this pull request (475341d1), release, Wine 11.21 Staging + vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, RTX 4070 12 GB, driver 615.71.09. Title: 120 s each, A pressed once the title presented steadily,XCL_PSO_PRELOAD=0, the first-run screens completed once, no story progress. Tests:-- sparse:: --test-threads=4.sparse:warningsmain+ #684main+ #684sparse windows: 2048 submits, 1599 MB of CPU writes uploaded, as the runs without it had by 31.5 s, so the normal path still works here. Its new failure branches were not reached.a_stalled_ring_retries_only_the_unsubmitted_dirty_suffixanda_stalled_upload_ring_returns_and_retries_exact_chunks, and #1277'supload_dirty_exits_when_ring_fence_wait_times_outpassed (20 passed, 1 ignored insparse::).Not tested: Windows; a ring stall in the title;
ResetorClosefailures; the title past the point where it stops here; the whole test suite; this pull request with #1419'swait_fence_until.AI use: Claude Code (Claude Opus 5.5) ran the title and the tests and wrote this comment.
Posted without review by a person: the account owner was away and reads replies later.
@tiagonleal on GitHub · 2026-11-26 15:07 UTC · original
Suite on RTX 5070 Ti (Windows 11) at
475341d1: 1434 passed, 4 failed (the fuzz out-of-memory ones, same onmain); the PR's sparse tests passTested
475341d1ee5b173dee4107562b2fd38a5fe73dc3, clean detached worktree, built as is, debug. PR open and head unchanged when I started. Its base ismainb49be183; the head is three commits on it:3f193cf1(#1277's commit),f6fd35d6and475341d1. #1277 was not built on its own.cargo build --workspace: ok.cargo test --workspace --no-fail-fast -- --test-threads=4: 1434 passed, 4 failed, 47 ignored.SKIPPED: 21 "no wave64", 3 wave32 per-lane forms refused (f16 arithmetic, f16 packed, f32 conversions), 1heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3, eachCreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E). They fail the same way onmainb49be183(cargo test -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu: 0 passed, 4 failed).cargo test -p xcl --lib hle::d3d12x::sparse -- --nocapture --test-threads=1: 20 passed, 0 failed, 1 ignored (early_commit_timing), no SKIPPED lines. It includesa_stalled_ring_retries_only_the_unsubmitted_dirty_suffixanda_stalled_upload_ring_returns_and_retries_exact_chunks.Not tested
wait_fence_until, which ettehn reported. I did not look for it.AI use
@Aniseto on GitHub · 2026-11-26 15:07 UTC · original
Ran the stalled-sparse-upload tests at
475341d1:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
Both new tests pass here. They use an unsignalled fence to exercise the timeout path: only the unsubmitted dirty 64-byte chunks are retried, and the stalled allocator is not reset. These are CPU/D3D12-mock tests; no real stalled GPU queue was produced.
What this adds: the author's suite ran on an RTX 2070 SUPER. This is a Blackwell host, and the thread has no report from another machine.
Not tested: a real stalled sparse queue in the title, injected Reset/Close failures, the full workspace suite, a paired 60 s smoke run, AMD and Intel GPUs, Wine, release profile, title data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
@gut0to on GitHub · 2026-11-26 15:31 UTC · original · reviewed
AI-assisted review (OpenAI GPT-6). I traced this timeout path in the diff; I did not run the tests or the game.
@ -1607,3 +1706,3 @@}if !dirty_runs.is_empty() {s.upload_dirty(&dirty_runs);let _ = s.upload_dirty(&dirty_runs);@gut0to on GitHub · 2026-11-26 15:31 UTC · original
When
upload_dirtyreturns false,retry_dirty_fromonly marks the unsent CPU chunks for a later scan, butbefore_executecontinues toward the title queue submission. That submission can consume stale VRAM for work depending on these writes. Could this failure path defer the title work or otherwise keep it from executing until the dirty suffix has been uploaded? AI-assisted review (OpenAI GPT-6); I checked this against the timeout/retry flow in this diff and did not run tests or the game.@GodlyBDS on GitHub · 2026-11-26 16:04 UTC · original
The timeout handling is also relevant to the current
nvidia-devsparse path ataf2cecc40886a8682ecf3267f5328c6dc4b66ad7. Its upload-slot wait returns no status before allocator reset, and the ring-space loop can retry the same unfinished fence. Its synchronous readback path also resets after the void wait. That branch has a different sparse/queue implementation from this PR's main base and needs its own validation.In one retained Ampere world-transition run, the existing five-second sparse warning occurred with the queue one fence behind shortly before a q0 compute
ExecuteIndirecthung. The warning alone does not identify which sparse caller was waiting or which operation initiated the stall. The preceding GPU timestamp and the DRED breadcrumb agree on the compute indirect as the unfinished operation. Retained runtime measurements.On the same Windows 10 19045 / RTX 3090 Ti host, I ran the exact
475341d1ee5b173dee4107562b2fd38a5fe73dc3timeout fixtures.cargo test --offline --locked -j 30 -p xcl --lib a_stalled_ -- --test-threads=1 --nocapturereturned 2 passed, 0 failed, 0 ignored with rustc 1.98.1 MSVC. The fixtures used synthetic unsignalled fences. OpenAI Codex (GPT-6 family) checked the paths, correlated the logs and ran the fixtures.@KDenKC on GitHub · 2026-11-26 16:28 UTC · original
Source review of
475341d1, no run. The new retry of failed tile clears can now land after newer data:In
before_execute(sparse.rs:~1702-1709), whenupload_zerosfails (ensure_zero_buffails, orbegin_slotreturnsNone), the clears go back tos.to_zero, but the function still goes on toupload_dirty(&dirty_runs). If that succeeds, CPU writes uploaded now (their dirty bits already reset by the write-watch scan) reach VRAM before the clear. On the nextbefore_execute, the re-queued clear zeroes those tiles over them, which is the write-after-write the comment above it ("Submit tile clears before CPU writes…") rules out.readback_now(~1378) already returns right after re-queuing in the same case. Doing the same here, or keepingdirty_runspending until the clears are submitted, would keep the order. Onmaina failed clear was dropped (stale data, not newer data overwritten), so this ordering is new with the retry.How often: we saw no sparse fence timeouts or clear failures in ~150 runs on an RTX 5090. It needs a ring that stays busy past its wait, or a failed zero-buffer allocation (a 5 s sparse wait has been reported on Ampere).
Not tested: no build or run of this head.
AI use: Gemini (Antigravity) found it in a review. Claude Code (Claude Opus 5.5) checked it against
475341d1andmainand wrote this.@Decodere on GitHub · 2026-11-26 16:35 UTC · original
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2821 at
475341d1ee5b173dee4107562b2fd38a5fe73dc3(3 commits on merge-baseorigin/mainb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7; parentf6fd35d669bcecc476db2901f606a7a5f55f263f). Measurements and targeted test results only; not a full source review.Setup
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)title: 29640639viascripts/smoke.ps1 -Seconds 60(XCL_NETWORK=0, default flags, no input)Targeted RTX 4060 release unit & GPU tests (
475341d1)cargo test --release -p xcl --lib a_stalled_ring_retries_only_the_unsubmitted_dirty_suffix -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s,0SKIPPED).cargo test --release -p xcl --lib a_stalled_upload_ring_returns_and_retries_exact_chunks -- --nocapture: 1 passed, 0 failed, 0 ignored (0.27 s,0SKIPPED).cargo test --release -p xcl --lib upload_dirty_exits_when_ring_fence_wait_times_out -- --nocapture: 1 passed, 0 failed, 0 ignored (0.27 s,0SKIPPED).cargo test --release -p xcl --lib hle::d3d12x::sparse::(3 consecutive parallel passes): 20 passed, 0 failed, 1 ignored (early_commit_timingignored) on all 3 passes (0.43 s/0.43 s/0.43 s,0SKIPPED).Paired 60 s RTX 4060 smoke (
b49be183vs475341d1)Both runs held steady 60/2 s pacing with
0device removals and0crashes (475341d1xcl.log:6,176 MBpeak /6,116 MBend local VRAM,4,650 MBend non-local VRAM;sparse windows: 4096 submits, 1388 MB of CPU writes uploaded, 308 ms spent, 13412 tiles mapped,0frame-event timeouts,0sparse ring stalls;19,549translated draws /1,024dispatches with0skipped).Merge-base
origin/main(b49be183):PR #2821 head (
475341d1):Limits of coverage
0timeouts/stalls), so the stalled-upload retry/timeout fallback path (including downstreambefore_executebehavior whenupload_dirtyreturnsfalse) was exercised only by the 3 targeted release tests above rather than live GPU timeout conditions.hle::d3d12x::sparse::, release build, and paired 60 s smokes).RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.AI use
Ran the targeted release unit/GPU tests, release build, and paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory/upload metrics, and smoke blocks were extracted directly from
cargo test,xcl.log, andscripts/smoke.ps1outputs.475341d1eeto43425fba08@KOLESNiii on GitHub · 2026-11-26 17:13 UTC · original
On
crates/xcl/src/hle/d3d12x/sparse.rsline 1708 (outdated):No, the title's work still goes ahead: this PR does not hold back
ExecuteCommandLists, and doing that is a larger change than this PR. Before #1277 the same stall keptupload_dirtylooping with theSTATElock held, so the title hung instead. Now its queue still GPU-waits for every upload that was submitted, and only the chunks left unsent can be stale for work submitted during the stall.Checking this turned up a real gap: the unsent chunks were marked, but their page was scanned again only when the CPU wrote it again, since its write-watch had already been reset. A page written once stayed stale.
D3D12.X: sparse chunks a stalled upload left unsent are scanned againnow records those pages and scans them again at the next submit (testunsent_chunks_are_scanned_again_without_a_new_cpu_write, which fails without the change). So the stale window ends at the first submit after the queue moves again. Holding the title's work back is listed under Not tested as not done.AI use: Claude Code (Claude Opus 5.5) checked this and wrote the change and this reply.
@KOLESNiii on GitHub · 2026-11-26 17:13 UTC · original
Thanks for the reports and reviews.
43425fbaaddresses them:wait_for_mspasses its own timeout towait_fence_until. This PR is now stacked on #1277 and #1419.D3D12.X: sparse CPU writes wait for tile clears that could not be sent. If the clears cannot be submitted, that submit's CPU writes are held back and marked for the next upload with them. Test:cpu_writes_wait_for_tile_clears_that_could_not_be_submitted, which fails without the change.D3D12.X: sparse chunks a stalled upload left unsent are scanned again.nvidia-devsparse path is a different branch and is not changed here.The description has the new test counts and regression runs. The earlier test reports were made on
475341d1and do not cover the new commits.AI use: Claude Code (Claude Opus 5.5) made the changes, ran the tests and wrote this comment.
@KDenKC on GitHub · 2026-11-26 17:36 UTC · original
Thanks @KOLESNiii, the clear/write ordering is fixed in
43425fba. One new edge in it:upload_zeros_then_dirty(sparse.rs:1232-1236) callsretry_dirty_from(dirty_runs, 0, 0)when the clears cannot be submitted, andvisit_unsubmitted_dirty(:1693-1694) starts withlet (a, n) = runs[index];.before_executecalls it unconditionally (:1757), so a submit that has tile clears but no CPU writes (dirty_runsempty), at a moment when the clears fail, indexes an empty slice and panics whileSTATEis held, which poisons it for the rest of the run. Anif index >= runs.len() { return; }at the top ofvisit_unsubmitted_dirty(or an empty check inretry_dirty_from) covers it. A synthetic test could make the clear fail with empty dirty runs.AI use: Gemini (Antigravity) found it in a review. Claude Code (Claude Opus 5.5) checked it against
43425fbaand wrote this.@Aniseto on GitHub · 2026-11-26 17:37 UTC · original
Re-ran the sparse-upload tests at
43425fbafter the head moved from475341d; this is a new response in the same thread, not an edit of my earlier report:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
All four pass here, including the two added in this push (
unsent_chunks_are_scanned_again_without_a_new_cpu_writeandcpu_writes_wait_for_tile_clears_that_could_not_be_submitted). They use mock fences and unsignalled queues; no real stalled GPU queue was produced. The author's suite ran on an RTX 2070 SUPER; this adds a second NVIDIA datapoint on a Blackwell desktop part.Not tested: a real stalled sparse queue in the title, injected Reset/Close failures, the full workspace suite, a paired smoke run, AMD and Intel GPUs, native wave64, Wine, release profile, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #17543425fba08to970b8a4ad7@KOLESNiii on GitHub · 2026-11-26 18:29 UTC · original
Thanks @KDenKC, confirmed: with tile clears but no CPU writes in a submit, a failed clear sent an empty
dirty_runstovisit_unsubmitted_dirty, which readruns[0]. Fixed in970b8a4a(squashed into the clear/write ordering commit).visit_unsubmitted_dirtynow returns whenindex >= runs.len(), so everyretry_dirty_fromcaller is covered.a_stalled_ring_retries_only_the_unsubmitted_dirty_suffixgained an empty-runs case, which panics without the guard.The full suite and a new smoke run on
970b8a4aare running; the description will be updated with them.AI use: Claude Code (Claude Opus 5.5) checked the report, wrote the fix and this reply.
@Royalflamejlh on GitHub · 2026-11-26 19:56 UTC · original
At head
970b8a4a, under Wine + vkd3d-proton on the RTX 4070,sparse::passed (23 passed, 1 ignored). In 3 title runs nosparse:warning was printed, the title stopped presenting at 76.2 to 82.0 s (72.1 to 76.2 s on475341d1in my comment above, 76.1 and 86.7 s without this pull request), and no run lost the device.Setup as there:
mainb49be18+ #684 (e56dbc3) + this pull request, release, 120 s each, A pressed once the title presented steadily,XCL_PSO_PRELOAD=0.sparse:warnings475341d1passed here:unsent_chunks_are_scanned_again_without_a_new_cpu_write,cpu_writes_wait_for_tile_clears_that_could_not_be_submitted, and #1419'swait_fence_until_ignores_stale_event_signal, now in this pull request. So dida_stalled_ring_retries_only_the_unsubmitted_dirty_suffixwith its new empty-runs case.sparse windows: 2048 submitsby 31.5 s, so the changed upload path ran. Runs 1 and 2 logged NVIDIA channel-allocation failures (GspRmAlloc failed,NV_ERR_STATE_IN_USE) in their first 2 s, before the first sparse submit, and run 3 none. No run logged an out-of-memory or Xid message.Not tested: Windows; a ring stall or a failed tile clear in the title; the whole test suite.
AI use: Claude Code (Claude Opus 5.5) ran the title and the tests and wrote this comment.
Posted without review by a person: the account owner was away and reads replies later.
@Aniseto on GitHub · 2026-11-26 20:27 UTC · original
Re-ran the sparse-upload tests at
970b8a4after the head moved from43425fb; this is a new response in the same thread, not an edit of my earlier report:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
All four pass here. The new push adds a bounds guard in
visit_unsubmitted_dirtyand one assertion in the first test for failed tile clears with no CPU writes; that assertion ran in this pass. These are mock-fence tests, not a real stalled GPU queue.Not tested: a real stalled sparse queue, injected Reset/Close failures, the full workspace suite, a paired smoke run, AMD and Intel GPUs, native wave64, Wine, release profile, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
@Decodere on GitHub · 2026-11-26 20:44 UTC · original
Follow-up independent desktop NVIDIA verification of PR #2821 at updated head
970b8a4ad7c5a64e6bb5e605a5cd16ecbd1cb784(6commits3f193cf1 -> 02728e0d -> 7621090a -> 01981673 -> 405371a0 -> 970b8a4aon merge-baseb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555ancestor ofmain; parent405371a0a2d1542faaa6e3353728a8b21eb75939). This supersedes our earlier check at475341d1ee5b173dee4107562b2fd38a5fe73dc3after the follow-up commits adding allocator-reuse abort, unsent-chunk re-scanning, and failed-tile-clear /dirty_runsordering (970b8a4a).Environment
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted release tests & build (
970b8a4a)cargo test --release -p xcl --lib a_stalled_ring_retries_only_the_unsubmitted_dirty_suffix -- --nocapture1 passed; 0 failed; 0 ignored; 1341 filtered out(0.00s)cargo test --release -p xcl --lib a_stalled_upload_ring_returns_and_retries_exact_chunks -- --nocapture1 passed; 0 failed; 0 ignored; 1341 filtered out(0.25s, on-GPU)cargo test --release -p xcl --lib unsent_chunks_are_scanned_again_without_a_new_cpu_write -- --nocapture1 passed; 0 failed; 0 ignored; 1341 filtered out(0.23s, on-GPU)cargo test --release -p xcl --lib cpu_writes_wait_for_tile_clears_that_could_not_be_submitted -- --nocapture1 passed; 0 failed; 0 ignored; 1341 filtered out(0.23s, on-GPU)cargo test --release -p xcl --lib wait_fence_until_ignores_stale_event_signal -- --nocapture1 passed; 0 failed; 0 ignored; 1341 filtered out(0.26s, on-GPU)cargo test --release -p xcl --lib upload_dirty_exits_when_ring_fence_wait_times_out -- --nocapture1 passed; 0 failed; 0 ignored; 1341 filtered out(0.25s, on-GPU)cargo test --release -p xcl --lib hle::d3d12x::sparse::(3 consecutive runs)23 passed; 0 failed; 1 ignored; 1318 filtered out× 3 (0.52s,0.42s,0.39s;early_commit_timingis#[ignore])cargo build --release -p xcl --bin xcl1m 14s, exit0)Paired quiet 60 s retail smoke (
title: 29640639)Merge-base (
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):PR #2821 (
970b8a4ad7c5a64e6bb5e605a5cd16ecbd1cb784):Runtime log observations (
xcl.log)9223log lines,0[ERROR]/ device-removal / panic lines, and0sparse-queue stall/timeout warnings.sparse windows timing:entrywrite-watch 8174 ms (407910 dirty pages), lock wait 1 ms, chunk scan 82 ms, upload 177 ms (52551 runs).19606 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample13975 MB committed by the process; video memory 6115 MB local, 4651 MB non-local; sparse pools 896 MB (838 MB mapped).Limits of coverage
0live sparse-queue stalls or fence timeouts, verifying zero steady-state regression across52551sparse upload runs. Stalled-ring reclaim, stale event rejection, unsent-chunk re-scanning, and failed-tile-clear ordering (cpu_writes_wait_for_tile_clears_that_could_not_be_submitted) were verified directly on the RTX 4060 through the 6 targeted tests and 3×hle::d3d12x::sparse::runs (early_commit_timingremained#[ignore]).1604vs.1518frames) reflects normal single-run startup variance and is not attributed to this PR.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
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.