D3D12.X: cap two-pass buffers by DXGI headroom with wait and shrink #2807
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2817"
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 coolpersonnn on 2026-11-26T14:22:53Z.
Cap the two-pass mesh buffer pool dynamically from DXGI local VRAM headroom, reclaim busy memory via bounded fence waits, and shrink/fallback gracefully before dropping draws.
Stacked on #2816; only the top commit belongs here.
Part of #2688
What is in it
crates/xcl/src/hle/d3d12x/bind.rs:(local_budget / 32).clamp(256 MiB, 512 MiB).min(ceiling)and amin(local_budget / 4, 2048 MiB)ceiling cached for 250 ms (XCL_TWO_PASS_MBstill overrides), and remove the/ 2reuse-pool clamp input_free_bufsthat caused buffer churn.wait_oldest_fenced_until,FENCE_WAIT_LIMIT = 10 ms) with250 mstimeout backoff andFenceState::Removedshort-circuiting (WaitStep::Stopped), and retry oversized reuse candidates before waiting.DispatchMesh/ExecuteIndirectrecord buffers across every 256 KiB half-step bucket down to a single record (records_for_with_cap+try_ensure_res_buffer_exact_with_cap) rather than jumping straight past 1.5x steps, and track exact directDispatchMeshfallback cuts/drops (TP_DIRECT_CUT,TP_DIRECT_GROUPS_DROPPED).XCL_TWO_PASS_BATCHhalves (Halves->Whole) and batch-buffer allocations (batch_region/try_make_with_cap) to fall back cleanly without pollutingTP_REFUSEDor prematurely skipping draws, plus 10 unit/GPU tests covering budget scaling, wait backoff, device removal, half-step shrink selection, and batch fallback.Tested
a2c10b4a.cargo build --offline --locked -j 6 --workspacesucceeded.cargo test --offline --locked -j 6 --workspace --no-fail-fast -- --test-threads=4 --nocapturereported 1839 passed, 13 failed, 48 ignored, and 27 GPU skip notices. The new regression passed. The failure names and counts match the previous head and the earliernvidia-devbaseline.bc82371ewith the test harness alone (0 passed, 1 failed). With the fix,cargo test --offline --locked -j 4 -p xcl --lib -- wait_oldest_fenced later_queue_completion_during_sleep_reclaims_before_wait_deadline fence_wait_timeout --test-threads=1 --nocapturereported 5 passed, 0 failed. Both invocations had zero skips.bc82371e, RTX 5090:cargo build --offline --locked -j 8 --workspacesucceeded.cargo test --offline --locked -j 8 --workspace --no-fail-fast -- --test-threads=4 --nocapturereported 1838 passed, 13 failed, 48 ignored, and 27 GPU skip notices. The failure names and counts match the earliernvidia-devbaseline. The idle-pool regression passed.9afb55e8, RTX 5090:cargo build --offline --locked -j 6 --workspacesucceeded.cargo test --offline --locked -j 6 --workspace --no-fail-fast -- --test-threads=4 --nocapturereported 1836 passed, 14 failed, 48 ignored, and 27 GPU skip notices (excluded from coverage). Additional reported failures compared with that earlier release baseline:hle::d3d12x::sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memory. The sparse tile test passed 5/5 standalone reruns on the same head.9afb55e8, same RTX 5090 and command: 1837 passed, 13 failed, 48 ignored, 27 GPU skip notices. The sparse tile test passed; the 13 failure names and counts match the earliernvidia-devbaseline.32.0.16.2101,32187 MiBVRAM, wave32 / split wave64), WARP (software renderer), AMD Ryzen 9 9950X3D, Windows 11 Pro (10.0.26300),rustc 1.100.0(0ef1bc386 2026-11-09), DXC1.8.2502.11.e70a708b:cargo test --offline --locked -p xcl --lib -- hle::d3d12x::bind hle::d3d12x::alloc_pool --test-threads=4(NVIDIA + WARP):82 passed; 0 failed(1opt-inSKIPPED:hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1)).XCL_HEAP_WINDOWS=1:two_pass_binds_set_the_shared_view_heap1 passed; 0 failed.cargo build --offline --locked --release --workspace && cargo test --offline --locked --release --workspace --no-fail-fast -- --test-threads=4):e70a708bon RTX 5090:total_passed=1833, total_failed=13, total_ignored=48, skips=27(xcllib:1706 passed; 7 failed; 28 ignored) vsnvidia-dev(eae01502):total_passed=1812, total_failed=13, total_ignored=48, skips=27.e70a708bon WARP (XCL_ADAPTER=warp):total_passed=1838, total_failed=6, total_ignored=48, skips=363(xcllib:1711 passed; 2 failed; 28 ignored) vsnvidia-dev(eae01502):total_passed=1817, total_failed=6, total_ignored=48, skips=364.nvidia-devbaseline (fuzz_validate_and_gpu_{0,1,2,3},gpu_compute_thread_limits_leave_the_lanes_past_them_out,texture_upload::{pieces_hold_the_texels_of_their_levels, gpu_parts_of_a_texture_go_up_and_the_rest_stays},console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,async_compute_pso_registers_real_pso_and_not_standin,split_compute_prefers_the_offline_whole_pipelinex2,two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsx2); WARP's 6 failures match pre-existing baseline (texture_uploadx2,console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,test_title_draws_with_a_root_signature_under_the_debug_layer,test_title_runs_under_the_debug_layer_with_dred,test_title_runs_and_game_folder_is_untouched).SKIPPEDGPU tests on RTX 5090:no wave64(20),wave32, per-lane form: refused(3),no heap windows(2),cannot disable the driver cache(1), plus opt-inXCL_HEAP_WINDOWS=1skip above (1).scripts/smoke.ps1,title: a93b40d7, RTX 5090,XCL_PREPARE=0):e70a708bproduced1675frames (PresentX 1675),0device removals,0crashes,16201 MBpeak commit vsnvidia-deveae01502(1628frames,15793 MBpeak commit) andmainb49be183(1654frames,16446 MBpeak commit).title: a93b40d7(RTX 5090,XCL_PREPARE=0, syntheticAinputs entering live world loading withtwo-pass DispatchMeshandtwo-pass ExecuteIndirect(DispatchMesh),0device removals and0crashes across all 5 runs):nvidia-dev(eae01502, default1024 MiBcap):1426frames (PresentX 1426),83made /3taken again /0let go,83alive (1013 MiB),37 MiBwaiting for allocator resets,2420draws refused/skipped past1024 MiB, peak commit36712 MB, peak local VRAM15647 MB.e70a708b(default DXGI headroom ->2048 MiBcap):1432frames (PresentX 1432),105made /6taken again /3let go,102alive (1550 MiB),0 MiBwaiting for fences/resets,0refused/skipped draws,0warnings,0waits/timeouts,0clamped/cut/shrunk, peak commit39579 MB, peak local VRAM16221 MB.e70a708b(XCL_TWO_PASS_MB=1024):1428frames (PresentX 1428),71made /5taken again /2let go (69alive,1023 MiB),489shrunk,2317refused past1024 MiB,0waiting for fences/resets,0waits/timeouts, peak commit37568 MB.e70a708b(XCL_TWO_PASS_MB=256):1432frames (PresentX 1432),24made /3taken again /3let go (21alive,255 MiB),271shrunk,1direct cut (24groups dropped),10164refused past256 MiB,0waits/timeouts, peak commit35055 MB.e70a708b(XCL_TWO_PASS_BATCH=2):1415frames (PresentX 1415),60made /13taken again /3let go (57alive,2022 MiB,7kept for reuse385 MiB),478shrunk,3560refused past2048 MiB,0waits/timeouts, peak commit36466 MB.Regression run
Not tested
XCL_TWO_PASS_MB=1024and256overrides.presentspause after ~60–64 s on bothnvidia-devand this PR while 650 KB–1.5 MB compute/graphics PSOs compile) were not reached within the 120 s scripted world-loading runs, though live world-loadingDispatchMeshandExecuteIndirect(DispatchMesh)draws and DirectStorage streaming executed across all five runs.AI use
gemini-pro-orchestrator-neon) and Codex (GPT-6.2 Sol) wrote and reviewed the budget-capping/fallback fixes, tests, and PR description; all builds, tests, smoke runs, and world-loading runs were executed directly on local hardware.gpt-6.2-sol) reproduced and fixed the fence-accounting race, added the regression test, and reran validation on the revised stack.gpt-6.2-sol) reproduced the idle-pool regression, applied the suggested fix and reran validation on the revised stack.gpt-6.2-sol) adapted the review's fence rescan to elapsed time, reproduced the late completion, and reran the workspace suite and retail smoke.Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-26T14:56:32Z.
Update for head
a2c10b4: clean. On the newernvidia-deveff3bca,bind+alloc_poolat--test-threads=4: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 85 passed, 0 failed (neither of the two rare failures below showed up).Update for head
bc82371: two rare single failures at--test-threads=4, neither reproducible on demand. Onnvidia-deveae0150,bind+alloc_pool, 24 runs on this head (14 RX 9070 XT, 10 RTX 3060), 84 passed each except:records_for_falls_back_to_whole_before_shrinking_halvesfailed once (RX 9070 XT);dispatch_x_with_thread_dimensions_launches_whole_groupsfailed once (RTX 3060). That is its second failure with this PR (once one70a708above).nvidia-devalone: 0 failures in 22 runs.I didn't catch the panic text for either (14 more runs, all clean, while trying). I didn't run single-threaded on this head.
Update for head
9afb55e: clean. Onnvidia-deveae0150,bind+alloc_poolat--test-threads=4: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 83 passed, 0 failed.Update for head
e70a708(with thelock_warp_testschange): applies onnvidia-deveae0150again.bind+alloc_poolat--test-threads=4: noindirect_feedback_*failure in 14 runs on the RX 9070 XT or 4 on the RTX 3060 (82 passed each). One RX 9070 XT run had a single failure indispatch_x_with_thread_dimensions_launches_whole_groups, which is an existingnvidia-devtest outside this diff. It didn't come back in 8 more runs, andnvidia-devalone passed 8 of 8, so I can't say whether it is related; I didn't keep its panic message.Update for head
4eea0ac: the flake didn't show up. Tested at the PR head (its base is stillaf2cecc, and the diff no longer applies on the newernvidia-dev).hle::d3d12x::bind+alloc_poolat--test-threads=4: RX 9070 XT (XCL_ADAPTER=Radeon, so the hardware test runs) 6 of 6 runs 54 passed, 0 failed; RTX 3060 4 of 4 the same; one thread on the RX 9070 XT 3 of 3. Atc1bf0e8the same command failed in 4 of 6 runs on the RX 9070 XT, so this is a real change, but 10 clean runs don't prove the race is gone.AMD run (listed as untested), with an RTX 3060 in the same PC. Two of the new tests fail now and then on both cards when the tests run in parallel. They pass every time on one thread.
Tested: head
c1bf0e8applied on its basenvidia-devaf2cecc, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, card picked withXCL_ADAPTER.cargo test -p xcl --lib -- hle::d3d12x::bind hle::d3d12x::alloc_pool --test-threads=4, repeated:--skip gpu_scale_args_reports_uncapped_group_count_feedback, 4 of 6 still failed, so it is not that test.--test-threads=1on the RX 9070 XT: 10 of 10 runs 54 passed, 0 failed.nvidia-devwithout the PR: 42 passed, 0 failed.The failures:
indirect_feedback_waits_for_submit_before_copybackpanics atbind.rs:5127:assertion failed: !fb.dirty && !fb.copy_in_flight.indirect_feedback_copyback_grows_on_clamp_and_decays_over_windowsthen panics atbind.rs:1442:37, theFEEDBACK.lock().unwrap()inpoll_two_pass_feedback. In one rungpu_scale_args_reports_uncapped_group_count_feedbackpanicked at the same line withPoisonError, so after the first panic theFEEDBACKmutex is poisoned and the later feedback tests fail with it.#2816 has the same two tests and the same failures: 1 of 6 runs on the RX 9070 XT, 1 of 4 on the RTX 3060. #2815 alone passed (46 passed, 0 failed).
One more thing I saw: the new
gpu_scale_args_reports_uncapped_group_count_feedbackmatchesXCL_ADAPTERagainst the adapter name with a case-sensitivecontains, soXCL_ADAPTER=radeonskips it withno D3D12 hardware adapteron this AMD Radeon card. WithXCL_ADAPTER=Radeonit runs and passes, on both cards. The existinggpu_two_pass_pooled_scratch_respects_remaining_budgetonnvidia-devskips the same way withradeon.Not tested: a title run,
TP_WAITED/TP_SHRUNKin play, release,XCL_HEAP_WINDOWS=1(two_pass_binds_set_the_shared_view_heapSKIPPED), Intel.AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-26T14:27:55Z.
Independent Windows check on the clean stacked head
c1bf0e82183fd477e9f4dbed24773e8097782cee(nvidia-devbaseaf2cecc40886a8682ecf3267f5328c6dc4b66ad7). Windows 11 build 26200, Ryzen 9 8945HX, RTX 5070 Ti Laptop 12 GB (driver 621.24), Rust 1.97.1 MSVC debug,XCL_ADAPTER=NVIDIA,XCL_TWO_PASS_MBunset.cargo test --locked --offline -p xcl --lib -j 2 -- hle::d3d12x::bind::tests:: hle::d3d12x::alloc_pool::tests:: --skip two_pass_binds_set_the_shared_view_heap --test-threads=1 --nocapturereported 53 passed, 0 failed, 0 ignored, no reported skips. This includes the fence reclaim and multi-queue tests, uncapped GPU feedback, and the scripted budget/wait/shrink cases. The ExecuteIndirect case logged the RTX 5070 Ti Laptop as its adapter.XCL_HEAP_WINDOWS=1 XCL_REQUIRE_GPU=wave64:cargo test --locked --offline -p xcl --lib -j 2 -- hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --exact --test-threads=1 --nocapturereported 1 passed, 0 failed, 0 ignored, no reported skips. Both passes set the shared shader-visible heap in the binding fixture.This covers the targeted synthetic tests on the 12 GB host. In-game tight-budget waits/shrinks, end-to-end rendering with heap windows, and the full workspace suite were outside this run.
OpenAI Codex assisted with verification.
Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T14:48:18Z.
In the world on a 12 GB card, over its budget: this stack frees about 1 GB and makes about 98 % of the two-pass draws that were skipped. One run with the stack, against two without.
Setup: RTX 4070 Ti 12 GB (621.40), Ryzen 7 7800X3D, 32 GB RAM, Windows 11 26200, release.
nvidia-devaf2cecc4+ #2794 + #2697/#2750/#2776/#2762 (memory report), and #2815–#2817 cherry-picked cleanly on top (c1bf0e82).XCL_TWO_PASS_MBunset, i.e. the 1,024 MiB default.05-37-51,05-49-01)06-39-11)One run with the stack. (Claude Code, Claude Opus 5.5)
Imported from ivall/xcl. Originally posted by throny on 2026-11-26T14:59:15Z.
Test report for the stack (#2815 + #2816 + this PR) in the world on an RTX 4080 16 GB: the buffers no longer wait for allocator resets and far fewer draws are skipped, but on a card that is over its budget the derived cap is 256 MiB and refusals come back as the run goes on.
Tested
git apply, as it is) onnvidia-devaf2cecc4+ #684 + #2697 + #2749 + #2729 + #2794. The retail title of #505, Series X profile, world from about 170 s. Two world runs with the stack (18, 19), against two runs of the same day without it (14, 16; the same base less #2794 / #2729).GPU queue.Wait … did not complete within 5000 ms): 9 within 30 s around 303–333 s in run 18 (my run guard ended that run there), 14 around 360–390 s in run 19.recorded last (a call into the driver stands still)twice in run 19 (265 s, 282 s).Both could be the "wait briefly on pending submit fences" path meeting a GPU that is seconds behind (this card spends 93 % of the submitting thread's time inside
PresentXin the world, see #2729's report), so they may be specific to an over-budget card.0xc0000005in the title's own code, no device removal; run 18 by my guard. Neither run lost the device (4 of 6 earlier runs did).Not tested
frame dump copy: not finished after 2000 ms), so I can't say whether the draws that are no longer skipped fill in the ground.AI use: Claude Code (Claude Fable 5.2) ran this on the owner's machine and wrote the report.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T15:05:55Z.
Two Linux/Wine lanes on the full stack, both vendors, release profile. Nobody here has posted Linux numbers for this stack yet.
Lanes
xvfbBoth:
cargo test --release --locked -p xcl --lib --target x86_64-pc-windows-gnu -- --test-threads=2 --skip gpu::, full env per lane (runner: Proton wine on A,/usr/bin/wineon B,WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b",VKD3D_CONFIG=ignore_shared_fence,XCL_DXC_DIRset).Suite verdicts (clean stack
c1bf0e82on baseaf2cecc4)af2cecc4c1bf0e82bind::wait_oldest_fenced_reclaims_in_flight_buffer_before_refusing(in-suite only)Flake, matches @DarkPanda69's parallel-only observation. On lane A,
wait_oldest_fenced...(bind.rs:5192) is the only stack-added red: red in-suite 2 of 2 runs, green alone 3 of 3 (--exact). On lane B it is green in-suite and 2 of 2 alone. First run on A additionally aborted the test host: the bind.rs panic poisoned a mutex, thenlist_x::a_reset_while_the_last_submit_runs_records_on_another_pc_listhitPoisonErrorunwrapping at bind.rs:1442 inside a non-unwinding scope,thread caused non-unwinding panic. aborting.,exit status: 9(test binary, not the assertion). The rerun with--nocapturecompleted 880/7 instead. So on this stack the parallel flake can escalate to a host abort on the wine-11/Proton lane; the wine-10 lane never showed it.Vendor-split, predates the stack.
bind::gpu_two_pass_indirect_commands_keep_their_own_recordsis consistently red on the Pascal lane (red alone 3/3, at base and at stack), green everywhere on RDNA3. It is in the base's 10-red set on that box, so it is not caused by #2815-#2817, but it does mean two-pass-adjacent coverage is already dead on Pascal/wine-10 before this stack lands. Its sibling in-suite reds on that box (write_buffer_immediate_on_open_existing_heap_visible_to_cpu,descriptor_heap zero_sampler,texture_upload gpu_parts...) likewise vanish when the stack lands on the AMD lane.Not tested: Windows, native Linux, the in-game evidence items.
AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by Smokeyqdqd on 2026-11-26T16:43:19Z.
Independent RTX 3060 retest of the intermittent feedback failures on #2817. With four test threads, the original revision failed in 3 of 10 runs. The current PR head completed all 10 runs successfully.
Tested
Windows 11 build 26200, Ryzen 7 5800X, 32 GB RAM, RTX 3060 12 GB, NVIDIA 610.88, rustc 1.100.0 MSVC, debug. No tracked edits. Original PR revision
c1bf0e82183fd477e9f4dbed24773e8097782cee, updated PR head4eea0ac2c2ac18790ab624ddbbd9e301562088c7.With
XCL_ADAPTER=NVIDIA,XCL_TWO_PASS_MBandXCL_HEAP_WINDOWSunset, I ran:indirect_feedback_waits_for_submit_before_copybackatbind.rs:5127(!fb.dirty && !fb.copy_in_flight), followed by a poisoned mutex. In the two aborted runs the log also reports a non-unwinding panic and exit status0xc0000409.--test-threads=1: 3/3 runs on each revision reported 54 passed, 0 failed, 0 ignored.two_pass_binds_set_the_shared_view_heap(heap windows disabled). One additional four-thread run on the updated head withXCL_HEAP_WINDOWS=1reported 54 passed, 0 failed, 0 ignored and zeroSKIPPEDlines.Not tested
Retail gameplay, FPS, VRAM savings, full workspace suite or other adapters. These results cover the filtered tests on this machine.
AI use
Codex (GPT-6.2 Astra) ran the tests, checked the revision and logs, and drafted this report.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T16:44:49Z.
Independent Windows/NVIDIA check of the current #2817 head
4eea0ac2against its exact #2816 parentebd9a37b. Clean tracked tree for each run. RTX 3080 Ti 12 GB (driver 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC, DXC 1.8.2502.11.With
XCL_ADAPTER=NVIDIA,XCL_TWO_PASS_MBandXCL_HEAP_WINDOWSunset:cargo test --offline --locked -p xcl --lib hle::d3d12x::bind::tests -- --test-threads=4— 46 passed, 0 failed, 0 ignored. One GPUSKIPPEDnotice for the opt-in heap-window case; that notice is not counted as coverage.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4. Head: 1,756 passed, 7 failed, 48 ignored across 41 test targets, with 26 GPUSKIPPEDnotices. Parent: 1,751 passed, 7 failed, 48 ignored across 41 test targets, also with 26 GPUSKIPPEDnotices. The seven failed test names are identical on both revisions: one shader-cache test, two texture-upload tests, one mesh-stream test, one async-compute test, and two runs of the two-pass driver-cache test. This comparison found no new failing test on the top commit in this setup; it does not establish the cause of those seven failures.XCL_HEAP_WINDOWS=1,cargo test --offline --locked -p xcl --lib hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap -- --exact --test-threads=1 --nocapture— 1 passed, 0 failed, 0 ignored, without a skip notice.Not tested: a matched retail world-load run, sustained frame time, AMD/Intel, or Linux/Wine. These synthetic results do not establish the stack's in-world memory or draw-skip improvement on this card.
AI use: Codex (GPT-6.2 Sol) ran the tests, checked the current head and parent, compared failures, and drafted this report.
Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-26T16:48:10Z.
By reading only, not run, at
4eea0ac2(baseaf2cecc4):DispatchMeshdraws part of its groups and is counted as run. Under cap pressureensure_res_buffernow returns a buffer smaller than the need (bind.rs:1481-1489,acquire_res_buf_with_cap:453-470).dispatch_meshthen drawsn = groups.min(record_groups(cap, ..))(:1811-1812), warns for the first 8 only (:1819) and countsDRAWS(:1834). Ataf2cecc4the same refusal countedDRAWS_SKIPPED; only needs aboveRECORD_MAXwere cut this way. So "skipped" falls partly because draws become partial. The "shrunk" counter (:328) also countsExecuteIndirectacquisitions (:1945) and no groups; throny's report above has 377 and 9,052 of them. A count of the groups dropped (or of cut draws) in the summary line would let #2688's evidence item 7 be judged.AI use: Claude Code (Claude Opus 5.5) wrote this; Claude Fable 5.2 rechecked it; checked by a person before posting.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T17:05:21Z.
Follow-up to the partial-draw review on current head
4eea0ac2: the shrink loop also skips a supported record-buffer size.record_buffer_bytesuses power-of-two and 1.5× half-step buckets, butacquire_res_buf_with_caphalves a 64 MiB request straight to 32 MiB. With 48 MiB of room, it could use the 48 MiB bucket. For 64 KiB records,record_groupsthen permits 768 rather than 512 of 1,024 requested groups. This improves the amount recorded under the same cap; it does not address the remaining partial draw or prove pixel correctness.I added a focused D3D12 WARP allocation regression at this exact head. On the untouched code it failed, 0 passed / 1 failed: expected 48 MiB, got 32 MiB. Walking each bucket in order made it pass, 1 passed / 0 failed; the test also checked 48→32 MiB.
cargo test --offline --locked -p xcl --lib acquire_res_buf -- --test-threads=1then passed 3/3, with no skips. On Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti driver 621.35, rustc 1.99.1 MSVC,XCL_ADAPTER=NVIDIA, the candidate'scargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4reported 1,757 passed, 7 failed, 48 ignored across 41 targets, with 26 explicit GPU skip notices. Those are the same seven failing test names as my untouched-head run (1,756/7/48); the added pass is the new regression.Candidate diff against `
4eea0ac2`Not tested: a retail title or GPU readback of the resulting mesh. AI use: Codex (GPT-6.2 Sol; GPT-6.2 Astra assisted source review) traced the bucket path, wrote and ran the local candidate and regression, and drafted this comment. I checked the diff and results before posting.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T19:22:56Z.
Independent Windows/NVIDIA check of #2817 head
e70a708bagainst its exact #2816 parent862b1ed1. Clean tracked tree on each revision; RTX 3080 Ti 12 GB (driver 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC, DXC 1.8.2502.11.XCL_ADAPTER=NVIDIA;XCL_TWO_PASS_MBandXCL_HEAP_WINDOWSunset for the matched suite. Each revision used its own writable scratchXCL_DXIL_CACHE.cargo build --offline --locked --workspacepassed.cargo test --offline --locked -p xcl --lib hle::d3d12x::bind::tests -- --test-threads=4 --nocapturepassed 74/0/0, with one explicit GPU skip for the opt-in heap-window case. In a fresh process withXCL_HEAP_WINDOWS=1, that exact test passed 1/0/0, with no skip.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture. Head: 1,840 passed, 9 failed, 48 ignored across 45 test targets; parent: 1,830 passed, 9 failed, 48 ignored across 45 targets. Both logs have 26 GPUSKIPPEDnotices (21 no wave64, 3 refused per-lane forms, 2 no heap windows). Skips are not coverage.gpu_compute_thread_limits_leave_the_lanes_past_them_out; twotexture_uploadtests;console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly;async_compute_pso_registers_real_pso_and_not_standin;split_compute_prefers_the_offline_whole_pipelinein two targets; andtwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsin two targets. This comparison found no new failing test on #2817's top commit in this setup; it does not identify the causes of the existing failures.Not tested: a retail title or matched world-load run on this card, in-game VRAM savings, draw completeness, frame content, AMD/Intel or Wine. The passing synthetic tests do not establish those outcomes.
AI use: Codex (GPT-6.2 Sol) ran the exact-head and parent tests, compared their outputs, and drafted this report. I checked each result and the revisions before posting.
Imported from ivall/xcl. Originally posted by MatyEjsr on 2026-11-26T19:32:04Z.
Independent Windows/NVIDIA verification and source audit of PR #2817 at head
e70a708bfcab1e806a8e81517124cb2f890479b2(stacked on #2816862b1ed1/ #281542532264,MERGEABLEonto currentorigin/nvidia-deveae015021c639866ab061cdff2e9daf8ba9daac5).System
rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2602.17 (21d28f72)Tested
cargo build --workspace -j 8(debug): passed (18.71s).cargo test -p xcl --lib -j 8 -- hle::d3d12x::bind hle::d3d12x::alloc_pool --test-threads=8 --nocapture:82 passed; 0 failed; 0 ignored(including1SKIPPED:two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1)-> 81 executed, 1 skipped). Identical result at--test-threads=4.XCL_HEAP_WINDOWS=1cargo test -p xcl --lib -- hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --exact --nocapture:1 passed; 0 failed; 0 ignored.cargo test --workspace -j 8 --no-fail-fast -- --test-threads=8 --nocapture(45 test binaries):1840 passed; 9 failed; 48 ignored, with29explicitSKIPPEDnotices separated from passing coverage (21no wave64,3wave32, per-lane form: refused,2no heap windows,3no d3d12SDKLayers.dll/no D3D12 debug layer).origin/nvidia-dev(eae015021c639866ab061cdff2e9daf8ba9daac5) for those exact 9 failing tests:0 passed; 9 failed; 0 ignored(all 9 are pre-existing onnvidia-dev:gpu_compute_thread_limits_leave_the_lanes_past_them_out,pieces_hold_the_texels_of_their_levels,gpu_parts_of_a_texture_go_up_and_the_rest_stays,console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,async_compute_pso_registers_real_pso_and_not_standin,split_compute_prefers_the_offline_whole_pipelinex2,two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsx2).crates/xcl/src/hle/d3d12x/bind.rs): confirmed prior review fixes one70a708bfcab(TP_DIRECT_CUT/TP_DIRECT_GROUPS_DROPPEDseparation, full 1.5x half-step bucket walk down tofloor,FenceState::Removedshort-circuiting without timeout/backoff inflation, andbatch_region/Halves -> Wholefallback withoutTP_REFUSEDpollution). No duplicate open/merged PRs found.Regression run
60s
scripts/smoke.ps1pair (origin/nvidia-deveae01502vs PR #2817e70a708b, release, Developer Mode ON):1576vs1599frames shown (98.6%),0device removals,0crashes,15284 MBvs14760 MBpeak commit (103.6%), local VRAM peak6128 MBvs6188 MB, non-local VRAM peak4835 MBvs4885 MB.Not tested
recomp_programs > 0or emitD3D12.X: two-pass buffers:lines, so it verifies zero startup/memory/frame regression while the cap/wait/shrink paths are covered by the targeted D3D12/WARP tests and source audit).AI use
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T19:44:38Z.
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2817 updated head
e70a708bfcab1e806a8e81517124cb2f890479b2(3 commits on merge-basenvidia-deveae015021c639866ab061cdff2e9daf8ba9daac5; stacked on exact parent PR #2816862b1ed1e7993ee0cab3ef19e33796a97b18c569). Natural 8 GB VRAM hardware data point; measurements and targeted test results only (not a full source review).Setup
7956 MiBreported by D3D12,6945 MBDXGI local video memory budget), 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 (
e70a708b)cargo test --release -p xcl --lib budget_two_pass_cap_scales_with_headroom_and_stays_bounded -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s,0SKIPPED).cargo test --release -p xcl --lib wait_oldest_fenced_reclaims_in_flight_buffer_before_refusing -- --nocapture: 1 passed, 0 failed, 0 ignored (0.01 s,0SKIPPED).cargo test --release -p xcl --lib wait_oldest_fenced_advances_past_small_batch_to_reclaim_large_batch -- --nocapture: 1 passed, 0 failed, 0 ignored (0.01 s,0SKIPPED).cargo test --release -p xcl --lib acquire_res_buf_shrinks_under_tight_cap_instead_of_skipping -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s,0SKIPPED).cargo test --release -p xcl --lib acquire_res_buf_uses_finer_bucket_when_it_fits_the_cap -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s,0SKIPPED).cargo test --release -p xcl --lib acquire_res_buf_stops_shrinking_at_existing_buffer_size -- --nocapture: 1 passed, 0 failed, 0 ignored (0.01 s,0SKIPPED).cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=4(3 consecutive parallel passes): 74 passed, 0 failed, 0 ignored on all 3 passes (0.33 s/0.34 s/0.35 s;1opt-inSKIPPEDnotice per run:two_pass_binds_set_the_shared_view_heapskipped withoutXCL_HEAP_WINDOWS=1).cargo test --release -p xcl --lib hle::d3d12x::alloc_pool:: -- --test-threads=4(3 consecutive parallel passes): 8 passed, 0 failed, 0 ignored on all 3 passes (0.20 s/0.21 s/0.21 s,0SKIPPED).Paired 60 s RTX 4060 smoke (
eae01502/#2816862b1ed1vs#2817e70a708b)All three runs completed cleanly at steady 60/2 s pacing with
0device removals and0crashes (e70a708bxcl.log:6,179/6,118 MBpeak/end local VRAM,4,763 MBend non-local VRAM,14,748 MBend commit,19,294translated draws /1,024dispatches with0skipped; note0two-pass buffer/draw log lines fired during this 60 s menu smoke, so the lower single-run peak commit14912vs15926 MBoneae01502should not be attributed to live headroom capping).Merge-base
nvidia-dev(eae01502):Exact parent PR #2816 (
862b1ed1):PR #2817 head (
e70a708b):Limits of coverage
e70a708b(only the 6 targeted tests individually, 3 parallel--test-threads=4passes each ofbind::andalloc_pool::, release build, and stacked 60 s smokes);two_pass_binds_set_the_shared_view_heapskipped without opt-inXCL_HEAP_WINDOWS=1.6945 MBDXGI budget,6118 MBsteady-state local VRAM during the menu smoke), the 60 s no-input menu/intro smoke did not enter the world or trigger live two-pass buffer pressure (0two-pass log lines), so live in-world DXGI headroom wait/shrink/refuse transitions were exercised only by the 6 targeted release unit tests above rather than extended world play.RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.AI use
Ran the targeted release tests (including 3×
--test-threads=4concurrency passes), release build, and stacked quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly fromcargo test,xcl.log, andscripts/smoke.ps1outputs.Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-26T20:10:19Z.
Follow-up, by reading only at
e70a708b: addressed. ADispatchMeshthat draws fewer groups than asked because its record buffer is short now countsdirect cutand the groups it dropped (bind.rs:2902-2904), and both are in the two-pass summary line (:377) next to the indirect counts, so #2688's item 7 can be judged from a run log.AI use: Claude Code (Claude Opus 5.5) checked the new head and wrote this; Claude Fable 5.2 rechecked it; checked by a person before posting.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T22:42:22Z.
I found a wait-path stall on exact #2817 head
bc82371ee25fa81577173a05c1b255ed2a4ffebf, relative to its #2816 parent9ae803e. Under the two-pass cap,wait_oldest_fenced_untilpolls only the oldest batch's marks. If a later batch on another queue finishes while that fence remains pending, its reusable buffer is not reclaimed until the full wait deadline. The end-of-wait reclaim then reports progress, so timeout backoff does not engage; subsequent recordings can repeat the stall. The production wait limit is 10 ms per attempt.I reproduced this with a test-only WARP schedule: queue A keeps a small buffer pending; queue B holds the requested 64 MiB buffer and completes after the eighth poll of A. A stays pending. With the PR logic unchanged,
cargo test --offline --locked -p xcl --lib later_completed_queue_reclaims_without_waiting_for_oldest -- --test-threads=1 --nocapturefailed (0 passed, 1 failed, 0 ignored, 0 skipped) after 249 polls of A. The test uses a 100 ms deadline so the distinction is deterministic; it does not claim a measured 10 ms retail stall.The local candidate rechecks all fenced batches at bounded intervals while polling A, then retries acquisition when a batch is reclaimed. The same test passed (1/0/0/0).
cargo test --offline --locked -p xcl --lib hle::d3d12x::bind::tests -- --test-threads=4then reported 77 passed, 0 failed, 0 ignored, with one explicit SKIPPED opt-in heap-window test (so 76 executed). This is a focused candidate, not a merge or retail verdict; the full workspace suite and paired smoke runs have not been run for it.Windows 11 build 26300, Ryzen 7 9800X3D, rustc 1.99.1 MSVC. WARP executed the new fixture; the RTX 3080 Ti was present but was not used by that fixture. Synthetic inputs only.
Candidate fix and regression diff
AI use: Codex (GPT-6.2 Sol) wrote the candidate and regression, ran the tests, and drafted this report. Codex (GPT-6.2 Astra) reviewed the fence and reclamation schedule.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T22:52:25Z.
Follow-up independent desktop NVIDIA (natural 8 GB VRAM) verification of PR #2817 at updated head
bc82371ee25fa81577173a05c1b255ed2a4ffebf(3stacked commits42ae6051 -> 9ae803e3 -> bc82371eonnvidia-devmerge-baseeae015021c639866ab061cdff2e9daf8ba9daac5; parent9ae803e3952b4e2f68c206ae34950e59b6b5fadd). This supersedes our earlier check ate70a708bafter the stacked update adding timeout backoff, non-churn free-buffer retention, and whole-before-shrink fallback (bc82371e).Environment
7956 MiBreported by D3D12,7012 MBDXGI local video memory budget observed in this run), 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 (
bc82371e)cargo test --release -p xcl --lib fence_wait_timeout_backs_off_subsequent_waits_until_reclaim -- --nocapture1 passed; 0 failed; 0 ignored; 1742 filtered out(0.02s)cargo test --release -p xcl --lib put_free_bufs_retains_buffers_up_to_cap_without_halving_churn -- --nocapture1 passed; 0 failed; 0 ignored; 1742 filtered out(0.01s)cargo test --release -p xcl --lib records_for_falls_back_to_whole_before_shrinking_halves -- --nocapture1 passed; 0 failed; 0 ignored; 1742 filtered out(0.01s)cargo test --release -p xcl --lib hle::d3d12x::alloc_pool:: -- --test-threads=4(3 consecutive runs)8 passed; 0 failed; 0 ignored; 1735 filtered out× 3 (0.20s,0.20s,0.21s)cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=4(3 consecutive runs)76 passed; 0 failed; 0 ignored; 1667 filtered out× 3 (0.33s,0.33s,0.33s;two_pass_binds_set_the_shared_view_heapself-skipped becauseXCL_HEAP_WINDOWSis opt-in)cargo build --release -p xcl --bin xcl1m 28s, exit0)Paired quiet 60 s retail smoke (
title: 29640639)Merge-base on
nvidia-dev(eae015021c639866ab061cdff2e9daf8ba9daac5, cached baseline on the same machine):PR #2817 (
bc82371ee25fa81577173a05c1b255ed2a4ffebf):Runtime log observations (
xcl.log)9387log lines,0[ERROR]/ device-removal / panic lines.19303 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14759 MB committed by the process; video memory 6117 MB local, 4748 MB non-local; video memory budget 7012 MB.Limits of coverage
--test-threads=4runs ofalloc_pool::andbind::(76/0/0inbind::;two_pass_binds_set_the_shared_view_heapself-skipped becauseXCL_HEAP_WINDOWSis opt-in).title: 29640639logged0live two-pass allocations and stayed below the7012 MBlocal VRAM budget (6117 MBlocal used), confirming clean 8 GB runtime behavior onnvidia-devwithout exercising live in-world VRAM-pressure shrinking; frame-count and peak-commit deltas vs. the cachedeae01502baseline reflect normal single-run startup/worker variance and are not attributed to this PR.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-27T00:09:23Z.
PR #2817 — late completion on a second queue
The proposed 64-poll rescan can miss a reusable buffer until the next 64-poll boundary. In a WARP fixture, queue A stayed pending and queue B's 64 MiB buffer became reusable on poll 70. The published candidate returned the correct buffer on poll 129. After the initial yields, each unsuccessful poll requests a 200 µs sleep, so 64 such sleeps alone span at least 12.8 ms. Production uses a 10 ms wait budget. The observed defect concerns when a ready buffer is noticed. Both fixtures check that the acquired buffer is the expected one. Original report and candidate
The refinement checks all fenced batches once at the yield-to-sleep transition and again after 1 ms has elapsed since the previous scan. A successful reclaim retries acquisition. The existing fence-completion predicates still govern reuse, including multi-queue marks. The scan runs before the deadline check, so scan time and scheduler delays can still extend the wait. The 1 ms interval has not been benchmarked for CPU cost or lock contention with large queues.
The fixtures use WARP allocations and deterministically advanced test fences, a 100 ms deadline and serial execution. No retail workload, physical GPU scheduling, or production wall-clock latency was measured. The refinement's bind module run reported 78 passed, zero failed and zero ignored, including one explicit heap-window skip. The full suite and retail smoke pair remain untested. Baseline log · Published candidate log · Refinement log · Bind module log
Reproduce on Windows
Use a separate checkout of
bc82371ee25fa81577173a05c1b255ed2a4ffebffor each arm. Apply exactly one complete patch to each clean checkout. All three patches were verified withgit apply --check, applied to the exact upstream source, and compared with the source that produced these results.At review time on November 26, the live PR remained at this head. The original report's early schedule was the latest of 14 conversation comments. No public follow-up covering the poll-70 case or formal review was visible. PR discussion
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-27T00:09:40Z.
Independent budget-pressure check on RTX 5070, NVIDIA driver 616.92; Ryzen 7 5700X3D; Windows build 26300.10075; Rust 1.100.0 MSVC, debug. The test-only fixture supplied a native device and queried the real DXGI budget, with no guest or rendering.
On the same adapter (LUID confirmed), allocated 3,520 MiB of non-pool local heaps and then released them; sampled after 350 ms to cross the 250 ms refresh period. Reported process usage rose from 9,371,648 to 3,700,359,168 bytes and returned to 9,371,648 bytes. The reported local budget was 11,717,836,800 bytes.
9ae803e3: automatic cap stayed at 1,024 MiB.bc82371ee25fa81577173a05c1b255ed2a4ffebf: automatic cap went from 2,048 MiB to 2,004,369,408 bytes (about 1,911.5 MiB) under pressure, then back to 2,048 MiB after release.XCL_TWO_PASS_MB=256: cap stayed at 256 MiB throughout.Each arm passed its fixture with 0 failures, 0 ignored and no reported skips. This tests cap calculation on a 12 GB adapter; it does not measure GTA VI's actual VRAM use, performance or stability.
AI use: OpenAI Codex with GPT-6.2 Astra built the test-only fixture and ran the comparison; Codex coordinated and prepared this report.
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-27T00:16:36Z.
Retested the late-fence case from my earlier review on updated head
a2c10b4a6d5f0463b69d10e8edde21a85dcaa3cb. The exact upstream WARP regression passed in five fresh runs (5 passed, 0 failed, 0 ignored, no reported skips). It exercises a later queue completing after the wait enters its sleep phase and checks reclamation before the modeled 10 ms deadline.The bind module reported 77 passed, 0 failed and 0 ignored, including one explicit opt-in heap-window skip. This validates the synthetic schedule, not retail frame-time impact or queue-scan overhead.
AI use: OpenAI Codex with GPT-6.2 Astra inspected the updated code and ran the tests; Codex coordinated and prepared this report.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T00:17:31Z.
Tested: Clean
a2c10b4a6d5f0463b69d10e8edde21a85dcaa3cb, Windows 11 build 26200, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, debug.cargo test --offline --locked -j 2 -p xcl --lib --no-run, then focusedhle::d3d12x::bind::testsfilters in the built binary. Six CPU capacity/record-sizing tests and five WARP allocation tests passed. WARP covered 64→48 MiB and 48→32 MiB shrinking, the existing-buffer cutoff, pool retention and whole-buffer fallback. On Arc,gpu_two_pass_pooled_scratch_respects_remaining_budgetpassed and reported 512 KiB taken against a 16 MiB cap. All three groups had zero failures, ignores and skips.Not tested: Live DXGI pressure, retail behavior or full suite.
AI use: T3 Code / Codex (
gpt-6.2-sol) ran and reran the checks and wrote this report.Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T00:45:13Z.
Follow-up independent desktop NVIDIA (natural 8 GB VRAM) verification of PR #2817 at updated head
a2c10b4a6d5f0463b69d10e8edde21a85dcaa3cb(3stacked commits42ae6051 -> 9ae803e3 -> a2c10b4aonnvidia-devmerge-baseeae015021c639866ab061cdff2e9daf8ba9daac5,MERGEABLEagainst livenvidia-devecc0bb57), superseding our earlierbc82371echeck.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 (
a2c10b4a)cargo test --release -p xcl --lib later_queue_completion_during_sleep_reclaims_before_wait_deadline -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1743 filtered out× 3 (0.02s× 3,0skipped)cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=1(3 consecutive runs)77 passed; 0 failed; 0 ignored; 1667 filtered out× 3 (0.66s,0.65s,0.66s;76executed +1self-skippedtwo_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1))cargo test --release -p xcl --lib hle::d3d12x::alloc_pool:: -- --test-threads=1(3 consecutive runs)8 passed; 0 failed; 0 ignored; 1736 filtered out× 3 (0.28s,0.30s,0.28s,0skipped)cargo build --release -p xcl1m 37s, exit0,0new warnings inbind.rs/alloc_pool.rs)Paired quiet 60 s retail smoke (
title: 29640639)Exact
nvidia-devmerge-base (eae015021c639866ab061cdff2e9daf8ba9daac5, cached baseline on the same machine):PR #2817 (
a2c10b4a6d5f0463b69d10e8edde21a85dcaa3cb,XCL_TWO_PASS_MBunset):Runtime log observations (
xcl.log)9390log lines,0[ERROR]/ device-removal / panic lines.19303 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14651 MB committed by the process; video memory 6119 MB local, 4811 MB non-local.0two-pass cap-refusal / wait / shrink warnings triggered during the 60 s run ontitle: 29640639.Limits of coverage
FENCE_WAIT_RESCAN_INTERVALinwait_oldest_fenced_until) and the full stacked#2815–#2817headroom-cap / wait / shrink logic were verified vialater_queue_completion_during_sleep_reclaims_before_wait_deadline(3/3),hle::d3d12x::bind::(76executed +1opt-inXCL_HEAP_WINDOWS=1skip × 3), andhle::d3d12x::alloc_pool::(8/8× 3).title: 29640639does not enter heavy two-pass VRAM pressure (0two-pass wait/shrink log lines), so it confirms zero runtime regression on a natural 8 GB RTX 4060 rather than reproducing over-budget world-load two-pass contention (frame-count and peak-commit deltas vs. cachedeae01502reflect single-run startup variance, not this PR). Full CI workspace coverage (note: GitHubBuild and test (Windows, no GPU)is currently failing ona2c10b4a) was not run here.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by 3L1A5-1 on 2026-11-27T03:36:24Z.
8 GB NVIDIA under real world-load pressure (the case the RTX 4060 smoke above didn't reach): the cap holds two-pass buffers at ≤256 MiB with nothing left waiting, the run lasts longer, but local video memory as a whole is not lower. One run, so the timing is indicative.
Tested
nvidia-devecc0bb57+ this PR (a2c10b4a) + #2921 (both merged as is),XCL_TWO_PASS_MBunset.XCL_CS_PSO_WAIT_MS=50, warm cache, scripted input into the world load, 450 s title limit.eff3bcab/ecc0bb57(3 runs: one without and one with #2921/#2630).Results
Not tested: repeats, the picture under the clamps, AMD.
AI use: runs and log analysis by Claude Code agents (Claude Sonnet 5.5), report written and checked against the run logs by Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-27T03:56:47Z.
Independent paired measurements of the
#2815→#2816→#2817two-pass mesh stack on an 8 GB RTX 3060 Ti (7,256 MBDXGI local VRAM budget).Setup
621.40,nvprofileshader heap 2048 MB), DXC1.9.2602.17.9cc6a39e, release builds, each PR head merged cleanly withorigin/nvidia-dev(ecc0bb57),180 seach, all starting from identical copies of a warmlockhartcache snapshot (1,296used pipelines,3,206driver blobs).XCL_DEVICE_TYPE=lockhart XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50 XCL_GFX_PSO_WAIT_MS=200 XCL_CS_PSO_WAIT_MS=50 XCL_PREPARE_GRAPHICS=0 XCL_DRED=1+XCL_PRESS_AT(18:A..74:A).Summary (180 s paired runs)
PresentX)nvidia-dev(ecc0bb57)42ae6051+ecc0bb57)9ae803e3+ecc0bb57)a2c10b4a+ecc0bb57)All four runs exited
0x0with0device removals and0crashes, and all entered the 3D world (first_2pass_mesh_t=112.9–133.0 s). On an 8 GB card,#2816+#2817cut two-pass live allocations from 1,023 MiB → 13–18 MiB, eliminated all 42,663 skipped two-pass draws, and reduced peak commit by 2.61 GB and peak local VRAM by 1.34 GB.xcl-smoke v1 blocks (180 s each)
Not tested: longer runs past 180 s on
#2815–#2817, Series X (anaconda), AMD GPUs.