Repository navigation
Conversation
…losed list KickoffX took the list's pending waits, Write64 signals and CPU writes before the native Close. When Close failed they were gone, and the console list kept recording into (and later submitting) a PC list that can no longer be Reset. Kickoff of a console list now reserves a closed stand-in list (an idle spare, or one made on an allocator of its own) and the bookkeeping for it before it changes anything; without them it leaves the work to the title's Close + ExecuteCommandLists. The effects are taken only after Close succeeds. On failure the wrapper records into and submits the closed stand-in, the failed list is never reset, submitted or reused (the primary is marked broken, other lists are quarantined), and the title's next Reset reopens the stand-in and drops the abandoned recording's effects. The fail-closed bookkeeping in title_list is adapted from 617b493 and the Kickoff change from 7389879 (xcl-dev#2778), part of xcl-dev#2787 item 2. The new test drives kickoff_x with a native Close returning E_OUTOFMEMORY; on main it fails with the waits, signals and CPU writes all lost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested on Windows 11 build 26200, Rust 1.97.1 MSVC, debug. AI use: OpenAI Codex (GPT-6) extended the fixture, ran the two controls and drafted this report. |
KickoffX took a console list's pending waits, Write64 signals and CPU writes before the native Close. When that Close failed, they were lost, and the console list went on recording into, and later submitting, a PC list that D3D12 cannot Reset any more. Now Kickoff reserves a closed stand-in list first and takes the effects only after Close succeeds. If Close fails, the recording moves to the stand-in, and the broken list is never reset, submitted or reused again.
Part of #2787 (item 2). Adapted from
617b493d(fail-closed bookkeeping) and73898793(Kickoff) on #2778.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:kickoff_xreserves a closed stand-in: an idle spare, or a new list on its own allocator. It also reserves the bookkeeping for it. If either cannot be had, the work is left to the title's own Close + ExecuteCommandLists, as before.take_kickoff_effects) only after Close succeeds.kickoff_xwith a native Close that returnsE_OUTOFMEMORY. Onmainit fails with all waits, signals and CPU writes lost.crates/xcl/src/hle/d3d12x/title_list.rs:prepare_fail_closed/fail_closed: on a failed Close, the wrapper records into and submits the closed stand-in.E_FAIL.Differences from
73898793:Tested
cargo test --workspace -- --test-threads=4on5718395d: 1447 passed, 0 failed, 47 ignored.XCL_PRESS_AT=25:A.Regression run
main(8b957bec):This PR (
5718395d):Not tested
kickoff_xandSegmentBook, and a trial merge conflicts in both files. Whichever lands second needs a rebase.AI use
🤖 Generated with Claude Code