Repository navigation
Conversation
|
Ran the async-pipeline lifetime tests at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. Results
The new lifetime tests ( What this adds: the author ran these filters on an Ampere RTX 3060; this is a Blackwell wave32 part. No test report from another machine exists in the thread yet. Not tested: the whole AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
8142aa1 to
75726f7
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin |
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
75726f7 to
1029a82
Compare
bmjask
left a comment
There was a problem hiding this comment.
P1: pso_release can misclassify a normal 2->1 release as final and double-release a retained pending stand-in. With late release enabled, real.rs:1721-1734 treats f(this)==1 as final, removes async state, and queues a deferred raw Release. But this PR intentionally AddRefs a bound pending stand-in via Resolved/retained_psos, so title Release commonly changes title+list retention from 2 to 1. The branch then reports zero/forgets state and schedules release of the list-owned ref; when the list resets and drops its retained ID3D12PipelineState, it releases that same ref again. Please retain a separate deferred ref only after proving the caller released the actual last ref, and add a bind/retain -> title Release -> list reset regression.
`pso_async::resolve`, `resolve_wait`, and `resolve_for_bind` previously returned unretained raw `ID3D12PipelineState` addresses while `released()` could synchronously drop `real` outside any shared lock with callers or before command list reset and GPU retirement. Synchronize pending pipeline completion, resolution, and stand-in release under `Pending::state`, introduce `Resolved` COM-owning handles across command list creation, reset, binding, draw/dispatch, KickoffX, and `console_list` replay, keep bound resolved pipelines on `bind`/`list_x` state so released stand-ins are not re-dereferenced, and route final stand-in/real COM release (including unadopted COM objects and `pso_release` only when `add(this) == 2` proves the caller released the actual last ref) through `late_release::hold_deferred` until GPU queues pass their fences. Drop unstarted orphaned jobs immediately across `Pending::finish_release` and `drop_unstarted_job`, guard pre-allocated test pipelines against early-orphan drops and worker saturation in `pso_async::used_tests`, clone `present` queue COM references under `QUEUES` in `late_release::drain_known` while purging retired test queue fences, and add bind/retain -> title Release -> list Reset regression coverage in `async_pso_lifetime_tests` (selecting WARP via `XCL_ADAPTER` / `agility::create_device` fallback). Part of xcl-dev#1488 Assisted-by: Antigravity (Gemini 4 Hydrogen)
1029a82 to
5333a9b
Compare
|
Thanks for catching this! Removed the |
|
Two points from reading the diff against
I checked AI use:
The points were checked by the account owner as well (edited to complete this AI use line). |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
Retain resolved async pipeline COM references across command list recording, reset, and GPU queue retirement so background-built pipelines cannot be freed while bound or in flight (
XCL-BT-008). Part of #1488.What is in it
Pendingcompletion, state updates, and unstarted/adopted stand-in release underPending::state(Pending::finish_release), return COM-retainingResolvedhandles (resolve_wait_retained,resolve_for_bind_retained,resolve_if_pending,resolve_cached_*) with settled fast-path tracking, and gate adopted stand-in release viatry_release_standin(pso_async.rs)ID3D12PipelineStatereferences on command lists (list_x::ListState::retained_psos,console_list::ListState::retained_psos, and bound-pipeline tracking inbind/list_x) across creation,Reset,ClearState,SetPipelineState,Draw*/Dispatch/ExecuteIndirect,RSSetDepthBiasXrestore/prepare,KickoffX, mid-list split, andconsole_list::closeuntil reset or releaseadd(this) == 2proves the caller released the actual last ref, removing theelse if f(this) == 1branch so2 -> 1releases stay non-final) and unadopted COM pipeline releases through non-spinninglate_release::hold_deferred, dispatch unadopted COM objects via vtable slot 2 inlate_release::drain_known, and clone queue COM references safely underQUEUES(present::known_queue_refs) while purging retired test queues fromHeld::fences(real.rs,late_release.rs,present.rs,pso_async.rs)UnstartedRealRAII guard), GPU queue retirement (late_release+ stalled queue),standin::shellcommand-list lifetime, and pending stand-in bind/retain -> titleRelease(2 -> 1) -> listReset(1 -> 0) regression tests (withXCL_ADAPTER=warp/agility::create_devicefallback and clean skip when no D3D12 adapter is present) inpso_async.rs,late_release.rs, andreal.rsTested
upstream/main6d12f58a229b, head5333a9b91290a0163e2368bc27e89907c5e4207a)cargo build --workspace: exited0with 0 new compiler warningscargo test -p xcl --lib hle::d3d12x -- --test-threads=4(default RTX 3060):259 passed, 0 failed, 2 ignored(0SKIPPEDGPU tests)XCL_ADAPTER=warp cargo test -p xcl --lib hle::d3d12x -- --test-threads=1:259 passed, 0 failed, 2 ignored(0SKIPPEDGPU tests; under--test-threads=4on WARP, pre-existinghle::d3d12x::alloc_pool::tests::a_recording_outlives_the_reset_of_the_titles_allocatorfailed with-2147024809from concurrentalloc_poolstate sharing and passed alone and single-threaded)cargo test --workspace -- --test-threads=4:1303 passed, 1 failed, 26 ignored(unrelated pre-existing failure ingpu::recomp::tests::gpu_clamp_and_omod_per_instructionon RTX 3060)Regression run
main (
3ceb5507a05355719ff1d7b5c29bc52aff142000):PR (
5333a9b91290a0163e2368bc27e89907c5e4207a):Not tested
ShaderCacheControl/ wave64 GPU paths and non-Windows targets (not built / not tested)XCL_SAMPLE_*external shader packs (unset).\scripts\test.ps1pass (unrelated pre-existinggpu::recomp::tests::gpu_clamp_and_omod_per_instructionfailure on RTX 3060)AI use
XCL-BT-008unclaimed via GitHub REST API, authored failing-first and multi-threaded COM lifetime tests, implemented COM reference retention,late_releasesynchronization, and WARP/no-GPU test guards acrossd3d12x, addressed@bmjaskreview feedback (pso_releaseadd(this) == 2check and pending stand-in2 -> 1 -> 0reset regression), rebased ontoupstream/main6d12f58a229b, and ranhle::d3d12xtests, workspace tests, and 60 s smoke check