Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
…#1395 in-place vtables Integrates 16 upstream PRs (xcl-dev#1380, xcl-dev#1383, xcl-dev#1384, xcl-dev#1395, xcl-dev#1398, xcl-dev#1400, xcl-dev#1404, xcl-dev#1405, xcl-dev#1419, xcl-dev#1420, xcl-dev#1421, xcl-dev#1423, xcl-dev#1424, xcl-dev#1427, xcl-dev#1428, xcl-dev#1429) on top of the Linux/Proton fork, plus three Proton/vkd3d-proton fixes caught during verification: - Recompiler (xcl-dev#1428): flatten IO_GROUP_LIMIT early-return in compute shaders so vkd3d-proton v3.1 dxil-spirv accepts the emitted CFG. - D3D12.X (xcl-dev#1395 + xcl-dev#867): skip UnadoptGuard on in-place-patched vtables and restore native vtables in runner::submit_list when a prior test adopted the singleton ID3D12Device. - Tests: match Wine centered default in window_position_modes. Verified under GE-Proton11-14 (RX 9060 XT / RADV): - gpu_sparse_vram_descriptors_buffers_and_xmem + gpu_valu_float_and_int + window_position_modes: 3 passed, 0 failed - Broad sweep (present, real, sparse, clamp, dstorage, gpu_valu, gpu_typed_buffer): 82 passed, 0 failed, 1 ignored, 0 skipped - 2.5 min retail title run (XCL_MEM_LIMIT=12G): 3,000+ frames at 30.0 fps, 6.0-6.1 GB flat committed RAM, 6.4 GB local VRAM, 0 DS failures.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
gut0to
left a comment
There was a problem hiding this comment.
AI-assisted review; I checked the guard lifetime against the D3D12 queue ordering described in the PR.
| static QUEUE_IDS: Mutex<Vec<usize>> = Mutex::new(Vec::new()); | ||
|
|
||
| fn arm_rewind_guard() { | ||
| let until = Instant::now() + Duration::from_secs(10); |
There was a problem hiding this comment.
The rewind guard expires after 10 seconds, but a queued ID3D12CommandQueue::Signal has no completion deadline: it can remain behind stalled or long-running work and retire after this window. Once the guard expires with no armed waits, the watchdog returns to cv.wait, so that late lower signal can rewind the fence without repair until some later event happens to wake the watchdog. Could the guard remain active while older signals are in flight, or otherwise track their completion rather than use a fixed timeout? AI-assisted review; I verified the fixed window and idle branch.
3ea5ef4 to
dd5ea20
Compare
|
Rebased onto current Tested
AI use: Rebase conflict resolution and test verification assisted by Antigravity with Gemini 4 Neon. |
|
Update for head Same RX 9070 / RADV / Proton Experimental machine, patched vkd3d-proton (master Tests (debug,
Retail title, 300 s (release, every run from a copy of the same warm-cache snapshot;
Not tested
AI use
Linux / AMD RDNA4 (RADV) test report for head Environment
Tested (debug test binary under Wine,
Not tested: full workspace suite, retail title run, native Windows. AI use: T3 Code / Antigravity (Gemini 4 Neon) merged, built, ran the tests on this machine, and drafted this report. |
…fter CPU releases
dd5ea20 to
b14487f
Compare
|
Rebased onto current Tested
AI use: Rebase conflict resolution and test verification assisted by Antigravity with Gemini 4 Neon. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Wine/NVIDIA verification of exact head
This closes the PR's listed Wine/vkd3d test gap for the focused rewind fixture only. No title was launched, and this does not establish correction of our separately observed Game-Init |
|
No open or merged PR makes the same change: #906 handles rewinds of the fence_x.rs completed-value mirrors, and #2499 (merged) only fixed the watchdog's lost wake-up; neither tracks a highest_completed floor per Write64 cell or keeps the watchdog polling after a CPU release. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
On native Windows D3D12, an older in-flight GPU
queue.Signal(&fence, v - 1)on a slower queue can retire after a higher GPU completion or a CPUfence.Signal(v)(from a cycle-break or watchdog release) and rewindID3D12Fence::GetCompletedValue()backwards. Two gaps inlist_x.rslet those rewinds stick and stall laterqueue.Waitcalls:prune_completed_waitsdid not track the highest observedGetCompletedValue()on aSyncCellor restore a fence that dropped belowcpu_signaled_max.max(highest_completed).ARMED_GPU_WAITSdropped to0andxcl-sync-watchdogwent straight back tocv.wait, so an older in-flight GPUSignalretiring milliseconds later rewound the fence with nothing awake to restore it.This change records
SyncCell::highest_completed, restores rewound fences inprune_completed_waits, and adds a shortREWIND_GUARD_UNTILwindow (10 s, polling at 20 ms whileARMED_GPU_WAITS == 0) armed whenever a CPU release or rewind repair occurs soxcl-sync-watchdogcatches post-release GPU rewinds.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs: trackSyncCell::highest_completed, detect/restore fence rewinds inprune_completed_waits, addREWIND_GUARD_UNTIL/arm_rewind_guard/rewind_guard_activeforxcl-sync-watchdog, and addsync_watchdog_and_prune_repair_fence_rewind_with_zero_armed_waits.Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13)(stable-x86_64-pc-windows-msvc), debug (tests) and release (smoke).main(9633138) asdd5ea20:cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib hle::d3d12x::list_x::tests— 35 passed, 0 failed (includingsync_watchdog_and_prune_repair_fence_rewind_with_zero_armed_waits);cargo +stable-x86_64-pc-windows-msvc build --release -p xclclean.3ea5ef4:cargo +stable-x86_64-pc-windows-msvc test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored (SKIPPEDon this adapter:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state).<game folder>): 60 s regression run below; in longer bring-up runs past the opening title card on this machine, multi-queueWrite64rewinds (0x6df -> 0x6de,0x6e1 -> 0x6e0,0x795 -> 0x794) were caught and repaired, cuttingGPU queue.Waittimeouts from 166 to 0 in the compared run.Regression run
main:
PR:
Not tested
d3d12SDKLayers.dllnot installed), Wine /vkd3d-proton.XCL_SAMPLE_*env vars.Write64rewinds do not occur; the zero-armed-waits rewind repair path is covered directly by the unit test and by longer local bring-up runs.AI use