Repository navigation
Conversation
Verify the wide literal prints as an operand and advances the next instruction to byte 12. Assisted-by: omp (amd-openai/gpt-6.2-sol)
Split supported recording segments before waits; open the queue gate only when its progress value is visible. Verify the original stale read and patched result with a two-queue GPU fixture. Queue-local completion workers adapted from xcl-dev#562. Recorded-order trace and motivation: xcl-dev#539. Assisted-by: omp (amd-openai/gpt-6.2-sol)
|
Verification on a retail title, since your Not tested lists "GTA VI's black screen is unverified". Setup: merged onto It fixes the waits. On plain The crash is unchanged. Same fault, same offset, same ~120 s: So the wait timeouts were a symptom alongside the crash, not its cause — worth knowing, because it means fixing the waits alone will not clear the black screen. Not tested: AMD, other titles, longer runs. AI use: OpenCode, DeepSeek V4.1 Flash 1017. |
|
Native Windows + NVIDIA test-suite run (the description lists it as not tested; the run above is a retail title on NVIDIA, this one is the suite and the PR's own tests):
AI-assisted (Claude Code, Claude Opus 5.5). |
…the world-loading stall past 12 GB of video memory remains Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent D3D12.X GPU test report on Tested
Not tested
AI use
|
… the card, no out-of-order waits; first builds of world compute pipelines remain Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Native Windows 11, RX 7900 XT, DXC 1.9.2602.17. On exact head 89184d1, the existing two-queue regression passed ( I found one remaining ordering case in a local integration of this head. Record an ordinary D3D12 CopyBufferRegion, a supported 64-bit GE wait on an external counter, and a second CopyBufferRegion. Neither the first copy nor an ordinary forwarded draw has to set wrote_uma or add a cpu_writes entry. In my copy case, append_pieces returned one PC list. The production queue would gate that entire list, including the copy recorded before the wait. The new regression failed with Locally I removed the fast path that treats an empty tracked-write set as an empty recording. The test then observed an ungated prefix and a gated continuation. On this PR head plus that small change, both GPU tests passed ( Retail 1.0.2.1, separate from those focused tests: the local build also includes preload, bounded PSO waits, sparse-buffer release changes and a 6,144 MiB texture budget. Same profile, input and starting application caches in both runs. With the PR's original split rule, the first gate opened, legacy wait timeouts were zero, two gates were still waiting at 149.727 s, and the title took a read AV at 149.888 s. The host stayed open after saving its report and was terminated. With the copy-order adjustment, the game logged zero legacy timeouts and zero delayed-gate warnings before a different title read AV at 163.244 s. No device removals in either run. Neither reached a verified playable scene. The pair does not establish why either crash occurred. The adjusted integration passed 727 workspace tests, 0 failed, 41 ignored, after building the workspace fixtures. One nominal pass reported SKIPPED because xgameruntime.dll was unavailable. Codex (GPT-6) ran the checks, wrote the additional regression and summarized the logs. |
A healthy producer that misses the initial fence deadline can still advance. Keep its 64-bit completion write pending until actual completion instead of stranding the consumer gate. Proton/RX 9070: real D3D12 late-fence regression passed. Assisted-by: GPT-6.2 Sol
An empty tracked-write set does not mean earlier PC commands are absent. Split eligible waits even when their prefix may be empty. Proton/RX 9070: the ordinary-copy regression fails on the old head; both readback tests pass with the fix using the same disposable vtable adapter. Assisted-by: GPT-6.2 Sol
|
@crosettiremi Thanks for the native Windows reproduction. The new head If you have time, could you provide the two required cargo build --locked --release -p xcl
.\scripts\smoke.ps1 -Game 'D:\Games\YourTitle' -Seconds 60Please paste the generated blocks only; no game files or dumps are needed. |
|
Native Windows + NVIDIA test of this PR with the retail title: no Setup: RTX 4070 Ti 12 GB (driver 32.0.16.1062, 32-lane waves), i5-13600K, 32 GB RAM + 32 GB page file, Windows 11 26300, DXC 1.8.2502. Release build of Tests: Retail runs:
So on this machine the stale-counter reads are gone. What stops the title now is the watchdog during world loading: 10–13 compute pipelines are still building past 4 s at ~100 s (first builds on the NVIDIA driver). I don't see anything from this PR in that. Investigated with AI assistance; all numbers are from runs on my machine. |
|
Re-ran
On the two points from my earlier comment:
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Hardware check of Tested
Regression run PR ( Not tested
AI use
|
…se markers Integrates upstream PR xcl-dev#708 with Wine UnadoptGuard preservation and sparse-window marker support: - Split command lists at recorded Wait64BitValueX and gate continuations non-blockingly on the GPU via wait_gate, backed by per-queue cpu_writes completion workers (xcl-dev#708). - For Write32/64BitValue* targeting sparse windows (used for overflow graphics heaps under Wine), mirror immediate values asynchronously via cpu_writes + sparse::sync_sent_now instead of synchronous sparse readback, allowing non-blocking wait_gate segmentation on sparse progress markers.
|
Thanks @eizispark for the native Windows tests and smoke blocks. I added the credited smoke pair to the description. If you have the same RX 9070 XT setup handy, could you run |
|
RX 9070 XT run of the suite you asked for, and two retail runs with this PR. In both runs the title reached the world on this card. In one of them a gate that stayed blocked was followed by a device removal. Written by Claude Code (Claude Opus 5.5), which built the trees, ran the tests and read the logs; I drove the pad. Setup: Windows 11 Pro 10.0.26300, Ryzen 7 9700X, RX 9070 XT (RDNA4, Adrenalin 26.11.2 / 32.0.32029.2010), Rust 1.100.0, DXC 1.9.2602.17. Tests:
That test is on Retail title (v1.0.2.1, a save past first boot, A → loading → world,
0
My guess, not verified: a producer write was in work that the local switch skipped. The gate then kept its queue blocked, and the device was removed 1.6 s later. That only happens with my skipping switch. Still, the same can follow from any dispatch Not tested: this PR without my local switch into the world on this card (it stops on the pipeline waits first); smoke pairs on the exact head. |
|
Linux (Wine, NVIDIA): the Base: Tested
Not tested
AI use
|
|
Second data point for the device removal seen with this PR plus a local "don't wait for pipelines" switch (same pattern as @jimokulou2-ops's second run). My reading of the log is that the gate is not the cause. Details below so you can check. Build
What happened
Why I don't think the gate causes it So I'd treat this run as evidence against the skip-instead-of-wait switch, not against this PR. Next I'll rerun the same build now that Not tested
Log analysis written with Claude Code (Claude Opus 5.5); the run and the numbers are from my machine. |
|
Main now has the tracked GPU-fence bridge and its mid-list split from #795 and #797. This PR is not being rebased over those implementations. Two independent cases still reproduced on
Native Windows and paired retail smokes remain unverified at both new heads. Implementation and local verification used omp (GPT-6.2 Sol). |
Do not publish a CPU-visible 64-bit progress value when its GPU fence has not reached the submission. Keep the timed-out progress write and its suffix ordered on the originating queue’s worker; other queues can still publish. On base beaa245 the real-fence regression observed 0x123456789abcdef0 before fence completion. With the fix, three deferred-write tests pass on RX 9070 / GE-Proton, including the independently completing second queue. Native Windows and a retail smoke pair were not run. Refs: xcl-dev#708 Assisted-by: omp (GPT-6.2 Sol)
Reuse the tracked-write split for eligible Wait64 comparisons after ordinary recorded work. Leave leading waits unsplit and untracked counters on the existing bounded CPU fallback. Keep upstream fence bridging and cycle handling intact. The ordinary prefix readback times out before the producer advances on beaa245. With the fix, the prefix and suffix readback test, tracked split/spare reuse test, and legacy batch split test pass on RX 9070 / GE-Proton. The disposable native-list adapter used for vkd3d is not part of this commit. Refs: xcl-dev#708 Assisted-by: omp (GPT-6.2 Sol)
… split xcl-dev#708 predates xcl-dev#795 (GPU-fence bridge) and xcl-dev#797 (mid-list split) and was not rebased. Resolution keeps main's split machinery (xcl-dev#797 + xcl-dev#851) and cpu_writes from xcl-dev#850 (the xcl-dev#708 per-queue workers with xcl-dev#873's diagnostics), and ports xcl-dev#708's core change onto it: - wait_gate.rs (from xcl-dev#708): a queue-side gate the CPU opens once it sees the progress value. - PendingWait::gate: a Wait64 GE, full mask, on a non-sparse value the CPU can read, in a direct/compute title list, that starts its PC segment (split by xcl-dev#797/xcl-dev#851, or nothing recorded before it). - execute_with_waits_on / KickoffX: gated waits arm a wait_gate instead of the xcl-dev#795 GPU-fence bridge; with sparse writes at or after the list in the batch they take the bounded CPU wait (xcl-dev#708's rule). Other waits keep the xcl-dev#795 bridge. Arming failure stops the title (xcl-dev#708). - Dropped from xcl-dev#708: its own title_list piece/split machinery, split_recording, restore_after_reopen, open-query / split-barrier tracking and the Result-returning execute_with_waits. - wait_tests.rs (from xcl-dev#708) adapted to push_segments / execute_with_waits_on.
After a submission with GPU writes into sparse windows, the sparse queue waited for the title queue and the submitting thread waited for the copy, up to 5 s per flush with the sparse lock held. On a queue still held by a gate that is a stall until the gate's release: the thread cannot submit the producer, and every title queue waits for the sparse queue in before_execute. The rule from xcl-dev#708 only covered sparse lists at or after the gated one in the same call. Two cases were left: - KickoffX of a split list: a gate armed for an earlier segment was followed by the active segment's readback. The active segment's sparse flag now reaches the earlier segments' waits (execute_with_waits_before), which keep the bounded CPU wait. - A later submission to a queue whose gate is still closed. wait_gate now counts the gates the CPU has not opened per queue (closed_on). For such a queue the copy back is recorded on the title queue itself, followed by a signal of a fence of its own, and a worker lands it in the CPU view once the GPU is there, in order (from xcl-dev#433, which does this for any queue with an unfinished wait). Later copies of that queue take the same way until the earlier ones landed. Other queues keep the synchronous readback. A CPU read right after the title's own fence can see the old bytes of such a copy until the worker lands it; before, the call stalled there instead. Found in review (integ-review.md W2). Not run. Assisted-by: omp (Claude Opus 5.5)
XCL could move a wait ahead of a producer, time out, and read stale data. Split supported command lists at the recorded wait and gate the continuation on the producer’s value.
What is in it
Tested
89184d1merged ontof4ce27c, Windows 11 / RTX 4070 SUPER: 704 passed, 0 failed, 41 ignored; two wave64 skips. The wait test passed without the Proton shim.89184d1and passed after the fix. Both GPU readback tests passed with the same disposable vtable shim. The separate late-fence test passed without the shim.64b3f35: 706 passed, 0 failed, 41 ignored. The two focused wait tests passed 10/10; all four producer tests passed.VirtualFreefailure incoherent_buffer_sanitizes_console_flags_and_statedid not recur in isolation; a matched main-only run was not reported.Regression run
Native Windows runs reported by @eizispark.
Not tested
AI use