Repository navigation
Conversation
…d list is in flight Follow-up to xcl-dev#2163 (Part of xcl-dev#1452). `list_x::kickoff_x()` previously reset and resumed recording on the same PC command list it had just submitted (or on `primary` after a mid-list split), even when that list's submission was still executing on the GPU. A subsequent `KickoffX` or final `Close` + `ExecuteCommandLists` then resubmitted an in-flight PC command list, triggering D3D12 debug layer ID 553 (`EXECUTECOMMANDLISTS_COMMANDLIST_STILL_IN_FLIGHT`) and device removal on strict drivers. - Add `title_list::primary_of` and `title_list::switch_active_for_kickoff` to switch `F_BACKING` / `WRAPPER_OF` / `book.first` / `book.spares` after `Reset` succeeds while keeping `F_PRIMARY` out of `book.first` and `book.spares`. - Extract shared `list_x::create_closed_spare` (used by both `reset_stand_in` and `kickoff_x`) so a spare whose initial `Close` fails is released instead of pooled. - Update `list_x::kickoff_x` to prefer an idle `primary` when standing in on a spare, otherwise switch to an idle or freshly created spare when the submitted target is still in flight, preserve `bind` / `ListState` / DRED pipeline state onto the new active list, clear retired segment state, and guard `init_pso` and predication restore for `COPY` command lists. - Add unit tests covering `switch_active_for_kickoff` invariants, back-to-back in-flight `KickoffX` + return to `primary` after drain, and `KickoffX` after a mid-list `Write64 -> Wait64` split. Assisted-by: Google Antigravity (Gemini 4 Neon)
|
Independent focused check of Tested
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. |
|
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.
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. |
|
Independent RX 6800M verification of exact PR head Environment: Windows 11 build 26200; Ryzen 9 5980HX; discrete AMD Radeon RX 6800M driver On the unchanged head, For an attributable GPU check, I changed only that test helper locally to use 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. |
|
Independent AMD report for Tested
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. |
…#2296, xcl-dev#2297, xcl-dev#2320, xcl-dev#2323, xcl-dev#2329, xcl-dev#2333 Integrates shader heap-base addresses (xcl-dev#1803), fenced superseded texture unmaps (xcl-dev#2270), cross-queue VRAM heap reclamation fencing (xcl-dev#2275, using create_raw_fence under Wine), PcCall frame clamping and orphan PSO drop (xcl-dev#2296), PSO pointer guards (xcl-dev#2297), KickoffX idle spare list switching (xcl-dev#2320, preserving UnadoptGuard), console-list descriptor heap binding (xcl-dev#2323), ClearUnorderedAccessView PC handles (xcl-dev#2329), and dispatch_chain PSO retention (xcl-dev#2333).
|
Independent test and 60 s smoke report for head Tested
Regression run (
PR 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. |
What is in it
Follow-up to #2163 (Part of #1452).
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/title_list.rs:primary_of(wrapper)andswitch_active_for_kickoff(wrapper, old_active, new_active)to updateF_BACKING,WRAPPER_OF,book.first, andbook.sparesonly afterResetsucceeds, while keepingF_PRIMARYout ofbook.firstandbook.spares.switch_active_for_kickoff_keeps_primary_out_of_sparescoveringprimary -> spare1 -> spare2 -> primary,WRAPPER_OFupdates, spare-pool invariants, and cleanrelease.crates/xcl/src/hle/d3d12x/list_x.rs:create_closed_spare(template, ty, alloc)(used by bothreset_stand_inandkickoff_x) so a newly created spare whose initialClosefails is forgotten and released rather than returned to the spare pool.kickoff_xto capturewrapperbeforereclaim_for_kickoff, prefer returning toprimaryonce idle when standing in on a spare, otherwise pop an idle spare or create a fresh closed spare whenevercurrent_targetis still in flight, reset the candidate before committingswitch_active_for_kickoff(returning a failed non-primary spare toput_spareand falling back tocurrent_target), transferbind+ListState+ DRED pipeline labels ontotarget, clear retired segment state, and guardinit_psoand predication restore forCOPYcommand lists.kickoff_x_while_in_flight_switches_to_idle_spare_and_preserves_stateandkickoff_x_after_midlist_split_switches_to_idle_spare.Tested
Hardware / toolchain: Windows 11 Home 26200, Intel Core i5-11400F, 32 GB RAM, NVIDIA GeForce RTX 4060 8 GB (driver 621.14, wave32-only), Rust 1.100.0, DXC 1.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(kickoff_x_while_in_flight_switches_to_idle_spare_and_preserves_stateandkickoff_x_after_midlist_split_switches_to_idle_spareboth reproduced live D3D12 ID 553 in-flight command-list resubmission warnings#1..#3and failed assertions).4db9383aonorigin/main06c9f550):cargo build --release --workspace: passed.cargo test --release -p xcl --lib -- hle::d3d12x::title_list::tests hle::d3d12x::list_x::tests --test-threads=1 --nocapture:40 passed; 0 failed; 0 ignored(0.94 s, zero ID 553 resubmission warnings).switch_active_for_kickoff_keeps_primary_out_of_spares,kickoff_x_while_in_flight_switches_to_idle_spare_and_preserves_state,kickoff_x_after_midlist_split_switches_to_idle_spare) under--test-threads=4:10/10passed.Regression run
cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocaptureon4db9383a):1268 passed; 0 failed; 46 ignoredacross 23 test binaries (xcllib1199 passed; 0 failed; 26 ignored; integration/bin/doc binaries69 passed; 0 failed; 20 ignored).28tests printedSKIPPEDdue to host hardware/environment capabilities:21no wave64(RTX 4060 is wave32-only: 1 ingpu::dxil::kernel, 4 ingpu::recomp::lower, 14 ingpu::recomp::lower_dxil, 2 ingpu::recomp::tests)3wave32, per-lane form: refused(f16_programs_on_the_gpuarithmetic & packed,f32_programs_on_the_gpuconversions)2missing D3D12 debug layer (test_title_draws_with_a_root_signature_under_the_debug_layer:no d3d12SDKLayers.dll;uploads_start_from_each_subresources_state:no D3D12 debug layer)1no heap windows(heap_window_out_of_memory_falls_back_to_the_switch_form)1cannot disable the driver cache(shaders::tests::pso_measurement_compiles_an_exact_synthetic_record)scripts/smoke.ps1 -Seconds 60):Baseline (
origin/main06c9f5505f63f10c5ec49ef932d75b2c28177324):PR head (
4db9383acea69d0c355ce5d2cb339a9f6ad1d2bb):Not tested
d3d12SDKLayers.dllis not installed on this host; in-flight resubmission avoidance is verified viaalloc_pool::note_resubmitsandGetDeviceRemovedReason().is_ok()).KickoffXon aCOPYcommand list (theCOPYlistinit_pso/ predication guard was verified by code inspection).list_x::testsunder--test-threads=4on NVIDIA driver 621.14 (also reproduced 3/15 times on unmodifiedorigin/mainafc5ee86withDXGI_ERROR_DEVICE_HUNG/E_OUTOFMEMORYacrosscross_queue_wait64_before_signal,mid_list_write64_wait64_split, androtating_queue_self_deadlock; out of scope for this PR, while the two new gated-queueKickoffXtests serialize against each other via a test-only mutex).AI use
Assisted by Google Antigravity (Gemini 4 Neon) for code analysis, implementation, test authoring, and verification.