Repository navigation
Conversation
|
Tested the change at d827520 on Windows with an RX 7900 XT, on a downstream XCL stack that includes #1422 and a local direct texture upload change. Both split-segment tests and the existing in-flight allocator lifetime test passed individually. The release build passed. I ran one game comparison per build with the same saved Series X profile, separate copies of the same populated DXIL/PSO caches, two DXC workers, a 28 GiB whole-job limit, and the same scripted Player1 selection at 33 s.
With the patch, at 256 allocator replacements the runtime logged 197 created and 197 put aside. The warm control ended before that counter appeared. An earlier run with the control executable and different cache history reached 256 replacements with 184 put aside. These counts include in-flight work and do not isolate a leak. The later run still had a dark captured frame. I could not verify a visible world or player control. One run per variant does not establish a timing improvement. |
|
Independent Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB) test report for Tested
Regression run PR head ( Not tested: debug build, AI use: Antigravity ( |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
# Conflicts: # crates/xcl/src/hle/d3d12x/title_list.rs
…_list::release ABA Two bugs in title_list segment and wrapper lifecycle: - When a title_list split onto an extra PC segment and later returned that segment to `spares` via Reset or KickoffX, `alloc_pool::forget_list` was never called on the retired segment. The segment stayed in its backing allocator's `users` set indefinitely, preventing that backing allocator from being reused and leaking new PC allocators on every Reset. - In `title_list::release`, after `f(pc)` freed the primary PC list, `WRAPPER_OF.remove(&pc)` and `bind::forget(pc)` ran unconditionally. If another thread created a new command list that reused the freed `pc` address in the window after `f(pc)`, the old wrapper's cleanup detached the new wrapper and wiped the new list's bind state. Call `alloc_pool::forget_list(list)` inside `list_x::clear_segment_state` (covering both `title_list::reset` and `KickoffX`) and before releasing spare segments; in `title_list::release`, only remove `WRAPPER_OF` entries still mapped to `this` and skip redundant `bind::forget(pc)` when `pc` was adopted (already cleaned up inside `real::cl_release`). Assisted-by: OpenCode (Gemini 4 Neon)
d827520 to
0bfea00
Compare
Fixes two lifecycle bugs in
title_listsplit segments and wrapper release:title_listsplit onto an extra PC segment and later returned that segment tosparesviaResetorKickoffX,alloc_pool::forget_listwas never called on the retired segment. The segment stayed pinned in its backing allocator'susersset indefinitely, preventing reuse of that backing allocator and leaking new PCID3D12CommandAllocators on subsequentResets.title_list::release, afterf(pc)freed the primary PC command list,WRAPPER_OF.remove(&pc)andbind::forget(pc)ran unconditionally. If another thread created a new command list that reused the freedpcheap address in the window afterf(pc), the old wrapper's cleanup detached the new wrapper and wiped the new list'sbindstate.This calls
alloc_pool::forget_list(list)insidelist_x::clear_segment_state(covering bothtitle_list::resetandKickoffX) and before releasing spare segments; intitle_list::release, it only removesWRAPPER_OFentries still mapped tothisand skips the redundantbind::forget(pc)whenpcwas adopted (already cleaned up insidereal::cl_release).What is in it
crates/xcl/src/hle/d3d12x/list_x.rs: callalloc_pool::forget_list(list)inclear_segment_state.crates/xcl/src/hle/d3d12x/title_list.rs: guardWRAPPER_OFremoval against address reuse, skip redundantbind::forget(pc)for adopted lists, forget spare segments fromalloc_poolbefore release, and add unit testsreset_releases_retired_split_segment_from_alloc_poolandrelease_does_not_remove_reused_pc_from_wrapper_map(both verified failing before the fix).Since the last push: rebased onto
main06c9f55. The conflicts were in the test module (main'snewer_layout_slot_139_resets_primary_and_reclaims_split_segmentsandslot_139_keeps_the_title_caller_for_the_backing_layout_guard, both kept) and inrelease's loop, wheremainiteratesextra_active,sparesandfirst: the PR's ABA guard now applies to all three.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 1267 passed, 0 failed, 46 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses,no heap windows, andcannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib title_list: 3 passed, 0 failed (both new tests failed before the fix)Regression run
main (
426a5a7, clean tree, no local changes):PR (
0bfea00, clean tree, no local changes):(The main block is
426a5a7, an ancestor of the currentmain, from the same machine and data folder.)Not tested
AI use
main06c9f55, resolved the conflicts, ran the suite and thescripts/smoke.ps1pair at the head above.