Repository navigation
Conversation
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)
|
Hardware check of Tested
Regression run PR ( Not tested
AI use
|
|
Updated head I ran the unmodified 60-second smoke script from clean release checkouts of main and the updated PR head, on the same RTX 5080, with fresh offline state for each run. Both exited cleanly. Main Updated PR head On the local integration containing both changed Rust files byte-for-byte from Tested on native Windows 11 build 26300, Core Ultra 7 265, RTX 5080 (610.88), Rust 1.96.0 MSVC. At the exact PR head 60-second retail regression pair. Clean release builds of the PR parent and head. Each checkout's unmodified Parent: PR head: Longer integration runs. On our separate integration build based on AI use: Codex (GPT-6) ran the tests, checked the captured reports and drafted this comment. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
Keep the legacy fallback warning from xcl-dev#873 and hold deferred 64-bit progress until its producer fence completes. Focused cpu_writes suite: 3 passed on RX 9070 / GE-Proton with both paths exercised. Assisted-by: omp (GPT-6.2 Sol)
|
Read of In Holding the value back is the point of the PR, so a very long wait may be the right call. A hard upper bound (a few minutes, then an error log and either dropping the write or writing it) would keep one hung queue from keeping a thread and the queue's later writes forever. Whether the title can produce a producer fence that never completes without a device removal I don't know. AI use: read with Claude Code, Claude Sonnet 5.5, against the PR head; the point is mine. |
… 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.
|
Read of In Holding the value back is the point of the PR, so a very long wait may be the right call. A hard upper bound (a few minutes, then an error log and either dropping the write or writing it) would keep one hung queue from keeping a thread and the queue's later writes forever. Whether the title can produce a producer fence that never completes without a device removal I don't know. AI use: read with Claude Code, Claude Sonnet 5.5, against the PR head; the point is mine. |
|
Two world-loading runs of Tested
Not tested
AI use
|
Empirical test report (a314f04)Verified PR #850 at Hardware / environment
Commands and results
Observed behavior
Not tested The full GPU workspace suite and game smoke runs were omitted. AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
Follow-up to #708. A non-UMA
Write64BitValueBottomOfPipeXprogress value could become visible when its producer fence was still pending. Wait for confirmed completion before publishing the 64-bit word, without changing the upstream GPU wait bridge.What is in it
mainat1ec4c98: D3D12.X: name XCL's own tile-mapping lists and say when a wait for a queue gives up #873’s throttled warning still reports the legacy fallback, without suggesting that a deferred 64-bit progress value was published early.Tested
beaa245observed0x123456789abcdef0while the producer fence was still zero. With the patch,cpu_writes::tests::reported 3 passed, 0 failed, 0 ignored, including independent queue progress.maina1672ef,cargo test --workspace -- --test-threads=4reported 714 passed, 0 failed, 41 ignored, no GPU skips.cargo test -p xcl --lib cpu_writesreported 4 passed, 0 failed.a314f04: on the RX 9070 / GE-Proton setup above,cargo test --locked --offline --target x86_64-pc-windows-gnu -p xcl --lib hle::d3d12x::cpu_writes::tests:: -- --test-threads=1 --nocapturereported 3 passed, 0 failed, 0 ignored, no skips. The regression exercised both the legacy fallback warning and the 64-bit pending-producer warning while the fence was still pending.Regression run
The previous native Windows report contains the clean
mainbaseline below and a smoke for the prior PR head8ad4155. That PR-head smoke does not apply after the merge. A fresh run ata314f04is pending; the baseline is reusable for the same setup, title, and duration.Not tested
a314f04; wave32-only GPUs and gameplay past the menus.AI use