D3D12.X: size two-pass indirect buffers from GPU feedback and finer buckets #2806
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2816"
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:50Z.
Size two-pass indirect mesh record buffers from async GPU group-count feedback and 256 KiB half-step buckets instead of worst-case static over-allocation.
Stacked on #2815; only the top commit belongs here.
Part of #2688
What is in it
crates/xcl/src/hle/d3d12x/alloc_pool.rs: pollpoll_two_pass_feedback()during allocator reclaim/trim so completed GPU feedback counters update before new indirect draws size their buffers.crates/xcl/src/hle/d3d12x/bind.rs:SCRATCH_BLOCKandRECORD_MINto256 << 10(256 KiB) with finer half-steprecord_buffer_bytesbuckets.indirect_record_need_hintso first-seen indirect PSOs keep full worst-case capacity rather than dropping initial geometry.FEEDBACK_HISTORY(ever_nonzero) inIndirectFeedbackSlotso active frustum-culled PSOs stay warm while truly unused PSOs decay down to 256 KiB (RECORD_MIN), and stop readback/feedback polling cleanly onFenceState::Removed(u64::MAX/q.Signalfailure).FEEDBACK_HEADER_U32S = 2) reporting exactTP_INDIRECT_CLAMPEDandTP_INDIRECT_GROUPS_DROPPEDdiagnostics, wire feedback intodefer_execute_indirect, bound oversized buffer reuse to[need .. need * 2]inensure_res_buffer, and add 4 unit/GPU tests (including matchinggpu_two_pass_pooled_scratch_respects_remaining_budgetWARP adapter expectations).+757/-79across the commit:514runtime lines viaalloc_pool.rs+2andbind.rs+465/-47, plus322test lines+290/-32): kept in one commit because the 256 KiB half-step buckets,IndirectFeedbackreadback/header clamp counters, HLSL scaling wiring, and removal/fence guards form one cohesive feedback-sizing change that would otherwise breakgit bisectacross partial states.Tested
9ae803e3, RTX 5090:cargo build --offline --locked -j 8 --workspacesucceeded.cargo test --offline --locked -j 8 --workspace --no-fail-fast -- --test-threads=4 --nocapturereported 1828 passed, 13 failed, 48 ignored, and 27 GPU skip notices. The failure names and counts match the earliernvidia-devbaseline. The idle-pool regression passed.4345fc85, RTX 5090:cargo build --offline --locked -j 6 --workspacesucceeded.cargo test --offline --locked -j 6 --workspace --no-fail-fast -- --test-threads=4 --nocapturereported 1827 passed, 13 failed, 48 ignored, and 27 GPU skip notices (excluded from coverage). All failures match the test names and counts in the earliernvidia-devrelease baseline below.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.862b1ed1:cargo test --offline --locked -p xcl --lib -- hle::d3d12x::bind hle::d3d12x::alloc_pool --test-threads=4(NVIDIA + WARP):72 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) on RTX 5090:862b1ed1(previous head):total_passed=1823, total_failed=13, total_ignored=48, skips=27(xcllib:1696 passed; 7 failed; 28 ignored).nvidia-dev(eae01502):total_passed=1812, total_failed=13, total_ignored=48, skips=27(xcllib:1685 passed; 7 failed; 28 ignored).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).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):862b1ed1produced1666frames (PresentX 1666),0device removals,0crashes,16149 MBpeak commit vsnvidia-deveae01502(1628frames,15793 MBpeak commit) andmainb49be183(1654frames,16446 MBpeak commit).Regression run
Not tested
nvidia-dev(eae01502) and the top of the stack (#2817), not separately on this intermediate commit (targetedbind+alloc_pooltests ran on both NVIDIA and WARP here).0two-pass draws); world loading andExecuteIndirect(DispatchMesh)paths were verified in 120 s runs on top of the stack (#2817) using synthetic menu-advance inputs.AI use
gemini-pro-orchestrator-neon) and Codex (GPT-6.2 Sol) wrote and reviewed the feedback-sizing fixes, tests, and PR description; all builds, tests, and smoke 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.Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-26T14:56:43Z.
Update for head
9ae803e: clean. Onnvidia-deveae0150,bind+alloc_poolat--test-threads=4: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 74 passed, 0 failed.Update for head
4345fc8: clean. Onnvidia-deveae0150,bind+alloc_poolat--test-threads=4: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 73 passed, 0 failed.Update for head
862b1ed(with thelock_warp_testschange): applies onnvidia-deveae0150again.bind+alloc_poolat--test-threads=4: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 72 passed, 0 failed.Update for head
ebd9a37: the flake didn't show up. Tested at the PR head (base stillaf2cecc; the diff no longer applies on the newernvidia-dev).hle::d3d12x::bind+alloc_poolat--test-threads=4: RX 9070 XT (XCL_ADAPTER=Radeon) 6 of 6 runs 49 passed, 0 failed; RTX 3060 4 of 4 the same; one thread 3 of 3. Atf163cdcit failed in 1 of 6 and 1 of 4 runs, so with a rate that low this is only weak evidence the race is gone; on #2817 the change is clearer (4 of 6 runs failed before, 0 of 6 now).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.
Tested: head
f163cdcapplied 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:gpu_scale_args_reports_uncapped_group_count_feedbackandgpu_two_pass_pooled_scratch_respects_remaining_budgetpass by name on both cards.The two are
indirect_feedback_waits_for_submit_before_copyback(bind.rs,assertion failed: !fb.dirty && !fb.copy_in_flight) andindirect_feedback_copyback_grows_on_clamp_and_decays_over_windows, which then panics on the poisonedFEEDBACKmutex. They fail more often on #2817, and the details are in my comment there. On one thread, #2817 passed 10 of 10 runs.As on #2817,
XCL_ADAPTER=radeon(lowercase) skipsgpu_scale_args_reports_uncapped_group_count_feedbackon this card withno D3D12 hardware adapter, because the name match is case-sensitive;Radeonruns it.Not tested: a title run, release,
XCL_HEAP_WINDOWS=1, 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 jeremiahmvze on 2026-11-26T14:54:32Z.
Test note from porting this onto another
nvidia-dev-based branch (the code applied cleanly after #2815): the new feedback tests are not safe to run in parallel.cargo test -p xcl --lib bind:: -- --test-threads=1: 40 passed.indirect_feedback_waits_for_submit_before_copybackindirect_feedback_copyback_grows_on_clamp_and_decays_over_windowsgpu_scale_args_reports_uncapped_group_count_feedback(a panic on theFEEDBACKlock)They all use the process-wide
FEEDBACK/FEEDBACK_ACTIVEstatics, so one test's entries and on/off state leak into another's. Holding one shared test mutex (or resettingFEEDBACKunder a guard) in each of these tests should fix it.Caveat: this was on our port, not on
f163cdc0itself, and on an RTX 4090. The runtime path isn't affected; it's only the tests.Imported from ivall/xcl. Originally posted by ettehn on 2026-11-26T14:58:59Z.
Confirmed the parallel test failure on the exact head
f163cdc0290ff3079e8a507f74ee11f24a4edad2and checked a test-only fix. RTX 5070 Ti Laptop (12 GB, 621.24), Windows 11 x64 build 26200, Rust 1.97.1 MSVC, DXC 1.8.2502.11.bind::tests: 41 reported passed on one thread, including the default heap-window capability skip. In eight fresh runs at four threads, 3 aborted:indirect_feedback_waits_for_submit_before_copybackfirst asserted!fb.dirty && !fb.copy_in_flight, then the other feedback tests hit the poisoned mutex.lock_warp_tests()at the start ofindirect_feedback_copyback_grows_on_clamp_and_decays_over_windowsandgpu_scale_args_reports_uncapped_group_count_feedback; the submit-order test already takes it. With those two guards plus the separate fixture below, the four-thread bind suite passed 16/16 fresh runs (42 reported passed, 0 failed, 0 ignored each, including one default capability skip). The skippedtwo_pass_binds_set_the_shared_view_heapalso passed separately withXCL_HEAP_WINDOWS=1, with no skip.poll_two_pass_feedbackscheduled the readback on a secondDIRECTqueue. Its copy fence stayed pending until the producer was released. After release, the existing clamped, zero-count and disabled cases read back encoded values501,1, and0. The focused run passed 1/0/0 with no capability skips.Base command:
cargo test --locked --offline -p xcl --lib -j 2 hle::d3d12x::bind::tests -- --test-threads=1 --nocapture; repeats used the same harness with--test-threads=4. Synthetic tests only. OpenAI Codex (6.2sol) assisted with verification.Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T15:54:27Z.
Ran the two-pass indirect feedback tests at
f163cdcserially on a second Blackwell desktop part after the thread reported parallel-only flakes on this exact head:System
Results
XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1647 filtered out, exit 0)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 41 passed, 0 failed, 0 ignored (1614 filtered out, exit 0)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --nocapture: 1 passed, 0 failed, 0 ignored (1654 filtered out, exit 0)What this adds
The author listed an RTX 5090 32 GB (driver 621.01, DXC 1.8.2502.11) and ettehn reported an RTX 5070 Ti Laptop 12 GB (driver 621.24, rustc 1.97). This adds a desktop 5070 Ti 16 GB on driver 32.0.16.2124 with rustc 1.100.0 and DXC 1.9.2609.5. I used
--test-threads=1because the thread reports parallel-only flakes on this head. Both feedback unit tests and the real-adaptergpu_scale_args_reports_uncapped_group_count_feedbacktest pass here; the latter logged1 indirect clamped, so the clamp-growth path was exercised on hardware. An earlier--test-threads=4run of the same filters also passed, but two GPU tests were skipped there because I used a lowercase adapter selector; the serial run above used the exact case and executed them.Not tested
Native wave64 (this part only has 32-lane waves), AMD and Intel GPUs, WARP,
XCL_HEAP_WINDOWS=1(two_pass_binds_set_the_shared_view_heapwas SKIPPED for that reason), the full workspace suite, a paired smoke run, release profile, Wine, a retail title, game data. I did not repeat the author's timing benchmark.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.
Imported from ivall/xcl. Originally posted by GodlyBDS on 2026-11-26T16:30:49Z.
@coolpersonnn I reproduced a second fence-ordering case on exact
nvidia-devPR headf163cdc0290ff3079e8a507f74ee11f24a4edad2. Feedback readback keeps its ownpending_fencesalongside #2815's two-pass buffer retention marks. Both receive submit notifications after the allocator bookkeeping lock is released.The focused fixture delivers q0=15, q1=2, then delayed q0=10 through
two_pass_submittedand schedules the readback on a third queue. The original code generates waits for 10 and 2. With the maximum retained per queue, it waits for 15 and 2. With q0 complete at 13, the original mark therefore permits the readback and clear before the newer producer is confirmed complete.Results on Windows 10 19045, RTX 3090 Ti host, driver 621.40, rustc 1.98.1 MSVC. The test uses a WARP allocation and synthetic fence values. It inspects the actual scheduled wait list, without executing the copy.
Some(10).cargo test --offline --locked --jobs 4 -p xcl --lib feedback_copy_waits_for_the_newest_submit_on_each_other_queue -- --test-threads=1 --nocaptureThe result establishes the stale readback dependency. Its effects on observed clamp counts, scene completeness, and device removal remain unmeasured. Codex (OpenAI GPT-6 family) wrote and executed the fixture and minimal correction.
Focused patch
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T16:47:36Z.
Re-ran the two-pass feedback tests at
ebd9a37after the head moved fromf163cdc; this is a new response in the same thread, not an edit of my earlier report:System
Results
XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1647 filtered out, exit 0)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 41 passed, 0 failed, 0 ignored (1614 filtered out, exit 0);two_pass_binds_set_the_shared_view_heapSKIPPED (opt-inXCL_HEAP_WINDOWS=1)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (1654 filtered out, exit 0)What this adds
Since my earlier report at
f163cdcthe head changed by 79 lines inbind.rsand 2 in README. The counts on this host are unchanged (8/41/1 and the same single skip), and the GPU feedback test was re-executed on the real adapter at this head. This is my second report in the thread and a new response, as required for a changed head.Not tested
XCL_HEAP_WINDOWS=1, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, 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.
Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-26T16:48:11Z.
By reading only, not run, at
ebd9a37b:A two-pass
ExecuteIndirectcan draw fewer groups than at the base, and the draw is counted as run. The base asked forINDIRECT_RECORDS(32 MiB) of records every time. Hereindirect_record_need_hint(bind.rs:1034-1040, used at:1788) asks for 4 MiB on a pipeline with no feedback yet, 256 KiB when its recent windows had zero groups, and otherwise twice the largest count of the last four windows.SCALE_ARGS_HLSLstill cuts each command to what fits (:1451). For the 47,632 B record of the sizing test that is 704 groups a command at the base, and 88 (cold) or 5 (after zeros) here, unless the list already holds a larger buffer. The hint grows only from the readback of a submit that was already cut (apply_window,:1069; polled per submit,alloc_pool.rs:295,:342), and for a pipeline with history readbacks are at least 250 ms apart (:1201). Until then the groups past the cap are not drawn. The draw is counted underDRAWS(:1824), notDRAWS_SKIPPED; onlyindirect clampedshows it, as a count of windows, not of groups. The PR's test asserts the cut (case A: 500 groups, 16 drawn). #2688 asks that a saving does not come from skipping work the title asked for, so theindirect clampedcount of the world runs belongs next to the skip counts. throny's stack runs on #2817 logged 53 and 189 (there #2817's shrink can clamp too).AI use: Claude Code; Claude Opus 5.5 wrote it, Claude Fable 5.2 rechecked it
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T19:44:35Z.
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2816 updated head
862b1ed1e7993ee0cab3ef19e33796a97b18c569(2 commits on merge-basenvidia-deveae015021c639866ab061cdff2e9daf8ba9daac5; stacked on exact parent PR #281542532264a221ac975b745b01097bf751e0e56712). Measurements and targeted GPU/unit 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 (
862b1ed1)cargo test --release -p xcl --lib gpu_scale_args_reports_uncapped_group_count_feedback -- --nocapture: 1 passed, 0 failed, 0 ignored (0.24 s, executed on RTX 4060,0SKIPPED).cargo test --release -p xcl --lib indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows -- --nocapture: 1 passed, 0 failed, 0 ignored (0.03 s,0SKIPPED).cargo test --release -p xcl --lib indirect_feedback_waits_for_submit_before_copyback -- --nocapture: 1 passed, 0 failed, 0 ignored (0.03 s,0SKIPPED).cargo test --release -p xcl --lib indirect_feedback_ignores_readback_after_device_removal -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s,0SKIPPED).cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=4(3 consecutive parallel passes — confirming thelock_warp_testsfix for the earlier--test-threads=4indirect_feedback_*race): 64 passed, 0 failed, 0 ignored on all 3 passes (0.30 s/0.30 s/0.31 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.21 s/0.20 s/0.20 s,0SKIPPED).Paired 60 s RTX 4060 smoke (
eae01502/#281542532264vs#2816862b1ed1)All three runs completed cleanly at steady 60/2 s pacing with
0device removals and0crashes (862b1ed1xcl.log:6,180/6,118 MBpeak/end local VRAM,4,811 MBend non-local VRAM,19,148translated draws /1,024dispatches with0skipped; note0two-pass buffer/draw log lines fired during this 60 s menu smoke, so single-run commit differences should not be attributed to two-pass feedback sizing).Merge-base
nvidia-dev(eae01502):Exact parent PR #2815 (
42532264):PR #2816 head (
862b1ed1):Limits of coverage
862b1ed1(only the 4 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.0two-pass log lines); GPU feedback writeback, clamping, and window decay were verified viagpu_scale_args_reports_uncapped_group_count_feedbackand the 3indirect_feedback_*tests above.RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.AI use
Ran the targeted release GPU/unit tests (including 3×
--test-threads=4concurrency checks), 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:15Z.
Follow-up, by reading only, not run, at
862b1ed1: addressed. A pipeline with no feedback yet now asks for the fullindirect_record_needagain, as at the base (indirect_record_need_hint,None), and the summary line now reports the clamped commands and the groups they dropped (TP_INDIRECT_CLAMPED/TP_INDIRECT_GROUPS_DROPPED, added inSCALE_ARGS_HLSLto the feedback header and read back inconsume_completed). What remains: a pipeline whose windows were all zero still asks forRECORD_MIN(256 KiB) until its first non-zero readback, and one with history for twice the largest count of its last 16 windows; cuts from either now show in the groups-dropped total.AI use: Claude Code; Claude Opus 5.5 wrote it, Claude Fable 5.2 rechecked it; checked by a person before posting.
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T20:26:52Z.
Re-ran the two-pass feedback tests at
862b1edafter the head moved fromebd9a37; this is a new response in the same thread, not an edit of my earlier reports:System
Results
XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1723 filtered out, exit 0)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 64 passed, 0 failed, 0 ignored (1667 filtered out, exit 0);two_pass_binds_set_the_shared_view_heapSKIPPED (opt-inXCL_HEAP_WINDOWS=1)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --test-threads=1: 1 passed, 0 failed, 0 ignored (1730 filtered out, exit 0)What this adds
This head is not a small increment over
ebd9a37: the PR was rebased onto a much newer tree (about 8,500 inserted lines across 42 files), so thebindfilter now matches 64 tests instead of 41. All still pass here, including the real-adapter feedback test. This is my third report in the thread and a new response for the changed head.Not tested
XCL_HEAP_WINDOWS=1, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, 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.
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T21:37:00Z.
Re-ran the two-pass feedback tests at
4345fc8after the head moved from862b1ed; this is a new response in the same thread, not an edit of my earlier reports:System
Results
XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1724 filtered out, exit 0)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 65 passed, 0 failed, 0 ignored (1667 filtered out, exit 0);two_pass_binds_set_the_shared_view_heapSKIPPED (opt-inXCL_HEAP_WINDOWS=1)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --test-threads=1: 1 passed, 0 failed, 0 ignored (1731 filtered out, exit 0)What this adds
The head moved by 35 lines in
bind.rssince862b1ed. One morebindtest now matches the filter (65 instead of 64), and all pass here, including the real-adapter feedback test. This is my fourth report in the thread and a new response for the changed head.Not tested
XCL_HEAP_WINDOWS=1, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, 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.
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T22:19:31Z.
Re-ran the two-pass feedback tests at
9ae803e3after the head moved from4345fc8; this is a new response in the same thread, not an edit of my earlier reports:System
Results
XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1725 filtered out, exit 0)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 66 passed, 0 failed, 0 ignored (1667 filtered out, exit 0);two_pass_binds_set_the_shared_view_heapSKIPPED (opt-inXCL_HEAP_WINDOWS=1)XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --test-threads=1: 1 passed, 0 failed, 0 ignored (1732 filtered out, exit 0)What this adds
One more
bindtest matches the filter (66 instead of 65) at this head. All pass here, including the real-adapter feedback test. This is my fifth report in the thread and a new response for the changed head.Not tested
XCL_HEAP_WINDOWS=1, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, 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.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T22:52:23Z.
Follow-up independent desktop NVIDIA verification of PR #2816 at updated head
9ae803e3952b4e2f68c206ae34950e59b6b5fadd(2stacked commits42ae6051 -> 9ae803e3onnvidia-devmerge-baseeae015021c639866ab061cdff2e9daf8ba9daac5; parent42ae60514ad2b3aaad5e940e2ad3b7bcc595d9b9). This supersedes our earlier check at862b1ed1after the stacked update addingindirect_feedback_ignores_readback_after_device_removaland the updated#2815base commit42ae6051.Environment
7956 MiBreported by D3D12,7022 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 (
9ae803e3)cargo test --release -p xcl --lib gpu_scale_args_reports_uncapped_group_count_feedback -- --nocapture1 passed; 0 failed; 0 ignored; 1732 filtered out(0.21s, on-GPU RTX 4060)cargo test --release -p xcl --lib indirect_feedback_ignores_readback_after_device_removal -- --nocapture1 passed; 0 failed; 0 ignored; 1732 filtered out(0.02s)cargo test --release -p xcl --lib hle::d3d12x::alloc_pool:: -- --test-threads=4(3 consecutive runs)8 passed; 0 failed; 0 ignored; 1725 filtered out× 3 (0.20s,0.20s,0.20s)cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=4(3 consecutive runs)66 passed; 0 failed; 0 ignored; 1667 filtered out× 3 (0.30s,0.30s,0.30s;two_pass_binds_set_the_shared_view_heapself-skipped becauseXCL_HEAP_WINDOWSis opt-in)cargo build --release -p xcl --bin xcl1m 27s, exit0)Paired quiet 60 s retail smoke (
title: 29640639)Merge-base on
nvidia-dev(eae015021c639866ab061cdff2e9daf8ba9daac5, cached baseline on the same machine):PR #2816 (
9ae803e3952b4e2f68c206ae34950e59b6b5fadd):Runtime log observations (
xcl.log)9385log lines,0[ERROR]/ device-removal / panic lines.19219 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14776 MB committed by the process; video memory 6119 MB local, 4746 MB non-local; video memory budget 7022 MB.Limits of coverage
gpu_scale_args_reports_uncapped_group_count_feedback), device-removal readback guard (indirect_feedback_ignores_readback_after_device_removal), and finer bucket sizing passed 3/3 under parallel--test-threads=4runs ofalloc_pool::andbind::(two_pass_binds_set_the_shared_view_heapself-skipped becauseXCL_HEAP_WINDOWSis opt-in).title: 29640639logged0live two-pass indirect-feedback events and confirms clean runtime stability onnvidia-devrather than in-world two-pass VRAM savings; 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 JJAutoCompare on 2026-11-27T00:35:47Z.
Tested: Clean
9ae803e3952b4e2f68c206ae34950e59b6b5fadd, Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC debug. Four CPU, three WARP, and four native Arc fixtures passed with zero failures, ignores or skips. Built withcargo test --offline --locked -j 2 -p xcl --lib --no-run. Exacthle::d3d12x::bind::testsgroups ran with--test-threads=1 --nocapture. Arc feedback reported one clamped 500-group command and 484 dropped groups at a 16-group cap. The scaling fixtures verified record capacity, X flattening, and zero work past the count buffer.Not tested: Retail, workspace suite, retirement behavior from #2815 and DXGI headroom from #2817.
AI use: T3 Code / Codex (
gpt-6.2-sol) ran and reran the checks and drafted the report.Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-27T03:56:50Z.
Independent 180 s paired check on RTX 3060 Ti (8 GB) (
9ae803e3merged withvidia-dev
ecc0bb57, Series S / lockhart profile, identical warm cache snapshot): 1,775 frames (PresentX 1775),Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T07:07:45Z.
Test report on the NVIDIA branch (
nvidia-dev), PR head9ae803e3(contains #2815's head42ae6051), baseeae01502.Tested
cargo test --workspace -- --test-threads=4on9ae803e3: 1829 passed, 9 failed, 48 ignored; 29SKIPPED(mostly "no wave64").--exact) on42ae6051and on the baseeae01502, with the same panic, so none comes from this PR:gpu_compute_thread_limits_leave_the_lanes_past_them_out(wave32 CreateComputePipelineState 0x80070057)pieces_hold_the_texels_of_their_levels,gpu_parts_of_a_texture_go_up_and_the_rest_stays(multiply overflow, texture_upload.rs:1002)async_compute_pso_registers_real_pso_and_not_standin,split_compute_prefers_the_offline_whole_pipeline(gpu_compute_e2e)console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly("MS: no NGG hardware variant")two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs(two_pass_count 3 vs 0)9ae803e3: a 1682 s warm-up run (stopped by our run script's time cap, not a crash; 32768 draws translated, 0 skipped; peak private 26.9 GB), then a 260 s measured run with a fresh save: exit 0, 1145 frames presented, peak private 25.7 GB, no crash, no device removal, no new or repeating warnings.Not tested
main-vs-PR smoke pair (this ran on the NVIDIA branch only).AI use
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T12:20:03Z.
Tested
Clean
9ae803e3952b4e2f68c206ae34950e59b6b5faddon Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, DXC/DXIL 1.9.2602.17. Built withcargo test --offline --locked -j 2 -p xcl --lib --no-run --message-format=jsonandCARGO_PROFILE_TEST_DEBUG=0. Ran the pin-checked libtest executable withXCL_ADAPTER=A770and--exact --test-threads=1 --nocapturefor these four synthetic filters under separate Arc mutex acquisitions.hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedbackverified that a 500-group request with a cap of 16 recorded one clamped command and 484 dropped groups. Zero-count feedback preserved the warm hint. Disabling feedback left its readback zero.hle::d3d12x::bind::tests::gpu_indirect_two_pass_groups_stay_inside_the_record_buffer,hle::d3d12x::bind::tests::gpu_indirect_two_pass_groups_go_in_x, andhle::d3d12x::bind::tests::gpu_indirect_two_pass_commands_past_the_count_get_no_groupspassed the capacity, flattening and command-count assertions.Four passed, zero failed, ignored, or skipped. Executable and wrapper pins matched before, under, and after the lock.
Not tested
Parallel execution, full workspace, release, retail deferral or smoke.
AI use
T3 Code / Codex (
gpt-6.2-sol) built and independently reran these fixtures and wrote this report.Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-28T01:35:05Z.
Under Wine with #2477 merged in, the feedback copy list that
poll_two_pass_feedbacksubmits reached vkd3d-proton with XCL's vtable still on it, and the title stopped atd3d12core.dll+0x563fadin 2 of 2 runs. With theUnadoptGuardthat XCL's other direct submits use, 1 run went past that point.Setup:
nvidia-devba9d1f94merged into our Linux branch (linux/stack-nvidia-dev:nvidia-dev+ #684, #867, #2477 and the other PRs Linux needs), RTX 4070 12 GB, driver 615.71.09, Wine 11.21 Staging, stock vkd3d-proton71cae091. The first-run screens were completed once; no story progress.72b93523(the merge)d3d12core.dll+0x563fadat 96.2 s72b93523+ a feedback-fence change (not kept)d3d12core.dll+0x563fadat 75.8 sed887d22(the merge + the guard)0x887a0005) at 118.2 s, with 11.9 of the card's 12 GB in use+0x563fadis the trap in vkd3d-proton'sd3d12_command_queue_ExecuteCommandListsfor a list that carries none of its command-list vtables. The stack hadpoll_two_pass_feedbackandalloc_pool::executedon it.bind.rs:2520–2524hands the copy list straight to the realExecuteCommandLists(orig_fn(queue, 10)). The other direct submits put the list's own vtable back first withreal::UnadoptGuard(for example the kickoff split atlist_x.rs:3924on our tree). The change we ran:UnadoptGuardcomes with #2477 and does nothing outside Wine, sonvidia-devalone does not have it. The line is needed wherever #2816 and #2477 meet.Not tested: Windows; the RTX 4060 Ti; whether the device removal at 118 s has to do with #2816 (the card was full).
AI use: Claude Code (Claude Opus 5.5) made the runs, found the cause in the disassembly and wrote this comment.