Repository navigation
Conversation
|
Tested
So it only shows up when Also run: This review was AI-assisted. |
From xcl-dev/xcl#562 by @gridoe, squashed.
|
Native Windows integration check of this PR ( The tested integration is available at commit Tested
Not tested AI use |
|
Test run of Tested
I cannot say this PR causes the crash: I have one occurrence and no dump. It is a different symptom from @brothernog's (a removed device next to the new test, on an RTX 3050), but both point at flakiness when the lib tests run in parallel with this change, so it may be worth running Review: per-queue workers remove the head-of-line blocking described: each Not tested: no retail title or regression run (I have no unpacked game), no Run and report by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
There is a separate completion race in the existing
29c254a is a small test-only fix on main Tested
Not tested AI use |
|
Tested (PR head
Base Both smokes show a Not tested
AI use opencode with DeepSeek V4.1 Flash ( |
|
Regression run of Tested
main (e50836b): this PR (3dc82a8): What this does and does not say
Not tested
AI use
|
Previously all command queues sent their bottom-of-pipe CPU writes into a single shared worker channel. If one queue stalled on its GPU fence (up to WAIT_MS = 10 s), writes from other queues whose fences had already completed were head-of-line blocked behind it. Store a dedicated worker channel per QueueFence entry so independent queues drain concurrently, and remove the entry on CommandQueue Release (forget_queue) so the worker exits cleanly and closes its event handle. Isolate the new blocked-queue unit test on a WARP device with a Drop drain guard so its intentional fence wait cannot interfere with sibling GPU tests sharing the default hardware adapter. Assisted-by: Antigravity (Gemini)
3dc82a8 to
8ec2a46
Compare
|
Rebased onto Tested
main: PR: Not tested
AI use
|
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)
|
A retail run with this PR, in case it helps with what it covers and what it does not. Setup: RTX 2060 SUPER 8 GB, GTA VI 1.0.2.1, What it fixes: without it, one queue's write waited behind another queue's in the shared FIFO. It was written after newer values from the other queue ( What it does not fix: the title submits the same closed list again and again, 12 times in 300 s. So on this title the per-queue worker is needed, but it is not enough by itself. AI use: Claude Code (Claude Opus 5.5) ran this and wrote the note. |
|
Two contributors checked independently and found that #1643 solves the same problem in a different way: #1607, group D63. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
|
Thanks for the triage pointer (@throny). Comparing
Those two pieces are orthogonal — AI use: Diff comparison and summary drafted with Antigravity with Gemini 4 Neon. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Give each D3D12 command queue its own
cpu_writescompletion worker thread instead of multiplexing every queue through one global FIFO channel.Previously,
cpu_writes::aftersent every queue's bottom-of-pipe writes to a single sharedxcl-cpu-writesthread. If one queue waited on an unsignaled GPU fence (up toWAIT_MS = 10 s), bottom-of-pipe writes from other queues whose fences had already completed were head-of-line blocked behind it. Storing a dedicated channel perQueueFencelets independent queues drain concurrently, and removing the entry onCommandQueue::Release(forget_queue) lets its worker exit cleanly and close its Win32 event handle.What is in it
crates/xcl/src/hle/d3d12x/cpu_writes.rs: replace the single globalworker()channel with a per-queuempsc::Sender<Job>onQueueFence(preserving theLATEtimeout warning fromdbe9324), close the event handle when the worker exits, addforget_queue(queue), and add unit testblocked_queue_does_not_stall_another_queues_writes(isolated on a WARP device with aDropdrain guard so its intentional fence wait cannot interfere with sibling GPU tests sharing the default adapter).crates/xcl/src/hle/d3d12x/real.rs: callcpu_writes::forget_queuewhen aCommandQueuereaches refcount 0 inq_release.Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13)(stable-x86_64-pc-windows-msvc), debug (tests) and release (smoke)..\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 717 passed, 0 failed, 41 ignored.SKIPPEDGPU tests on this adapter: 2 (no wave64—gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware).cargo test -p xcl --lib cpu_writes, default threads): 20/20 consecutive runs passed (4 passed each, 0 device removals, 0 flakes).Regression run
main:
PR:
Not tested
XCL_SAMPLE_*env vars.AI use