D3D12.X: switch KickoffX onto an idle spare PC list when the submitted list is in flight #2310
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2320"
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 Decodere on 2026-11-25T14:07:41Z.
What is in it
Follow-up to #2163 (Part of #1452). Updated in fast-forward commits
9d9e09fcandbc3c0423f0dc4f14223aeb9472a418f54a5571eb(onto7f4c1fc6ea2156317bfcda0a1dfb4cb6ad16f60e) to address pre-merge re-review feedback: gatesKickoffXspare switching and empty-batch skipping strictly behind opt-inXCL_KICKOFF_SWAP=1(default OFF, preserving6d12f58a's exact hand-over-then-reset path), adds a bounded5000 msfence-wait fallback returning0x80070102(HRESULT_FROM_WIN32(ERROR_WAIT_TIMEOUT)) on expiration, caps per-wrapper spares atMAX_KICKOFF_SPARES = 8, and reverts unrelated hunks against merge-base6d12f58a.list_x::kickoff_x()previously closed and submitted the active PC command list (this) — plus any earlier split segments — and immediately calledReseton that same PC list (or onprimaryafter a mid-list split), even when its submission was still in flight on the GPU. When a title issues back-to-backKickoffXcalls or followsKickoffXwithClose+ExecuteCommandListsbefore the previous kickoff retires, PC D3D12 rejects resubmitting an in-flight command list (debug layer ID 553,EXECUTECOMMANDLISTS_COMMANDLIST_STILL_IN_FLIGHT) and strict drivers can trigger device removal.crates/xcl/src/hle/d3d12x/alloc_pool.rs:wait_idle(list, dev, timeout_ms): snapshots(fence, value)fromSTATE.last_submit, releasesSTATEbefore blocking, and waits up totimeout_msviacrate::gpu::fence::wait.crates/xcl/src/hle/d3d12x/title_list.rs:primary_of(wrapper),switch_active_for_kickoff(wrapper, old_active, new_active),mark_kickoff_unreset(wrapper),clear_kickoff_unreset(wrapper), andspare_count(wrapper)(backed bySegmentBook::kickoff_unreset, cleared onreset/switch_active_for_kickoff/ in-place fallback recovery) to updateF_BACKING,WRAPPER_OF,book.first, andbook.sparesonly afterResetsucceeds, keepF_PRIMARYout ofbook.firstandbook.spares, track non-primary spares for the per-wrapper cap, and suppresspush_segmentsuntil the title's nextResetonly if both spare acquisition and the bounded fence-wait fallback fail.switch_active_for_kickoff_keeps_primary_out_of_sparesandkickoff_unreset_suppresses_push_segments_until_reset.crates/xcl/src/hle/d3d12x/list_x.rs:KickoffXspare switching behind opt-inXCL_KICKOFF_SWAP=1(kickoff_swap_enabled_val/kickoff_swap_enabled, default OFF, leavingXCL_ALLOC_SWAPunaffected). When unset/off (!swap_enabled),kickoff_x_withbranches directly to6d12f58a's exact hand-over-then-reset path (runninginherit_for_split,bind::reset,clear_segment_state, and theLISTSupdate without modifyinglist_typeorlast_queuebefore callingReset, with zerowrapper_of,in_flight, spare scanning/creation, fence waiting, ormark_kickoff_unreset), andexecute_with_waits_onpreserves6d12f58a's exact empty-batchsubmit(lists)call.XCL_KICKOFF_SWAP=1,acquire_kickoff_target(...)+ privatecreate_kickoff_spare(...)(leavingreset_stand_inuntouched against6d12f58a, with unrelatedCOPYanddredhunks reverted) prefers returning toprimaryonce idle, otherwise reuses any idle pooled spare or creates a fresh closed spare up toMAX_KICKOFF_SPARES = 8. When no idle spare is available (cap reached or creation/reset fails), falls back to a bounded5000 msalloc_pool::wait_idleoncurrent_targetand resetscurrent_targetin place so subsequent commands are not dropped; only markskickoff_unresetand returns0x80070102(HRESULT_FROM_WIN32(ERROR_WAIT_TIMEOUT)) if that bounded wait expires (or theResetHRESULT ifResetfails).execute_with_waits_on's empty-batch early return behindkickoff_swap_enabled()(execute_with_waits_on_with) somark_kickoff_unresetnever passes a 0-list batch toExecuteCommandListswhen opted in while leaving default-OFF behavior identical to6d12f58a.kickoff_x_while_in_flight_switches_to_idle_spare_and_preserves_state,kickoff_x_after_midlist_split_switches_to_idle_spare,kickoff_x_default_off_split_list_matches_main_handover,kickoff_x_failure_paths_never_reset_in_flight_target,kickoff_x_spare_cap_and_fence_wait_fallback_recovers_without_dropping_commands,kickoff_swap_enabled_val_defaults_off_and_enables_on_one, andkickoff_swap_disabled_keeps_current_target_without_spares.Tested
Hardware / toolchain: Windows 11 Home
26200, Intel Core i5-11400F, 32 GB RAM, NVIDIA GeForce RTX 4060 8 GB (Ada, Wave32, driver32.0.16.2114),rustc 1.100.0, DXC1.9.2609.5.kickoff_xon RTX 4060,--test-threads=1):cargo test -p xcl --lib kickoff_x_ -- --test-threads=1 --nocapture:0 passed; 2 failed(reproduced live in-flight command-list resubmission warnings#1..#3and failed assertions).bc3c0423f0dc4f14223aeb9472a418f54a5571eb(fast-forward onto9d9e09fc8f3ac44a7f8bfd9726109c74a163913d, merge-base6d12f58a229bc73889878a448c64dc3af25eeba0):cargo clippy --tests -p xcl -- -A clippy::approx_constant -A clippy::while_immutable_condition:exit 0,0new warnings inalloc_pool.rs,title_list.rs, or touched regions oflist_x.rs.cargo test --lib -p xcl -- hle::d3d12x::list_x:: hle::d3d12x::title_list:: hle::d3d12x::alloc_pool:: --test-threads=1 --nocapture(3xDebug):56 passed; 0 failed; 0 ignored; 0 skipped.cargo test --release --lib -p xcl -- hle::d3d12x::list_x:: hle::d3d12x::title_list:: hle::d3d12x::alloc_pool:: --test-threads=1 --nocapture(3xRelease):56 passed; 0 failed; 0 ignored; 0 skipped(includes newkickoff_x_default_off_split_list_matches_main_handover, opt-in vs default-OFFexecute_with_waits_on_withempty-batch checks,0x80070102timeout HRESULT verification,MAX_KICKOFF_SPARES = 8cap + live threadedalloc_pool::wait_idlefallback, and alltitle_list::tests).cargo build --release -p xcl:exit 0,0new warnings in touched files.62f6d473in this thread:ID3D12InfoQueue): all 3 gatedkickoff_x_*tests passed in separate processes (1/0each) with 0 ID 553 messages; full workspace1428 passed; 0 failed; 46 ignored.COPY-queueKickoffXtest switched across 2 distinct spares and back to primary with verified 4-segment readback (11111111 22222222 33333333 44444444),0resubmits, and clean live D3D12 info queue.list_x::43/0,title_list::5/0, 3/4 clean 300 s retail runs (1 removal at 294 s noted as inconclusive vs 4/4 clean onmain).kickoff_x_*GPU tests and bothtitle_list::tests passed natively on RX 7800 XT with0skips.d3d12x::/--libpassed on--test-threads=1.KickoffXactivity check on title29640639: a temporary local counter probe insidelist_x::kickoff_x(reverted cleanly) recorded0KickoffXcalls during the 60 s startup window of title29640639; keepingXCL_KICKOFF_SWAP=1opt-in ensures zero default behavior change until world-run measurements on aKickoffX-using title are collected.Regression run
Quiet 60 s retail smoke runs on RTX 4060 (
scripts/smoke.ps1 -Seconds 60,XCL_NETWORK=0,title: 29640639; note title29640639issued0KickoffXcalls in this 60 s startup window):Exact merge-base (
mainancestor6d12f58a229bc73889878a448c64dc3af25eeba0):PR head (
bc3c0423f0dc4f14223aeb9472a418f54a5571eb, default OFF —XCL_KICKOFF_SWAPunset):Not tested
KickoffX(verified via temporary local probe that title29640639issued0KickoffXcalls during the 60 s startup window; accordingly the swap is off by default behindXCL_KICKOFF_SWAP=1).bc3c0423has not yet been re-run on AMD; earlier62f6d473was tested independently on RX 9070 and RX 7800 XT), and live D3D12 debug layer validation on this host (d3d12SDKLayers.dllis not installed here; live ID 553 debug-layer verification on62f6d473was provided independently by thehollowedone).COPY-queueKickoffX(synthetic live RTX 5070COPY-queue verification on62f6d473was provided independently by andrewDoing).AI use
Assisted by Google Antigravity (Gemini 4 Neon) for code analysis, implementation (opt-in
XCL_KICKOFF_SWAP=1, exact default-OFF parity,MAX_KICKOFF_SPARES = 8cap,alloc_pool::wait_idlefallback, scope cleanup, and original spare-switching fix), test authoring, and RTX 4060 verification.Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T14:17:18Z.
Independent focused check of
4db9383acea69d0c355ce5d2cb339a9f6ad1d2bb.Tested
cargo test --locked -p xcl --lib kickoff -- --nocapture --test-threads=1gave 4 passed, 0 failed, 0 ignored and no skips. Both new in-flight queue scenarios completed, including after a mid-list split. The spare bookkeeping and existing render-target binding tests also passed.Not tested
Explicit per-adapter or WARP runs, before/after reproduction, the full workspace suite and retail smoke.
AI use
OpenAI Codex (GPT-6.2 Sol) ran the checks, verified the logs and wrote this report.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-25T14:30:31Z.
Independent check of 4db9383. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11.
cargo build --offline --locked --workspace -j 6.cargo test --offline --locked --workspace --no-fail-fast -j 6 -- --test-threads=4 --nocapturefinished with 1,268 passed, 0 failed, 46 ignored, including 26 runtime skips in the pass count. All four stock KickoffX and spare-list bookkeeping tests passed.cargo test --offline --locked -p xcl --lib -j 6 kickoff_x_ -- --test-threads=1 --nocapturein separate processes with test-only changes that selected the RTX 3080 Ti and Microsoft WARP explicitly and read the D3D12 debug queue. Both runs passed 3/3 with zero skips. Each adapter completed the two gated-queue cases (back-to-back kickoff and mid-list split) with zero ID 553 messages, zero D3D12 warnings or errors, and a healthy device. Runtime code was unchanged.Synthetic input only. No retail smoke on this machine.
AI-assisted. Codex (GPT-6, exact variant unavailable) added the temporary test instrumentation, ran the tests and drafted this report.
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T14:53:33Z.
Independent RX 6800M verification of exact PR head
4db9383acea69d0c355ce5d2cb339a9f6ad1d2bb.Environment: Windows 11 build 26200; Ryzen 9 5980HX; discrete AMD Radeon RX 6800M driver
30.0.13002.13003alongside integrated Radeon graphics; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Isolated debug Cargo target.On the unchanged head,
cargo test --locked -p xcl --lib kickoff_x_ -- --test-threads=1 --show-outputpassed 3 passed, 0 failed, 0 ignored, with no skips. Itstest_device_or_warphelper does not print or select the adapter, so that run alone is not attributable to the RX 6800M.For an attributable GPU check, I changed only that test helper locally to use
gpu::adapter::Selector::from_env_or("auto")pluscandidates, then ran the same filter withXCL_ADAPTER=6800M. It again passed 3/0/0, no skips. Both new in-flight tests printedKickoffX test adapter: AMD Radeon RX 6800M: back-to-back gated KickoffX switched to distinct idle spares and returned to primary after draining; the mid-listWrite64/Wait64split resumed on an idle spare. Their built-in checks reported no in-flight resubmits and a healthy device. The third passing test is the existing render-target binding check. I removed the test-only selector edit and verified the worktree is clean.Limits: Focused synthetic tests only. I did not run the full workspace suite, a paired title smoke, or a live D3D12 debug-layer check on this head. A separate title smoke attempt for another PR had stopped under the available-commit memory guard. This does not cover an actual title's back-to-back KickoffX sequence.
AI use: OpenAI Codex (GPT-6; exact variant unavailable in this session) ran the Windows checks, made and restored the test-only selector, and drafted this report. No game data was used.
Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T15:26:17Z.
Independent AMD report for
4db9383acea69d0c355ce5d2cb339a9f6ad1d2bb.Tested
main).cargo test -p xcl --lib kickoff: 4 passed, 0 failed.switch_active_for_kickoff: 1 passed. Both new in-flight scenarios ran on the RX 7800 XT (no SKIPPED line).cargo test --workspace --no-fail-fast -- --test-threads=4: 1267 passed, 1 failed, 46 ignored. The one failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722:res[30] = 0x1, CPU 0x7fffffff). It fails identically onmain06c9f550on this adapter (cargo test -p xcl --lib fuzz_validate_and_gpu_1), so it is not caused by this PR.f16_programs_on_the_gpu/f32_programs_on_the_gpuper-lane cases refused forV_MUL_F16,V_PK_MUL_F16orV_CVT_F16_F32, plusheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).scripts/smoke.ps1 -Seconds 60on a real title (same title, same time), release build. main06c9f550: 1531 frames, last presents per 2 s 60 36 38, peak commit 17752 MB, no device removal, no crash. PR head4db9383a: 1571 frames, last presents per 2 s 59 61 59, peak commit 15155 MB, no device removal, no crash. Both exit 0x0.Not tested
Retail title with a before/after reproduction of the #1452 debug-layer error, other adapters, NVIDIA.
AI use
Claude Code (Claude Sonnet 5.5) ran the tests and the smoke runs and wrote this report. No game files, dumps or shader names are included.
Imported from ivall/xcl. Originally posted by thiagocalile on 2026-11-25T15:50:34Z.
Independent test and 60 s smoke report for head
4db9383acea69d0c355ce5d2cb339a9f6ad1d2bbon an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).Tested
32.0.21045.29003,XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11.XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- kickoff --test-threads=4: 4 passed, 0 failed, 0 ignored (0skipped).Regression run (
scripts/smoke.ps1 -Seconds 60, release builds,XCL_ADAPTER=radeon)main(06c9f55):PR
#2320(4db9383):Not tested: full workspace test suite on this head, NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window.
AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T17:14:00Z.
Rebased onto
50a9fdef(6a3d4a38, resolving thelist_x::testsEOF conflict with#1291). Re-verifiedtitle_list::tests(4/0),list_x::tests(38/0), and paired 60 s RTX 4060 smoke (1544 -> 1578,0device removals/crashes); workspace hit only50a9fdef's pre-existing#2074a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierfailure (1291 passed, 1 failed).Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T17:52:58Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-25T19:11:02Z.
RX 9070 XT verification of exact PR head
6a3d4a38b4b62522fda36a75d5ba3499d6d436eb.Hardware: AMD Radeon RX 9070 XT, Windows, retail GTA 6 Xbox 1.0.2.1; Rust 1.100.0 MSVC, bundled DXC.
Focused tests:
cargo test --locked -p xcl --lib kickoff -- --test-threads=1— 4 passed, 0 failed, 0 ignored, 0 skipped. This includes both new in-flight KickoffX cases and the spare-list bookkeeping checks.60-second
scripts/smoke.ps1regression pair:PR head:
Current main:
The retail smoke passed but did not specifically trigger back-to-back in-flight KickoffX; the focused gated-queue tests cover that path. The D3D12 debug layer is not installed here, so there is no live ID 553 debug-queue check on this card.
AI use: OpenAI Codex (GPT-6; exact variant not exposed in this session) ran these checks and wrote this report.
Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-25T19:31:43Z.
Code-review finding on
6a3d4a38b4b62522fda36a75d5ba3499d6d436eb: the idle-spare invariant is not preserved on allocation/reset failure paths inkickoff_x.In the candidate/
reset_oneblock inlist_x.rs:current_targetis in flight,pop_spare(w).or_else(|| create_closed_spare(...))can returnNone(including native create/initial Close failure). The finalelsethen callsreset_one(current_target)anyway.reset_one(cand)fails, the code also falls back to(current_target, reset_one(current_target)), without establishing thatcurrent_targethas retired.The fallback Reset is not a retirement check: Microsoft explicitly permits
ID3D12GraphicsCommandList::Resetwhile the command list is still executing. If it succeeds before the earlier fence completes, the function resumes recording on the in-flight list that this change is intended to avoid reusing. [INFERENCE] A subsequent Kickoff/Execute before retirement can therefore return to the ID 553 path under spare-allocation pressure, despite passing the success-path gated-queue tests.Could the error path preserve the same invariant—do not resume/subsequently submit this target until its previous fence retires, or terminate the operation safely—and add coverage for both no-spare/create failure and spare-Reset failure while the old target is gated? Simply checking
reset_hr < 0after falling back does not cover successful Reset of a still-in-flight command list.Context/limits: our separate Linux/Wine retail integration logged same-recording, same-queue resubmits while approaching a conservative 6000 MiB VRAM cutoff. It does not contain this PR, and that warning alone does not establish that KickoffX caused our run's resubmits. I inspected your source and the API contract here; I did not induce allocation failures or run your PR, and I am not submitting a competing fix. This is general failure-path feedback relevant to limited-memory hosts, not a claim about a specific GPU or the root cause of our earlier host freeze.
AI assistance: OpenAI coding assistant reviewed the linked code/contract and drafted this report.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T20:23:34Z.
Good catch — fixed in
62f6d473(rebased onto6d12f58a).Extracted
list_x::acquire_kickoff_targetsokickoff_xnever falls back to resettingcurrent_targetwhilealloc_pool::in_flight(current_target)is true (on either no-spare/create failure or spare-Resetfailure), instead leavingcurrent_targetclosed and callingtitle_list::mark_kickoff_unreset(w)(with an empty-batch early return inexecute_with_waits_on) so neither a follow-upKickoffXnorClose+ExecuteCommandListscan resubmit the in-flight list until the title's nextReset. Addedtitle_list::tests::kickoff_unreset_suppresses_push_segments_until_resetand gated-queuelist_x::tests::kickoff_x_failure_paths_never_reset_in_flight_target(passing on both RTX 4060 & WARP; workspace1428 passed, 0 failed).Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T21:19:16Z.
Review: COMMENTED
No concrete source-level defect found. In-flight primary protection, spare selection/reset failure behavior, split segment bookkeeping, and state transfer look sound; current CI and broad gated-queue evidence are green. Residual gaps: no live COPY-list back-to-back in-flight reproduction, and current targeted debug-layer coverage would strengthen latest failure-path changes. The deliberate suppression until title Reset after allocation/reset failure should remain documented. I found no blocker.
Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T22:09:56Z.
Independent AMD report for
62f6d4737b28a5fc7e9808350724c0c1a4a0f168.Tested
XCL_ADAPTER=radeon. Exact PR head (not a local merge ontomain); main at the time was6d12f58a.cargo test --workspace --no-fail-fast -j 4 -- --test-threads=4: 1427 passed, 1 failed, 46 ignored. The one failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722:res[30] = 0x1, CPU 0x7fffffff); it fails identically onmain6d12f58aon this adapter (cargo test -p xcl --lib fuzz_validate_and_gpu_1), so it is not caused by this PR.f16_programs_on_the_gpu/f32_programs_on_the_gpuper-lane cases refused forV_MUL_F16,V_PK_MUL_F16orV_CVT_F16_F32, andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).cargo test -p xcl --lib kickoff-area tests ran in the workspace run: the three newlist_x::tests::kickoff_x_*GPU scenarios (in-flight switch to idle spare, mid-list Wait split, failure paths) andtitle_list::tests::kickoff_unreset_suppresses_push_segments_until_reset/switch_active_for_kickoff_keeps_primary_out_of_sparesall passed, with no SKIPPED line for them (they ran on the RX 7800 XT, not the WARP fallback).Not tested
scripts/smoke.ps1/ a retail title (no regression run), other adapters, NVIDIA. No game data was used.AI use
Claude Code (Claude Sonnet 5.5) ran the tests and wrote this report. No game files, dumps or shader names are included.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T08:15:32Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: 1 failure under parallel scheduling; clean on--test-threads=1rerun (1312 passed, 0 failed, 27 ignored, 82s). Intermittent single-test flake — tracked in #1978.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T21:35:09Z.
NVIDIA report, head
62f6d4737b28a5fc7e9808350724c0c1a4a0f168, merge-base6d12f58a229bc73889878a448c64dc3af25eeba0. RTX 3070 8 GB, driver 616.56, Win11, rustc 1.100.0, 5950X, 32 GB.cargo test -p xcl --lib d3d12x::x3:--test-threads=1head 258 passed, 0 failed (x3), base 253 passed, 0 failed (x3). Default threads: head runs 1-2 258 passed, 0 failed; run 3 257 passed, 1 failed (sparse::tests::flush_parked_does_not_free_or_reuse_tiles_while_unmap_is_in_flight, one run, not in the PR; open #2775 makes that test wait for every quarantine mark). Base runs 1-2 253 passed, 0 failed; base run 3:sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memoryFAILED, then the run hung and was aborted after ~14.5 min (not a pass; one run). Related: #1978 (closed; parallel d3d12x race).Workspace
-- --test-threads=4 --skip hle::xaudio2: head 1415 passed, 0 failed, 46 ignored; base 1410 passed, 0 failed. The e2e title tests were stopped by our runner after ~8 min on both sides; an earlier run here took 381 s, so they are not counted (not a hang). SKIPPED 26 both (21 wave64). No nvlddmkm resets.AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T23:55:00Z.
Independent Windows/NVIDIA check of #2320 head
62f6d473. RTX 3080 Ti (driver 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, debug build.cargo test --offline --locked -p xcl --lib kickoff_x_ -- --test-threads=1 --nocapture: 4 passed, 0 failed, 0 ignored.cargo test --offline --locked -p xcl --lib hle::d3d12x::title_list::tests -- --test-threads=1: 5 passed, 0 failed, 0 ignored. The stock tests check zero in-flight resubmissions and device health; they do not enable the D3D12 debug layer.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,428 passed, 0 failed, 46 ignored across 37 targets. There were 25 printed GPUSKIPPEDnotices; those are not GPU coverage.ID3D12InfoQueueafter each gated queue drained. The selected adapter was confirmed as the RTX 3080 Ti. Each of the three new gatedkickoff_x_*tests passed in its own process (1 passed, 0 failed each), with zero ID 553 messages. I removed the instrumentation afterward; the worktree is back at the exact PR head.This adds direct debug-layer evidence for the in-flight
KickoffXcases. It does not cover a retail title that invokes the path, AMD/Intel, or the pre-existingtitle_list::resetfallback on a failed spare allocation.AI use: Codex (GPT-6.2 Sol) ran the tests, checked the temporary debug instrumentation and drafted this report.
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-27T00:09:52Z.
COPY queue KickoffX verification on RTX 5070
A synthetic test on PR #2320, head
62f6d4737b28a5fc7e9808350724c0c1a4a0f168, kept a native D3D12 COPY queue in flight behind an unsignalled fence. Two consecutive KickoffX calls switched recording from the primary list to two distinct spare lists. After releasing the fence and draining the queue, recording returned to the primary list.The probe copied a different 32-bit marker in each of four segments, including the final submission. Readback returned
11111111 22222222 33333333 44444444in hexadecimal. The three resubmission checks returned zero. The device remained healthy, and the live D3D12 info queue contained no error or corruption messages in the measured interval. One test passed in 0.44 seconds. Run logA local test-only overlay adapted the PR's gated DIRECT-list fixture. It used the native Windows default adapter, independently identified as the RTX 5070. Retail COPY-list use and world-load performance remain unmeasured. Adapter probe
AI use: OpenAI Codex adapted the fixture, ran it, and wrote this report.
Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T12:51:47Z.
Update for head
bc3c0423(adds7f4c1fc6,9d9e09fcandbc3c0423on top of62f6d473, which the results below are for; the list switch is now behindXCL_KICKOFF_SWAP=1). Same machine and setup as below (RX 9070 16 GB / Mesa 26.3.1 RADV / Proton Experimentalexperimental-11.0-20261112, vkd3d-proton masterec207194without the allocator / command-listlpVtblchecks, DXC 1.9.2609.5, Rust 1.96.0,x86_64-pc-windows-gnudebug build). The head itself (base6d12f58a), with its base the same session as the baseline.Tests (
XCL_REQUIRE_GPU=wave64,--test-threads=1)cargo test -p xcl --lib -- hle::d3d12x::list_x::: 47 passed, 0 failed, 0 ignored (mainf9a0cb80: 40 passed, 0 failed).cargo test -p xcl --lib -- hle::d3d12x::title_list::: 5 passed, 0 failed, 0 ignored (main: 3 passed, 0 failed).--skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole(the first loses the RADV device here, the other two run out of memory under Wine),--test-threads=1: 1298 passed, 8 failed, 26 ignored; base6d12f58athe same way: 1289 passed, 8 failed, 26 ignored, the same 8.Device removals with
--test-threads=4(same skips), worth a look:0x80004005) and 19 tests failed (texture, sparse and vram tests, andstale_blob_cannot_bypass_the_offline_pipeline_cap, which panics withcompute dispatch: D3D12 device removed).9d9e09fc: 3 of 3 runs lost the device the same way; with its 8 new KickoffX tests skipped, 1 of 2.6d12f58a: 2 of 5 runs;mainf9a0cb80: 1 of 3.The other binaries fail the same 3 tests as on
mainhere (e2e,pls_quota,predication_e2e).d3d12_resource_and_syncended the process, as it does on most trees here.Not tested: a run with
XCL_KICKOFF_SWAP=1(retail or otherwise); native Windows, NVIDIA / Intel.AI use: Claude Code (Claude Opus 5.5) ran the builds and tests on my machine and wrote this update.
Independent test report under Wine/Proton (not native Windows) for head
62f6d473.Setup
experimental-11.0-20261112, vkd3d-proton masterec207194with a local patch dropping thelpVtblchecks ind3d12_command_allocator_from_iface/d3d12_command_list_from_iface, DXC1.9.2609.5, Rust 1.96.0,x86_64-pc-windows-gnumain83b00818, test commit2a7af181Tests (debug,
XCL_REQUIRE_GPU=wave64,--test-threads=1)hle::d3d12x::list_x::: 43 passed, 0 failed (main: 40 passed, 0 failed)hle::d3d12x::title_list::: 5 passed, 0 failed (main: 3 passed, 0 failed)cargo test -p xcl --lib -- --test-threads=4 --skip compositor_blends_ui_plane_over_scene_plane: 1324 passed, 9 failed, 27 ignored (mainthe same run: 1319 passed, 9 failed, 27 ignored). The failures aremain's, exceptgpu_geometry_wave32_prefix_count_over_a_mask(timing-dependent: it also failed on unrelated trees today) in place ofmain'sxapu_connect_returns_oom_and_cleans_up_on_failure. Without the--skip, the lib binary lost the device in that test (RADVThe CS has been rejected); that is the test-order problemmainhas (list_x::followed by that test, see my report on #2477).Retail title, 300 s (release, every run from a copy of the same warm-cache snapshot;
XCL_DIRECT_DXIL=1 XCL_PREPARE=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=50 XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=1024 VKD3D_CONFIG=ignore_shared_fence,Apressed every 10 s)0x887a0005) at 294 s, about 24 s after the last present (the 2-second activity lines before it show no presents and no submits), and the title was stopped.main, 4 runs: all clean, 1,892–2,122 presents. One removal in four runs is not enough to call it this PR's.Not tested
EXECUTECOMMANDLISTS_COMMANDLIST_STILL_IN_FLIGHT): vkd3d-proton has noneAI use
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T16:27:25Z.
Merge status and pre-merge review (I have been asked to prepare merges of PRs with several independent tests; the bar is: no open critical finding or performance regression, a fresh check of the merge result against today's
main, and green required checks. Each merge is still confirmed by a person.)The PR merges cleanly into
main6089122a, and the three files it touches have not changed onmainsince your base. I found no defect in the list state transitions: the primary never enters the spares, the list switched away from goes to the spares andpop_spareskips lists still on the GPU, no allocator is reset by this code, no new nested locks, and no recording is handed out twice. The three new tests would fail onmain.What keeps me from proposing it for merging yet:
KickoffX. The list just submitted is always still on the GPU right after its own submit, soacquire_kickoff_targetswitches lists every time. Each kickoff then also paysinherit_for_split,bind::reset,clear_segment_state, three takes of theLISTSlock, apop_sparescan, and aCreateCommandListwhen no spare is idle. The description's own smoke pair shows 1,383 frames against 1,550 onmain(-10.8 %): inside the 80 % rule, but a drop, and the description does not say whether that title callsKickoffXat all.XCL_ALLOC_SWAP=0turns off the whole pool).What would make it mergeable from my side: frames or frame time in a world run with and without the change on a title that does use
KickoffX(I can run that on an RTX 4080 if you tell me a setup where it is exercised), or an opt-out switch until that exists.Smaller notes: when no idle list can be made,
mark_kickoff_unresethides the wrapper's lists fromExecuteCommandListsand later commands are lost with only a rate-limited warning; the PR carries a few drive-by changes (the COPY-list guard, a spare whoseClosefails being released, the empty-batch early return,dred::reset); the new GPU tests share global state with the otherlist_xGPU tests.Review from reading the code; nothing was built or run for it. AI use: Claude Code (a Claude Opus 5.5 sub-agent reviewed the merge result; Claude Fable 5.2 checked and wrote this).
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T17:16:21Z.
Thanks for the review, @throny! I pushed follow-up commit
7f4c1fc6ea2156317bfcda0a1dfb4cb6ad16f60e(D3D12.X: add XCL_KICKOFF_SWAP=0 opt-out switch for KickoffX list switching) addressing your merge feedback:XCL_KICKOFF_SWAP=0):kickoff_swap_enabled_val/kickoff_swap_enabledincrates/xcl/src/hle/d3d12x/list_x.rsmatchingalloc_pool::enabled()'sXCL_ALLOC_SWAP=0idiom (OnceLock<bool>, default ON).XCL_KICKOFF_SWAP=0,kickoff_xskipstitle_list::wrapper_ofandacquire_kickoff_targetbypassesin_flight, spare-pool scanning/creation,switch_active_for_kickoff,mark_kickoff_unreset, and (when unsplit)inherit_for_split/bind::reset/clear_segment_state/ extraLISTSlock takes — resettingcurrent_targetdirectly while leavingXCL_ALLOC_SWAPuntouched.kickoff_swap_enabled_val_defaults_on_and_disables_on_zeroandkickoff_swap_disabled_keeps_current_target_without_spares(proving0in_flightcalls,0spare pops/creates, active backing kept onprimary, and nokickoff_unreseteven whileprimaryis gated in flight).KickoffX&-10.8%smoke question honestly:list_x::kickoff_xon a 60 s startup run of title29640639(then reverted cleanly):KickoffXwas called0times in that 60 s startup window.7f4c1fc6vs exact merge-base6d12f58a:6d12f58a:1581frames (PresentX 1581),60 60 60,0rem/crash,14018 MB7f4c1fc6default (XCL_KICKOFF_SWAPunset):1557frames (PresentX 1558,98.5%),60 60 60,0rem/crash,14010 MB7f4c1fc6opted out (XCL_KICKOFF_SWAP=0):1573frames (PresentX 1573,99.5%),60 60 60,0rem/crash,13973 MB-10.8%(1383vs1550) was normal startup run-to-run variance rather thanKickoffXcost, AND title29640639does not exerciseKickoffXin its 60 s startup window — which makes the dedicatedXCL_KICKOFF_SWAP=0escape hatch all the more useful until world-run timings on aKickoffX-using title are collected.7f4c1fc6ea2156317bfcda0a1dfb4cb6ad16f60e(RTX 4060, Windows 11,rustc 1.100.0):cargo clippy --tests -p xcl -- -A clippy::approx_constant -A clippy::while_immutable_condition:exit 0,0new warnings inlist_x.rs.3xDebug +3xReleasecargo test -p xcl --lib -- hle::d3d12x::list_x:: hle::d3d12x::title_list:: --test-threads=1 --nocapture:50 passed; 0 failed; 0 ignored; 0 skipped.XCL_KICKOFF_SWAP=0, the0-call probe finding, the fresh paired smokes, and the independent community evidence already in this thread (@thehollowedone live D3D12 debug-layer0ID 553 PASS on RTX 3080 Ti, @andrewDoing live COPY-queueKickoffXPASS on RTX 5070, @ClosetPie107 RX 9070 PASS, and @oni-swr RX 7800 XT native GPU tests PASS on62f6d473).Ready for re-check whenever you have a moment!
(AI use: Google Antigravity (Gemini 4 Neon) implemented
XCL_KICKOFF_SWAP=0and its unit tests, ran clippy/tests/paired smokes and the temporaryKickoffXprobe, and drafted this reply.)Imported from ivall/xcl. Originally posted by throny on 2026-11-27T17:23:48Z.
Re-check of the new head
7f4c1fc6againstmain6089122a(read from the code; nothing built or run for this comment, so it is not a full merge check yet).Status of the earlier points
XCL_KICKOFF_SWAP=0is read once and the kickoff path then behaves likemain.KickoffX: unchanged. The list is always in flight right after its own Signal, so the swap path is still taken every time; the cost per kickoff and the −10.8 % frames of the earlier pair are not addressed by a switch that is on by default.Closefails, empty-batch return, the DRED reset): still in.Still open before a default-on merge
acquire_kickoff_target→mark_kickoff_unreset: if no spare can be created while the list is in flight, the title keeps recording into a closed list,Closefails, nothing is submitted and that recording is lost with a rate-limited warning.mainwould have reset the list and run it. A fallback that waits on the last submit's fence and then resets the current list would keepmain's behaviour in that case.pop_sparescans them all under the lock, and idle ones keep their allocator from being reused.create_closed_sparerefactor with the unrelated fixes, thetitle_listhelpers with their unit tests, and the swap with its switch and GPU tests.Sound as far as read: the Release calls through the vtable follow the module's pattern and free each list once; nothing resets an allocator on this path; "idle" is the completed fence value against the Signal issued after each submit; the state carried to the spare matches the existing split path; no lock is held across
ExecuteCommandLists, lock order unchanged; two of the tests drive the realkickoff_xand fail onmain.Merge status: not yet. What would change that: the fallback in 1, a cap or trim for 2, and a smoke pair on a title that calls
KickoffXshowing no frame loss with the default; or the same code with the switch off by default, which could go in on the present evidence once split.AI use: Claude Code (a Claude Opus 5.5 sub-agent reviewed the head, Claude Fable 5.2 checked and wrote this).
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T18:34:54Z.
Thanks @throny for the clear re-check and concrete bar — pushed fast-forward commit
9d9e09fconto7f4c1fc6addressing all points:XCL_KICKOFF_SWAP=1, default OFF): Flippedkickoff_swap_enabled_valso the swap path is off unlessXCL_KICKOFF_SWAP=1. With the env var unset,kickoff_xskipstitle_list::wrapper_of,in_flight, spare scanning/creation, fence waiting,switch_active_for_kickoff, andmark_kickoff_unreset, keepingmain's default path intact until world-run measurements on aKickoffX-using title are available.alloc_pool::wait_idle,5000 ms): Addedalloc_pool::wait_idle(list, dev, timeout_ms), which clones(fence, value)fromSTATE.last_submit, releasesSTATEbefore blocking, and waits viacrate::gpu::fence::wait. When no idle spare is available (cap reached or spare creation/reset fails),acquire_kickoff_targetwaits up to5000 msoncurrent_target's last submit fence and resetscurrent_targetin place so subsequent commands are not dropped;mark_kickoff_unresetnow runs only if that bounded wait orResetitself fails.MAX_KICKOFF_SPARES = 8): Addedtitle_list::spare_count(spares + first + extra_active) and cappedKickoffXspare creation at 8 non-primary spares per wrapper, falling through to the bounded fence wait once the cap is reached.6d12f58a: Restoredreset_stand_inverbatim (movingcreate_kickoff_spareprivate tokickoff_x) and dropped bothCOPY-list guards and thedred::reset/dred::mark_pipelinehunks fromkickoff_x. Kept only the 3-line empty-batch early return inexecute_with_waits_onbecausemark_kickoff_unreset(on wait/reset failure) causestitle_list::push_segmentsto emit 0 segments for that wrapper, preventingreal.rs::q_execute_command_listsfrom passing a 0-list batch toExecuteCommandLists. Note on size: the branch diff against6d12f58a(alloc_pool.rs +14,title_list.rs +130,list_x.rs +680/-40) is predominantly tests (~570 lines of unit + live GPU tests vs ~250 lines of production code); happy to split into stacked PRs if you still want smaller review units even with the switch off by default.Verification on
9d9e09fc(RTX 4060 8 GB, driver32.0.16.2114, Windows 11,rustc 1.100.0):cargo clippy --tests -p xcl -- -A clippy::approx_constant -A clippy::while_immutable_condition:exit 0,0new warnings in touched files.3xDebug +3xRelease (hle::d3d12x::list_x:: hle::d3d12x::title_list:: hle::d3d12x::alloc_pool:: --test-threads=1 --nocapture):55 passed; 0 failed; 0 ignored; 0 skipped— including newkickoff_x_spare_cap_and_fence_wait_fallback_recovers_without_dropping_commands(fills all 8 spares, verifiescreate_calls == 0at the cap, provesalloc_pool::wait_idlereleasesSTATEvia concurrentin_flightcheck on a helper thread, and verifies both cap and spare-creation-failure paths recover without dropping commands or triggering resubmits).title: 29640639,XCL_NETWORK=0,0KickoffXcalls in startup window):XCL_KICKOFF_SWAPunset):exit 0x0,1547frames (60 60 60),0removals/crashes,peak commit: 14060 MB.XCL_KICKOFF_SWAP=1):exit 0x0,1575frames (60 60 60),0removals/crashes,peak commit: 14000 MB.6d12f58a:exit 0x0,1581frames (60 60 60),0removals/crashes,peak commit: 14018 MB.AI use: Google Antigravity (Gemini 4 Neon) implemented the opt-in gate, spare cap, fence-wait fallback, scope cleanup, and regression tests, and ran all local tests and smokes on this RTX 4060.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T18:38:38Z.
Re-check of
9d9e09fc(code read only: nothing built or run on this head). Thanks for the quick turn; default-off and the bounded wait are the right direction. Not yet, four small things left:Addressed
Closereleases the list and unused spares go back to the pool.wait_idleholds no lock while it blocks.Still open
main's when the list was split before. WithXCL_KICKOFF_SWAPunset,acquire_kickoff_targetresets the list before the state hand-over (inherit_for_split,bind::reset,clear_segment_state, theLISTSupdate); onmainthe hand-over came first. A failedResetnow returns before the hand-over. TheLISTSentry also newly getslist_typeandlast_queue, which can change the queue picked for later kickoffs. Either keepmain's order when the switch is off, or say why the new order is equivalent.execute_with_waits_onno longer submits an empty batch, for every caller (a title's own 0-listExecuteCommandListsincluded). That is a behaviour change outside the switch: please move it behind the switch or into its own PR.kickoff_x. Every test callskickoff_x_with(.., true); the default-off test only callsacquire_kickoff_target. One test withfalseon a split list would cover point 1.Minor
mark_kickoff_unreset) and the logged error isE_OUTOFMEMORY; a timeout code would read better. With all lists in flight the title's thread can stall 5 s perKickoffXon the swap path.With the switch off by default I no longer ask for a smoke pair on a title that calls
KickoffX; points 1–3 are enough for a "safe to merge" from this account. I will run the suite and a world run on the next head.AI use: Claude Code; the diff was reviewed by Claude Opus 5.5, the points above were checked against the diff and written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T18:55:03Z.
Thanks @throny for the fast follow-up — pushed fast-forward commit
bc3c0423onto9d9e09fccovering points 1–3 and the timeout HRESULT minor:maindefault-OFF split path (list_x.rs): Branched cleanly onif !swap_enabledinkickoff_x_withso the default-OFF path runs6d12f58a's exact hand-over-then-reset sequence (inherit_for_split,bind::reset,clear_segment_state,LISTSupdate without writinglist_typeorlast_queue, thenreset_one(target)), without enteringacquire_kickoff_target.list_x.rs): Movedexecute_with_waits_on's empty-batch early return behindkickoff_swap_enabled()(execute_with_waits_on_with) so default-OFF preservesmain's exactsubmit(lists)behavior for empty batches.list_x.rs): Addedkickoff_x_default_off_split_list_matches_main_handoverdrivingkickoff_x_with(seg1, false)on a live mid-list split (verifying direct resume onprimary,spare_count(w) == 1, binding hand-over, and untouchedprimarylist_type/last_queue), plus explicit assertions inkickoff_x_failure_paths_never_reset_in_flight_targetfor bothexecute_with_waits_on_with(..., true)(0batches) andexecute_with_waits_on_with(..., false)(1batch).list_x.rs):acquire_kickoff_targetnow returns0x80070102(HRESULT_FROM_WIN32(ERROR_WAIT_TIMEOUT)) when the5000 mswait_idlefallback expires instead ofE_OUTOFMEMORY.Verification on
bc3c0423(RTX 4060 8 GB, driver32.0.16.2114, Windows 11,rustc 1.100.0):cargo clippy --tests -p xcl -- -A clippy::approx_constant -A clippy::while_immutable_condition:exit 0,0new warnings in touched files.3xDebug +3xRelease (hle::d3d12x::list_x:: hle::d3d12x::title_list:: hle::d3d12x::alloc_pool:: --test-threads=1 --nocapture):56 passed; 0 failed; 0 ignored; 0 skipped.title: 29640639,XCL_NETWORK=0,XCL_KICKOFF_SWAPunset):exit 0x0,1605frames (60 60 60),0removals/crashes,peak commit: 14042 MB(vs6d12f58a1581frames /14018 MB).Ready for your suite and world run on
bc3c0423.AI use: Google Antigravity (Gemini 4 Neon) implemented these polish items, added the default-OFF split test, and ran all local tests and the 60 s smoke on this RTX 4060.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T19:24:14Z.
merge-check
base:
6089122ahead:
bc3c0423f0merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1474 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored
review: points 1-3 of my last re-check are addressed. (1) With XCL_KICKOFF_SWAP unset, kickoff_x_with repeats main's sequence: hand-over (inherit_for_split, bind::reset, clear_segment_state, LISTS update without list_type / last_queue), then Reset; a failed Reset returns after the hand-over. Remaining differences are harmless: the bound pipeline is resolved before the hand-over instead of after (no lock held), last_queue is read into the snapshot. (2) The empty-batch return is behind the switch. (3) There is a default-off test on a split list. Still open, not blocking for a default-off merge: that test checks the end state only, so a wrong order or the failed-Reset case would not fail it; the LISTS hand-over now exists twice and the two copies already differ; a timeout is logged as "Reset after kickoff failed". Size: 878 added lines (about 340 outside tests), over CONTRIBUTING's 800-line mark without a stated reason; whether to split before merging is the maintainer's call.
performance: with the switch unset, one OnceLock read per KickoffX and per ExecuteCommandLists, no new lock, no env lookup per call (reasoned). The swap path itself is not measured: no title here calls KickoffX in a way that reaches it.
verdict: safe to merge (as default-off; the swap path stays untested on a real title)
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:49:24Z.
Triage (#1607) – head
bc3c042No open or merged PR switches KickoffX to a spare PC list while the submitted one is in flight; main's kickoff_x still resets
this(orprimaryafter a split) right after submitting it. The same-issue PRs (#1535, #1536, #2131, #2205, #2291, #2423, #2443, #2506, #2518) are other parts of #1452 and do not touch this path.The branch conflicts heavily: main's kickoff_x has since gained a closed standby (
reserve_closed_segment), fail-closed bookkeeping and allocator retirement, so the "default-off path identical to main" in list_x.rskickoff_x_withmatches the old base6d12f58, not current main, andacquire_kickoff_target/create_kickoff_sparewould need to be rebuilt on main's spare and standby handling. At +933 lines it is also over the size the contributing rules ask to be justified or split.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T07:51:49Z.
Closing this PR rather than carrying an obsolete 933-line branch across a full rewrite.
Thanks to @throny, @Foniass, and @bmjask (and everyone who tested earlier revisions) for the thorough reviews. Since this branch's base (
6d12f58a),mainhas landed2e72554c(alloc_pool::wait_for_previous_submits), which already prevents in-flight command-list resubmission (ID 553) across submit paths, as well as the new closed-standby and fail-closed segmentation architecture (68023508,211fc451,f1e4484f) usingreserve_closed_segmentandsettle_kickoff_standby. Because the retail title smoke window also callsKickoffXzero times and this swap was default-off, any futureKickoffXspare-switching optimization should be built cleanly from scratch as a small focused PR on top ofreserve_closed_segmentif a real title workload showswait_for_previous_submitsstalls.(AI use: Antigravity (Gemini 4 Neon) audited
main's currentkickoff_xarchitecture and drafted this closing note.)Pull request closed