Repository navigation
Conversation
… Linux PRs ivall#867/ivall#871/ivall#877 Update fork README for upstream/main 1ec4c98 (fenced late_release and queue-wait diagnostics), newly integrated PRs (ivall#838-ivall#841, ivall#849, ivall#851, ivall#864, ivall#875, ivall#876), live gameplay audio progress, and our three open upstream Linux PRs (ivall#867, ivall#871, ivall#877). Assisted-by: Antigravity (Google DeepMind)
|
Linux + NVIDIA data point for this stack (#867 → #871 → #877): the retail title crashes about 20 s after start with it, and does not without it. Setup: RTX 4070 Ti 12 GB (620.70.06), Fedora 45 kernel 7.3, GE-Proton11-14 Wine with its
Not root-caused. The common factor with the stack is the overflow AI-assisted (Claude Code). No game data attached. |
|
Linux / AMD RDNA3 lane report, head This PR hard-crashes the test harness on my Wine/RDNA3 lane. Not a test failure: the lib test binary dies with exit status 5, no panic message, no failure list. Everything after it (e2e, gpu_compute_e2e, pls_quota, predication_e2e targets) then fails to run, which is why the lane totals look collapsed (36 passed / 2 suites). Crash point, pinned with sequential runs ( Reproduced 3/3: full-suite lane run, isolated lib rerun, and a Counts only, no game data. 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. |
|
Rerun on the new head Native Windows / NVIDIA run, since Not tested lists native Windows. Tested
Not tested
AI use
|
|
I tested The trace recorded four lazy fallback reservations totaling 4,532 MiB of virtual address space. XCL sampled 1,846 presents and 45,240 DirectStorage executions with zero storage failures before the loading run hit the same OpenAI Codex with GPT-6.2-Sol high assisted with the test and report. |
|
Adding an AMD data point to @oeirughrepuiohg's report: the Tested: RX 9070 XT (RDNA4), Mesa RADV 26.3.1, CachyOS (kernel 7.3), Proton Experimental
Testing and write-up assisted by Claude Code (Claude Opus 5.5); runs on my own hardware, checked by me. No game data attached. |
|
Follow-up on the same RDNA4 setup, this time on the stack's own base (
So on its own base the stack gets much further on AMD than before, but a page of the coherent window is unreadable when the title copies from it under VRAM pressure. Happy to run a build with extra logging if useful. Testing and write-up assisted by Claude Code (Claude Opus 5.5); runs on my own hardware, checked by me. No game data attached. |
2f81d51 to
2dc68c2
Compare
|
Rebased onto
|
…ll#1221, and updated Linux PRs Update fork README for upstream/main 930e8b4 (BCPack BC1-BC7, XCL_PSO_WAIT_MS, low-VA ASLR < 2^40, alloc_pool, sparse tile parking/pool reuse, direct page moves, write-watch merge), newly integrated PRs (ivall#1078, ivall#1097, ivall#1139, ivall#1142, ivall#1150, ivall#1156, ivall#1182, ivall#1191, ivall#1195, ivall#1221), and updated Linux PRs (ivall#867, ivall#871, ivall#877). Assisted-by: Antigravity (Google DeepMind)
|
Retested
Happy to rerun with extra logging around coherent-window copies. Testing and write-up assisted by Claude (AI); runs on my own hardware. |
crastinator
left a comment
There was a problem hiding this comment.
Tested on RDNA2 under Proton with a patched vkd3d-proton: no new failures, and that includes the commits from #867 and #871 under it.
Tested (head 2dc68c2, merged onto main 930e8b4: no conflicts)
- AMD Radeon RX 6700 XT (RDNA2, gfx1031, RADV NAVI22, Mesa 26.3.1), Ryzen 7 5700X, Linux 7.3.5 (CachyOS)
- Proton Experimental 11.0-20261112's Wine, vkd3d-proton v3.1 + #257's patch (
-Db_ndebug=true, dxil-spirv53aac418from #775), DXVK v3.1.1-209dxgi, DXC 1.9.2609.5, libopus 1.5.2,XCL_REQUIRE_GPU=wave64,mesh(0 SKIPPED) - cross-built for
x86_64-pc-windows-msvc(clang-cl / lld-link, xwin SDK 10.0.26100), Rust 1.99.1, debug cargo test -p xcl --lib -- --test-threads=1plus every integration test (--test '*' -- --test-threads=1), compared per test with the same runs onmain930e8b4.mainhere: 8 stable Wine-lane failures (#530 ×2, #676, #890 ×2, e2e,pls_quota#810,predication_e2e#1272). Separately,title_textures::{placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted}andvram::d32s8_targets…fail together in 2 of 5mainruns (the #718 family), so I do not count a pass of those as a fix either way.- PR: 746 passed, 8 failed, 41 ignored (
main: 740 / 11 / 41, with the #718 flakes failing in that run). No test fails here that passes onmain.hle::d3d12x::sparse::tests14 passed and 1 ignored.
Not tested
- Anything that needs game files: no
XCL_SAMPLE_*was set, so the tests that read them (about 66) pass without running. - VRAM use with a retail title (no game here yet). NVIDIA.
AI use
- Claude Code (Claude Opus 5.5) merged, built and ran this and wrote the report; I checked the results.
2dc68c2 to
fbf1440
Compare
|
Rebased onto
|
|
Correction to my two earlier reports here (13:25 and 15:39 UTC): the What the crash report shows (run on
Retest with #684:
Testing and write-up assisted by Claude Code (Claude Opus 5.5); runs on my own hardware, checked by me. No game data attached. |
…er Wine (xcl-dev#175) vkd3d-proton validates iface->lpVtbl on adopted D3D12 objects passed back into d3d12core.dll (command allocators, lists, heaps, resources, PSOs, and fences). On unmodified assertion-free vkd3d-proton (such as GE-Proton or -Db_ndebug=true builds), XCL's in-place vtable adoption causes CreateCommandList/Reset to fail with E_INVALIDARG and fence waits to reject adopted fences. Under Wine (gated behind util::under_wine(), native Windows unchanged): - UnadoptGuard temporarily restores the native vtable on adopted command allocators (including alloc_pool backings and reset_pc_allocator), command lists, heaps (CreatePlacedResource/CreatePlacedResource1), RTV resources, and PSOs around calls into d3d12core.dll. - FenceProxy wraps title ID3D12Fence1 objects so the underlying PC fence keeps its native lpVtbl, unwrapping in queue Signal/Wait while preserving Fence::xcl-dev#12 completed_value_address and freeing on final Release. - real::create_raw_fence creates un-proxied native ID3D12Fence objects for XCL's own internal queue tracking (late_release, alloc_pool, list_x, cpu_writes, present, vram, drain_gpu) so un-adopted internal queues like sparse::queue() never receive a FenceProxy. Note: assert-enabled vkd3d-proton builds (such as stock Proton Experimental) still validate iface->lpVtbl inside an adopted object's own methods, so an assertion-free build (-Db_ndebug=true / GE-Proton) remains required for in-place adoption. Assisted-by: Antigravity (Google DeepMind)
On Linux with amdgpu, a multi-GiB coherent UMA window imported via OpenExistingHeapFromAddress (VK_EXT_external_memory_host userptr) causes two severe stalls: 1. GetWriteWatch(WRITE_WATCH_FLAG_RESET) on the userptr range triggers amdgpu MMU-notifier evictions (~100-200 ms/submit). 2. A multi-GiB userptr BO stalls every Vulkan GPU submission (~150 ms/frame, dropping PresentX frames). Under Wine (native Windows unchanged): - Key the default 512 MiB coherent_hint() cap on AMD GPUs (DXGI VendorId 0x1002) under Wine so NVIDIA Linux keeps a full-size coherent window (unless XCL_COHERENT_MB is set). - Allocate the coherent window without MEM_WRITE_WATCH and exclude it from watch_regions(), notifying title_textures on DirectStorage writes into it and hashing small/dynamic coherent textures with a 1/16 round-robin sweep for large ones. - Route overflow PAGE_GRAPHICS_* title GPU heaps into the sparse VRAM windows so shaders still read them directly. Assisted-by: Antigravity (Google DeepMind)
…#175) Under Wine, overflow PAGE_GRAPHICS_* title heaps are routed to sparse VRAM windows (xcl-dev#871). Eagerly mapping 64 KiB VRAM tiles for the full reserved heap up front consumes ~3.2 GiB of local VRAM for zero-filled or never- written pages before the title even leaves the menus. Add sparse::alloc_lazy (used under util::under_wine() only; native Windows unchanged): - Commits CPU pages up front so host accesses never fault, while deferring 64 KiB VRAM tile allocation until the first non-zero CPU write or GPU write target registration (placed buffers, buffer UAVs, and command-list memory writes via sparse::ensure_lazy_mapped). - Unit tests cover lazy-range overlap, hole masks, non-zero page detection, and coalesced lazy tile allocation. Assisted-by: Antigravity (Google DeepMind)
fbf1440 to
b112fe7
Compare
|
On an 8 GiB RTX 5060 Laptop GPU under Proton, deferring tiles saved about 3.3 GiB of early sparse backing. I ported the lazy allocation from this PR ( With Six focused tests executed and passed. A synthetic RTX test checked that a zero write left a tile unmapped, a nonzero CPU write survived GPU readback, an explicit destination received a tile and releasing the allocation removed its mappings. In the title, the eager run stopped at the free-VRAM guard at 30.1 s. The lazy run stopped on host memory pressure at 34.4 s, with 2,350 MiB of VRAM free at the last sample. Both windows were still black, before account input. No new gameplay milestone. On the same lazy build I also tried a smaller coherent window. Two fresh copies of one Series X profile started with 2,048 or 1,536 MiB, the same 1,024 MiB sparse-routing threshold and a 6,144 MiB host available-memory cutoff. Both kept the 563 and 596 MiB allocations coherent and routed the 1,172 and 2,200 MiB allocations to sparse VRAM. At 512 draws both used 1,242 MiB of coherent memory. The larger window reached the host cutoff at 33.1 s, the smaller at 46.6 s. Both displayed black throughout the captures. This confirms the smaller window preserved placement in this part of startup. The runs reached different stages, so the duration does not measure a loading-speed improvement. A separate Series S (Lockhart) startup with a 4,096 MiB guest budget helped distinguish another source of VRAM use. In the lazy integration above, shrinking the coherent window from 1,536 to 768 MiB saved 768 MiB of resident host memory. Both retained the 194 and 258 MiB coherent allocations and still mapped over 4 GiB of sparse GPU tiles before the first submit. With temporary mapper counters and the 768 MiB window, 66,592 new 64 KiB tile bindings (4,162 MiB) came from mapping physical pages to their destination. The explicit commit path added 20 MiB and the ordinary eager allocation path added 84.25 MiB. Private-home I/O and the lazy CPU and GPU paths had added zero at that sample. Three focused regressions passed on the instrumented build. The startup remained black and stopped at the 2 GiB VRAM reserve. This identifies the separate allocation path without changing its mapping semantics. Bazzite 44, driver 615.78.08, Proton Experimental 11.0-20261112, local vkd3d-proton 3.1.0 based on |
Lazily allocate 64 KiB sparse VRAM tiles for overflow
PAGE_GRAPHICS_*heaps under Wine/vkd3d-proton so zero-filled or untouched pages do not exhaust local VRAM on 16 GiB GPUs. Part of #175, #1701, and #1773.Stacked on #871; only the top commit (
b112fe7) belongs here.In #871, overflow
PAGE_GRAPHICS_*heaps under Wine are routed into the sparse VRAM windows instead of the capped coherentuserptrwindow. Eagerly committing 64 KiB VRAM tiles for the entire allocation up front consumes ~3.2 GiB of local VRAM for zero-filled or never-written pages before a retail title even leaves the menus (dropping local VRAM usage on a 16 GiB RX 9060 XT from ~11.6 GiB to ~8.1 GiB in menus).All lazy-allocation paths are gated behind
util::under_wine()(withsparse::ensure_lazy_mappedshort-circuiting when no lazy ranges exist); native Windows behavior is unchanged.What is in it
crates/xcl/src/hle/d3d12x/sparse.rs: addalloc_lazy(commits CPU pages up front so host accesses never fault, while deferring 64 KiB VRAM tile allocation until first non-zero CPU write during dirty-page upload or explicit GPU write-target mapping viaensure_lazy_mapped), clean up lazy ranges onfree, integrate with upstream parked-tile decommit / retired pool reuse (#532/#923), and add unit tests covering lazy-range overlap, hole masks, non-zero page detection, and coalesced lazy tile allocation.crates/xcl/src/hle/kernelx.rs: usesparse::alloc_lazyunderutil::under_wine()for overflowPAGE_GRAPHICS_*sparse allocations.crates/xcl/src/hle/d3d12x/real.rs&crates/xcl/src/hle/d3d12x/list_x.rs: callsparse::ensure_lazy_mappedwhen registering placed buffers, buffer UAVs, and command-list GPU memory writes so GPU-written ranges have tiles mapped before execution.Tested
GE-Proton11-14-x86_64,vkd3d-protonmasterec20719452e916b(-Db_ndebug=true), DXC 1.9.2609.5, cross-compiledx86_64-pc-windows-msvc(clang-cl+lld-link).main689f2db+ D3D12.X: preserve native vtables and wrap fences for vkd3d-proton under Wine (#175) #867 (a4c5a82) + Memory: avoid amdgpu userptr stalls under Wine (#175) #871 (b3f2f7c) and verified under Proton (--test-threads=1,XCL_DXC_DIRset for GPU tests):hle::d3d12x::sparse::tests: 15 passed, 0 failed, 1 ignoredhle::d3d12x::real::: 36 passed, 0 failed, 0 ignoredhle::d3d12x::list_x::: 27 passed, 0 failed, 0 ignoredhle::d3d12x::late_release::: 2 passed, 0 failed, 0 ignoredhle::d3d12x::alloc_pool::: 3 passed, 0 failed, 0 ignoredgpu::uma::tests: 7 passed, 0 failed, 0 ignoredhle::d3d12x::title_textures::tests: 13 passed, 0 failed, 0 ignoredhle::dstorage::tests: 17 passed, 0 failed, 0 ignored--exact gpu::recomp::tests::gpu_sparse_vram_descriptors_buffers_and_xmem gpu::recomp::tests::gpu_valu_float_and_int: 2 passed, 0 failed, 0 ignored, 0 skippedGE-Proton11-14(XCL_NETWORK=0 XCL_PSO_PRELOAD=0 XCL_RUN_SECONDS=60 XCL_ACTIVITY=1,VKD3D_CONFIG=""):1134frames shown (1134PresentX,49 42 10presents/2 s) with0crashes and0device removals.Regression run
Produced under Wine (
GE-Proton11-14, AMD Radeon RX 9060 XT,vkd3d-proton ec20719452e916b,XCL_NETWORK=0 XCL_PSO_PRELOAD=0 XCL_RUN_SECONDS=60 XCL_ACTIVITY=1,VKD3D_CONFIG="") using thexcl-smoke v1log extraction format (Linux environment; native Windowsscripts/smoke.ps1could not be run;peak commit: 0 MBis what689f2dblogs under Wine before #1097).main(689f2db):This PR (
b112fe7, stacked on #871):Not tested
util::under_wine()).AI use