D3D12.X: under Wine, vkd3d-proton's assert-checked classes keep their vtable #1395
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1395
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1395/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@cmt8 on GitHub · 2026-11-24 15:31 UTC · original
wine-inplace-vtables→main· +152 −2 · 1 files · 1 commits · closed without mergingUnder Wine, XCL writes its PC slots into vkd3d-proton's own vtables for the seven classes vkd3d-proton checks only by assertion, so those objects keep their vtable pointer. Part of #175.
vkd3d-proton accepts heaps, resources, descriptor heaps, query heaps, root signatures, pipeline states and command signatures only with its own vtable:
assert(iface->lpVtbl == &…_vtbl)in each of their methods (vkd3d_private.h). The official release builds keep the asserts, so XCL's adoption, which replaces the vtable pointer, ends the process at the first heap. A guard around host calls cannot fix that (see the 14:12Z comment on #867): the asserts sit in the objects' own methods.This complements #867: #867 covers allocators and lists (run-time checks) and fences; this covers the assert-only classes. Neither alone runs on a stock release build.
What is in it
crates/xcl/src/hle/d3d12x/real.rs(+152 / −2):patch_in_place,in_place_kind,in_place_original;class_forpatches in place only when the object answers QueryInterface for the PC interface with itself and every slot up to that interface's method count is in the runtime's module. Everything is behindutil::under_wine().real::in_place_tests::a_vtable_patched_in_place_keeps_its_originals_and_its_neighbour(no GPU).Tested
dxgi, DXC 1.9.2609.5, rustc 1.100.0,x86_64-pc-windows-gnu, debug.d3d12.dll502694a5…,d3d12core.dll0dfd690a…).cargo test --workspace --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4, aborted binaries rerun one test per process; noSKIPPED:main930e8b4fd97d91main→ this PR changes 3 tests, each from an abort to a fail on the allocator's run-time check (#867's scope). No pass becomes a fail.UnadoptGuard::newmust skip tables patched in place (for those,ext[-1]is not the native table). One condition; tested with it.Regression run
scripts/linux/smoke.sh(the same block asscripts/smoke.ps1), 60 s of a retail title,XCL_COHERENT_MB=512, same hardware as above.-Db_ndebug=true, its patch, dxil-spirv53aac41): the only kind of build on whichmainruns a title under Wine. On it this PR's in-place path is active but nothing asserts either way, so the blocks show only that nothing regressed; what the PR fixes is in the table above.main:This PR:
Not tested
under_wine()), NVIDIA, Intel.ec20719was read, not run: same seven tables and asserts.AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_019twRmV74bPu5j5TBXjrNug
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@futurepro62 on GitHub · 2026-11-24 15:55 UTC · original · edited 2026-11-24 16:01 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
fd97d91(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_vtable_patched_in_place_keeps_its_originals_and_its_neighbour.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
@TobiasFornell on GitHub · 2026-11-24 16:11 UTC · original
Tested #1395 together with #877 (
2dc68c2, which includes #867/#871) plus your composition hint (UnadoptGuard::newskips in-place patched tables) on stock Proton Experimental 11.0-20261112's own vkd3d-proton 3.2.0 (assert-enabled), RX 9070 XT (RDNA4) / RADV 26.3.1, title 1.0.2.1. This covers the two items listed as untested in the description (Proton's own vkd3d-proton, and a retail title on a stock release build with #867 together).ID3D12Heap1 – 10 PC methods written into the runtime's own vtable). Without #1395, the same stack aborted atiface->lpVtbl == &d3d12_heap_vtbl(vkd3d_private.h:1077) a few seconds in. Now it boots, first game frame 3840x2160, account picker passed, logos at ~30 fps, no device removal.ucrtbase.dll+0x1720b, read at0x400016000). The ndebug v3.1 build fails identically, so it looks unrelated to #1395.Testing and write-up assisted by Claude (AI); runs on my own hardware.
@DavidM1911 on GitHub · 2026-11-24 16:55 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@nicklin11 on GitHub · 2026-11-24 19:52 UTC · original
Test report for #867 and #1395 (each head, and the two together), on RDNA2 / RADV under Wine (the test suite only, no game run).
Tested
d3d12.dll502694a5…,d3d12core.dll0dfd690a…), DXVK 3.1.1dxgi, DXC 1.9.2609, rustc 1.100.0,x86_64-pc-windows-gnu, debug.wine <test exe> --exact <name> --test-threads=1, 4 at a time), because a vkd3d-proton assertion ends the whole process. All 17 test targets of the workspace, whole suite per tree.mainb7aa9f3(#867's head6e94390is based on it, so it needed no rebase):mainb7aa9f36e94390fd97d91+ guard skip (90b4b21)(passed includes 2 tests that print
SKIPPEDand pass:test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state)The third column merges the two heads (textually clean) and adds the two-line change @cmt8 described in #1395's discussion,
UnadoptGuard::newreturningNonewhenin_place_original(*(obj as *const usize), 0).is_some(). That change is mine, applied by hand and not reviewed by them.Joined per test against
main:a_recording_outlives_the_reset_of_the_titles_allocatorfails → passes;mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares(a null read insided3d12core) aborts → passes; its two new tests pass. The remaining 10 vtable assertions are on a heap (4), a resource (3) and a root signature (3); none is on a fence any more.sparse_reinit,gpu_compute_e2e×2,gpu_sparse_vram_descriptors_buffers_and_xmem,bind,console_format_query,title_textures×2,vram); #1395's new testa_vtable_patched_in_place_keeps_its_originals_and_its_neighbourpasses. No test that passed onmainfails or aborts on any tree.predication_e2e::set_predication_buffer_state_and_kickoff(heap/resource assertion →assertion left == right failed: EQUAL_ZERO(0) must skip dst[0]atpredication_e2e.rs:360, 4 of 4 reruns). The assertion no longer stops it, so it now reaches the predication check, which fails. I have not looked into why.gpu_f64_roots,gpu_f64_math_random,gpu_nonfused_mad_and_mac_prevent_fma_contraction(RADV numerics, #530 / #472),pls_quota(#810, ERROR_FILE_NOT_FOUND under Wine),gpu_depth_buffer_created_for_unordered_access_is_placed("UNORDERED_ACCESS without the UAV flag"), e2etest_title_runs_and_game_folder_is_untouched.gpu::recomp::tests::jumps_to_outer_loop_heads_are_structured, a null read (movq 0x118(%rdi)) insided3d12coreinCreateComputePipelineState, on the test's own un-adopted device. Not related to #867 or #1395.Not tested
scripts/smoke.ps1(no Windows machine here), nothing on Windows.AI use
@wayback94 on GitHub · 2026-11-25 02:20 UTC · original
Test report for #867 and #1395 on NVIDIA under Wine, with Proton Experimental's own vkd3d-proton (assertions on). The test suite only, no game run.
With #867 (
a4c5a82) and #1395 (fd97d91) together, plus the guard skip @cmt8 suggested, no vtable assertion is left in the suite on Proton's own vkd3d-proton, on an RTX 3080. That removes 12 aborts. The e2e test title now gets past thed3d12_heap_vtblassertion and fails only on the two checks it fails on the patched build too. Neither PR alone is enough. On the patched vkd3d-proton (#257), both together change no test result.Tested
NVIDIA GeForce RTX 3080 10 GB (Ampere, 32-lane waves only), driver 620.73.04 (open kernel module); Intel i7-13700K, 32 GB; CachyOS, kernel 7.3.5-2-cachyos
Proton Experimental
experimental-11.0-20261112: its Wine, DXVKdxgi(sha2562814edc3…) andlibvkd3d-*in a prefix made with #257'ssetup-prefix.sh. Two prefixes, which differ only ind3d12.dll/d3d12core.dll:files/lib/wine/vkd3d-proton/x86_64-windows, version2576c0b4), assertions on (iface->lpVtbl == &…_vtblstrings ind3d12core.dll). sha256d3d12.dllfc2bbef0…,d3d12core.dll93565013…-Db_ndebug=true(d3d12.dllaf08ba0e…,d3d12core.dll7c1fc8e0…), as a controlRust 1.100.0,
x86_64-pc-windows-gnu(mingw-w64-gcc 16.2.0), debug. DXC 1.9.2609.Trees, each a clean worktree. All are merges onto
main8f5fca5(git merge, no conflicts):main8f5fca5a4c5a82fd97d91+ the guard skip belowfd97d91The guard skip is in neither PR. It is @cmt8's suggestion on #867, applied by me the same way as in @nicklin11's run:
Every test in its own process (
wine <test exe> --exact <name> --test-threads=1), 4 at a time, 120 s timeout, for all 17 test targets. A vkd3d-proton assertion ends the process, so a one-pass run says nothing after the first one. Environment as in #257'srun.sh:WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b",VKD3D_CONFIG=ignore_shared_fence,DXVK_CONFIG='dxgi.hideNvidiaGpu = False',XCL_NETWORK=0,XCL_DXC_DIR. NoXCL_SAMPLE_*.main, stockmain, patched"Passed" includes 14 tests that print
SKIPPEDand pass, the same 14 on every tree:no wave64(wave64 variants ingpu::recomp::lower/lower_dxil/tests);lower_dxil::tests::f16_programs_on_the_gpu: the wave32 per-lane form is refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's));heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows);pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): Not implemented. (0x80004001)).Per test against
mainon the stock prefix. Every result that differs between A and C was rerun 3 more times on both trees, and all 3 gave the same result each time:Aborts on
main, stock: 11 at vtable assertions (d3d12_fence_vtbl×4,d3d12_heap_vtbl×3,d3d12_root_signature_vtbl×2,d3d12_resource_vtbl×2), plusmid_list_write64_wait64_split_avoids_cycle_and_reuses_spares(exit 5) and the two below that aren't about vtables. The e2e test fails because its title hitsd3d12_heap_vtbl(vkd3d_private.h:1077).#867 alone:
a_recording_outlives_the_reset_of_the_titles_allocatorgoes from failed to passed.mid_list_write64_wait64_split_avoids_cycle_and_reuses_sparesgoes from aborted to passed. Its two new tests pass. The fence assertions are gone, and the heap / resource / root-signature ones remain (d3d12_heap_vtbl×4,d3d12_root_signature_vtbl×4,d3d12_resource_vtbl×3).#1395 alone: the heap / root-signature / resource assertions are gone, and its new test passes. The fence assertions remain (
d3d12_fence_vtbl×7). Two tests go from an abort to a failure:gpu_sparse_vram_descriptors_buffers_and_xmem(tests.rs:3993) andcreate_list_reset_and_clear_state_track_initial_pso_on_d3d12(bind.rs:1501). Both pass on C.Both together: all vtable assertions are gone. These 11 go from aborted to passed:
gpu_compute_e2e×2sparse_reinitgpu_sparse_vram_descriptors_buffers_and_xmemcreate_list_reset_and_clear_state_track_initial_pso_on_d3d12mid_list_write64_wait64_split_avoids_cycle_and_reuses_sparesgpu_placed_console_depth_target_with_clear_valuepassthrough_mesh_stream_accepts_a_triangle_driver_blobtitle_textures×2vram::d32s8_targets_take_their_own_size_of_video_memorya_recording_outlives_the_reset_of_the_titles_allocatorgoes from failed to passed, and all three new tests pass. No test that passes onmainfails or aborts.predication_e2e::set_predication_buffer_state_and_kickoffgoes from an abort (d3d12_resource_vtbl) to a failure (EQUAL_ZERO(0) must skip dst[0],predication_e2e.rs:360), as @nicklin11 saw on RADV. It fails the same way onmainwith the patched build, so the assertion was only hiding it.e2e on C, stock: the title runs, and the test fails on the same two checks as on the patched build (
user32 … W: not cloaked,XMA2 GetState: ctx=0x0, queued=1).C on the stock prefix without
VKD3D_CONFIG=ignore_shared_fence: the same result for all 1151 tests as with it.Not about these PRs, the same on every tree:
gpu::dxil::ops_tests::integer_ops_match_cpu:vkCreateComputePipelines Exception 0xc0000005 in Unix call, inlibnvidia-glcore.so.620.73.04.bind::tests::execute_indirect_reads_the_arguments_written_before_it:page fault on read access to 0x2b20atd3d12core.dll+0x4acd10.pls_quota;gpu_depth_buffer_created_for_unordered_access_is_placed(vkd3d-proton accepts the placement; HansKristian-Work/vkd3d-proton#3519);xma2_source_voice_decodes_and_manages_lifetime(left: 0, right: 12291).gpu_more_atomics_sub_dword_scratch_valu(the GPU hang from my #42 report:GPU fence still pending);gpu::dxil::ops_tests::raw_and_structured_buffer_atomics_run;gpu::dxil::ops_tests::uaddc_and_usubb_match_cpu.Not tested
scripts/smoke.ps1(no Windows run here; both PRs only change behaviour underunder_wine()).-Db_ndebug, GE-Proton), other NVIDIA drivers, release builds.execute_indirect_reads_the_arguments_written_before_itfaults on Proton's own vkd3d-proton.2576c0b4).AI use
@winne42 on GitHub · 2026-11-25 08:34 UTC · original
Test report for
fd97d91(with #867 ata4c5a82), on NVIDIA. It confirms this PR's description: with the one guard condition, the two together pass every vkd3d-proton assertion.Tested
dxgid3d12.dllsha256 502694a5…,d3d12core.dll0dfd690a…, the same build as in the description); DXC 1.9.2609.5x86_64-pc-windows-gnu;hle::d3d12xtests in debug, the test title in releasemain568e7dbwith the PRs merged in (no conflicts).cargo test -p xcl --lib --target x86_64-pc-windows-gnu -- --test-threads=1 hle::d3d12x, and again with one test per process (--exact) where an assertion ends the run. The test title istests/data/testgamewithxcl_testtitle.exe, run for 30 s. NoSKIPPED.main568e7db+hle::d3d12x, one process per test: ok / failed / aborted / ignoreddone, failures: 11, 39 [PASS]main→ this PR, per test:gpu_placed_console_depth_target_with_clear_valueandpassthrough_mesh_stream_accepts_a_triangle_driver_blobgo from an abort to ok.create_list_reset_and_clear_state_track_initial_pso_on_d3d12goes from an abort to a fail. No pass becomes a fail.gpu_placed_console_depth_target_with_clear_valueaborts at the heap assert again, andcreate_list_reset…at a pipeline-state assert (2556), as you describe:UnadoptGuardtakesext[-1]of a table patched in place.UnadoptGuard::newon the merged tree, and nothing else: With it, all 8 tests that abort or fail onmainbecause of #175 pass. The 2 that still fail (gpu_depth_buffer_created_for_unordered_access_is_placed,write_buffer_immediate_on_open_existing_heap_visible_to_cpu) and the 1 abort without an assertion (execute_indirect_reads_the_arguments_written_before_it) do the same onmain.mainnever reaches: DMA copy, sparse VRAM, title-memory textures, occlusion queries, depth bias, and one XAudio2 check. Every run here also logsUMA import check: the GPU does not see what the CPU writes to unified memory(Wine without a userfaultfd write watch), which is the likely cause for most of them. I have not checked that. Afterdone, the title ends with 0xb.Not tested
scripts/smoke.ps1ran through a wrapper that startsxcl.exeunder Wine, but only on the test title, which has no frame loop: exit 0x3 in every row except the last, which exits 0xb, no frames.Written with Claude Code (Claude Opus 5.5), which ran the builds and tests on my machine; part of the D51 check on #1607.
@Alm0stSurely on GitHub · 2026-11-25 08:15 UTC · original · edited 2026-11-25 08:45 UTC
Paired GPU test and startup check on EndeavourOS, Ryzen 9 9950X3D, RTX 5080, NVIDIA 620.73.04, 60 GiB usable RAM. Stock Proton Experimental vkd3d-proton 3.2
cae8353ed7959c4(d3d12core.dllSHA-2561c99dcd39c5de795bd4063d565ec2decabb2bb6deb4422b28dd8c34caef7eb4f). Local integration baseline used for this comparison, then the same tree plusfd97d91e6c09532dfeb130280bf34201c6e28721alone as the runtime change.xcl.exe --exact hle::d3d12x::real::console_format_query_tests::gpu_placed_console_depth_target_with_clear_value --nocapture --test-threads=1in a fresh isolated Proton prefix per run (VKD3D_CONFIG=ignore_shared_fence,breadcrumbs). Before:iface->lpVtbl == &d3d12_heap_vtblatvkd3d_private.h:1078. After: 1 passed in 0.96 s. XCL took the dedicated allocation fallback for the 256×256 format-118 texture.Startup on the same stock driver also advanced past heap adoption. Before: last interface
ID3D12Heap1, exit 3 at 0.952 s, zero presents. After: heap patched in place, thenID3D12CommandQueueandID3D12Fence1logged, exit 3 at 1.008 s, zero presents. The failing fence method or assertion has not been identified. This tests #1395 alone on this integration; it adds a startup observation to the suite results above.Tested and reported with Codex (GPT-6.2 Astra).
Follow-up, same RTX 5080 and stock driver. Added a local port of #867 (
a4c5a8228688d6642a21aaee80eaed5653905164) on top of #1395, including the in-place guard skip discussed above. The port retains the integration’s fence notifications and submission tracking; binary SHA-256718d2d7dfed8624e4e92bd0c97846105b6bbc72e944e6754c070931800991865. The focused fence proxy test passed. Same launcher, input sequence, fresh prefix and initial shader cache as the #1395-only run. FirstPresentXat 3.389 s, 4,290 presents total. Capture confirms the account picker, intro artwork and illustrated loading screens, then black. First logged unhandled exception at 280.779 s:0xc0000005ind3d12core.dll+0x4b2350. A laterdbghelp.dllexception occurred during reporting. No verified playable 3D scene. One title run on this composition.Repeat on the same executable and stock DLLs, fresh copy of the same initial cache. Illustrated loading reproduced (1,719 presents). First exception differed: at 100.075 s, and again on another thread at 100.578 s,
0xc0000005atd3d12core.dll+0x28baa6. Each thread had just logged a different compute PSO compile start (7 and 10 ms earlier). The diagnostic run had a shorter 230 s cap and stack samples scheduled at 185/205/225 s; it exited before any sample. This confirms the startup gain on two runs; the later failure site varies.Compute translation control: same executable, stock driver, fresh copy of the same cache seed and 600 s cap as the first paired title run. Changed
XCL_DIRECT_DXIL=1to0. Both records that were compiling during the repeat now returned successful compute PSO creation (943 ms and 2,079 ms, matched by record, sequence and thread). The title still reached illustrated loading, then black (1,681 presents). First unhandled exception at 209.901 s:0xc0000005ind3d12core.dll+0x4b2350, the same module offset as the first run with direct compute translation enabled. Successful creation of these two PSOs alone did not advance the visible stage.@wayback94 on GitHub · 2026-11-25 08:54 UTC · original
Test report for #867 and #1395 on NVIDIA under Wine, with Proton Experimental's own vkd3d-proton (assertions on): the test suite, and the retail title for 60 s.
With #867 (
a4c5a82) and #1395 (fd97d91) together, plus the guard skip @cmt8 suggested, no vtable assertion is left in the suite on Proton's own vkd3d-proton, on an RTX 3080. That removes 12 aborts. The e2e test title now gets past thed3d12_heap_vtblassertion and fails only on the two checks it fails on the patched build too. Neither PR alone is enough. On the patched vkd3d-proton (#257), both together change no test result.The retail title runs on a stock release build of vkd3d-proton with both PRs (#1395's "Not tested").
mainends 1.5 s in atd3d12_heap_vtbl, both times. With both PRs, it runs 60 s at 60 presents per 2 s, as on the patched build.Tested
NVIDIA GeForce RTX 3080 10 GB (Ampere, 32-lane waves only), driver 620.73.04 (open kernel module); Intel i7-13700K, 32 GB; CachyOS, kernel 7.3.5-2-cachyos
Proton Experimental
experimental-11.0-20261112: its Wine, DXVKdxgi(sha2562814edc3…) andlibvkd3d-*in a prefix made with #257'ssetup-prefix.sh. Two prefixes, which differ only ind3d12.dll/d3d12core.dll:files/lib/wine/vkd3d-proton/x86_64-windows, version2576c0b4), assertions on (iface->lpVtbl == &…_vtblstrings ind3d12core.dll). sha256d3d12.dllfc2bbef0…,d3d12core.dll93565013…-Db_ndebug=true(d3d12.dllaf08ba0e…,d3d12core.dll7c1fc8e0…), as a controlRust 1.100.0,
x86_64-pc-windows-gnu(mingw-w64-gcc 16.2.0), debug. DXC 1.9.2609.Trees, each a clean worktree. All are merges onto
main8f5fca5(git merge, no conflicts):main8f5fca5a4c5a82fd97d91+ the guard skip belowfd97d91The guard skip is in neither PR. It is @cmt8's suggestion on #867, applied by me the same way as in @nicklin11's run:
Every test in its own process (
wine <test exe> --exact <name> --test-threads=1), 4 at a time, 120 s timeout, for all 17 test targets. A vkd3d-proton assertion ends the process, so a one-pass run says nothing after the first one. Environment as in #257'srun.sh:WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b",VKD3D_CONFIG=ignore_shared_fence,DXVK_CONFIG='dxgi.hideNvidiaGpu = False',XCL_NETWORK=0,XCL_DXC_DIR. NoXCL_SAMPLE_*.main, stockmain, patched"Passed" includes 14 tests that print
SKIPPEDand pass, the same 14 on every tree:no wave64(wave64 variants ingpu::recomp::lower/lower_dxil/tests);lower_dxil::tests::f16_programs_on_the_gpu: the wave32 per-lane form is refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's));heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows);pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): Not implemented. (0x80004001)).Per test against
mainon the stock prefix. Every result that differs between A and C was rerun 3 more times on both trees, and all 3 gave the same result each time:Aborts on
main, stock: 11 at vtable assertions (d3d12_fence_vtbl×4,d3d12_heap_vtbl×3,d3d12_root_signature_vtbl×2,d3d12_resource_vtbl×2), plusmid_list_write64_wait64_split_avoids_cycle_and_reuses_spares(exit 5) and the two below that aren't about vtables. The e2e test fails because its title hitsd3d12_heap_vtbl(vkd3d_private.h:1077).#867 alone:
a_recording_outlives_the_reset_of_the_titles_allocatorgoes from failed to passed.mid_list_write64_wait64_split_avoids_cycle_and_reuses_sparesgoes from aborted to passed. Its two new tests pass. The fence assertions are gone, and the heap / resource / root-signature ones remain (d3d12_heap_vtbl×4,d3d12_root_signature_vtbl×4,d3d12_resource_vtbl×3).#1395 alone: the heap / root-signature / resource assertions are gone, and its new test passes. The fence assertions remain (
d3d12_fence_vtbl×7). Two tests go from an abort to a failure:gpu_sparse_vram_descriptors_buffers_and_xmem(tests.rs:3993) andcreate_list_reset_and_clear_state_track_initial_pso_on_d3d12(bind.rs:1501). Both pass on C.Both together: all vtable assertions are gone. These 11 go from aborted to passed:
gpu_compute_e2e×2sparse_reinitgpu_sparse_vram_descriptors_buffers_and_xmemcreate_list_reset_and_clear_state_track_initial_pso_on_d3d12mid_list_write64_wait64_split_avoids_cycle_and_reuses_sparesgpu_placed_console_depth_target_with_clear_valuepassthrough_mesh_stream_accepts_a_triangle_driver_blobtitle_textures×2vram::d32s8_targets_take_their_own_size_of_video_memorya_recording_outlives_the_reset_of_the_titles_allocatorgoes from failed to passed, and all three new tests pass. No test that passes onmainfails or aborts.predication_e2e::set_predication_buffer_state_and_kickoffgoes from an abort (d3d12_resource_vtbl) to a failure (EQUAL_ZERO(0) must skip dst[0],predication_e2e.rs:360), as @nicklin11 saw on RADV. It fails the same way onmainwith the patched build, so the assertion was only hiding it.e2e on C, stock: the title runs, and the test fails on the same two checks as on the patched build (
user32 … W: not cloaked,XMA2 GetState: ctx=0x0, queued=1).C on the stock prefix without
VKD3D_CONFIG=ignore_shared_fence: the same result for all 1151 tests as with it.The retail title, 60 s, no input (intro and menus), with #257's
scripts/linux/smoke.sh. The environment is the one above, withoutXCL_SAMPLE_*. Release builds of A (xcl.exesha25600d34714…) and C (6f61f795…), both from clean trees. C's commit7d38704is my local merge, not on GitHub.title:is the same hashsmoke.ps1prints for this folder. Under Winepeak commitreads 0 MB, so the 125 % rule can't be checked here. Runs in this order, one warm-up per prefix, all of them listed:main, stockmain, patchedmain, stockmainon stock: both runs end right after XCL adopts the title's firstID3D12Heap1. A run with Wine's stderr kept printsAssertion failed: iface->lpVtbl == &d3d12_heap_vtbl, file ../src-vkd3d-proton/libs/vkd3d/vkd3d_private.h, line 1077, the same assertion as the e2e test title.ID3D12Heap1 – 10 PC methods written into the runtime's own vtable (Wine: vkd3d-proton checks it; …), which is #1395's path. There are no assertions, device removals, crashes,GPU fence still pendingor[ERROR]lines.report.jsongives 228 translated pipelines and the same 40 refused mesh pipelines as on the patched build, with 460 DXIL cache hits and no compiles (warm cache).C, stock (run 7):
For
mainon stock,smoke.shprinted no block. When the log has noframes shownline, itsframes=$(grep … | tail -n 1 | sed …)fails underset -euo pipefail, and the script exits 1 with no output instead of printingnone logged. That's a bug in #257's script, not in these PRs.Not about these PRs, the same on every tree:
gpu::dxil::ops_tests::integer_ops_match_cpu:vkCreateComputePipelines Exception 0xc0000005 in Unix call, inlibnvidia-glcore.so.620.73.04.bind::tests::execute_indirect_reads_the_arguments_written_before_it:page fault on read access to 0x2b20atd3d12core.dll+0x4acd10.pls_quota;gpu_depth_buffer_created_for_unordered_access_is_placed(vkd3d-proton accepts the placement; HansKristian-Work/vkd3d-proton#3519);xma2_source_voice_decodes_and_manages_lifetime(left: 0, right: 12291).gpu_more_atomics_sub_dword_scratch_valu(the GPU hang from my #42 report:GPU fence still pending);gpu::dxil::ops_tests::raw_and_structured_buffer_atomics_run;gpu::dxil::ops_tests::uaddc_and_usubb_match_cpu.Not tested
scripts/smoke.ps1(no Windows run here; both PRs only change behaviour underunder_wine()).-Db_ndebug, GE-Proton), other NVIDIA drivers, the suite in release.execute_indirect_reads_the_arguments_written_before_itfaults on Proton's own vkd3d-proton.2576c0b4).AI use
@pitabreadwithcheese on GitHub · 2026-11-25 09:13 UTC · original
I ran the PR on Nobara proton experimental here's an ai summary:
Test report for #1395 + #867 (with the 2-line
UnadoptGuard::newskip for in-place patched vtables) on AMD RDNA3 / RADV under stock Proton Experimental, running the retail title (1.0.2.1).Setup
vkd3d-proton 3.2, assertions enabled)main(568e7db) +#867+#1395+UnadoptGuard::newin-place skip,x86_64-pc-windows-msvcrelease, DXC1.9.2609.5(01b62ad4)Result
ID3D12Heap1,ID3D12Resource2,ID3D12DescriptorHeap,ID3D12RootSignature,ID3D12PipelineState,ID3D12QueryHeap,ID3D12CommandSignature) loggedPC methods written into the runtime's own vtablewith zero assertions.13.905 s(3840x2160); rendered the account picker, splash artwork (unpacking 392 BCPack BC1/BC5/BC6H/BC7 requests with 0 failures), Legal Notices, and Privacy Policy / Terms of Service screens (933presents,22translated pipelines,0failed pipelines).sparse: the queue has not reached fence value ... after 5 s) and ends at the known end-of-setup / world-entry null write (0xc0000005write at0x0ingame_scarlett_master.exe+0x23cf683, matching #846 / #1833).@cmt8 on GitHub · 2026-11-25 15:15 UTC · original
This isn't gonna be merged and I've moved my focus to other projects. Feel free to use the code for whatever but closing this PR
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175Pull request closed