D3D12.X: couple deferred sync-cell publication to stored memory #2429
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2439"
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?
Imported from ivall/xcl. Originally posted by LANgmas on 2026-11-25T18:55:44Z.
Open for design review — draft. The integration relationship with the existing deferred-Write64 work (#850, #562/#1643/#1819) is an open maintainer design question; coordination comment: https://github.com/xcl-dev/xcl/issues/1607#issuecomment-7171491724 — please read it before reviewing shape rather than detail.
What and why
On console,
Write64BitValue*progress values are written by the GPU itself in execution order, so a consumer that observes a fence value can rely on the memory content being present. XCL defers non-aperture writes to CPU worker threads, and for writes to registered sync cells two ordering defects result:0x0); with this change it reads the written value.The invariant this change implements: a deferred sync-cell value must not be published to consumers before the corresponding CPU store has actually completed.
What is in it
list_x.rs(+175 production, first commit): classify registered sync-cell MARKER_OUT writes at the realwrite64_bottom_xinterception path;stored_max/cpu_signaled_maxwatermark separation on the sync cell;sync_cell_deferred_storeserializing staleness decision + memory store + watermark update + publication in one critical section per cell; publication gating so the consumer-visible fence never leads confirmed stored memory; stale-store suppression; consumer publication retry and fence backfill for late consumers; signal suppression in the GPU path; cycle-break participation in the stored watermark.cpu_writes.rs(+144/−30): per-queue workers;Write::SyncU64carrying the cell generation; strict producer-fence completion for classified writes; confirmed-store contracts; queue-release cancellation with a bounded grace — abandoned jobs never store and never publish; bounded device-gone exit of the strict wait.list_x.rs(+30 production, second commit336c6c2): the same-batch deferred self-wait resolution — see below.Same-batch deferred self-wait (second commit
336c6c2, in response to review)bmjask's review found that a deferred sync-cell write followed by a wait on the same cell in the same command list can take
try_gpu_wait's same-batchCycleSkip— treated as handled — while the deferred CPU store only happens after submission, so work ordered behind the wait executes before the marker exists.Investigation refined the picture:
device_x.rswraps every title-created command list) and the record-time split moves such a wait into its own PC segment; the write and the wait never share a submission. This path already orders correctly — pinned byd19_title_list_self_wait_orders_the_work_recorded_after_it, which records write → wait → copy in ONE title list through a realtitle_listwrapper and proves the copy is held until the store publishes. It passes before and after the second commit.XCL_SPLIT_MIDLIST_WAIT=0) were the real defect: the wait stayed on the same list andCycleSkipsilently discarded it. Reproduced through the production chain —write64_bottom_x/wait64_x/execute_with_waits_on/signal_write64_fences/cpu_writes_after— ind19_deferred_self_wait_is_not_dropped_for_following_work.What
336c6c2does in the residual case: the wait is neither hoisted (a GPU wait before the list would deadlock — the strict store needs this list's own completion) nor skipped. The list is submitted alone, then the deferred self-wait is enforced on the submission thread — bounded by the existing 2 s wait timeout with a warning — before anything after it is submitted. Waits recorded before their producing write keep the existing skip: no ordering can satisfy those and none is promised. Submission granularity already varies in this path (batches are split around waits), so the solo submit is not a behavior change in kind.Known remaining limitations (not resolved cases)
wait_all_onbefore a single exec). It is deliberately unmodified: no production-path regression test currently proves the defect there, and this PR only fixes what is reproduced. It is a separate unclosed investigation.Wine/vkd3d reports (SlopTart) — investigated, not resolved
Two deterministic failures on Wine/vkd3d-proton 3.1, reproduced solo at
--test-threads=1and unchanged when combined with #2499:d11_consumer_cannot_observe_deferred_value_before_the_cpu_store— the dependent copy executes early and reads0x0(~0.42 s, no watchdog involvement).d11_publication_not_memory_releases_the_consumer— the store itself never lands within 5 s; the armed-wait watchdog releases at ~5.1 s as a symptom.Source-level analysis (no Wine lane was available for verification): both shapes are consistent with one backend divergence — on vkd3d-proton, device-side
queue.Waitnot observing host-sideID3D12Fence::Signalthe way native D3D12 does. This design depends on that behavior inherently: a CPU-side store can only ever be published by a CPU-side signal, and the only correct release path is host-side publication after the store. This is a hypothesis, not a proven universal cause — pinning it needs a Wine lane with vkd3d debug logging. The failures are not fixed; the tests are not weakened or skipped; on native Windows both pass deterministically (11/11 twice).RTX 3060 Ti recompiler report (DavidM1911) — exact-parent control negative
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierwas reported failing on RTX 3060 Ti. This PR touches onlycpu_writes.rs/list_x.rs. Control run on RTX 3050,cargo test -p xcl --lib gpu::recomp::lower_dxil -- --test-threads=1:2898511af1c038a2ef809719e9b6f89e5675c422→ 21 passed / 0 failedCurrent evidence does not attribute the failure to this patch. One provenance question remains open: the reported panic line (
lower_dxil.rs:1155, pre-c828d8cassertion text) does not match any tree this PR or its base could produce, so the reporter's exact tested SHA is unresolved and the hardware difference (3060 Ti vs 3050) cannot be excluded.Tested
Hardware: RTX 3050 Laptop, real D3D12, Windows. Base commit
2898511af1c038a2ef809719e9b6f89e5675c422(upstream main at branch creation). Test categories below are deliberately kept separate — they are not interchangeable evidence.Exact-head validation at
323636c6193c7e978b039f030a96ad390d3ab020(RTX 3050 Laptop, real D3D12, isolated tree and isolated Cargo/XCL data dirs,--test-threads=4):cargo build --workspace→ passed, exit 0cargo test -p xcl --lib d116_ -- --test-threads=1→ 11/11 passed (all sentinel and site-aware probe-script controls);d116_probe_script_5/5;cpu_writes8/8cargo check -p xcl --lib→ passed, pre-existing warnings onlycargo test --workspace -- --test-threads=4→ exit 101: Cargo's default fail-fast stopped after thexcllibrary target, so only that target ran: 1310 passed / 1 failed / 26 ignored. This command did not reach the integration-test targets.cargo test --workspace --no-fail-fast -- --test-threads=4(same environment, run explicitly to reach every target; not a filter or a weakened run) → all 24 test-target binaries executed, aggregate 1389 passed / 1 failed / 46 ignoredhle::d3d12x::bind::tests::execute_indirect_reads_the_arguments_written_before_it(bind.rs:1225), pre-existing on the parent in a path this PR does not touch — the336c6c2→323636cdelta is onlycpu_writes.rs+list_x.rstest_title_runs_and_game_folder_is_untouchedpassed (the repository's synthetic test title, not a retail game)d11_publication_not_memory_releases_the_consumerpassed in this run — the intermittency is not fixed or understood; it simply did not occur hereSKIPPEDlines, mostly wave64-dependent GPU tests on this wave32 NVIDIA adapter; skips are not counted as coverageProduction-path regression tests, real hardware, at earlier head
336c6c2eeafbef907e3d47c72624158a3c52f2d0(superseded — kept for the fail-before history;--test-threads=1throughout, deliberate: several tests share global injection slots):cargo test -p xcl --lib d19_→ 2/2, 5/5 consecutive runs; the same tests fail 3/3 runs on the same tree with only the enforcement logic reverted (fail-before proof: the copy behind the dropped wait reads0x0, with the exactskipped to avoid same-batch self-deadlocklog line)cargo test -p xcl --lib d13_→ 3/3cargo test -p xcl --lib d11_→ 11/11, two consecutive runscargo test -p xcl --lib hle::d3d12x(module regression) → 260 passed / 1 failed / 2 ignored — the one failure (bind::execute_indirect_reads_the_arguments_written_before_itatbind.rs:1225:13) is byte-identical on pristine upstream in a path this patch does not touchExact-parent controls:
gpu::recomp::lower_dxilmodule: base2898511a21/21 = head 21/21 (above)3f2777019544c0ada2cd294aa792d3c378ff0df8: module regression 258/1/2 vs pristine same-SHA baseline 244/1/2 — delta exactly the 14 added tests, zero collateralBackend-specific evidence (reporter's lane, not reproduced locally): Wine/vkd3d-proton 3.1 — two deterministic failures analyzed above, unresolved.
Injected-seam tests (clearly labeled
cfg(test)): device-removal worker exit and publication-failure injection are test-only seams at the decision boundary — not physical GPU removal, not production behavior.Regression run
Retail title: Unicorn Overlord (
SEGAofAmericaInc.Pa253b0c1Y1.0.0.6 — the exact package and version the README compatibility table lists as fully playable). Both runs:scripts/smoke.ps1unmodified, same labeld116gate, 60 seconds, isolatedXCL_DATA_ROOT/XCL_DXIL_CACHEper run, manifests verified (dirty: falseon both, correct commits).Machine note: this is a hybrid-graphics laptop (RTX 3050 Laptop dGPU + Intel Iris Xe iGPU, Optimus). On the NVIDIA adapter the title fails identically on main and on this PR's head during early DXGI setup (
com_exceptionout ofdxgi.dllat ~1.7 s, before any rendering or shader translation — pre-existing on main, unrelated to this diff, reproducible 3/3). Both runs below therefore usedXCL_ADAPTER=iris, the adapter that drives this machine's display; identical configuration on both sides.On main
8b957bec(an ancestor of upstreammain):On this PR's head
323636c(clean tree, no uncommitted changes):Frames ratio 689/700 ≈ 98.4 % (requirement ≥ 80 %); peak-commit ratio 7610/7606 ≈ 1.001 (limit ≤ 125 %).
Not tested
action_required, zero jobs created) — CI has neither passed nor failed on this head.AI use
Implementation, tests, verification and this description prepared with Devin CLI, SWE-2.1 Max under human direction; all test counts are real executions on the hardware named. Multi-phase independent review of the invariants (line-cited), evidence-gap closure, and repeated forward-port verification preceded this PR. The exact-head validation and this description correction were performed with the same tool and model.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T19:46:26Z.
FAILS on the Wine/vkd3d lane: 2 of the 11 new
d11_*sync-cell tests fail here, deterministically (3/3 solo at--test-threads=1); I have no native run of this head to compare against. Head534529f1on top of current main; suite160 passed; 4 failed(baseline quartet), then targetedd11_runs: 9 passed / 2 failed, 24 s.The two have different signatures:
d11_publication_not_memory_releases_the_consumer: fails atlist_x.rs:7508after 5.12 s, i.e. thexcl-sync-watchdogreleases the bridged GPU wait on the CPU:GPU queue.Wait at 0x3e1220 >= 0x64 did not complete within 5000 ms (waiter=q0/ty0, prod=qSome(0)/tyNone, recorded=0x64, submitted=0x64, completed=0x0) - released on CPU to prevent GPU hang. On this lane (vkd3d-proton 3.1) the fence the wait keys on never completes, so the test's premise "consumer stays blocked on the GPU" turns into "watchdog releases at 5 s" before the assertion.XCL_GPU_WAIT_RELEASE_MS(#1046) may be the intended lever for tests that arm this path.d11_consumer_cannot_observe_deferred_value_before_the_cpu_store: fails atlist_x.rs:7377in 0.42 s, a plain assertion, no watchdog log. This one is not a timing artifact; it is a straight behavioral divergence on this lane.Other nine
d11_*tests pass, including the watchdog-release and cross-queue monotonicity ones.gpu_suite (cold cache): 160 passed / 4 failed, no crashes. Three are the known baseline trio on this lane; the fourth isgpu_promoted_uav_clear_values_pass_create_committed_resource, newly red on main since #2280 (report), unrelated to this PR.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:04:30Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:49:16Z.
Review: COMMENTED
P1: deferred same-batch self-waits are still silently skipped. For a deferred registered sync-cell write then later wait, try_gpu_wait takes CycleSkip because list_writes contains the producer; execute_with_waits treats that as handled. But SyncU64 CPU store occurs only after the submission completes, so post-wait GPU commands run before the marker exists. The new deferred-aware check misses this self-wait branch. Split/submit at the wait or use another ordered mechanism; queue.Wait is not a simple fix because it would deadlock the worker. Add this exact regression.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T21:08:36Z.
Follow-up on the two Wine-lane reds from my earlier comment: re-tested this PR's
d11_*tests on a merge of this head plus currentorigin/mainplus #2499's armed-wake watchdog fix.Still
9 passed; 2 failed, same two tests, same timing:d11_consumer_cannot_observe_deferred_value_before_the_cpu_storeat 0.42 s (assertion atcrates/xcl/src/hle/d3d12x/list_x.rs:7377) andd11_publication_not_memory_releases_the_consumerat 5.1 s (released by the GPU-wait watchdog, not by the publication).So #2499's fix (watchdog not missing a wake armed during its check) does not cover these two. The shape that stays red on wine-11.0 / vkd3d-proton 3.1 is: a bridged Wait64 whose producer store is made on the CPU side never takes the memory-release path here, and the consumer-observation assertion at
list_x.rs:7377fails outright rather than by timeout. Deterministic on this lane (both reproduce solo at--test-threads=1).Imported from ivall/xcl. Originally posted by LANgmas on 2026-11-26T05:08:22Z.
Thank you all for testing and reviewing this so quickly. Conversation comments and review summaries can't be threaded, so each section below links the item it answers. The PR stays a draft while these are open.
@SlopTart: Wine/vkd3d report (comment)
Thank you for the deterministic reproduction, and in particular for keeping the two signatures apart; that separation is what makes this actionable. Both are real findings, and nine passing tests do not offset them.
d11_consumer_cannot_observe_deferred_value_before_the_cpu_store, 0.42 s, no watchdog log. Agreed that this is not timing noise. At this PR's head,list_x.rs:7377is theobserved == 100assertion ("released before the CPU store landed"), which comes after the sentinel check. Read that way, the dependent copy ran and read something other than 100, so the ordering this PR exists for does not hold on that lane.d11_publication_not_memory_releases_the_consumer, 5.12 s, with the watchdog releasing the bridged wait (completed=0x0). At this head,:7508is the 5 s wait for the worker's store ("store never landed"). Read that way, the store itself did not arrive within 5 s of the producer hold being signalled, and the watchdog release is the same absence seen from the consumer side.I will investigate these as two separate items: what released the consumer and what the copy read in the first, and why producer-side completion and the bridged wait do not progress on vkd3d-proton in the second.
XCL_GPU_WAIT_RELEASE_MSlooks useful there as a diagnostic lever; I won't treat a different timeout as a fix.Both line numbers land on assertions inside the named tests at the PR head, which is why I read them as above. If your merged tree numbered them differently, the panic strings from the logs you already have would settle it; no rerun needed.
@DavidM1911: RTX 3060 Ti run (comment)
Thank you for the independent run on a second NVIDIA card. Acknowledged:
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierfails deterministically in your tree.This PR changes only
cpu_writes.rsandlist_x.rs, but that alone does not show the failure is unrelated. I will run an exact-parent control: that test at this PR's head and at its parent on main, same machine and settings, and report whether it is pre-existing on that base, introduced here, or an interaction in the merged tree.One detail to pin down the tested tree: the message you quote (
group barriers in the program,lower_dxil.rs:1155) is the form that assertion had before #2420 (c828d8c). This PR's head, its base2898511aand current main all carry the later form (group barriers after entry branch, line 1156). Which main commit was merged into the tree you tested?@bmjask: P1 review (review)
Thank you. This is a control-flow case the PR misses, and your description of it is exact. I traced it at head
3e12eda:try_gpu_waitreaches the same-batch self-wait branch (sub_max < w.value, andlist_writescontains the producer) and returnsCycleSkip. That branch has nodeferredcheck, unlike the same-queue FIFO branch directly above it;wait_all_ontreatsCycleSkiplikeHandled, soexecute_with_waits_onsubmits the list whole;SyncU64store runs on the worker only after that submission's producer fence completes;That is a correctness gap against what this PR claims. The branch itself is inherited from main, but the deferred-aware check added here should have covered it.
Agreed that
queue.Waitis not the fix: hoisted ahead of the submission that contains the producer, it waits on a fence the worker publishes only after that same submission completes, so neither can make progress.I will write the exact regression first (deferred write, same-list wait, GPU work after it, through the production record and wait path), then look at an ordered split/submit at the wait or another mechanism that keeps queue order and cannot deadlock. So far this is traced by reading, not reproduced. The review stays open until a test shows the behaviour before and after.
@SlopTart: follow-up with #2499 (comment)
Thank you for the extra combined-tree run; it rules out something I would otherwise have had to guess at. Acknowledged: with this head, current main and #2499's armed-wake fix merged, the same two tests stay red with the same timings, so #2499 does not address them.
I will keep two things apart. One is the watchdog missing a wake armed during its check, which is what #2499 fixes. The other is what you describe here: on wine-11.0 / vkd3d-proton 3.1, a bridged Wait64 whose producer store is made on the CPU side does not take the memory-release path, and the consumer-observation assertion fails outright rather than by timeout. Both stay on the list as separate items.
AI use: written with Devin (Claude Fable 5.2 High) under human direction. Nothing in this comment is a new test result; the code reading above is of the PR head
3e12eda.Imported from ivall/xcl. Originally posted by LANgmas on 2026-11-26T05:53:03Z.
@bmjask — follow-up on your P1 review (posted as a conversation comment because the review has no inline thread to reply under). Thank you again for identifying the same-batch self-wait case — the reproduction confirmed you were right that the ordering was silently lost, and commit
336c6c2now addresses it. The investigation did refine where the defect lives, and I want to be precise about both what is fixed and what is not.Where the reviewed shape does not arise. Every title-created command list is wrapped (
device_x.rs), so the record-time split moves a wait that follows the list's own Write64 into a fresh PC segment — the write and the wait never share a submission, and the bridged wait releases only when the store publishes. New testd19_title_list_self_wait_orders_the_work_recorded_after_itdrives exactly your scenario — deferred Write64, Wait64 on the same cell, then a copy, all in ONE title list through a realtitle_listwrapper — and proves the copy is GPU-held until the store publishes. It passes before and after the fix, pinning that this main path was already correct.Where it was genuinely broken, reproduced as you described. When the split cannot happen (no wrapper, bundle, unknown allocator, segment budget,
XCL_SPLIT_MIDLIST_WAIT=0), the wait stays on the same list andCycleSkipdiscards it.d19_deferred_self_wait_is_not_dropped_for_following_workdrives that residual through the production chain (write64_bottom_x/wait64_x/execute_with_waits_on/signal_write64_fences/cpu_writes_after): unfixed it fails 3/3 runs — the exact "skipped to avoid same-batch self-deadlock" log fires and GPU work behind the wait reads0x0before the marker exists.The fix (
336c6c2): noqueue.Waithoisting — you were right that it deadlocks, since the strict store needs the list's own completion. Instead the wait is neither hoisted nor skipped: the list is submitted alone, then the deferred self-wait is enforced on the submission thread (bounded by the existing 2 s timeout with a warning) before anything after it is submitted. The producer retires independently once in flight, so this is bounded by completion rather than circular. Waits recorded before their producing write keep the existing skip — no ordering can satisfy those. Fixed: 5/5 passes; d11 11/11 twice, d13 3/3, module 260/1/2 with the one failure byte-identical pre-existing.What is explicitly not solved, so you can judge scope honestly:
Does this resolve the P1 scenario you reported to your satisfaction, and are the two documented residual limitations acceptable for this PR's scope? I have not marked anything resolved — the thread is yours.
Evidence detail is in the updated PR description (sections "Same-batch deferred self-wait" and "Known remaining limitations"). AI use as disclosed there: Devin CLI, SWE-2.1 Max.
Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-26T06:20:06Z.
Wine/NVIDIA follow-through on
336c6c2eeafbef907e3d47c72624158a3c52f2d0: distinguish fixture admission from ordering.With owner production and fixtures (only fail-closed adapter checks and panic-safe release of the held test fence),
d19_produced0passed/2failed. The first test loggedWrite64BitValueBottomOfPipeX ... not in unified memoryandWait64BitValueX ... not readable memoryfor its mapped upload-buffer address, then failedpending_waits.len():0,expected1. The second failure was LISTS mutex poisoning from that assertion, not an independent ordering observation. Logverify-pr2439-d19-wine.log. Thus this run never exercised the intended ordering contract; I have not attributed it to host-side fence Signal behavior.Adapted test memory only:
d11_cell_buffersnow allocates64KiB withVirtualAlloc(MEM_RESERVE|MEM_COMMIT,PAGE_READWRITE), imports it via realID3D12Device13::OpenExistingHeapFromAddress1, and creates a256-byte cross-adapter placed buffer in COMMON state plus the original readback buffer. Committed allocation/heap are held for the fixture lifetime; original sentinel/data assertions remain. Assert both productioncpu_writes::writableand shaderreadablebefore driving the interception. No production guard bypass or production changes. This lets the CPU and real GPU observe the same Windows-committed memory rather than the upload mapping rejected above.Both
d19_deferred_self_wait_is_not_dropped_for_following_workandd19_title_list_self_wait_orders_the_work_recorded_after_itthen passed: 2passed/0failed/0ignored,1.11s, fresh compile25.14s. The real mid-list split logged, and dependent GPU copies met both sentinel and100-value assertions. Logverify-pr2439-d19-imported-memory.log.Platform: Wine11.0, RTX4060Laptop8GiB, NVIDIA590.48.1, DXVK3.1.1, diagnostic relaxed vkd3d-proton3.2.0
2576c0b4adfae4a+(assertions disabled, allocator/listfrom_ifacevtable checks removed, null checks retained). Real NVIDIA enumerated, serial fixtures, vendor masking off. Same6,000MiB GPU/2,048MiB availableRAM/10GiB disk guards and9GiB/512MiB scope caps. Not stock-runtime certification, not a pristine-owner-fixture pass, not a fulld11_/d13_matrix or title proof. These results do not resolve the other reporter's two Wine failures or the documented watchdog/unsplittable-tail limitations; they do show a concrete fixture-admission distinction worth checking before assigning a universal fence-publication cause.Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T07:41:53Z.
Review: COMMENTED
cpu_writes.rs:126,136–139: a removed D3D12 device makesID3D12Fence::GetCompletedValue()returnUINT64_MAX(Microsoft contract). If that happens before the worker's first check,MAX < job.valueis false; if it happens while the strict worker polls,MAX >= job.valuebreaks beforedevice_gone. In both pathsremoved_incompletestays false, so a deferredSyncU64can be stored and published at lines 173–181 even though its producer batch did not execute. That defeats this PR's fail-closed publication rule on device removal.Could each completion probe classify the
UINT64_MAXsentinel as removal before comparing withjob.value, with a focused fake-fence test for both the initial and later-poll paths? This is exact-head source/API-contract review at336c6c2eeafbef907e3d47c72624158a3c52f2d0; I have not injected native device removal or run a title. AI-assisted review with Codex.Imported from ivall/xcl. Originally posted by Ritolino on 2026-11-26T18:19:41Z.
Independent native Windows 11 x64 + NVIDIA GeForce RTX 4080 (
wave32) verification of#2439head336c6c2emerged cleanly onto currentmain(8b957bec):Tested
wave32),rustc 1.100.0(stable-x86_64-pc-windows-msvc), debugcargo build --workspace: succeededcargo test --workspace --no-fail-fast -- --test-threads=4 --skip blob_enumeration_sees_one_submitted_update:xcl --lib:1333 passed, 0 failed, 27 ignored, 1 filtered out(includes the new deferred sync-cell publication tests)128 passed, 0 failed, 20 ignored1461 passed, 0 failed, 47 ignored, 1 filtered out(blob_enumeration_sees_one_submitted_updateskipped due to pre-existing#2421/#2373).AI use: Antigravity with Gemini 4 Hydrogen (Medium) ran the merge/build/test pass and drafted this report; reviewed by human.
Imported from ivall/xcl. Originally posted by LANgmas on 2026-11-27T06:30:16Z.
Would a maintainer or contributor with a working XCL setup and an already-unpacked, supported Xbox Series retail title be willing to take over the remaining validation for this PR?
The implementation and device-removal sentinel follow-up are on the current PR head:
323636c6193c7e978b039f030a96ad390d3ab020.The exact-head build and focused tests have been run. The broader workspace results and known pre-existing test failure are documented in the PR description.
What I cannot complete locally is the required paired retail smoke gate: I do not have an unpacked Xbox Series title that XCL can run. The Pool Blitz installation available to me turned out to be a PC WinGDK/MSIX package targeting Windows.Desktop, not an Xbox console build, so it is not a valid substitute. I do not want to submit synthetic/homebrew results or mislabel a PC package as a retail Xbox title.
The remaining help needed is:
scripts/smoke.ps1on upstreammainand on the exact PR head above, using the same supported retail title and duration (60 seconds), preferably on the same machine/GPU.xcl-smoke v1blocks can be added to the PR description.No game files need to be sent or shared; the title can remain on the tester's own machine.
If someone can take over this validation or recommend the right process/person, please let me know. I can provide the existing reports, test evidence, and run instructions to make the handoff straightforward.
Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-27T18:41:43Z.
Verified the revised D1.16 sentinel paths at production head
323636c619on Linux 6.17 / Wine 11 / RTX 4060 Laptop 8 GiB / NVIDIA 590.48.1 / 16 GiB system RAM.cargo test --locked --target x86_64-pc-windows-msvc -p xcl --lib d116_ -- --nocapture --test-threads=1: 11 passed, 0 failed, 0 ignored, 0.77 s after a fresh 25.39 s compile naming the intended checkout. Five probe-script ordering/exhaustion checks and six real-device publication tests ran. The latter cover sentinel at pickup/second/polling probe, incomplete→valid completion, valid work following a removal drop, and the explicitly unchanged legacy behavior. Physical NVIDIA device creation was made mandatory; two CPU-held queue fixtures gained test-only panic-safe fence release. Production is unchanged.Important boundary: UINT64_MAX/device-removal results are injected by the owner's site-aware probe script. No physical device removal, shader dispatch, or title was attempted. Passing this does not solve our separate Game-Init legacy
fence at 0, wanted 1stall or validate every D1.9/watchdog/unsplittable-tail path.This is the disclosed diagnostic-relaxed-vtable vkd3d-proton 2576c0b4adfae4a+ stack, not stock-vkd3d certification. NVIDIA masking disabled. Unchanged 9 GiB/512 MiB scope and external 6000 MiB GPU / 2048 MiB available-RAM / 10 GiB disk guards. Sampled GPU peak 298 MiB; available RAM minimum 9686.4 MiB; disk minimum 11.468 GiB. Evidence:
.compat-runtime/logs/verify-xcl2439-sentinel-publication-20261127T183838Z/.Next useful gate remains a producer-completion test for the actually stalled Game-Init path, rather than treating removal-sentinel handling as a loading fix.
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T05:22:47Z.
I verified the cross-queue monotonic case through
write64_bottom_xand the production queue submission hook on head323636c6, RTX 5070, driver 616.92. This extends the stock inversion test, which supplies preclassifiedSyncU64jobs directly.I recorded value 50 on native DIRECT queue A and value 100 on B, at the same aligned CPU address. Both recordings classified themselves as
SyncU64. A signaled a native fence after its submission; B waited on it before executing. A also recorded an ordinary trailing DWORD to a separate address, so its final value could confirm A's delayed job had actually drained.In the controlled inversion, a bounded test-only gate paused only A's CPU worker, after producer completion and before the sync-cell lock/store. The CPU cell still held 0 then. B completed normally and its published cell fence reached 100; the cell held 100 while A's trailing DWORD was still 0. After releasing A, the trailing DWORD became
0xabcd1234. At that point the cell bytes,stored_max,cpu_signaled_max, and completed cell fence all read 100;non_monotonicremained false. All three fresh-process delayed runs and one undelayed control passed.This covers a single monotonically increasing registered QWORD and an explicit A→B GPU dependency. It leaves the unrelated ordinary-marker overwrite case and the requested paired retail smoke open.
AI-assisted fixture and verification.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:05:11Z.
Triage (#1607) – head
323636cNo open PR makes the same change. Related work: #562, #1643 and #1819 also give each queue its own
cpu_writesworker, and #850 and #3104 also hold deferred writes until the producer fence completes. None of them gates a sync cell's fence publication on the CPU store or suppresses stale cross-queue stores the waysync_cell_deferred_storedoes.Since the base
2898511, main has342ba2dd(D3D12.X: order waits after deferred CPU writes): a list wait after a CPU-after write is split off and waits for a completion receipt from the worker. That probably covers the same-list self-wait case of the second commit (336c6c2), and main'scpu_writes.rs(receipts,forget_queue) conflicts with the per-queue worker rewrite here. The rebase should say what is left of336c6c2.Draft, for design review; ~1000 of the 1568 lines are tests.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.