D3D12.X: split title_list command lists around mid-list Wait64 after Write64 #797
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!797
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/797/head"
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?
@gsucristo on GitHub · 2026-11-24 05:33 UTC · original
gsucristo:d3d12x/wait64-midlist-split→main· +2461 −87 · 5 files · 2 commits · merged 2026-11-24 05:58 UTCStacked on #795; only the top commit belongs here.
Split
title_list-backed command lists around mid-listWait64BitValueX/Wait32BitValueXcalls that follow aWrite64BitValueXin the same list, avoiding cross-queue cycles where a consumer queue waits on the prefix write before signaling the value the suffix waits on. Related to #505 (note: open #708 also splits lists at recorded waits; this approach extendstitle_listwithF_PRIMARY/F_BACKINGsegment tracking, reuses closed spare PC lists on the same allocator acrossReset/KickoffX, and integrates directly with #795's exact cycle graph).What is in it
crates/xcl/src/hle/d3d12x/title_list.rs: separateF_PRIMARY(0x2FF0) andF_BACKING(0x2FF8) slots soQueryInterface/AddRef/Releasestay pinned to the primary PC list while recording advances across split segments; expand all segments viapush_segments; reclaim spare closed segments onReset(callinglist_x::reset_xdirectly) andKickoffX(reclaim_for_kickoff).crates/xcl/src/hle/d3d12x/list_x.rs,bind.rs,real.rs: addtry_split_for_wait(opt-out viaXCL_SPLIT_MIDLIST_WAIT=0), carry active D3D12 and UMA bindings (bind::inherit_for_split) across split segments, expand wrapped lists inq_execute_command_lists, and addmid_list_write64_wait64_split_avoids_cycle_and_reuses_sparesverifying 2-frame splitting, spare reuse, and zero CPU cycle breaks.Tested
rustc 1.98.1(x86_64-pc-windows-msvccross-compile), debug.cargo test --workspace --no-fail-fast --target x86_64-pc-windows-msvc -- --test-threads=4 --skip a_freed_block_is_decommitted_before_its_address_is_reused: 706 passed, 4 failed (pre-existing Wine-only failures:hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime,test_title_runs_and_game_folder_is_untouched,disk_free_space_ex_reports_pls_quota,set_predication_buffer_state_and_kickoff), 41 ignored, 1 filtered (a_freed_block_is_decommitted_before_its_address_is_reused).SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64).hle::d3d12x::list_x::tests::mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares(2 frames, 2 segments, spare reused, 0 CPU cycle breaks).Regression run
scripts/smoke.ps1runs on a retail title (Linux/Proton environment only).Not tested
scripts/smoke.ps1retail regression run.AI use
@MesshM on GitHub · 2026-11-24 05:51 UTC · original
Test run of
285560fae476d6501355d2f3fcfccadeb1558a20on AMD RDNA4. I merged it onto currentmaine50836blocally (clean merge), so the tree tested includes the PR under it (#795).Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 711 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 670 passed, 0 failed, 21 ignoredSKIPPED; thetitle_list/guardtests pass.Review: Stacked on #795; I reviewed the top commit's structure only. It splits lists at mid-list waits, which #708 (open) also does, so the same choice applies as for #795.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.