Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
…d harden compute/sparse paths - crates/xcl/src/hle/d3d12x/pso_async.rs (fixes 1 MiB thread stack overflow / deadlock seen alongside ivall#611): Add urgent_queue() spawning dedicated 64 MiB-stack xcl-pso-wait-* workers and offload unstarted jobs in resolve_wait_for(..., None) instead of executing job() inline on the title's 1 MiB stack threads, avoiding silent Wine thread deaths without skipping compute dispatches (ivall#675, ivall#891). Guard build() with std::panic::catch_unwind plus a Drop completion guard so panics always call complete(p, 0) and notify waiters. - crates/xcl/src/hle/d3d12x/pso_async.rs & kernelx.rs (ivall#1288, ivall#505, ivall#232): Track active pipeline bind waits via HELD / title_held() and export kernelx::Sleep backed by title_sleep() so Sleep skips counting time spent blocked on background PSO compilation (XCL_SLEEP_HOLD=0 disables). - crates/xcl/src/hle/d3d12x/bind.rs, device_x.rs & real.rs (ivall#1195): Track console compute PSOs (CONSOLE_COMPUTE) and Dispatch-capable command signatures (DISPATCH_SIGNATURES) so ExecuteIndirect skips dispatches against untranslated console compute stand-ins or fallbacks while still forwarding native PC compute pipelines. - crates/xcl/src/hle/d3d12x/sparse.rs (ivall#1419, ivall#1277): Extract wait_fence_until() to ResetEvent before SetEventOnCompletion and re-check GetCompletedValue() until target or deadline so stale signals on the reusable auto-reset event cannot end waits early; bail cleanly from upload_dirty() if ring fence reclaim times out instead of holding STATE indefinitely. - crates/xcl/src/gpu/recomp/emit.rs & tests.rs (ivall#1361): Split GFX10.30 SADDR == 0x7F (ST immediate-only 0u base) from SADDR == 0x7D (v[ADDR] base) in Em::scratch and update ENC_FLAT_SCRATCH VADDR test encodings to 0x7D. Assisted-by: Antigravity (Gemini 4 Neon)
…#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! |
|
Test report for head Tested
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. |
|
AMD RDNA3 (native wave64) test report for exact head Tested
Not tested
AI use: Claude Code (Claude Sonnet 5.5) ran the build and tests and wrote this report; the numbers are from the runs above. |
Fix three descriptor-heap and view bugs in console_list.rs (#2461): - Call ensure_dispatch_heaps before SetComputeRootSignature so SetDescriptorHeaps never invalidates bound root-signature state (D3D12 #1419). - Bind the shared view heap in ensure_dispatch_heaps unconditionally when present (not only under XCL_HEAP_WINDOWS) so ResourceDescriptorHeap texture/UAV indexing always sees it, and guard zero window VAs before SetComputeRootUnorderedAccessView. - Prefer c.pc_gpu_uav when both CPU and GPU ClearUAV slots are hosted in GLOBAL so inline RAM copies (CopyDescriptorsSimple) never clear with an uninitialized g.pc_gpu_uav handle. Includes unit test clear_uav_prefers_cpu_slot_shared_gpu_handle_for_inline_copies. Assisted-by: Antigravity (Gemini 4 Neon High)
…event (cherry picked from commit 3861d2e, xcl-dev#1419; on top of xcl-dev#1277, wait_for_ms passes its own timeout to wait_fence_until and keeps returning whether the fence was reached)
|
Main already fixes this: commit b5e8baf (merged with #3203) rewrote AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Closing as superseded: this change is already on Two independent checks found this: Foniass's close list on #1607 and ours against current AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents. |
sparse::State::wait_forreuses a single auto-reset Win32 event (self.event) across waits onself.fence, callingSetEventOnCompletion(target, self.event)followed by oneWaitForSingleObject(self.event, 5000). If an earlier wait times out at 5 s and its pendingSetEventOnCompletion(old_target, self.event)completes afterwards,self.eventstays signalled (or fires mid-wait during a later call). Every subsequentwait_for(newer_target)then returns in under 1 ms beforeself.fenceactually reachesnewer_target, lettingbegin_slotreset an in-flight command allocator andreadback_after_executecopy from staging before the GPU copy finishes.This change extracts a small
wait_fence_untilhelper that callsResetEvent(event)beforeSetEventOnCompletionand loopsWaitForSingleObjectagainst the remaining deadline untilfence.GetCompletedValue() >= target.What is in it
crates/xcl/src/hle/d3d12x/sparse.rs: addwait_fence_until, switchState::wait_forto call it, and addwait_fence_until_ignores_stale_event_signalcovering both an already-signalled event and an earlier pendingSetEventOnCompletionfiring mid-wait.Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13)(stable-x86_64-pc-windows-msvc), debug (tests) and release (smoke).cargo +stable-x86_64-pc-windows-msvc build --workspaceandcargo +stable-x86_64-pc-windows-msvc test --workspace -- --test-threads=4: 725 passed, 0 failed, 41 ignored (includinghle::d3d12x::sparse::tests::wait_fence_until_ignores_stale_event_signal).SKIPPEDGPU/D3D12 tests on this adapter:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64)gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64)test_title_draws_with_a_root_signature_under_the_debug_layer(no d3d12SDKLayers.dll)uploads_start_from_each_subresources_state(no D3D12 debug layer (0x887A002D))<game folder>): 60 s regression run below; in longer bring-up runs past menus on this machine, once a single 5 s sparse wait timed out,wait_forpreviously logged 51 back-to-back ~1 ms timeouts before crashing in readback, and dropped to 0 after this fix.Regression run
main:
PR:
Not tested
d3d12SDKLayers.dllnot installed), Wine /vkd3d-proton.XCL_SAMPLE_*env vars.wait_fordoes not time out; the stale-event timeout path is covered directly by the unit test and by longer local bring-up runs.AI use
wait_fence_untilhelper, unit test, and PR description; all builds, tests, and smoke runs were executed locally on the hardware listed above.