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 / 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 both. Tested
Not tested
AI use
|
|
Test report for 593b2e2 (this PR's head, on its own base), Linux:
For comparison, same machine:
Not tested: Windows, AMD, Merging this into 09940bb conflicts in AI use: Hermes agent with Claude Opus 5.5 ( |
|
Test report for Tested: AMD Radeon RX 9070 XT (RDNA4, 16 GiB), Mesa RADV 26.3.1, CachyOS (kernel 7.3), Proton Experimental
So on Proton Experimental an 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 to my report above, in case someone wants to make stock Proton Experimental's vkd3d-proton (assertions on) work by extending this PR's
So for stock Proton the realistic options seem to be proxy objects instead of in-place vtable replacement, or an assertion-free vkd3d-proton build (as Testing and write-up assisted by Claude Code (Claude Opus 5.5); runs on my own hardware, checked by me. |
…l, a pointer for ivall#867 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l, a pointer for ivall#867 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
593b2e2 to
46944c2
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)
There was a problem hiding this comment.
Tested on RDNA2 (RADV) against three vkd3d-proton builds. It works with an unpatched vkd3d-proton built with -Db_ndebug=true, and two gaps are left. Proton's own vkd3d-proton still aborts at two other vtable assertions. And on the unpatched build, one sparse test leaves later GPU tests reading zeros.
Tested (head 46944c2, which already contains main 930e8b4)
- 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, DXVK v3.1.1-209
dxgi, DXC 1.9.2609.5,XCL_REQUIRE_GPU=wave64,mesh(0 SKIPPED). Cross-built forx86_64-pc-windows-msvc, Rust 1.99.1, debug. cargo test -p xcl --lib -- --test-threads=1plus every integration test (--test-threads=1), compared per test withmain930e8b4on the same build:
| vkd3d-proton | main |
this PR |
|---|---|---|
| Proton Experimental's own (asserts on) | the lib binary aborts at iface->lpVtbl == &d3d12_heap_vtbl (vkd3d_private.h:1077). The e2e title hits the same assertion, so that test fails. gpu_compute_e2e aborts at &d3d12_root_signature_vtbl (:2111), and predication_e2e and sparse_reinit abort too |
the same aborts, at the same assertions |
v3.1, no XCL patch, -Db_ndebug=true, dxil-spirv 53aac418 |
699 passed, 52 failed, 41 ignored | 731 passed, 22 failed, 41 ignored. 30 fixed, 0 new; 3 of the 30 are the #718 flaky group |
v3.1 + #257's patch, -Db_ndebug=true, same dxil-spirv |
740 / 11 / 41 | 742 / 11 / 41, no new failure |
- So "unmodified vkd3d-proton" holds when the build compiles its assertions out. The
vkd3d-protonthat Proton (Experimental, and I expect other Proton builds) ships still tripsd3d12_heap_vtblandd3d12_root_signature_vtblon XCL's adopted heaps and root signatures. - On the unpatched
-Db_ndebugbuild, 14 of the 22 remaining failures are a chain: everygpu::recomptest aftergpu_sparse_vram_descriptors_buffers_and_xmemin list order reads zeros back. For example,gpu_valu_float_and_intgetslane 0 v_add_f32 left: 0.0, andgpu_unified_memory_arenagetss_load from process memory left: (0, 0). The--exactpairgpu_sparse_vram_descriptors_buffers_and_xmem gpu_valu_float_and_intreproduces it 2/2, andgpu_valu_float_and_intalone passes 2/2. With #257's patch the same pair passes. It looks like something the sparse test does goes through a vkd3d-proton path that is still not covered without the patch. The other 8 are the Wine-lane failuresmainhas with the patch too (#530 ×2, #676, #890 ×2, e2e,pls_quota#810,predication_e2e#1272).
Not tested
- A retail title. NVIDIA. GE-Proton's vkd3d-proton.
- Anything that needs game files: no
XCL_SAMPLE_*was set, so the tests that read them (about 66) pass without running.
AI use
- Claude Code (Claude Opus 5.5) built the vkd3d-proton variants, ran the tests and wrote this report; I checked the results.
Update: retested at 6e94390 (rebased on main b7aa9f3, same RX 6700 XT / RADV 26.3.1 / Proton Experimental Wine; --test-threads=1, compared per test with main b7aa9f3 on the same build)
| vkd3d-proton | main b7aa9f3 |
6e94390 |
|---|---|---|
v3.1, no XCL patch, -Db_ndebug=true, dxil-spirv 53aac418 |
717 passed, 53 failed | 760 passed, 12 failed: 41 fixed, 0 new |
| v3.1 + #257's patch (same build otherwise) | 761 / 9 | 763 / 9, no new failure |
| Proton Experimental's own (asserts on) | aborts (d3d12_heap_vtbl, d3d12_root_signature_vtbl) |
the same; #1395's part |
- The chain is gone.
--exact gpu_sparse_vram_descriptors_buffers_and_xmem gpu_valu_float_and_intpasses 3/3, and all 14gpu::recomptests after it pass in the full run. - On the unpatched build, the 12 failures left are the same 9
mainhas with #257's patch, plus the #718 trio (title_textures×2,vram::d32s8). That trio fails in about 2/5 runs here onmaintoo. So with this PR, the unpatched-Db_ndebugbuild reaches parity with the patched one in the test suite. - Not tested: #867 + #1395 together (once #1395's
UnadoptGuardcondition is in). A retail title.
|
For the assert-only classes on stock release builds (heap, resource, descriptor heap, query heap, root signature, pipeline state, command signature), #1395 writes XCL's PC slots into vkd3d-proton's own tables, so those objects keep their vtable pointer. It complements this PR rather than replacing it. One thing for composing the two: |
…in-place vtables Integrates 16 upstream PRs (ivall#1380, ivall#1383, ivall#1384, ivall#1395, ivall#1398, ivall#1400, ivall#1404, ivall#1405, ivall#1419, ivall#1420, ivall#1421, ivall#1423, ivall#1424, ivall#1427, ivall#1428, ivall#1429) on top of the Linux/Proton fork, plus three Proton/vkd3d-proton fixes caught during verification: - Recompiler (ivall#1428): flatten IO_GROUP_LIMIT early-return in compute shaders so vkd3d-proton v3.1 dxil-spirv accepts the emitted CFG. - D3D12.X (ivall#1395 + ivall#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.
46944c2 to
6e94390
Compare
|
Rebased onto
|
|
@gustavsi thanks: retested |
…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)
6e94390 to
a4c5a82
Compare
… vtable vkd3d-proton takes a heap, resource, descriptor heap, query heap, root signature, pipeline state or command signature only with its own vtable: an assert(iface->lpVtbl == &..._vtbl) in each of its methods and wherever one is passed in (vkd3d_private.h). The official release builds keep these asserts, so adoption, which replaces the vtable pointer, ends the process (status 3) at the first such object: under Wine with the v3.1 release DLLs the test title stops at its first heap after 6 checks. Under Wine (util::under_wine) these classes now get XCL's PC slots written into the runtime's own table instead (VirtualProtect, as XAudio2's patch does), only up to the PC interface's method count, and only when the object answered QueryInterface for that interface with itself and every slot up to there is in the runtime's module. orig_fn finds the entries from before by the table. Classes are made one at a time, so no thread scans a table another is writing. The table is shared by every object of the class (swap-chain buffers too); the overrides already take objects XCL did not create. These classes have no console slots past the PC interface, so nothing is lost there. Not covered, by design: fences (console xcl-dev#12 is past the PC table), command allocators and lists (vkd3d-proton checks those at run time, E_INVALIDARG; xcl-dev#867 handles them), bundles. On Windows nothing changes: every new path is behind under_wine(), and orig_fn's lookup has no table there. Part of xcl-dev#175. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Preserve native COM vtables around
d3d12core.dllcalls and wrapID3D12Fence1in a thin proxy under Wine so XCL runs on unmodified assertion-freevkd3d-proton(novkd3d-protonvtable-check patch required). Part of #175 and #1701.vkd3d-protonvalidatesiface->lpVtblon adopted D3D12 objects passed back intod3d12core.dll(ID3D12CommandAllocator,ID3D12GraphicsCommandList,ID3D12Heap,ID3D12Resource,ID3D12PipelineState, andID3D12Fence, including on its async queue thread). With XCL's in-place vtable adoption, unmodified assertion-freevkd3d-proton(GE-Protonor-Db_ndebug=truebuilds) rejects adopted allocators/lists withE_INVALIDARGand fails fence calls. Native Windows behavior is unchanged (all new paths are gated behindutil::under_wine()).Note: assert-enabled
vkd3d-protonbuilds (such as stock Proton Experimental) also validateiface->lpVtblinside an adopted object's own methods (for exampled3d12_heap_GetDesc), so either an assertion-free build (GE-Proton/-Db_ndebug=true) or complementary in-place vtable patching for the assert-only classes (#1395) is needed there.What is in it
crates/xcl/src/hle/d3d12x/real.rs:UnadoptGuardto temporarily restore native vtables on adopted command allocators (includingalloc_poolbackings andreset_pc_allocator), command lists, heaps (CreatePlacedResource/CreatePlacedResource1), RTV resources, and PSOs around calls intod3d12core.dll.FenceProxy(wrap_fence_proxy,unwrap_fence,fence_proxy_release,fence_proxy_signal,fence_proxy_qi) so title PC fences keep their nativelpVtblwhile preserving console slot#12(completed_value_address), unwrapping inCommandQueue::Signal/Wait, and freeing on finalRelease.create_raw_fenceso XCL's own internal queue tracking (late_release,alloc_pool,list_x,cpu_writes,present,vram,drain_gpu) creates raw un-proxiedID3D12Fenceobjects and never passes aFenceProxyto un-adopted internal queues likesparse::queue().wine_vtable_tests::unadopt_guard_restores_native_vtable_and_reapplies_extended_on_dropandfence_proxy_forwards_signal_unwraps_and_frees_on_final_release).crates/xcl/src/hle/d3d12x/alloc_pool.rs,cpu_writes.rs,late_release.rs,list_x.rs,present.rs,vram.rs:real::create_raw_fencefor XCL's internal fences and guardalloc_pool::reset_list/KickoffX/ mid-list split calls withUnadoptGuard.crates/xcl/src/gpu/recomp/runner.rs:submit_listusingreal::UnadoptGuardso tests running afterreal::init()adopts the process-wide singletonID3D12Devicedo not submit an adopted command list to the runner's pre-existing un-adoptedID3D12CommandQueue(fixes the 14-test zero-read chain reported by @crastinator).Tested
GE-Proton11-14-x86_64,vkd3d-protonmasterec20719452e916b(-Db_ndebug=true, unmodified vtable checks), DXC 1.9.2609.5, cross-compiledx86_64-pc-windows-msvc(clang-cl+lld-link).main689f2dband verified under Proton (--test-threads=1,XCL_DXC_DIRset for GPU tests):hle::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 ignoredhle::d3d12x::vram::: 10 passed, 0 failed, 1 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=""):main(689f2db) exits0x3(2crashes,0frames) because unmodifiedvkd3d-protonrejects adopted objects; this PR (a4c5a82) runs the full 60 s cleanly withexit: 0x0,0crashes,0device removals, and14frames shown (25PresentX,0 0 1presents/2 s — amdgpuuserptrstalls without Memory: avoid amdgpu userptr stalls under Wine (#175) #871).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 (
a4c5a82):Not tested
util::under_wine()).vkd3d-protonbuilds (needs-Db_ndebug=true/GE-Protonor D3D12.X: under Wine, vkd3d-proton's assert-checked classes keep their vtable #1395).AI use