Repository navigation
Conversation
|
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. |
4db9383 to
6a3d4a3
Compare
|
Rebased onto |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
RX 9070 XT verification of exact PR head Hardware: AMD Radeon RX 9070 XT, Windows, retail GTA 6 Xbox 1.0.2.1; Rust 1.100.0 MSVC, bundled DXC. Focused tests: 60-second 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. |
|
Code-review finding on In the candidate/
The fallback Reset is not a retirement check: Microsoft explicitly permits 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 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. |
…1946, xcl-dev#1803, xcl-dev#2297, xcl-dev#2320, xcl-dev#2333 Carries forward still-open high-value upstream PRs onto upstream/main (2898511) + our updated Wine PR stack (xcl-dev#867, xcl-dev#1395-successor, xcl-dev#871, xcl-dev#877, xcl-dev#1732). Preserves UnadoptGuard in xcl-dev#2320 KickoffX reset_one. Assisted-by: Antigravity (Gemini 4 Neon)
…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`, `title_list::switch_active_for_kickoff`, and `title_list::mark_kickoff_unreset` to switch `F_BACKING` / `WRAPPER_OF` / `book.first` / `book.spares` after `Reset` succeeds while keeping `F_PRIMARY` out of `book.first` and `book.spares`, and suppress `push_segments` (with empty-batch early return in `execute_with_waits_on`) if `KickoffX` cannot obtain/reset an idle target until the title's next `Reset`. - 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, and `list_x::acquire_kickoff_target` so `kickoff_x` never falls back to resetting `current_target` while it is still in flight (trying idle `primary`, all idle pooled spares, then a fresh spare, and leaving `current_target` closed + unreset on failure). - Update `list_x::kickoff_x` to 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` and `kickoff_unreset` invariants, back-to-back in-flight `KickoffX` + return to `primary` after drain, `KickoffX` after a mid-list `Write64 -> Wait64` split, and gated-queue no-spare / spare-`Reset` failure paths. Assisted-by: Google Antigravity (Gemini 4 Neon)
6a3d4a3 to
62f6d47
Compare
|
Good catch — fixed in Extracted |
…1946, xcl-dev#1803, xcl-dev#2297, xcl-dev#2320, xcl-dev#2333 Carries forward still-open high-value upstream PRs onto upstream/main (2898511) + our updated Wine PR stack (xcl-dev#867, xcl-dev#1395-successor, xcl-dev#871, xcl-dev#877, xcl-dev#1732). Preserves UnadoptGuard in xcl-dev#2320 KickoffX reset_one. Assisted-by: Antigravity (Gemini 4 Neon)
bmjask
left a comment
There was a problem hiding this comment.
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.
|
Independent AMD report for Tested
Not tested
AI use Claude Code (Claude Sonnet 5.5) ran the tests and wrote this report. No game files, dumps or shader names are included. |
Integrates split-segment alloc_pool unpin + title_list ABA guard (xcl-dev#1453), allocator-put-aside memory retention (xcl-dev#1422), and forget-PSO-before-free (xcl-dev#2422). Preserves UnadoptGuard in list_x reset paths and xcl-dev#2320 kickoff target switching. Assisted-by: Antigravity (Gemini 4 Neon)
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
NVIDIA report, head
Workspace AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted). |
|
Independent Windows/NVIDIA check of #2320 head
This adds direct debug-layer evidence for the in-flight AI use: Codex (GPT-6.2 Sol) ran the tests, checked the temporary debug instrumentation and drafted this report. |
COPY queue KickoffX verification on RTX 5070A synthetic test on PR #2320, head The probe copied a different 32-bit marker in each of four segments, including the final submission. Readback returned A 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. |
|
Update for head Tests (
Device removals with
The other binaries fail the same 3 tests as on Not tested: a run with 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 Setup
Tests (debug,
Retail title, 300 s (release, every run from a copy of the same warm-cache snapshot;
Not tested
AI use
|
|
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 The PR merges cleanly into What keeps me from proposing it for merging yet:
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 Smaller notes: when no idle list can be made, 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). |
…ching Address @throny's pre-merge review on xcl-dev#2320: - Add `kickoff_swap_enabled_val` / `kickoff_swap_enabled` (`XCL_KICKOFF_SWAP=0`, default ON, matching `alloc_pool::enabled()`'s `XCL_ALLOC_SWAP=0` idiom) in `crates/xcl/src/hle/d3d12x/list_x.rs`. - When `XCL_KICKOFF_SWAP=0`, `kickoff_x` skips `title_list::wrapper_of` and `acquire_kickoff_target` bypasses `in_flight` / spare-pool scanning / `switch_active_for_kickoff` / `mark_kickoff_unreset` (and the `target != this` state-inheritance / segment-reset overhead when unsplit), resetting `current_target` directly while leaving `XCL_ALLOC_SWAP` unaffected. - Add unit tests `kickoff_swap_enabled_val_defaults_on_and_disables_on_zero` and `kickoff_swap_disabled_keeps_current_target_without_spares`. Follow-up to xcl-dev#2163 Part of xcl-dev#1452 Assisted-by: Google Antigravity (Gemini 4 Neon)
|
Thanks for the review, @throny! I pushed follow-up commit
Ready for re-check whenever you have a moment! (AI use: Google Antigravity (Gemini 4 Neon) implemented |
|
Re-check of the new head Status of the earlier points
Still open before a default-on merge
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 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 AI use: Claude Code (a Claude Opus 5.5 sub-agent reviewed the head, Claude Fable 5.2 checked and wrote this). |
…pares and fence-wait fallback Addresses pre-merge re-review on xcl-dev#2320: - Flip XCL_KICKOFF_SWAP to opt-in (XCL_KICKOFF_SWAP=1, default OFF) so default KickoffX behavior matches main until a KickoffX-using title's world-run frame times are measured. - Add alloc_pool::wait_idle (cloning fence/value and releasing STATE before gpu::fence::wait) and fall back to a bounded 5000 ms fence wait before resetting current_target when no idle spare is available, preserving subsequent commands instead of dropping them via mark_kickoff_unreset (which now triggers only if the bounded wait or Reset itself fails). - Cap per-wrapper KickoffX spares at MAX_KICKOFF_SPARES = 8 via title_list::spare_count, falling through to the bounded fence wait once the cap is reached. - Tighten diff scope against merge-base 6d12f58 by restoring reset_stand_in verbatim and dropping unrelated COPY-guard and DRED hunks from kickoff_x (keeping only the empty-batch early return in execute_with_waits_on required by mark_kickoff_unreset). - Update KickoffX tests for default-OFF / XCL_KICKOFF_SWAP=1 opt-in and add live D3D12 regression coverage for the 8-spare cap and fence-wait fallback. Assisted-by: Google Antigravity (Gemini 4 Neon)
|
Thanks @throny for the clear re-check and concrete bar — pushed fast-forward commit
Verification on
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. |
|
Re-check of Addressed
Still open
Minor
With the switch off by default I no longer ask for a smoke pair on a title that calls 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. |
…tch skip, and log wait timeout Addresses final pre-merge re-check items on xcl-dev#2320: - Branch cleanly on !swap_enabled in kickoff_x_with so the default-OFF path executes main's exact hand-over-then-reset order without overwriting list_type or last_queue on primary. - Gate execute_with_waits_on's empty-batch early return behind kickoff_swap_enabled() (via execute_with_waits_on_with) so default-OFF behavior is unchanged for empty batches. - Return HRESULT_FROM_WIN32(ERROR_WAIT_TIMEOUT) (0x80070102) instead of E_OUTOFMEMORY when the bounded 5000 ms fence wait expires. - Add live split-list default-OFF test kickoff_x_default_off_split_list_matches_main_handover and verify both opt-in and default-OFF empty-batch handling. Assisted-by: Google Antigravity (Gemini 4 Neon)
|
Thanks @throny for the fast follow-up — pushed fast-forward commit
Verification on
Ready for your suite and world run on 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. |
|
merge-check |
|
No open or merged PR switches KickoffX to a spare PC list while the submitted one is in flight; main's kickoff_x still resets AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
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.