Linux (Wine + vkd3d-proton): a retail game reaches what main reaches on Windows; the obstacle is replaced vtables — proposal: proxies #175
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#175
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@ozimchuk on GitHub · 2026-11-23 18:56 UTC · original
With #92 and #93 merged, unmodified XCL starts under Wine. This is what I measured from there up to current
main(956a476), the one thing that stands in the way, and a proposal for it. It is also a partial answer to #154. I'd like to know which direction you would accept work on before writing any.Setup
masteratcae8353.dxgi.dll,d3d11.dll,d3d10core.dll, as Proton pairs them.Result
Test title,
xcl run <testgame> -- --hello:[PASS], thenAssertion failed: iface->lpVtbl == &d3d12_heap_vtbl(vkd3d_private.h:1077)mastermaster, identity checks relaxed (below)[PASS], 2[FAIL][PASS], 2[FAIL]With the checks relaxed every
D3D12.Xcheck passes on both GPUs (triangle,PresentX, DMA queue and page pools, list memory methods, sparse VRAM heaps, ring-buffered uploads, depth bias, the ray-tracing surface, DirectStorage, textures in title memory and in a streaming pool). Unchanged through66e8e97.cargo test -p xcl --libon the AMD GPU at66e8e97: 373 passed. The failures are two from my packaging (tests/data/llvm-amdgpunot next to the test binary), three of Mesa's compiler (one is theds_bpermutecase below), one Wine error-code difference (get_proc_address_and_load_library_ex_reject_null_name), andframe::tests::statistics_name_each_frames_origin_…, which is timing-dependent here (it failed in 2 of 3 runs on one build and 2 of 3 on another). On the RTX 5060 Ti at60599a9:gpu::222 passed, 2 failed (packaging), 2SKIPPED … no wave64. With a retail shader pack and console DLLs (XCL_SAMPLE_RPF,XCL_SAMPLE_DLLS):gpu_pso_e2e6 of 6 ("MS + PS pipelines through the hook: 7 / 7") andgpu_compute_e2epass on both GPUs. The BVH builder tests fail on both without #146 and pass with it (an argument-placement fault in XCL, not a Linux matter).A retail game on
956a476, same setup, both GPUs: the same as you report on Windows. After its load it presents a steady 30 fps (4,500 presents in 197 s on the RTX 5060 Ti, 4,200 on the iGPU), image black, no abort in 200 s. That needs the relaxed vkd3d-proton, and one more thing outside XCL's design (the shared fences below).The
ds_bpermutefailure (gpu_format_stores_atomics_global_lds, "lane 0 ds_bpermute", left 1280, right 63) is RADV's: it passes withRADV_DEBUG=llvmand on NVIDIA. ACO'semit_bpermute_shared_vgprputs its two shared VGPRs atalign(num_vgprs, 4); this kernel uses all 256, so they come out as v0 / v1 and the index is overwritten (Mesa 25.2.8, RDNA2). Nothing for XCL to do.The obstacle: vkd3d-proton recognises its objects by vtable pointer
XCL replaces the vtable pointer of host objects with its extended table (
real.rs,adopt). vkd3d-proton compares that pointer with its own tables:assert(iface->lpVtbl == &…_vtbl)in theimpl_from_*helpers. They are compiled into the official release, so this is what a Proton user gets.d3d12_command_allocator_from_ifacereturns NULL for an allocator whose table is not its own.d3d12_command_list_from_iface(used byExecuteCommandLists) returns NULL for a list whose table is not one of its seven; the caller then reads through it (an access violation at address0x2b20).is_shared_ID3D12Fence1picks between two different fence structures by comparing the vtable withd3d12_shared_fence_vtbl. A retail game creates its fences withD3D12_FENCE_FLAG_SHARED. With XCL's table in place the shared fence is handled as an ordinary one: the queue'sSignalreachesd3d12_fence_lockon a structure with no mutex at that place, the queue's submission worker blocks for good, the fence never advances, and the game's own watchdog ends it about 30 s later. With assertions on, the assertion beside that check fires instead.The 47 and the 30 fps above are with vkd3d-proton built with
-Db_ndebug=trueand the twofrom_ifacefunctions changed to accept any table (about ten lines), and, for the shared fences, with the sharing bits cleared beforeCreateFence(VKD3D_CONFIG=ignore_shared_fencedoes the same). All of that is diagnostic: it removes checks for every application, or works around the replaced table rather than fixing it. Nothing vkd3d-proton could ship, and nothing I would propose as a PR.This is not only a Linux matter. Microsoft's runtime treats the vtable pointer as state too: per HANDOFF (#75), Agility 1.620+ swaps a list's vtable on Close / Reset, and
real::preserve_vtable/readoptchase it at eight call sites on currentmain(list_x.rs,real.rs,device_x.rs). The count of internal slots after the public ones also had to be probed per runtime (device 125 vs 104, queue 42 vs 19). Every new D3D12 runtime can move either. An object the host never sees modified has neither problem.And the caller test can pick the wrong method. A slot whose console method differs from the PC one is split by return address (
guard::pick). A title function that the system calls directly, and that ends in a tail call to such a method, has a system DLL as its return address, so the PC method runs with the console's arguments. I added a check to the test title to see it: a thread start routine that ismov rax,[rcx]; jmp [rax+72]on a descriptor heap (slot 9,GetCPUDescriptorHandleForHeapStart: RAX on the console, a hidden pointer on the PC):Measured under Wine; the split is XCL's own code, so I expect the same on Windows but have not run it there. Thread entry points, thread-pool work items and task-queue callbacks are where a title can hit this: compilers emit exactly this jump for
return obj->Method(...);at the end of a function. With proxies the question does not arise: whoever calls through the title's object gets the console method.Proposal
Proxies, one kind of object at a time.
title_list.rsalready gives the title a console-shaped list with a thunk per slot and the PC list behind it. The same shape for the other kinds leaves host objects untouched: the title holds the proxy, object arguments are unwrapped on the way in, returned objects are wrapped on the way out, and the caller-based guards are not needed on that path because the host never calls through a proxy. Starting with command lists would removepreserve_vtableon Windows and one group of assertions on Linux in the same step; fences next would make the shared-fence case above work as it is. Each further kind is a separate, reviewable change. Linux needs all fifteen before stock vkd3d-proton works; Windows gains with each.The alternatives I considered and would not propose as PRs: a documented, relaxed vkd3d-proton build for Linux users (works today, but it removes checks for every application), and an opt-in switch in vkd3d-proton to skip identity checks (I expect them to decline, with reason: the checks are right, and the fix belongs with whoever changes the objects).
Would you take proxies if they came in small steps with tests, each checked on Windows by you before merge? I would start with command lists.
Other things a Linux user will meet
userfaultfdmust be allowed. Wine Staging tracksMEM_WRITE_WATCHwithuserfaultfdwrite protection and falls back to read-only pages when the call is refused. In the fallback,OpenExistingHeapFromAddresson a window that has not been written yet cannot import the pages; vkd3d-proton then gives the heap memory of its own and still returns success. CPU and GPU each see their own copy and shaders read zeros (gpu_unified_memory_arena: "s_load from process memory", left (0, 0)). Docker's default seccomp profile refuses the call; with it allowed everything above holds. With it refused the test title drops to 40[PASS], 9[FAIL].dxgi.dll,PresentXcrashes inwined3d.dll; with DXVK's DXGI but Wine'sd3d11.dll, a later check stops inDXGID3D10CreateDevice.[FAIL]s:xmem: working-set statistics(limit0x360000000, used0x0) anduser32: … hidden console screen: W: not cloaked. Wine differences; not looked into.xaudio2_9.dllwhen the mastering voice is created; my container has no audio device.radv/amdgpu: The CS has been rejected (-1), after which the device is lost. Not reproduced on demand.I can rerun anything on both GPUs.
AI-assisted.
🤖 Generated with Claude Code
idxenreads from a CBV ignore the index – measured on Linux, Windows measurement wanted #307github-bot referenced this issue2026-11-26 04:56:14 +00:00
@martinchooxp on GitHub · 2026-11-23 19:01 UTC · original
How did you build the project on linux ?. Did you use a VM ?
@ozimchuk on GitHub · 2026-11-23 19:04 UTC · original
No VM. I cross-compile XCL for Windows on Linux and run the
.exeunder Wine.Build (Ubuntu 24.04, in a Docker container, but a plain Linux setup works the same):
gcc-mingw-w64-x86-64,g++-mingw-w64-x86-64) and Rust with thex86_64-pc-windows-gnutargetCARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=x86_64-w64-mingw32-gcc-posix(the POSIX-threads variant)cargo build --release --workspace --target x86_64-pc-windows-gnu. Since #92 and #93 this builds unmodifiedmain. The tests build withcargo test --release --workspace --no-run --target x86_64-pc-windows-gnu, and the test.exes run under Wine too.dxcompiler.dll,dxil.dll) next toxcl.exe.Run: Wine 11.21 (Staging), with vkd3d-proton as
d3d12.dll/d3d12core.dlland DXVK'sdxgi.dll,d3d11.dll,d3d10core.dll, all next toxcl.exe. The GPU is the host's own Vulkan driver (NVIDIA's, or Mesa's RADV for AMD), so no passthrough is needed. Two caveats from the issue above: stock vkd3d-proton stops on its vtable-identity assertions, so my runs used a relaxed diagnostic build; anduserfaultfdmust be allowed (Docker's default seccomp profile blocks it).@Kalmarv on GitHub · 2026-11-23 20:49 UTC · original
An addition to the
userfaultfdnote above, from a plain Ubuntu 24.04 VM (no container) with an RTX 2060 (Turing), NVIDIA 595.91.07, atmain956a476, cross-built forx86_64-pc-windows-gnu. The stack is Kron4ek's Wine 11.21 Staging (wow64 build), vkd3d-protonmaster30b0eb9 relaxed as described above, and DXVK 3.1.1dxgi.On this stack five
gpu::recomptests read zeros from title memory, onmainand on #191's branch:gpu_memory_windows_above_4_gib,gpu_unified_memory_arena,gpu_mesh_mode_reads_memory_windows,gpu_bvh64_intersect_ray_across_memory_windows_and_grazingandgpu_sparse_vram_descriptors_buffers_and_xmem. For example,gpu_unified_memory_arenafails with "s_load from process memory", left(0, 0).The cause is the one you describe, but this setup reaches it without any seccomp profile.
userfaultfdwrite-watch code is a Proton Wine patch (dlls/ntdll/unix/virtual.cin ValveSoftware/wine). The Wine Staging build I used doesn't have it: itsntdll.socontains nouserfaultfdcode, and Kron4ek'sstaging-tkgbuild doesn't either.strace -e userfaultfdover a test run shows no such call at all. With such a Wine,MEM_WRITE_WATCHmemory always takes the read-only-page fallback, whatever the host allows.OpenExistingHeapFromAddress→vkd3d_import_host_memorylogsFailed to import host memory, hr 0x8007000e(VKD3D_DEBUG=warn). It then allocates host-visible memory of its own and still returnsS_OK(libs/vkd3d/memory.c). The CPU and the GPU each see their own copy.MEM_WRITE_WATCHset to 0 ingpu/uma.rs, same binary otherwise, same GPU and stack. Then 4 of the 5 pass:gpu_memory_windows_above_4_gib,gpu_unified_memory_arena,gpu_mesh_mode_reads_memory_windowsandgpu_bvh64_intersect_ray_across_memory_windows_and_grazing. Unchanged, all 5 fail.gpu_sparse_vram_descriptors_buffers_and_xmemstill fails without write watches: "submit 1 lane 0 mismatch", left 0, right 1077. vkd3d-proton logs no import warning any more. It reads through the sparse VRAM windows as well, so this is a second, separate cause that I haven't identified.What this means for a Linux user: a Wine that tracks write watches with
userfaultfdis needed, besides the host allowing the call. Proton's code passesUFFD_USER_MODE_ONLY, so it should work with Ubuntu's defaultvm.unprivileged_userfaultfd = 0, as long as no seccomp filter blocks it. I couldn't confirm that here: GE-Proton 11-14's Wine needs 32-bit libraries this machine doesn't have. Since vkd3d-proton reports success, nothing in XCL notices today. A start-up check could catch it: write a word through the CPU, read it back through the GPU.Not covered: a Proton Wine run on this machine; the sparse-VRAM failure's cause; AMD; the test title and the e2e binaries.
@BlestTerror on GitHub · 2026-11-23 20:56 UTC · original
Another data point, from a different setup: Arch Linux, Wine 11.20, vkd3d-proton 3.1, DXVK 3.1.1, RTX 4060 (Ada), driver 615.78.08,
mainatdb5dc26.Build: besides mingw, the MSVC target cross-compiles with
cargo-xwin(cargo xwin build --workspace --target x86_64-pc-windows-msvc). One snag:libudis86-syspasses the gcc-style-includestring.h, whichclang-clignores, soudis86.cfails on an undeclaredmemset; aclang-clwrapper that adds/FIstring.hfixes it. DXVK reports an NVIDIA GPU as AMD by default;DXVK_CONFIG='dxgi.hideNvidiaGpu = False'keeps XCL's NVIDIA paths.cargo test -p xcl --lib(serial): the same picture as yours (the vtable assertion stops the run atgpu_sparse_vram_descriptors_buffers_and_xmem, plus the Wine error-code / timing differences), and one you did not hit on the 5060 Ti:gpu_more_atomics_sub_dword_scratch_valuhung the GPU (NVRM: Xid 109, CTX SWITCH TIMEOUT; XCL: "GPU fence still pending after 10000 ms"), and the device was lost for every GPU test after it.That one is a vkd3d-proton (dxil-spirv) bug, not XCL's: a
RWByteAddressBufferused with 64-bit atomics carries only the{ Atomic64Use, 1 }extended property, dxil-spirv read that1as a structured stride, and its BDA (root descriptor) loads / stores on that buffer then added theundefelement offset to the address. It shows up when a load from the buffer feeds a 64-bit atomic on it, e.g. thermw64compare-exchange loop forGLOBAL_ATOMIC_INC_X2/DEC_X2. Whetherundefcomes out as 0 depends on the driver, which would explain why the 5060 Ti passes.Fix: HansKristian-Work/dxil-spirv#372. With vkd3d-proton 3.1 rebuilt on it, the test passes and the serial run reaches the vtable assertion with no failures and no Xid. Nothing to change in XCL.
@Kalmarv on GitHub · 2026-11-23 21:22 UTC · original
Correction to my comment above: there is no second cause.
gpu_sparse_vram_descriptors_buffers_and_xmemhas the same single cause as the other four.My experiment,
MEM_WRITE_WATCH= 0 for all ofgpu/uma.rs, also turned off XCL's dirty tracking for the sparse windows:hle/d3d12x/sparse.rsuploads only whatGetWriteWatchreports. So that test read zeros because of the experiment itself.The narrower experiment, at
main6da33fa, removes write watch only from the runtime's coherent window (uma.rs:182) and keeps it on the sparse windows. There,gpu_sparse_vram_descriptors_buffers_and_xmempasses, 3 of 3, with no import warning from vkd3d-proton.A standalone repro (
OpenExistingHeapFromAddresson a committed block, a CPU write, a GPU copy back; no XCL involved) shows the condition exactly. Same RTX 2060, Wine 11.21 Staging and vkd3d-proton as above:MEM_WRITE_WATCHcommit, 512 MB or 1 MBFailed to import host memory, hr 0x8007000eMEM_WRITE_WATCHreservationOnly write watch on the imported memory itself matters. XCL needs write watch there:
title_textureswatches the coherent window too. So this isn't something XCL can drop. It needs a Wine withuserfaultfdwrite watches (Proton's), as described above.AI use: Claude Code, Claude Opus 5.5
@BlestTerror on GitHub · 2026-11-23 21:27 UTC · original
A data point on the write-watch import: on upstream (non-Staging) Wine 11.20 (Arch's
winepackage), withvm.unprivileged_userfaultfd = 0, the five memory-window tests pass (gpu_memory_windows_above_4_gib,gpu_unified_memory_arena,gpu_mesh_mode_reads_memory_windows,gpu_bvh64_intersect_ray_across_memory_windows_and_grazing,gpu_sparse_vram_descriptors_buffers_and_xmem), withVKD3D_DEBUG=warnand noFailed to import host memory. Also in full serial--libruns. RTX 4060, vkd3d-proton 3.1 (+ dxil-spirv#372, relaxed as above),x86_64-pc-windows-msvc,main6da33fa.So the read-only fallback looks like Wine Staging's write-watch path specifically; upstream Wine's
MEM_WRITE_WATCHmemory imports fine here. A Linux user may not need Proton's Wine, just not Staging. I haven't run your standalone repro here; happy to if you share it.@Kalmarv on GitHub · 2026-11-23 21:29 UTC · original
A correction to my notes above, prompted by @BlestTerror's result. The
userfaultfdwrite-watch code is in upstream Wine, not only in Proton's:dlls/ntdll/unix/virtual.catwine-11.20andwine-11.21, built asUSE_UFFD_WRITEWATCH. It only compiles when the build's kernel headers haveUFFD_FEATURE_WP_ASYNCandPM_SCAN_WP_MATCHING, both from Linux 6.7. Kron4ek's portable builds are compiled in an Ubuntu 18.04 chroot (CHROOT_DISTRO="bionic"increate_ubuntu_bootstraps.sh), so those builds lack it. A distro Wine built against current headers, such as Arch's, has it, and the five memory-window tests pass there. What a Linux user needs is a Wine built withUSE_UFFD_WRITEWATCH, running on a 6.7+ kernel.vm.unprivileged_userfaultfd=0doesn't matter, because the call passesUFFD_USER_MODE_ONLY.Tested: upstream source at both tags; Kron4ek's build script;
ntdll.soof Kron4ek 11.21 Staging (nouserfaultfdcode, no such syscall understrace).Not tested: a Wine built here with
USE_UFFD_WRITEWATCH.🤖 Claude Opus 5.5
@notdxbi on GitHub · 2026-11-23 21:34 UTC · original
Another Linux data point, on current
main(af20b4b), where the README says the retail game reaches its first menu (the account prompt) on the RX 9070.Setup: Nobara 44 (Fedora-based), kernel 7.3, RTX 5060 8 GB, NVIDIA 595.112.07, Ryzen 7 5700X, 32 GB. Wine 11.22 Staging (
vm.unprivileged_userfaultfd = 0;gpu_unified_memory_arenapasses anyway). XCL cross-built forx86_64-pc-windows-gnuwith Fedora's mingw64 (posix threads) in a rootless podman container. vkd3d-protonmaster30b0eb9, relaxed as described in this issue (-Db_ndebug=true+ the twofrom_ifacechanges),VKD3D_CONFIG=ignore_shared_fence. DXVK 3.1.1dxgi/d3d11/d3d10core, DXC 1.9.2609.XCL_NETWORK=0.Tests at
956a476: lib 531 passed / 4 failed (Wine error codes inget_proc_address_and_load_library_ex_reject_null_nameandvfs::truncate_existing_validation_errors,vfs_hooks::move_case_only_and_self_rename_preserve_file, andlegacy_console_iids_map_to_their_own_slots, which #200 addresses). 2 SKIPPED (no wave64). WithXCL_SAMPLE_RPF/_DLLS/_TTPF:gpu_pso_e2e6/6 andgpu_compute_e2e2/2.console_dlls_e2e11/12 (memory_cap_is_active: Wine has no job memory limit). Test title: 48 PASS, 2 FAIL (the same two as above).Retail game,
af20b4b, 300 s and 600 s runs:XCL_FRAME_DUMP, every dumped frame from ~frame 300 on is black except one 1-pixel diagonal line from the bottom-left to the top-right corner: the shared edge of a full-screen quad's two triangles. 0.12 % of pixels are non-zero, the same in every frame up to 600 s. So the full-screen composite runs, but the image it reads is black everywhere except along that edge.compiling shaders: 0 running, 0 done, 57817 pipelines queued(warm DXIL cache; the queue is the lazy pipelines, so this alone is expected).Write64BitValueBottomOfPipeX: … is not 8-byte aligned in unified memory.At
956a476the same setup gave all-zero frames (no seam) and the title never openedaudio.rpf,textures.rpf,script.rpf,pack/*or thettdbarchives in 300 s. 399 of 450 title textures stayed all zero, and its job workers sat idle after the pipeline phase. That matched what was reported on Windows.A side note on the Wine path: the 4
Write64BitValueBottomOfPipeXwarnings are timestamps (list_x.rstimestamp()) into the title's own memory, not misaligned addresses (e.g.0x…6698). Unlikewrite(),timestamp()has nocpu_writesfallback, so those are dropped. The message reads as an alignment problem but covers "not in unified memory" too. Probably harmless, just noting it.Whether the seam-only image is NVIDIA-specific (wave32 / split wave64 VS / PS) or Wine-specific, I can't tell from here. If anyone has the menu on NVIDIA under Windows at
af20b4b, that would separate the two. I can rerun with anyXCL_*trace.AI-assisted.
@notdxbi on GitHub · 2026-11-23 21:49 UTC · original
Follow-up to my comment above, now on
main60565c4(with #199). Same Linux / Wine / RTX 5060 setup. I localised the black image withXCL_DEBUG_MAGENTAandXCL_TRACE_FRAME:vs 7fda1be8fbc78299 / ps c1d5a4b8b07ccbceis the full-screen composite into the presented target. Forced to yellow, the whole screen is yellow, so the composite and PresentX are fine.vs d2a238740e50f037 / ps e2bcc91e569d6d13is a full-screen pass into the target the composite reads. Forced to blue, the whole screen is blue.vs 28d887aa04ffa15a / ps b40d9ca24fe3d23dis the menu's element draw: ~19 draws a frame into that same 3840×2160 target, topology 4 (triangle list, not a rect list), vertices pulled through a V# in its root table (e.g.[4dbcdc00, 4, 600, 31016fac]). Forced to magenta, it covers only the 1-pixel diagonal from the bottom-left to the top-right corner. Every element's triangles are degenerate along that line, the same in every frame (16 000+ frames over 600 s). It's unchanged by #199, which fits: these aren't rect lists.So the composite chain works on NVIDIA under Wine. What's wrong is the positions coming out of VS
28d887aa04ffa15a(or the data it reads). On the RX 9070, where the menu shows, the same VS runs natively as wave64; here it's the 32-lane form. That makes the wave64 VS path (upper_lanes/ spill slots) my first suspect, but I haven't proven that it isn't the Wine side.Checked and ruled out on the Wine side: Wine 11.22 Staging calls
userfaultfdwithUFFD_USER_MODE_ONLY(flags0x80801) and logs "Using kernel write watches", sovm.unprivileged_userfaultfd = 0doesn't push it onto the slow fallback. The sparse-window write-watch scans are still slow, though (up to 5.7 s for 332 825 dirty pages).If someone with NVIDIA on Windows can say whether the menu shows at
60565c4, that would settle NVIDIA vs Wine. I can runXCL_DEBUG_PS_EXPR/XCL_DUMP_SHADERSon that VS if a specific output would help.AI-assisted.
@jvyden on GitHub · 2026-11-23 22:18 UTC · original
With the patch described here and in #257 I'm able to independently confirm GTA VI booting on Linux! Starts to a black screen with what looks like the outline of a quad, I'm unsure if it gets farther yet though.
@FilipeSilvens on GitHub · 2026-11-23 22:50 UTC · original
A Linux data point: the retail game's menus draw under stock vkd3d-proton, with the identity problem handled on XCL's side instead of in vkd3d-proton.
Setup: Nobara 44 (kernel 7.3), RTX 4070 Ti (NVIDIA 620.70, 32-lane waves), Ryzen 7 5800X. GE-Proton11-1's Wine and its bundled vkd3d-proton 3.1.0, unpatched (built without the assertions). XCL cross-built for
x86_64-pc-windows-gnuat6da33fa,XCL_NETWORK=0.Three local changes in XCL, no vkd3d-proton patch:
real::pc_view: under Wine only, an adopted command allocator or list gets vkd3d-proton's own vtable back for the length of the PC calls that check it (CreateCommandList(X), both Resets, ExecuteCommandLists), and XCL's afterwards.CreateFencedrops the sharing bits. GE-Proton's vkd3d-proton 3.1.0 has noignore_shared_fence; without this change the game crashed ind3d12_shared_fence_set_native_sync_handle_on_completion_explicitabout 15 s in.Result: first frame at ~18 s, a steady 30 fps, and a 300 s run without a crash. The account prompt and the whole Settings menu draw (screenshot below). A DualSense works after setting
DisableHidraw=1underHKLM\System\CurrentControlSet\Services\winebus; otherwise Proton's Wine passes it through as raw HID and XInput sees nothing.@notdxbi @jvyden: this is NVIDIA with 32-lane waves too, so the black image with the diagonal is probably not XCL's wave64 VS path on NVIDIA by itself. The main difference from your setups is the relaxed
from_ifacelookups versus vkd3d-proton seeing its own vtable during the call. I haven't checked whether other vkd3d-proton code still branches on the vtable after the relaxed lookup, so that part is a guess.With #283 on top, the intro movie plays here as well. Like notdxbi, I see the sparse-window write-watch scans grow under Wine (392 ms → 1662 ms between 35 s and 52 s, ~320k dirty pages each time), which pulls the frame rate down. Not looked into yet.
These are workarounds of the same kind as the ones in this issue; proxies remain the real fix. If an interim fix is wanted, I can open the first two changes as a small draft PR, and the fence change as a separate one.
AI-assisted: Claude Code (Claude Opus 5.5) found the causes, wrote the changes and this comment. The runs were real, on the hardware above.
@notdxbi on GitHub · 2026-11-23 22:56 UTC · original · edited 2026-11-23 22:58 UTC
@FilipeSilvens @jvyden – agreed, the diagonal is not the wave64 VS path. I found what it is on my setup, plus three more things between the menus and a playable window. Same box as before (Nobara 44, RTX 5060, NVIDIA 595.112.07, Wine 11.22 Staging, relaxed vkd3d-proton
master30b0eb9, DXVK 3.1.1 dxgi). XCL ismain0e946cfplus the four local changes below. Patches are uncommitted; I can open them as separate PRs if wanted, butscripts/smoke.ps1needs Windows.1. The diagonal: CBV descriptors have stride 0 (
real.rsdev_create_cbv_x→buffer_words(va, 0, size, 22))28d887aa04ffa15areads its 2D transform rows withbuffer_load_dwordx4 v[0:3], v[0:1], s[0:3] idxen. The row index is COLOR1.z × 1020.04 + 2.1 / + 3.1, and the V# comes from its table:[4dbcdc00, 00000004, 00000600, 31016fac], which is exactly the CBV encoding.x = yfor every vertex and the whole UI lands on the diagonal. The vertex data and input layout check out (COLOR0 / COLOR1 RGBA8, POSITION0 R32G32_FLOAT, stride 16, sensible positions, viaXCL_TRACE_SHADERS).desc::cbv_words= stride 16, num_records = ceil(size / 16). The emitter's scalar-load limit is num_records × stride, sos_buffer_loadkeeps the same byte bound.6da33fahas the same stride-0 CBV and the same idxen addressing in the emitter, so I can't explain from here why your menus draw without it. If you can runXCL_TRACE_FRAME=1 XCL_TRACE_SHADERS=28d887aa04ffa15aand compare the table's V# words, that would settle it.2. A white window in front (Linux only): the title's window is not cloaked under Wine
hle/user.rs): afterDWMWA_CLOAK,DWMWA_CLOAKEDis checked. If the window isn't cloaked it is hidden and kept hidden (WM_WINDOWPOSCHANGINGdropsSWP_SHOWWINDOW). No change on Windows.3. Then a black XCL window: the swap chain on the title's queue gets nothing
CopyResourceandCopyTextureRegionalike), while the title's image had 517 542;d3d12x/present.rs, Wine only): the presenter makes its own direct queue. The title's queue signals a fence, and the presenter's queue waits on it, copies and presents.4. #298's crash (
+0x13936) looks like a race inkernelx/lazy.rs; I'll add a comment therehandler→commitremoves the page fromLAZYbefore committing it. The second thread to fault on the page finds it no longer lazy, getsEXCEPTION_CONTINUE_SEARCH, and the title's first store into a new pool object crashes.ensure(DirectStorage destinations) races the same way.a_fault_that_raced_the_commit_goes_ondrives the handler with the losing thread's fault. It fails without the change and passes with it. Not verified in-game yet; this comment gets an edit when it is.Tested (Wine, RTX 5060)
gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.gpu_f64_math_random(all-zero results, 1 of 3 isolated runs) andgpu_built_bvh_nodes_match_the_cpu_node_test(1 run).mesh_dispatch::tests::gpu_*/paired_*hang the RTX 5060 (NVRM Xid 109 CTX SWITCH TIMEOUT, then device lost; every later GPU test fails as fallout).Not tested: Windows (none of this was run there), AMD, the in-game effect of 4.
AI use: Claude Code (Claude Opus 5.5) found the causes, wrote the changes and the tests, and wrote this comment; the runs were real, on the hardware above.
@wiktorekdev on GitHub · 2026-11-23 23:06 UTC · original
A Linux data point past the menus: the retail game reaches its loading screen and stays on it.
Setup: EndeavourOS (kernel 6.18 LTS), RTX 4070 12 GB, NVIDIA 620.70.06, Ryzen 5 7600X, 30 GB. Proton Experimental's Wine, a relaxed vkd3d-proton,
XCL_NETWORK=0, run inside a network namespace with no network. XCL built forx86_64-pc-windows-msvcfrommain0e946cfwith #273 and eight commits from theaustinayers'modified-build: the DirectStorage destination fixes (landed as #289), the lazy-page race, write-watched GPU-visible memory, rect-list corners, bounded pipeline waits, and #283.Local changes on top (not proposed; listed so the result can be judged):
to_zeropruned once per submit, as in #203. Without it, the title stopped at 2.6 s insidedecommit_tileshere.CUSTOMheap past ~500 MB). Without it, the Series X profile went past 11 GB on a 12 GB card.int3atgame_scarlett_master.exe+0xcc2834is stepped over. It is hit once at start-up; not investigated.Result: accessibility, language, settings and legal screens, then the loading-screen artwork at a steady 30 fps (screenshot). The run goes past 500 s with no crash, ~10 GB of video memory, and no DirectStorage failures.
Where it stops:
0 running, 0 done, 58746 pipelines queued; the PSO workers wait on an empty queue.WaitForSingleObject(+0x2250c0, called from+0x2431600) between frames. The render thread presents normally (wait_frame_event_x).CreateTicketXbl3), answered with "no Xbox Live" every ~16 s, then with growing gaps (153 s, 260 s, 400 s).So the title seems to wait on a condition that never becomes true, not on XCL. VIctory's README reports this step taking about 50 s, so it is passable. I haven't found the condition yet. If anyone got past the loading screen with XCL, which runtime areas were served differently would narrow it down.
Not tested: Windows, AMD, the Series S profile at this stage.
AI use: Claude Code (Claude Opus 5.5) did the investigation, the local changes and this comment. The runs were real, on the hardware above.
@FilipeSilvens on GitHub · 2026-11-23 23:08 UTC · original
@notdxbi ran it:
XCL_TRACE_FRAME=1 XCL_TRACE_SHADERS=28d887aa04ffa15a, 60 s on the account prompt, same Linux setup as above. Two XCL builds:6da33fa+ the three Proton changes, and9ab7d76(which includes7a033c8) + the same changes + #283 + #273.All 24 traced draws of
vs 28d887aa04ffa15a / ps b40d9ca24fe3d23d, on both builds, have this in slot 0 of their table (the base address in word 0 changes from draw to draw):0x60= 96 rows of 16 bytes = 1536 bytes, the same size as yours.0x0002403c. XCL's encoder (desc::buffer_words) always writes0xFAC | format << 12 | 1 << 24 | oob << 28there, which for stride 0 and format 22 is exactly your0x31016FAC. So yours came from XCL'sCreateConstantBufferViewpath (real.rs,dev_create_cbv_x), and here the title wrote the descriptor itself, in the console's format.So the same title on the same version reaches this draw by two paths: it writes the V# itself here, and it calls XCL's CBV creation on your setup. The title's own descriptor uses stride 16, which backs your fix. I don't know yet what makes it pick the other path on your side.
7a033c8isn't it (same result with and without it). Your four local changes, Wine 11.22 Staging vs GE-Proton11-1, or the relaxed vkd3d-proton are what's left.AI-assisted: Claude Code (Claude Opus 5.5) ran the traces, read the descriptor words and wrote this comment. The runs were real, on the hardware above.
@pedro-anthony on GitHub · 2026-11-23 23:19 UTC · original
Linux data point with stock vkd3d-proton (no relaxed build), and a narrower way around the identity checks than proxies.
Setup: Arch (CachyOS kernel 7.3.5), Proton-CachyOS
cachyos-11.0-20261015-slrwith its bundled vkd3d-proton0bb64c5(vkd3d-1.1-5656), RTX 3060 12 GB, NVIDIA 620.73.04, Ryzen 5 5500, 16 GB RAM. XCL cross-built forx86_64-pc-windows-msvcwithcargo-xwin(withCL=-FIstring.hforlibudis86-sys, the same snag @BlestTerror hit). Retail GTA VI 1.0.2.1, run in a network namespace plusXCL_NETWORK=0.What I did instead of proxies (262eb06, only under Wine via
util::under_wine()):NativeArgs: an adopted object passed as an argument to a native method gets its native vtable back for the duration of the call, then XCL's extended one (preserve_vtable). Used for the allocator inCreateCommandList/ listReset(cl_reset,reset_x,console_list::cl_reset,KickoffX) and the lists inExecuteCommandLists(queue override andKickoffX). That coversd3d12_command_allocator_from_ifaceandd3d12_command_list_from_iface. D3D12 requires allocators and submitted lists to be externally synchronised, so no other thread should call through them during the swap, but it is a window.is_shared_ID3D12Fence1is also checked later on the submission thread), soCreateFencedropsD3D12_FENCE_FLAG_SHARED | SHARED_CROSS_ADAPTERunder Wine, as yourignore_shared_fenceexperiment did.d3d12_heap_vtblassertion never fired.Result: before,
int3at device setup (E_INVALIDARGfrom the listReset), then 2,765Invalid command allocatorper run and 0 presents. After: 0 rejections, steady 30 fps (release build). On my branch with main + #269, #292, #283, #244 and #242 merged locally, the game shows the account prompt, the setup pages, legal notices and terms, the intro video, the Rockstar logo and loading screens with their artwork.One thing I can't explain (Windows folks, please check): on this setup the account prompt was a single diagonal line. The UI VS
28d887aa04ffa15areads a 2x4 transform as twobuffer_load_dwordx4 … idxen(index n, n+1) through a V# the title writes into its own descriptor table:[0x4d54dc00, 0x4, 0x600, 0x31016fac], so stride 0, format 22 (32_FLOAT), OOB select 3. Taken as written, both rows are equal and every vertex has x = y. Stepping by the access size when stride is 0 on anidxenaccess (9f02137,emit.rs) draws the prompt correctly. Since the prompt shows on Windows with the same translator, I'd like to know whether the V# reads stride 0 there too (XCL_TRACE_FRAME=1 XCL_TRACE_UI_ANY=1 XCL_TRACE_SHADERS=28d887aa04ffa15alogs the table).Where it stops now: while the world streams, local video memory reaches ~11.3 of 12 GB and vkd3d-proton ends the process (status 3, no device-removed message) after
Memory allocation failed, falling back to system memory. One earlier run ended in the write at+0x61bbd6that @grahamster2 saw with #269, before I merged #244.Not tested: Windows (the vtable and fence changes are Wine-only; the stride change is not gated), AMD, the test suite under Wine.
AI use: Claude Code with Claude Opus 5.5 wrote the changes and this comment; the runs and numbers are from my machine.
@jvyden on GitHub · 2026-11-23 23:21 UTC · original
What changes fix the diagonal line issue and get the game drawing on Linux? It's a big milestone to see the game drawing on Linux so I personally think any work in that area could be upstreamed, easily. :)
@jvyden on GitHub · 2026-11-23 23:29 UTC · original
Interestingly, on
mainI now see 1 pipeline completion, which I wasn't getting a couple minutes ago. Here's a data point on an RTX 2080 on Arch Linux. Solid 30fps, no proper visuals yet.@wiktorekdev on GitHub · 2026-11-23 23:31 UTC · original
@jvyden The diagonal is the one @notdxbi described in item 1 above: CBV descriptors are written with stride 0. The menu VS reads its transform rows with
buffer_load … idxen, so with stride 0 every row reads row 0 and the whole UI collapses onto the diagonal. The fix is one line inreal.rsdev_create_cbv_x:s_buffer_load's bound is num_records × stride, so scalar loads keep the same byte limit. We found it independently and it does the same thing here: with it, every boot screen draws on the RTX 4070 under Proton.To get past the menus, these also mattered here (all already open as PRs): #203 (
to_zeropruned once; without it the title stopped at 2.6 s), #242 (R9G9B9E5 targets; without it FSR throws), and the DirectStorage fixes from #289 and #283 for the loading screen.@notdxbi offered to open the CBV change as a PR, so I'll leave it to them rather than send a duplicate.
@FilipeSilvens on GitHub · 2026-11-23 23:32 UTC · original
@jvyden I'm guessing people are waiting on the maintainer's decision on whether to go for proxies or take an interim fix like the vtable handback first. @pedro-anthony's pedro-anthony@262eb06 is the same approach as mine and covers more call sites, so that's the one I'd upstream if the proxy route isn't taken.
@JarzaCode on GitHub · 2026-11-23 23:34 UTC · original
Are y'all running on Linux with upstream or with some sort of changes? Mine seems to always crash, but it might be an issue of mine instead. Can't even get to a menu yet, and it seems like everyone is working with local copies instead of upstream.
@jvyden on GitHub · 2026-11-23 23:47 UTC · original
I can also confirm I have a loading screen now, though I hadn't realized that I could simply press A to continue the initial black screen the entire time. I seem to get quite far into loading, however I hit a crash before I actually end up loading a world.
Stock Wine-staging, Arch Linux x86_64, RTX 2080 8GB, patched VKD3D.
idxenreads from a CBV ignore the index – measured on Linux, Windows measurement wanted #307@ozimchuk on GitHub · 2026-11-23 23:48 UTC · original
The diagonal: #335 makes XCL's constant buffer views stride 16 (num_records = size / 16), as the title writes this descriptor itself (@FilipeSilvens' trace above). It is the same change as @notdxbi's item 1; details and measurements are in #307 and #335.
For Linux setups that want to try it before it is merged, our fork's
linuxbranch hasmainplus this change and two local stopgaps:ignore_shared_fenceis not needed;XCL_PC_VIEW=1, the vtable hand-back for unmodified vkd3d-proton. It covers @FilipeSilvens' calls plus the consoleResetX, which needs it too.Branch: https://github.com/ozimchuk/xcl/tree/linux. The stopgaps are not for upstream; proxies remain the fix.
AI-assisted (Claude Code, Claude Opus 5.5).
@notdxbi on GitHub · 2026-11-24 00:07 UTC · original
Update from my side, now on
maina6f5f7a(so #335 / CBV stride 16, #283, #244, #288 and #294 are upstream; thanks @ozimchuk for taking item 1 in). Same box: RTX 5060 8 GB, NVIDIA 595.112.07, Wine 11.22 Staging, relaxed vkd3d-proton, DXVK 3.1.1 dxgi.1. The 5 fps intro video / loading screen is CPU detiling. With faster detiling it runs at 22–29 fps here.
I timed
title_textures::refreshper 5 s during the video (A pressed at the account prompt). Before:Change (
gpu/tiling.rsonly, +~150 lines with tests), in the same direction as @gw1337x's diff on #283:Chain::detile_levelsplits the rows of a level of ≥ 256 K elements acrossavailable_parallelism / 2threads (max 8).offset_z(block column bytes, in-block x bits) are worked out once per level and the y terms once per row, so the inner loop isrow_base + col[x] + (col_xor[x] ^ row_xor).srcuse fixed-size copies; linear levels (the video planes, mode 0) are copied a row at a time (gw1337x's idea).detile_matches_element_atcompares withelement_atper element: modes 0 + all 14 tiled modes, 1 / 4 / 16-byte elements, a height that doesn't split evenly, a short source, mip-tail levels and slice 1.Same timing afterwards: ~2.1 GB detiled in ~1.9 s per 5 s (≈ 1.1 GB/s). The video phase went 5 → 22–29 fps (
frames presentedover 300: 23.1 / 22.0 / 29.4 / 26.8).2. The tiling tables were rebuilt for every placed texture.
CreatePlacedResource → title_textures::register → xg::Texture::with_pipes → Surface::new → tiling::Layout::from_bits.from_bitsrebuildsox/oy/ozand the "high" tables (up to 3 × 8 192 entries) each time.from_bitsis memoized per (mode, element size, block bits, pattern, dims).3. @gw1337x: your
Uploaderdiff (#283, 23:30) does not work as-is on top of #288.upload_all; I kept #288'svram::before_execute(&queue)in front of both paths.title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels("reactivated unmapped texture remapped cleanly" reads zeros),title_textures::tests::transitions_apply_when_their_list_is_submittedandvram::tests::d32s8_targets_take_their_own_size_of_video_memory.XCL_SYNC_UPLOADS=1, so #288's paths seem to rely on the upload being finished whenupload_batchreturns. I took the Uploader out again.4. What's left after the video, sampled the same way (15 dumps, 3 s apart, symbols from the build):
+0x56a0d, which matches @bKNNNNN's semaphore wait);texture::wait(the synchronous upload wait);res_releaseof the upload staging;refresh;So an async uploader that fits #288 would help the streaming phase, but the long stop is the title's own wait.
5. Sound under Wine: Fedora's
mingw64-opus(libopus 1.6) gives alibopus-0.dllthat #294 picks up next toxcl.exe(imports only KERNEL32 / msvcrt). The run logsOpus packets decoded (0 errors)with non-zero samples.6. Still needed under Wine, not upstream:
Without those, the XCL window here is white, then black. I can open these two as PRs (Wine-only,
util::under_wine()), butsmoke.ps1needs a Windows box.Tested: on
a6f5f7a+ my changes:--skip gpu::, 4 threads: 364 passed, 0 failed, 3 ignored;gpu::, 1 thread: 273 passed, 0 failed, 18 ignored; SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.mesh_dispatch::tests::gpu_*/paired_*hang this card every time, so they are excluded.Not tested: Windows, AMD.
AI use: Claude Code (Claude Opus 5.5) did the measurements, the changes, the tests and this comment; the runs were real, on the hardware above.
@notdxbi on GitHub · 2026-11-24 00:29 UTC · original
Two more things past the loading screen, on
maina6f5f7a/2997c9a(no code change between them). Same box: RTX 5060 8 GB, Wine 11.22 Staging, relaxed vkd3d-proton. Neither is in an open PR or issue as far as I can find.1. The endless loading screen:
XNetworkingGetConnectivityHintsays "online" whileXCL_NETWORK=0blocks everything.XCL_NETWORK=0. The title believes it is online and keeps asking for ROS tickets (CreateTicketXbl3, "no Xbox Live", with growing gaps, as @wiktorekdev saw).xgameruntime/networking.rs):_ if crate::hle::netoff::enabled() => 1(None) before the host mapping, i.e. a console without a network.+0x56a0dwas with the "online" answer; I haven't checked that same wait with this change.2. Then the title stops on its own
int3at+0xb18de7:XMemMapPhysicalPagesScatter(addresses, n, NULL)is refused.+0xb18dc0callsxmem!XMemMapPhysicalPagesScatter(&addrs, count, NULL)(the IAT slot resolves to it) and executesint3if it returns 0. The Breakpad reporter follows.ERROR_INVALID_PARAMETERfor a NULL page array. Page 0 already means "unmap this address" in the scatter, so I take NULL as page 0 for every address.scatter_without_pages_unmaps(map two pages, write, unmap with NULL, the addresses are no longer committed, mapped again they read what was written): fails without the change ("refused"), passes with it.3. Next stop (still open), on an 8 GB card while the world streams:
kernelx::unmap_away→sparse::decommitted→unmap_tilesrunsUpdateTileMappings(NULL)on the sparse-window queue straight away. Nothing orders that after GPU work already submitted on the title's queues or XCL's upload queues that may still use those tiles. Before 2, these unmaps were refused, so this path wasn't reached. I'm working on making the tile unmap wait for that work.NV_ERR_NO_MEMORY(system memory). Same phase, same memory pressure as @pedro-anthony on 12 GB.4.
device_type = "lockhart"(Series S) with #242: steady 30 fps, but every dumped frame is black (0 of 129 600 samples non-black, 1920×1080), so it isn't a way around the memory limit. Back on "anaconda".Also (Linux): Wine's PipeWire stream runs with a 256/48000 quantum. The audio comes in bursts while the title loads (decode 97–118 % of real time per 5 s), so it crackles.
PULSE_LATENCY_MSEC=60/PIPEWIRE_LATENCY=1024/48000help.Tested (Wine, RTX 5060), on
a6f5f7a+ these changes + my earlier ones: lib CPU tests 364/0, GPU tests (serial) 273/0, plus the new scatter test. Runs: A pressed at the account prompt, 160–300 s.Not tested: Windows, AMD.
AI use: Claude Code (Claude Opus 5.5) found these, wrote the changes, the test and this comment; the runs were real, on the hardware above.
@notdxbi on GitHub · 2026-11-24 00:35 UTC · original
I just heard the first part of the intro I've gotten like 0.5 seconds into the first cutscene by the looks of it.
@lucsoft on GitHub · 2026-11-24 00:12 UTC · original · edited 2026-11-24 00:43 UTC
A Linux AMD data point (RDNA3), since every Linux report so far is NVIDIA. Two findings: on this stack the learned coherent window makes the retail game unplayably slow, and the workaround for that ends in a reproducible GPU hang right after the intro.
Setup: NixOS, kernel 7.3.5, RX 7800 XT (Navi 32), Mesa 26.1.8 RADV, Ryzen 7 7800X3D, 32 GB. Wine 11.8 Staging (nixpkgs;
ntdll.sohas "Using kernel write watches"), vkd3d-proton 3.1 built with-Db_ndebug=true+ the twofrom_ifacelookups relaxed,VKD3D_CONFIG=ignore_shared_fence, DXVK 3.1.1dxgi/d3d11/d3d10core, DXC 1.9.2609. XCLmain85bdf21cross-built forx86_64-pc-windows-gnu, plus the CBV change from #307 (stride 16).XCL_NETWORK=0. Retail GTA VI.1. CBV stride (#307): confirmed on AMD as well. Without it the menu is the diagonal; with it the account prompt and setup pages draw.
2. With the learned coherent window (4095 MB;
uma_coherent.txtsays 4.8 GB): under 0.5 fpswinedbgbacktrace:q_execute_command_lists/present_x→title_textures::refresh→subresources→tiling::Chain::detile_level/Layout::offset_z.sparse windows timing: write-watch … (15 506 206 dirty pages)after 128 submits), so every title texture on them is re-detiled every submit.MEM_WRITE_WATCH, write all pages, reset, write 2 pages, …) gives exact counts every time.XCL_COHERENT_MB=512: menus at 28–30 fps (900 frames presented, 28.2 fps over the last 300), and with #283 the intro movie plays (6–9 fps). That is the opposite of #284 (NVIDIA on Windows, where 512 MB is the slow case).GetWriteWatch(RESET)write-protects its pages again, the MMU notifier invalidates the userptr, and the driver's revalidation faults the pages in writable, which uffd-wp then reports as written. That would explain why it is AMD-only and grows with the window.3. With 512 / 1024 MB: a reproducible GPU hang right after the intro
XErrorReport 0x89240107, about 2 s lateramdgpu: ring gfx_0.0.0 timeout(processmain, threadvkd3d_queue), thenD3D12 device removed: 0x887a0005(or0x80004005). This happened 74–151 s in, depending on how fast the run got there, and also with 1024 MB.RADV_DEBUG=hang(three runs, one withnocachefor the disassembly): the same draw every time. Pipeline (RADV hash71ae6799889aaddb), aDrawIndexedof 30 indices, the index buffer in sparse window 0 (a virtual BO, the range bound).vm_fault.logis empty;GE_BUSY/SPI_BUSYare set.VGT_SHADER_STAGES_EN = 0x06012010, so no GS: a plain VS (NGG) + PS. Neither shader has a backward branch.AllocateTitlePhysicalPages(99776): no room in unified memory; it needs #187, which no longer applies tomain).coherent 116/512 MB) and fall back to plain memory, which per the comment inkernelx.rsits shaders read as zeros. So the hang is probably a consequence of the workaround, and the real problem is point 2.XCL_COHERENT_MB=2048(1851 MB of the title's heaps in the window) the hang still comes, at the same point in the game: the twoXErrorReportlines, then the ring timeout, 786 s in at 0.7–1.3 fps. So it does not depend on the window size, and the bullet above does not hold.RADV_DEBUG=nonggcchanges nothing. WithXCL_TRACE_FRAME=1, three pipelines draw for the first time right after the twoXErrorReportlines, ~2 s before the hang:vs cc7a1fd71cd7f6b2 / ps 5306d4e7f6e2ca6e,vs ff0798b8f97355d1 / ps 8ab8dca315291c32andvs 3f448213eab8a2da / ps f618f478d0c51397. All three draw triangle lists into the 3840×2160 target with alpha blending, depth off with a D32S8 DSV bound, and no culling. Their console VS are 18–32 instructions: a 2×3 transform from a CBV vias_buffer_load(records cover the reads exactly), attributes passed through, no branches, no indexed loads. So the hang sits in fixed-function vertex/index fetch or primitive assembly, not in shader code. vkd3d-proton logsBroken NULL PRT with SMEM detected, per-game workarounds may applyon this GPU, and the hanging draw's index buffer lies in sparse window 0.Side notes for whoever debugs GPU hangs under Wine
stop_if_device_removedcallsTerminateProcessat once. vkd3d-proton marks the device removed before it writes its breadcrumbs (and waits up to 5 s for VK_EXT_device_fault), so breadcrumbs never get written. A local wait beforeTerminateProcessgets past that.VKD3D_LOG_FILEstays empty: the launcher's GPU probe opens the file first, and the host process can't open it again.Not tested: Windows, NVIDIA, a full-window run up to the post-intro point (at < 0.5 fps it doesn't get there).
AI use: Claude Code (Claude Opus 5.5) did the investigation and wrote this comment. The runs were real, on the hardware above.
@notdxbi on GitHub · 2026-11-24 01:03 UTC · original
The three changes from my last comment are now draft PRs, each with a test that fails without it and the lib suite run on the branch (Linux/Wine, RTX 5060). They need someone with Windows for the
smoke.ps1regression run:XCL_NETWORK=0makes the connectivity hint None (no more ROS ticket loop)XMemMapPhysicalPagesScatter(…, NULL)unmaps instead of being refused (the title'sint3at+0xb18de7)A correction to my earlier comment, after @bKNNNNN's audio comparison: our runs always had a PipeWire output. So the semaphore wait at
+0x56a0dwas probably never what held us. What #494 changes for sure is the token loop; I can't say it is what gets past the loading screen.@radv-tinker on GitHub · 2026-11-24 01:29 UTC · original
An RDNA4 data point for the post-intro GPU hang @lucsoft reported on RDNA3: same hang, same draw, plus what I ruled out and one log line that precedes it in every run.
Setup: Fedora 43, kernel 7.0.11, RX 9070 XT (GFX1201), Mesa 25.3.6 RADV. Proton Experimental's Wine, vkd3d-proton v3.1 with the #257 patch (
-Db_ndebug=true), DXVKdxgi/d3d11/d3d10corefrom Proton, DXC 1.9.2609. XCLmain2997c9a+ #257 + #451 + #486, cross-built forx86_64-pc-windows-gnu.XCL_COHERENT_MB=512,XCL_NETWORK=0. Retail GTA VI 1.0.2.1.The hang. Every run: account prompt answered with A, intro plays, then
amdgpu: ring gfx_0.0.0 timeout(threadvkd3d_queue) andD3D12 device removed: 0x887a0005, 2–3 min in. Seven runs, seven hangs at the same point.RADV_DEBUG=hang,nocache: the last trace point the CP reached is right after aDRAW_INDEX_2withVGT_NUM_INDICES = 30, index buffer at0xffff8001a3a7…(sparse window), then aPS_PARTIAL_FLUSHthat never completes. VS (NGG) + PS only, neither has a backward branch (the VS is mostly bounds-checked scalar loads + 3 attribute-ring stores).GE_BUSY,SPI_BUSY,SC_BUSY,DB_BUSY,BCI_BUSYset;UTCL2_BUSY/EA_BUSYclear;vm_fault.logempty. RADV also prints "The CS has been cancelled because the context is lost. This context is innocent." in a normal run. So it is the same draw as on RDNA3.Ruled out:
ACO_DEBUG=noopt,nosched,force-waitcntwithRADV_DEBUG=nocachehangs the same way.RADV_DEBUG=llvmcan't be tried: vkd3d-proton then reports SM 6.0 and XCL refuses the device.dstorage.rslocally; the BC1 request that used to fail just before the hang now decodes (BCPack decoded so far: 4 requests (BC1 4)), hang unchanged.One line before every hang. In every run that reached the hang, and in none that stopped earlier, there is exactly one:
The source varies only a little across runs (
0x117b9f0000…0x117bb70000); the destination is always around0x3dfe…–0x3e87…. With a local diagnostic incopy_memory_x:So the source is in a GPU view whose CPU view is not committed (nothing the CPU wrote), it is not a physical page, and the destination is outside unified memory too. A local attempt to stage the source through upload memory (as
gpu_vadoes for buffers) can't help, because there is nothing readable to stage. My guess, not verified: those 16 KB are something the GPU wrote earlier through that GPU view, the copy is skipped, and the 30-index draw then reads stale data that NVIDIA tolerates and AMD's GE doesn't. I haven't found who writes0xb7bb70000's GPU view or what reads0x3dfe…afterwards.Side result: #451 + #486 together took the intro video from ~5 fps to ~20 fps here (menus ~23 fps), so they help on AMD under Wine too.
Happy to run a trace (
XCL_TRACE_FRAME, extra logging incopy_memory_x, a build of a branch) on this card.AI-assisted.
@matheusfermiano-source on GitHub · 2026-11-24 02:50 UTC · original
Test suite under Wine on an RDNA2 iGPU (Radeon 660M, RADV) and an RTX 3050 Laptop,
maina6f5f7a, built forx86_64-pc-windows-gnullvm. The Linux reports so far are NVIDIA, RDNA3 and RDNA4; this adds RDNA2 (gfx1035) and three Linux notes that aren't in this thread yet.Tested
a6f5f7a74cc620c1f88a9e3669a633d10c3c8212(main), clean tree. Debug:cargo build --workspaceandcargo test --workspace --no-run, targetx86_64-pc-windows-gnullvm, llvm-mingw 20261117, Rust 1.97.1. Each test.exerun under Wine with--test-threads=4.VK_LOADER_DRIVERS_SELECT, plusDXVK_CONFIG='dxgi.hideNvidiaGpu = False'for NVIDIA.experimental-11.0-20261027b), prefix from #257'ssetup-prefix.sh. vkd3d-proton v3.1 with #257's patch and-Db_ndebug=true, Proton's DXVKdxgi/d3d11/d3d10core(3.1.1-97), DXC 1.9.2609.5.VKD3D_CONFIG=ignore_shared_fence,XCL_NETWORK=0,DISPLAYset (see the first note).SKIPPEDno wave64)Failing on both GPUs (Wine / vkd3d-proton, not the GPU):
predication_e2e::set_predication_buffer_state_and_kickoff:dst[0]is0xAAAA0000, want0x11111111. vkd3d-proton predicates draws and dispatches but notCopyBufferRegion, and this test's predicated commands are copies.pls_quota::disk_free_space_ex_reports_pls_quota: error 2 instead of 3 forS:\missing. The hook forwards to Wine'sGetDiskFreeSpaceExW, which returnsERROR_FILE_NOT_FOUND.e2e::test_title_runs_and_game_folder_is_untouched:W: not cloaked(no DWM cloaking, @notdxbi's item 2) andXMA2 GetState: ctx=0x0, queued=1, the same ashle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime(also failing).Radeon 660M only:
gpu_f64_rootsandgpu_f64_math_random(v_rsq_f64of negatives and NaN = 0, what #530 fixes; RDNA4 there, the same on RDNA2), andgpu_nonfused_mad_and_mac_prevent_fma_contraction(fused control gives +inf: RADV on RDNA2 leavesmad()unfused like the RDNA1 Windows driver in #472). All three pass on the RTX 3050 under the same Wine and vkd3d-proton.RTX 3050 only:
gpu_more_atomics_sub_dword_scratch_valuhangs the GPU (NVRM: Xid 109, CTX SWITCH TIMEOUT), the dxil-spirv bug @BlestTerror found above (HansKristian-Work/dxil-spirv#372, still open). Every GPU test after it then runs on a lost device, so the other lib counts are from a rerun with--skipfor it.Linux notes
Failed to create Vulkan instance, every GPU test printsSKIPPED …: no GPUand passes (87 such lines in my first run). NVIDIA's Vulkan driver has noVK_EXT_headless_surface; RADV has it, which is why the 660M ran headless. WithDISPLAYset, the 3050 is used. Check theSKIPPEDcount before trusting a run over SSH or in a container.xcl.exenever finish (over 10 min).gpu_pso_e2ehangs insample_pack_read_errors_fail_instead_of_skippingwhen the whole binary runs (5 of 5 runs); alone it passes. WithDISPLAYset, both binaries finish in seconds on both GPUs.x86_64-pc-windows-gnullvmbuildsmainwith llvm-mingw unchanged, with no MinGW gcc and no xwin. Set the linker andCC/CXX/ARfor that target to llvm-mingw'sx86_64-w64-mingw32-*, and copy llvm-mingw'slibunwind.dllandlibc++.dllnext toxcl.exeand the test executables (debug/anddebug/deps/), otherwise they exit with0xC0000135. Itsxcl.exehas a TLS directory (llvm-readobj --coff-tls-directory) andpe::tests::parses_own_test_binary_tlspasses, so #464's problem does not come up with this target.Not tested: Windows; any retail title; a release build of the tests; GCN (Vega).
AI use: Claude Code (Claude Opus 5.5) set up the build and the runs, read the failures and wrote this comment. The runs were real, on the hardware above. Counts only, no game files.
@pickles976 on GitHub · 2026-11-24 03:23 UTC · original
Test-suite ground truth from a second Linux/Wine setup (host: Ubuntu 22.04, Wine 9 built-in
d3d12= vkd3d, Mesa llvmpipe Vulkan — no vendor D3D12 anywhere in the stack), cross-build recipe in #520 (llvm-mingw linker; gotcha:-lunwindmust resolve to the staticlibunwind.abeforelibunwind.dll.a, else the exe dies silently at startup):cargo test -p xcl --lib --target x86_64-pc-windows-gnuunder Wine: 286 tests pass, until the process aborts inhle::d3d12x::bind::tests::create_list_reset_and_clear_state_track_initial_pso_on_d3d12: Right before it:D3D12.X: ID3D12Device5 – 65 PC methods, … (+64 stubs, PC vtable wined3d.dll+0x2259c0)— XCL hands a wrapped/guarded interface to vkd3d, and vkd3d answers with a vtable-identity assertion instead of an error code.This is a direct datapoint for the thread's thesis (the obstacle is vtable replacement): even XCL's own unit tests, touching nothing console-specific, abort at a vtable-identity check once the host driver is vkd3d rather than MS
d3d12.dll. Windows d3d12 would returnE_INVALIDARG; vkd3d (including Wine's built-in one, asserts enabled even in release builds) kills the process. Any proxy-object design that ever passes a non-canonical iface into a hostID3D12*method will hit this class of assert; the unit suite run under Wine is a cheap canary for it — worth wiring into CI once the one test is green (or#[ignore]-gated for vkd3d hosts).Also: 286/287 means the CPU-side HLE (acphal/XGameSave/PLS/shader decode…) is fully healthy under Wine — the earlier per-area Wine reports hold up; the boundary is exactly where real device objects are handed across.
@pickles976 on GitHub · 2026-11-24 03:25 UTC · original
Follow-up with the e2e binaries on the same Wine 9 + llvmpipe setup (
--test-threads=2, xvfb):console_dlls_e2econsole_shadersdisasm_e2eheap_probepls_quota--lib)The
pls_quotafailure is a Wine-only export-location gap:hook: kernelbase.dll!CopyFile2 not found. On WindowsCopyFile2is akernelbaseexport; Wine still exports it fromkernel32. One-line portability fix for the hook resolver: when akernelbase.dll!<fn>lookup misses under Wine, retrykernel32.dll!<fn>(the reverse also holds for a fewkernel32functions Wine moved into kernelbase). With that, the whole CPU-side suite is green on Linux/Wine — the only remaining blocker in the lib suite is the vkd3d vtable-identity assert noted above.@pickles976 on GitHub · 2026-11-24 04:26 UTC · original
Correction to my earlier comment — the
pls_quota/kernelbase.dll!CopyFile2note: I suggested a kernel32-alias fallback, and that was wrong. On this box's Wine 9 the export does not exist in any wine DLL (checked the full export tables of allx86_64-windows/*.dll— noCopyFile2anywhere), so there is no alias to retry; and current Wine (wine-11.0,dlls/kernelbase/file.c) implementsCopyFile2 (kernelbase.@)exactly where Windows puts it. So XCL's lookup is right by design — the failure is purely "Wine 9 is too old": the actionable fix isWine ≥ 11, no XCL change. Anyone on a Wine 9-era runner (including CI images built from Ubuntu packages) will see exactly onepls_quota-style failure and can ignore it as a known environment artifact.@metric-vac on GitHub · 2026-11-24 05:54 UTC · original
Tested the Linux kit from #257 on AMD (RADV). It gets further than the black screen described here, but menu text is garbled, there's a diagonal line across the screen, and it crashed after about 6 minutes.
Setup
26fdda6(head of #257), release build,x86_64-pc-windows-gnu, rustc 1.98.1vkd3d-proton-xcl.patch, built withbuild-vkd3d-proton.shbuild-opus.shscripts/linux/run.sh,XCL_NETWORK=0What happened
Failed to import host memoryin the output.Crash at 356 s
Thread 432 is the one that logs the presents and the sparse window uploads, so it looks like a memcpy in XCL's submit path reading an unmapped page. The release build has no symbols, so I couldn't resolve the
xcl.exeoffsets.What the log showed shortly before the crash:
I can share the full
xcl.log/report.jsonor rerun with a debug build if that helps.Not tested: Windows on this machine, a gamepad, any other title.
Report written with Claude Code (Claude Opus 5.5) from my run and its logs; I checked it.
@pickles976 on GitHub · 2026-11-24 05:57 UTC · original
Small ask before this thread grows another "it rendered wrong" report: the crash line. If it produced a
game_scarlett_master.exe+0x…or an xcl-side fault, that offset classifies it instantly — the day-1 site map (self-kill sites, the 8 GBint3, the cold-run sentinel family) is pinned in #534/#232 and I just cross-posted it to the other project (VIctory#630) for the same reason. Site beats symptom.@metric-vac on GitHub · 2026-11-24 06:13 UTC · original
The site is xcl-side, not in the game exe: the AV is a read at 0xb638e2000 in msvcrt.dll+0xa4b6 (memcpy), called from xcl.exe+0x2cfde0 on the present/sparse-upload thread (top frame xcl.exe+0x4f5e7b, through d3d12core.dll+0x1f7e0/+0x1e1b5). No game_scarlett_master.exe frame on the faulting stack. Release build at
26fdda6, so no symbols. I can rerun with a debug build to resolve the offsets if that helps.@pickles976 on GitHub · 2026-11-24 06:22 UTC · original
Cross-link worth having: your signature is the second report of one shape. On #616, brainhay5 posted a Windows/RTX-5070-Ti AV at
VCRUNTIME140.dll+0x1dafb(a CRT copy routine) reading a computed source address — presents healthy at 30 fps, real audio, no watchdog involved. Yours:msvcrt.dll+0xa4b6(same routine family) reading0xb638e2000on the present/sparse-upload thread, no game frame on the stack. Two OSes, two CRTs, same stage of the pipeline: an upload path copying from a source pointer that outlived its allocation. If either run can print(src, len)at the fault, the producer is named — I would point the next capture at the sparse-upload source bookkeeping (freed/reused guest pages behind a retained host pointer). Filing both under one title helps whoever picks it up.@metric-vac on GitHub · 2026-11-24 06:31 UTC · original
Thanks for the cross-link. Correction first: the stack in my report was the exit-path one (cpp_exception_logger), not the fault. The first-chance line in xcl.log, resolved against the same
26fdda6release xcl.exe, is:msvcrt memcpy <- title_textures::read_committed+0x209 <- title_textures::subresources+0x25d <- title_textures::refresh+0x16d6 <- game_scarlett_master.exe+0x75e1dd0
So it's the title-texture refresh, not the sparse-upload bookkeeping. (src, len) from the fault registers: src = 0xb638e0000 (title CPU memory, a texture kept in step with its GPU view at 0x1163…), len = 0xa0000, dst = 0x3e06a0040; rbx/rdx = src, rbp/r12 = src+len, rsi/rdi advanced by 0x2000, r8 = 0x9e000 left. The fault is at src+0x2000. That range is outside the coherent window, so it took the VirtualQuery path: the region was committed and readable when queried, then gone 8 KB into the copy. That looks like a check-then-copy race with a free/decommit on another thread, matching your "outlived its allocation" reading. Happy to rerun with a build that logs (at, len) and the VirtualQuery result in read_committed if that helps.
@cmt8 on GitHub · 2026-11-24 06:32 UTC · original
An RDNA3 data point on stock vkd3d-proton 3.1 (the release DLLs, assertions on), with measurements for the write-watch guess in the RX 7800 XT report above, and a variant of the hand-back approach that has no swap window for fences and allocators.
Setup: Arch (distrobox), kernel 7.3.5, RX 7900 XTX (Navi 31), Mesa 26.3.1 RADV. Wine 11.22 (Arch package; reports kernel write watches), vkd3d-proton v3.1 release, unmodified, DXVK 3.1.1
dxgi, DXC 1.9.2609. XCLmain(e50836b) + the branch below, cross-built forx86_64-pc-windows-gnu, release.XCL_NETWORK=0. The retail title.1. Write watch on RADV: measured, and the cost is the reset, not the scan
A probe test (
crates/xcl/tests/write_watch_probe.rson the branch; 4095 MiB window opened withOpenExistingHeapFromAddress, import checked by a GPU readback, median of 5):GetWriteWatchSo, slightly different from the guess above: every command submission faults the whole userptr BO for write, which clears the write-protect bit on every page, so the window reads fully written after any submit. And a
GetWriteWatch(RESET)on any part of it makes the next submit pay a fixed ~0.5 s per 4 GiB. Scanning is cheap. Read from Wine 11.22 and Linux 7.3 sources: the reset isPAGEMAP_SCANwithPM_SCAN_WP_MATCHING, whose MMU-notifier invalidation reaches amdgpu's userptr invalidation. That the 0.5 s is the BO's revalidation is a guess.What I did under Wine (
2b10a05): windows opened withOpenExistingHeapFromAddressare left out of the write-watch looks and their textures count as written; the content hash still skips unchanged ones. A submit always sits between two looks, so the look already reported them all as written. In the GPU test, refresh + upload submit for a 4095 MiB window went 580 → 27 ms. On the retail title with the learned 4095 MB window: ~1 fps → 7–8 fps in the intro, 2–3 fps on the loading screen. What limits it now is hashing every window texture at every look (~330 MB and ~14 ms per look) plus ~24 ms per submission that the kernel spends walking the window. Not solved.2. Stock vkd3d-proton without a swap window for fences and allocators
The v3.1 release DLLs do have the assertions (29
lpVtbl ==strings ind3d12core.dll), so the first thing a GPU run hits isiface->lpVtbl == &d3d12_heap_vtbl. Underutil::under_wine()only:ff59ccd: for Heap, Resource, DescriptorHeap, RootSignature, PipelineState, QueryHeap and CommandSignature, XCL's entries are written into vkd3d-proton's own vtable (asxaudio2.rsalready does), up to the interface's public method count, so the pointer identity holds. Command lists keep XCL's table and get vkd3d-proton's back only aroundExecuteCommandLists(same as the hand-back).07bccd7,229bd68: fences and command allocators are XCL wrapper objects with the untouched host object behind, unwrapped where they go to the host (queueSignal/Wait,CreateCommandList, listReset,KickoffX). No swap, so no window, and shared fences need no flag dropped.Result: the repo's test title passes 50/50 under Wine on the stock release; the suite is 708 passed, 4 failed, 42 ignored (
gpu_nonfused_mad…as in #472,pls_quotaas in #810,predication_e2ebecause vkd3d-proton does not predicateCopyBufferRegion, and e2e at the Opus voice without a libopus). Known gaps: bundles (vkd3d-proton drops an adopted one),SetEventOnMultipleFenceCompletionwith several fences, a fence'sCreateSharedHandle.3. Two smaller Wine things
report.jsonwas never written under Wine (no called stubs, no shader statistics,presents: 0).5eefc87writes it from the existingNtTerminateProcesshook.7694a6adoes the same thing by keeping it off-screen).Where the retail title stops here: first-run settings and legal pages, intro, loading screen with its artwork, then black and the null write at
+0x23cf683after ~470 s, with the registers from #662. With the 7-argumentCopyFromSubresourcereading (#539 / #684) both copies log a 64-bit source and row pitches of 0x100 / 0x800. No GPU hang on Mesa 26.3.1 with the 4095 MB window in four runs, unlike the 512 / 1024 MB runs on Mesa 26.1.8 above; I have not tried those sizes.Branch: https://github.com/cmt8/xcl/tree/wine-fixes-2 (the notes, with what was run and what was only read, are in
docs/linux-wine.mdonwine-bringup). I have not opened PRs: several pieces overlap open ones (#530, #794, #257), and the vtable part depends on which way the maintainer wants to go. Happy to test other people's PRs on this card.Not tested: Windows (I have none; everything is gated on
under_wine()except the two f64 NaN changes, which #530 covers anyway), NVIDIA, Proton's Wine or its vkd3d-proton build, a gamepad, bundles.AI use: Claude Code. The code, probe and log analysis were written by Claude Opus 5.5 agents, supervised by Claude Mythos 5.2, which also drafted this comment. The runs are mine, on the hardware above.
@Aruku448 on GitHub · 2026-11-24 06:35 UTC · original
Measured on Linux with my own copy of the package ("a newer retail game"): Wine 11.22 Staging, RX 7800 XT (RADV, Navi32), xcl built from
main(cross-built on Linux with cargo + xwin, clang-cl/lld-link), DXC 1.9.2607.vkd3d-proton 3.1 (the release tarball) — the stop this issue describes:
Assertion failed: iface->lpVtbl == &d3d12_heap_vtbl,libs/vkd3d/vkd3d_private.h:1077, right after the device is created.The vkd3d-proton that Proton-CachyOS 11.0 ships (
vkd3d-1.1-5438-g3dfc6f0, from itsfiles/lib/wine/vkd3d-proton) — no assertion, and the device is real:report.json:"backend": "real", adapterAMD Radeon RX 7800 XT (RADV NAVI32) (16368 MiB VRAM),classes
ID3D12Device15, ID3D12Heap1, ID3D12CommandQueue, ID3D12Fence1, ID3D12CommandAllocator,unknown_iids: [],failed_pipelines: 0,fallback_pipelines: 0.vkd3d_fence/vkd3d_queue/vkd3d-diskthreads are alive; the kernelx reservation runs.So the identity check that fires on 3.1 does not fire on the newer build — whatever changed there already removes this stop in practice, which may matter for deciding whether the proxy proposal is still needed.
What stops now: the title raises its own
int3withE_INVALIDARGin the return register, before any shader is submitted (shaders.unique == 0) and before any present (d3d12.presents == 0).called_stubsis empty, so it is not a missing export — more likely one console-creation path hands back a PC-shaped object the title rejects.Two smaller notes:
WINEDLLOVERRIDES="d3d12=n,d3d12core=n,dxgi=n"with the Proton copies in the exe's directory.submit.backtrace.ioon this path (HTTP 200 on the assert), so Linux runs may want the network blocked.Happy to re-run with
XCL_D3D12_DEBUG=1and report which call returns theE_INVALIDARG, if that is useful.@pickles976 on GitHub · 2026-11-24 06:35 UTC · original
@metric-vac — correction accepted and it upgrades the report: a first-chance AV inside
title_textures::read_committedis xcl's texture-read path faulting, which makes your report and brainhay5's #616 signature (VCRUNTIME140copy AV, also texture-adjacent) two hits on one subsystem, not just one shape.I couldn't pin
+0x209to a specific copy:26fdda6isn't a commit I can rebuild byte-identically (no tag, my toolchain/crate versions would shift the body anyway) — so here's the source-level answer, which covers both candidates.read_committedcontains exactly two copy sites (crates/xcl/src/hle/dstorage-adjacent filehle/d3d12x/title_textures.rs:1028):in_committed_window(at, len)then onecopy_nonoverlapping— trusts that a committed window's backing survives; a guest free of the underlying pages between window validation and the copy faults exactly like yours;VirtualQuerywalk: each chunk is judgedMEM_COMMITand then copied — the classic check-to-copy window.A page-aligned fault address (
0xb638e2000) is consistent with either. Both are the same defect: the VA range is validated at time T and read at time T+ε, while the guest can free it in between (upload thread races the title's allocator). Two directions for whoever fixes it:read_committedfault-tolerant: guarded copy — on AV, zero-fill the faulting 4 KB chunk and continue (a torn texture, not a dead process; xcl already installs exception logging, a VEH scoped to this thread is the same machinery);read_committedspans for that VA range.The VEH route is small, testable (test data can synthesize a free-under-read), and turns a fatal class into a logged anomaly while the ordering fix is designed — worth its own issue.
@cmt8 on GitHub · 2026-11-24 06:37 UTC · original
@Aruku448 that
int3withE_INVALIDARGbefore the first shader matches what I got with an assertion-free build of 3.1: the list'sReset(andCreateCommandList) fail becaused3d12_command_allocator_from_ifacecompares the allocator's vtable at run time, not in an assertion, so a build without assertions still rejects XCL's adopted allocator.VKD3D_DEBUG=warnshould showInvalid command allocator.in your stderr if it is the same thing.ExecuteCommandListshas the same kind of check for lists right behind it (d3d12_command_list_from_iface). So the newer build removes the assertion stop, not the need for XCL to hand vkd3d-proton objects it recognises. The branch in my comment above (https://github.com/cmt8/xcl/tree/wine-fixes-2) gets past both on the 3.1 release, on a 7900 XTX; if you try it on your 7800 XT I'd like to know whether the write-watch numbers match.@metric-vac on GitHub · 2026-11-24 06:46 UTC · original
Thanks. One narrowing from the registers: src=0xb638e0000 is not inside a coherent window, so it's the VirtualQuery-walk copy, not the fast path. The pages were reported committed and gone by the copy.
@Aruku448 on GitHub · 2026-11-24 06:52 UTC · original
@cmt8 — the 7800 XT datapoint you asked for. Your
wine-fixes-2(bbc472f) on stock vkd3d-proton 3.1 (release DLLs, assertions on), DXVKdxgi, Wine 11.22 Staging, Mesa 26.3.1 RADV, RX 7800 XT (Navi 32), DXC 1.9.2607,XCL_NETWORK=0,VKD3D_DEBUG=warn, cross-built on Linux (cargo + xwin, clang-cl/lld-link).It gets past both checks you named. No
Invalid command allocator.in stderr, noint3; the title reaches its account/setup screen and presents its own frames (PresentX – the title presents its own frames (1 plane(s))), with the window kept off the title's own. The 3D background is still black at that point, which is the pipeline queue, not a stop.Numbers after 420 s, when I stopped it (it was still running):
console code so far: 11,039 draws with translated pipelines (0 skipped, 0 with PC pipelines), 512 dispatches (0 skipped); coherent 3998/4095 MBtitle textures timing: 2,048 looks, 474,189 textures checked, 277,962 ms checking and uploading: hash 274,297 ms (726,907 MB), upload 2,410 ms (747 textures)title textures: 524,288 uploads left out so farcompiling shaders: 0 running, 12 done, 57,817 pipelines queued, 1.3 FPSreport.jsonhaspresents: 0only because your change writes the report at process end and I killed it; the log's PresentX line is the real count.So on this GPU the texture look dominates: 274 s of the 278 s is hashing 727 GB, and the 57,817-pipeline queue barely moves at that frame rate. If you want a comparison figure for the write-watch change itself, that
hash … (726,907 MB)per 2,048 looks is the number to watch; say the word and I will run the same 420 s with2b10a05reverted, or with a different look budget, to give you a before/after on the same GPU.Unrelated but useful for Wine runs: the title's own crash reporting uploads to
submit.backtrace.iowhen it asserts, soXCL_NETWORK=0is worth having on by default here.@cmt8 on GitHub · 2026-11-24 06:55 UTC · original
@Aruku448 thank you, that is exactly the data point I was hoping for: a second RDNA3 card past both checks on the stock release.
On the hash numbers: is that a debug build? Your log works out to ~2.65 GB/s (726,907 MB in 274 s). My release build on the 7900 XTX hashed 1,344,158 MB in 57.7 s over 4,096 looks, ~23 GB/s, for about the same amount per look (328 MB vs your 355 MB). HANDOFF.md notes the content hash is ~10x slower in debug, which would account for the whole gap and for 1.3 fps against the 7–8 I see in the intro.
Hashing every window texture at every look is the known cost of
2b10a05: under Wine on RADV the write watch can't say which textures changed, so the hash is the only filter left. I'm looking at cheaper change detection; nothing to show yet.Yes please to the before/after with
2b10a05reverted, on a release build if you can. What I'd expect without it: ~10^5 dirty pages per submit in thesparse windows timingline and the next submit after each look taking ~0.5 s. Two other things worth trying on your card, from reports above:XCL_COHERENT_MB=512(every RADV run in this thread that got past the menus used it), and for the world load a vkd3d-proton with the newer dxil-spirv from #775. My last run ended with a Wine stack overflow on a pipeline-building thread 27 s before the title's watchdog fired, which looks like the same converter bug.Agreed on
XCL_NETWORK=0.@Aruku448 on GitHub · 2026-11-24 07:10 UTC · original
@cmt8 not a debug build:
cargo build --release(Finished \release` profile [optimized]), cross-built forx86_64-pc-windows-msvcwith clang-cl/lld-link (no-C debug-assertions). I also rebuilt with-C target-cpu=x86-64-v3`: same rate, so it is not the ISA either.I think the gap is where my package sits, not the build. This machine's two NTFS volumes are mounted with ntfs-3g (FUSE) — the in-kernel
ntfs3cannot read two of the archives here at all (Corrupt 0x80 attribute), which is why. A plain sequential read of the largest archive on that mount measures 2.1–2.6 GB/s, and the hash phase measures 2.65 GB/s (726,907 MB / 274,297 ms). That match is the whole story: the texture hash is walking game pages that fault into a FUSE mount, and it lands on the mount's read rate.Two things I can still give you, whichever is more useful:
2b10a05A/B on the same GPU and the same 420 s (revert vs keep), so the write-watch effect is isolated from my slow storage — that is the number you asked for originally.XCL_PIPELINE_THREADS=1and a fixed look count so the two of us compare like for like. For reference, one thread here gives 10,700 MB / 26.5 s ≈ 404 MB/s, i.e. it scales with the look loop rather than saturating anything.Machine for the record: 16-thread Ryzen, 31 GB RAM, Mesa 26.3.1 RADV, Wine 11.22 Staging; the title runs with the 4 GB arena and
XCL_NETWORK=0.@cmt8 on GitHub · 2026-11-24 07:16 UTC · original
@Aruku448 thanks, the storage explanation would fit if the title maps those archives. Yes please to the A/B. A third run would tell more than either: the same build with
XCL_COHERENT_MB=512. On my 7900 XTX that took the menus and intro from 4–7 fps to 27–28 (1,800 frames in 89 s), with the window texture hash down to 1.3 s for 4,096 looks. A probe on the branch puts the cost at ~23 ms per GPU submission with a 4095 MiB window imported and 3.4 ms with 512 MiB, so the window size matters far more than the hash. #871 makes the small window the default under Wine and reroutes what no longer fits.@lucsoft on GitHub · 2026-11-24 07:19 UTC · original
Follow-up to my RX 7800 XT report above: the post-intro GPU hang is gone with a newer Mesa, and on AMD under Linux the retail game now gets as far as it does on Windows: the loading screen with its artwork, then the title's own "GPU Loc Sig" abort.
The hang: with Mesa 26.1.8 it came every time (the 30-index draw from my report, also with the full 4095 MB window). With Mesa 26.3.1 (the version @cmt8 runs) it did not come back. The run went through the intro and loading for 681 s. I had to change Wine at the same time (11.8 → 11.21 Staging, because that Mesa build needs a newer glibc), so I can't fully separate the two; Mesa is the likely one. @radv-tinker, your RDNA4 runs were on Mesa 25.3.6. A run on 26.3.x would show whether it's the same fix.
Setup now: XCL
mainbeaa245+ @cmt8's2b10a05(imported window left out of the write watch under Wine) + #684 (CopyFromSubresourcewith 7 arguments). vkd3d-proton 3.1 relaxed as before,ignore_shared_fence, DXVK 3.1.1, DXC 1.9.2609,XCL_NETWORK=0, the learned 4095 MB coherent window. RX 7800 XT, RADV 26.3.1, Wine 11.21 Staging.What happens:
0xc0000005writing inmsvcrtmemcpy fromxcl::hle::xg::copy_from, called fromgame+0x979f5b, 574 s in. That is #662's first crash, so #684 is needed under Linux as well.game+0x23cf683(write to 0), and Breakpad logsGPU Loc Sig, as in #505 / #534 / #662.2b10a05. Without that commit the same window gave under 0.5 fps here.Not tested: Mesa 26.1.8 with Wine 11.21 (to separate the two), #494 / #495 / #496, a gamepad.
AI use: Claude Code (Claude Opus 5.5) did the investigation and wrote this comment. The runs were real, on the hardware above.
@Aruku448 on GitHub · 2026-11-24 07:23 UTC · original
Correction to my previous message, and a narrower measurement.
Storage is not it. I moved the package to the same NVMe but mounted it with the in-kernel ntfs3 driver instead of ntfs-3g (the earlier ntfs-3g choice was for a different volume that ntfs3 could not read). Same 240 s run, same 4 GB arena:
title textures timing: 1,024 looks, 64,640 textures checked, 25,219 ms … hash 23,820 ms (10,714 MB)≈ 450 MB/s, i.e. the mount made no difference. My "the hash is walking FUSE pages" guess was wrong.What the numbers do say, from
content_hashintitle_textures.rs(four multiply-rotate lanes over 32-byte chunks — a few GB/s on one core is the design point):2,048 looks, 474,189 textures, hash 274,297 ms / 726,907 MB≈ 2.65 GB/s) is 355 MB per look, i.e. the same loop with bigger textures — so the rate scales with bytes per look and tops out near 2.6 GB/s here;If it helps, I can run a fixed shape on request — e.g.
XCL_PIPELINE_THREADS=1plusXCL_TEXTURE_TRACE-style logging if such a knob exists — or just tell me which counter you want compared and I will match your 4,096-look window exactly.Machine note for the record: 16-thread Ryzen, 31 GB RAM, Mesa 26.3.1 RADV, Wine 11.22 Staging,
XCL_NETWORK=0, package on NVMe via ntfs3.@cmt8 on GitHub · 2026-11-24 07:25 UTC · original
@Aruku448 thanks for chasing that. For comparison, my side: Ryzen 7 7800X3D (16 threads), 32 GB RAM, no swap in use (zram),
transparent_hugepage=always, plain Wine 11.22 (Arch), XCL built forx86_64-pc-windows-gnu(mingw-w64), release. The rate is there from the start, not an average:16 looks, 725 textures checked … hash 6 ms (142 MB), then64 looks … hash 32 ms (643 MB), so ~20–23 GB/s throughout.So I agree it is not the hash loop on your side, and I can't tell from here what it is. Three things that differ between us and are cheap to check:
cat /sys/kernel/mm/transparent_hugepage/enabled(mine isalways).WINEDEBUG=+virtualprintsUsing kernel write watches.near the top when it is the userfaultfd one. Staging builds have differed on this earlier in the thread.perf top -p <pid of xcl.exe>(orperf record -gfor ~10 s) while it sits in the menus. If the time is in the kernel (page faults,handle_userfault,follow_page) rather than inxcl.exe, it is the memory mapping, not the code. If it is inxcl.exe, the symbol will say whether it iscontent_hashor the committed-range check you suspect.A run with
XCL_COHERENT_MB=512would also separate the two: with the small window, far fewer textures are in the imported range.No need to match my 4,096-look window; the first
title textures timinglines are enough to compare.@Aruku448 on GitHub · 2026-11-24 07:32 UTC · original
The three checks, on my side:
[always] madvise never— same as yours.WINEDEBUG=+virtualprintstrace:virtual:kernel_writewatch_init Using kernel write watches.— same mode as yours.perf record -pcatches no samples; the hashing only happens during the loading phase.So the visible difference is not THP, not the write-watch mode, and not the hash function itself. Two things that do differ:
The two lines I would like to compare, cold start, same phase:
title textures timing: 16 looks … hash 6 ms (142 MB)→ ~23 GB/s512 looks, 32,069 textures checked … hash 11,567 ms (5,312 MB)≈ 460 MB/s, and1,024 looks … hash 26,638 ms (10,651 MB)≈ 400 MB/sSame phase, same look size, ~50× apart. One build difference is left that I can test cheaply: you build
x86_64-pc-windows-gnu(mingw-w64), I buildx86_64-pc-windows-msvc(clang-cl + lld-link, against the xwin SDK). If thewindowscrate's memory access path under Wine differs that much, the gnu build would show it — say the word and I will run the same 240 s with the gnu target and post both numbers.For the record, the setup here: Wine 11.22 Staging, Mesa 26.3.1 RADV, RX 7800 XT, package on NVMe mounted with in-kernel ntfs3, 4 GB arena,
XCL_NETWORK=0.@lucsoft on GitHub · 2026-11-24 07:34 UTC · original
Follow-up for the RX 7800 XT: with #871, Linux on AMD now reaches the same stop as Windows: the world loads, the first ListX
#101call comes, and ~34 s laterGPU Loc Sigfollows (#505). It runs at 25–30 fps until then.Setup: XCL
mainbeaa245+ #871 (with #867) + #775 (dxil-spirv53aac418in vkd3d-proton 3.1) + #684. vkd3d-proton 3.1 with the relaxedfrom_ifacelookups,ignore_shared_fence, DXVK 3.1.1, DXC 1.9.2609,XCL_NETWORK=0. Mesa 26.3.1 RADV, Wine 11.21 Staging, RX 7800 XT, Ryzen 7 7800X3D.Run:
coherent 116/512 MB,sparse 9142 MB). Account prompt, intro and loading at 25–30 fps (600 frames … 27.1 fps,1200 … 30.0,2100 … 26.7), briefly 9.5 fps when the world starts loading.40b of address set. Without #871, the same 512 MB window died at 172 s inxboxbvhbuilder.dll: the overflow went to a GPU view at0x726e27fe0000, far above 2^40 (#585).ID3D12GraphicsCommandList10::#101 (not on PC)call, from+0x50a6657. At 196.3 s the title writes to 0 at+0x23cf683and Breakpad logsGPU Loc Sig. That is a gap of 33.8 s, the same pattern @bstillbstill and @oz-stanislav-zhukov measured on Windows / NVIDIA in #505 (31–36 s).Corrections to my earlier comments:
RADV_DEBUG=nonggc. They were all chasing that same hang.2b10a05and #871 touch the same code intitle_textures.rs. I use #871 instead of it.Not tested: stock vkd3d-proton with #867 alone (the relaxed build is still in), BCPack decoding, Mesa 26.1.8 with Wine 11.21.
AI use: Claude Code (Claude Opus 5.5) did the investigation and wrote this comment. The runs were real, on the hardware above.
@oeirughrepuiohg on GitHub · 2026-11-24 07:40 UTC · original
Linux + NVIDIA data point: the retail title reaches the world and draws world geometry under Wine on an RTX 4070 Ti.
Setup: RTX 4070 Ti 12 GB (620.70.06), Fedora 45, kernel 7.3, GE-Proton11-14's Wine (wine-11.0 staging, kernel write watches) with a copy of its
default_pfx, gamescope (nested, 1920x1080), DXVKdxgi/d3d11/d3d10corefrom Proton. vkd3d-protoncae8353e+scripts/linux/vkd3d-proton-xcl.patch+-Db_ndebug=true, with dxil-spirv at53aac418(the #775 pin). XCLmainbeaa245+ #793 + #820 + #759 + #640, built forx86_64-pc-windows-gnu.VKD3D_CONFIG=ignore_shared_fence,XCL_NETWORK=0.What happens
err:vulkan:vkAllocateMemory Exception 0xc0000005 in Unix callwhile local video memory sat at ~11.9 of 12.3 GB (sampled every 2 s); 4 of 4 runs. With #640 andXCL_PAGE_BUDGET_MB=4096the same route gets past that point: world geometry renders (trees, road signs, street lights; flat, untextured, unlit), 15-30 fps presented, the title's crash context shows peds and cars spawned. So on 12 GB cards #640 turns a driver crash into a working world load; it may be worth a default for cards under 16 GB.VKD3D_SHADER_CACHE_PATHand__GL_SHADER_DISK_CACHE_PATHon persistent storage and a fullxcl pipelinespass first, the next run still spends the same time: the log marks many as "the driver's blob of an earlier build" (theCachedPSOblob is taken) yet creation still takes up to 14 s, and the NVIDIA cache directory keeps growing during the run. So on vkd3d-proton + NVIDIA the cached PSO blob does not seem to skip the expensive part. Note for anyone reproducing in a sandbox: by default vkd3d-proton writes its cache to the working directory and NVIDIA to~/.cache, so a read-only cwd or tmpfs home silently disables both.XCL_BIG_COMPILES=4helps but does not remove them).xcl pipelines(#759) between runs removes most of them; note the cache key includes the xcl.exe hash, so any rebuild throws the precompile away.Two Linux/gamescope notes
xdotool search --name '^A$' windowunmap) shows the game. Not sure which component creates it; reporting in case it matters on other compositors.xdotool keytaps are too short for the title's 30 Hz polling and are ignored;keydown, ~150 ms,keyupworks.AI-assisted (Claude Code). No game data attached.
@ClosetPie107 on GitHub · 2026-11-24 07:57 UTC · original · edited 2026-11-24 08:31 UTC
RDNA4 + RADV under Wine: a title-textures GPU test loses the device after other tests ran in the same process (
The CS has been rejected (-14))Found while running the suite on an RX 9070 (row in #42). It's a test-suite observation, no game run.
Setup: RX 9070 (RADV GFX1201), Mesa 26.3.1, kernel 7.3.5, Proton Experimental's Wine (
experimental-11.0-20261112, kernel write watches), vkd3d-proton v3.1 + #257's patch +-Db_ndebug=true+ dxil-spirv53aac418, DXVKv3.1.1-209, DXC 1.9.2609.5. Release build ofmain1ec4c98,x86_64-pc-windows-gnu. Run withVKD3D_CONFIG=ignore_shared_fence XCL_NETWORK=0 XCL_ADAPTER=9070.What happens
--librun (3 of 3 with--test-threads=4, 1 of 1 with--test-threads=1), RADV printsradv/amdgpu: The CS has been rejected, see dmesg for more information (-14)(sometimes(-1)). Thenhle::d3d12x::title_textures::tests::gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changesfails withHRESULT(0x887A0005)attitle_textures.rs:1305. Three more tests fail on the poisoned lock (placed_title_textures_share_vram_and_preserve_pixels,transitions_apply_when_their_list_is_submitted,d32s8_targets_take_their_own_size_of_video_memory).EFAULTfrom the CS ioctl.XCL_SPLIT_WAVE64=1and 4 threads, the same rejection ends the whole lib process:the D3D12 device was removed (0x80004005), exit status 5, 3 of 3 runs.Cause (added in the edit)
hle::d3d12x::list_x::tests::write_buffer_immediate_on_open_existing_heap_visible_to_cpuproduces the CS rejection.VirtualAlloc(MEM_WRITE_WATCH)block into the shared test device withOpenExistingHeapFromAddressand places a buffer in it.buf.clone()insideManuallyDrop, which is never dropped, so the buffer and its heap stay alive.VirtualFree(mem, 0, MEM_RELEASE).hle::d3d12x::title_texturesreproduces it alone: 3 of 3 serial runs, nogpu::recompneeded.VirtualFreeleft out (a local experiment, not a proposal), that pair no longer shows the rejection in 3 runs. On Windows drivers this apparently goes unnoticed.hle::d3d12x::sparse::tests::a_freed_block_is_decommitted_before_its_address_is_reused, a new 64 MiB sparse pool per alloc/free cycle).gpu_mirror_upload…still fails in 3 of 3 full runs, here asTimeout(5000)attitle_textures.rs:1291(E_OUTOFMEMORYon the RTX 3060 in #913).With both out of the way (the
VirtualFreeleft out plus--skip a_freed_block_is_decommitted_before_its_address_is_reused):--libwith--test-threads=4: 668 passed, 5 failed, 21 ignored, 3 of 3. The 5 are the f64rsq(#530), the FMA control (#472 / #676), and XMA2 / OpusGetState(#890).XCL_SPLIT_WAVE64=1the lib binary now finishes (661–663 passed, 2 runs). The rest of those failures are the split-wave64 ones reported in #42.Original narrowing (serial runs, one process each, no split). The table holds; the build-up reading of it does not: the failing rows are the ones containing the
sparsetest or thelist_xtest above.gpu_mirror_upload…gpu_sparse_vram_descriptors_buffers_and_xmemhle::d3d12x::title_textures+hle::d3d12x::list_xhle::d3d12x::title_textures+hle::d3d12x::sparsegpu::+hle::d3d12x::title_texturesgpu::recomp+title_textures+hle::d3d12x::sparsegpu::recomp+title_textures+hle::d3d12x::list_xhle::(nogpu::)--skip gpu_sparse_vram_descriptors_buffers_and_xmemOne row I can't explain:
title_textures+ all ofhle::d3d12x::list_xpassed in a single run, while the onelist_xtest above plustitle_texturesfailed 3 of 3 later. Something else inlist_xmay hide it in that combination; I didn't look further.Not tested: a fix for either test (the experiment only removes the
VirtualFree, it doesn't release the leaked barrier references), #532 for cause 2, #867 / #871 / #877, another Mesa, NVIDIA under Wine.AI use: T3 Code (Claude Opus 5.5) ran the suite and the narrowing runs and drafted this comment and its edit. The runs are real, on the hardware above, and I checked the report before posting.
@sander110419 on GitHub · 2026-11-24 08:43 UTC · original
Linux on NVIDIA (32-lane waves): the newer retail game reaches its loading screen.
Setup: RTX 5070 Laptop GPU (8 GB), driver 595.104.02, Ryzen 9 9955HX, kernel 7.2.15, GE-Proton11-11 (wine, vkd3d-proton, DXVK),
x86_64-pc-windows-gnurelease build, rustc 1.99.1. Tree:main09940bb+ restoring the native vtable of allocators and submitted lists aroundCreateCommandList/Reset/ExecuteCommandLists(a subset of #867) + #793, #794, #905, #900, #891, #889, #906, #876, #851, #850, #908, #887;VKD3D_CONFIG=ignore_shared_fence.Result: the start screen draws its UI at 30 fps; after pressing A the loading-screen artwork renders at 28–30 fps. Presents stop ~114 s in, and the title's watchdog ends the process ~55 s later (write to 0 in its own fatal path). Without #905, 2,048 BCPack requests fail with
E_DECOMPRESSIONand presents stop ~60 s in, before the loading screen.Three Wine-specific things I hit, none root-caused:
umu-run,xcl.exehangs with no output, even for--version. The same binary started with Proton'swinedirectly works.cache\uma_coherent.txtis present (written at the end of a run: "a window of up to 4095 MB from the next run"), the next start stops afterUMA: 3 sparse VRAM window(s) (12 GiB VA) + 4095 MB coherent window. The process runs at ~600 % CPU and blocks in the kernel (pson it hangs) until SIGKILL. Deleting the file before each start avoids it.cargo test -p xcl --libunder wine on this GPU: the test process exits (code 5) after 182 passing tests, in whichever GPU test comes next (the split-wave64 ones when run in order). The two I ran alone pass.Not tested: Windows, AMD, the
xcl-smokescript.AI use: Hermes agent with Claude Opus 5.5 (
claude-opus-5-5) did the builds, runs and diagnosis, and wrote this report; I checked it.@ClosetPie107 on GitHub · 2026-11-24 09:09 UTC · original
RDNA4 + Mesa 26.3.1: stock
mainreaches the #505 stop under Wine, with no #867 / #871. #905 adds the loading artwork.This is the retail game on the same RX 9070 setup as my test-suite comments above (#42 row, the edited comment in this thread).
Setup: RX 9070 16 GB (RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GB RAM (zram swap only), CachyOS, kernel 7.3.5. Proton Experimental's Wine (
experimental-11.0-20261112), vkd3d-proton v3.1 + #257'svkd3d-proton-xcl.patch+-Db_ndebug=true+ dxil-spirv53aac418(#775), DXVKv3.1.1-209, DXC 1.9.2609.5,opus.dllfrom #257'sbuild-opus.sh. XCLx86_64-pc-windows-gnu, release. Retail 1.0.2.1, started with #257'srun.shinsideunshare --user --map-current-user --net,XCL_NETWORK=0 XCL_COHERENT_MB=512 VKD3D_CONFIG=ignore_shared_fence. 8BitDo pad, menus walked by hand.main077ce40, nothing else077ce40+ #905 (44953c2)#101+0x23cf683MemAvailable#101, then the title's "GPU Loc Sig" kill about 30–45 s later (#505). Here it takes only stockmainand the relaxed vkd3d-proton. No #867 / #871 / #877 / #684, no GPU hang, no device removal on Mesa 26.3.1. (The runs end at ~130 s, well before the 574 s where #684'sCopyFromSubresourcecrash came for @lucsoft, so they say nothing about #684.)XCL_COHERENT_MB=512. Video memory still fills the 16 GB card during loading, but that isn't what stops it.Not tested: #867 / #871 / #877 on top, more than one run per tree, Windows on this card.
AI use: T3 Code (Claude Opus 5.5) built the trees, ran the game and wrote this comment from the logs. The runs are real, on the hardware above, and I checked the report before posting.
@sperm on GitHub · 2026-11-24 01:27 UTC · original · edited 2026-11-24 09:58 UTC
An RDNA4 data point, since the Linux reports so far are NVIDIA and one RDNA3 card.
Update (rerun): the early stall below is fixed by
VKD3D_CONFIG=ignore_shared_fence, the setting in #257'sdocs/linux.md. With it the retail game runs: 1,303 presents at a steady 30.0 fps, 3840×2160. The last sampled frame (XCL_FRAME_DUMP=120, frame 1220) has 517,542 of 518,400 sampled pixels non-dark. No crash and no watchdog; I closed the window at 61 s. I haven't checked yet what is on screen (menus, intro or loading).Update 2 (played into the world): with a controller, the menus go through, and the game loads into the world. The title's crash context says
Game Running, 3m18s, frame 2455, 637 streaming requests, tile heap 3,685 / 6,236 MB. It runs at 30 fps, drops to about 7 fps for the last minute while compute pipelines build, then the "GPU Loc Sig" abort (+0x23cf683, #505 / #534) comes at 229.8 s. With #533 it's the same at 202.7 s (report).Update 5 (warm-up runs: one compile runs this 32 GB machine out of memory): to get the big compute programs into the caches I ran the game with the watchdog's thread held and left it on the black screen (local changes: hold the thread, and
XCL_BIG_COMPILESto let more than one big compile run at once).34f0ff8pin) doesn't have yet. My vkd3d-proton build is that master, so this is most likely #611. I didn't sample that thread, so I haven't confirmed it.077ce40merged, dxil-spirv #371): a warm-up run on the same build built 27 big programs, then the test run made 121 big compute PSOs from the cache and compiled 1. It still stopped like the cold run: the first compute pipeline over 4 s about +48 s after loading began and the watchdog at about +74 s, against +63 s / +88 s with 0 from the cache and 41 compiled. At the stop onexcl-psoworker was compiling a program the warm-up never reached (2 min of CPU in dxil-spirv). So the stop isn't only the big programs that are already known; I haven't looked at what the title's threads wait on there yet.53aac418(#371) in vkd3d-proton master30b0eb9: memory no longer grows: the game stayed at 12 GB with 9 GB of RAM free. But the stop is about the same: the first compute pipeline over 4 s at about +53 s after loading starts, and the watchdog (+0x23cf683) at about +79 s (before: +47 s and +73.5 s). The one busyxcl-psoworker had spent over 2 minutes of CPU in dxil-spirv, all 8 samples inCFGNode::dominates. So #371 fixes the memory, but the structurizer is still slow on these programs here.Update 4 (main
64b3f35with #636 / #634 / #690, same machine, vkd3d-proton master): the driver-blob disk cache and the preload both work under Wine + vkd3d-proton.+0x23cf683) at +73.5 s, 16 compute pipelines over 4 s, 0 draws lost. The later times only came from more time in the menus. The 16 big compute programs never finish within a run, so they never reach a cache.GetCachedBlobreturns under 1 KB ("16 driver blobs kept on disk … 0 KB"), so the file kept is a reference, not the compiled code. Whether the next run is faster then depends on vkd3d-proton's own cache and Mesa's disk cache, not on XCL's file. Mesa's default 1 GB cache filled up here and started evicting;MESA_SHADER_CACHE_MAX_SIZE=8Gstops that.xcl-psoworker, with every big program queued behind it. Stack samples landed in RADV, but see the correction in update 5.Update 3 (where the slow pipeline builds go on Linux): XCL
main508a0c7plus #533 (f849ecc), #208/#273 (5f12643), #267 (043d1f7), #567 (7a63914) and #574 (86a5d0b), merged locally (#574conflicted with #267 inbind.rs; I took #574's side). Same machine and Wine as below.xcl-psoworkers sat at 100% CPU. 18 of 18 stack samples were inside vkd3d-proton's dxil-spirv structurizer, almost all inCFGNode::find_common_post_dominator(the rest inget_outer_selection_dominator,dominates_all_reachable_exitsandcan_optimize_conditional_branch_to_static). So on Linux the time goes in DXIL → SPIR-V, a step native Windows drivers don't have.master30b0eb9(dxil-spirv34f0ff8, with the structurizer rewrite from dxil-spirv #326), same relaxedfrom_ifacechecks: no samples in dxil-spirv any more; the one busy worker was inside RADV (Mesa 26.2.6, no symbols). In a 239 s run: 9 compute pipelines over 4 s, 0 draws lost, 256 dispatches skipped (6,223 with 3.1). The run was shorter, so it's a direction, not a measurement. The first minute is slower (the vkd3d shader cache starts cold after the version change).+0x2215c35at 117 s (run on 3.1),+0x23cf683at 185 s (run on master), both while frames dropped to 7–12 fps. Held with a local vectored handler that parks that one thread, the game went back to 30 fps after the 117 s one.DwmSetWindowAttributedoesn't implementDWMWA_CLOAK, so the title's own window stays visible next to XCL's. Moving it off-screen inWM_WINDOWPOSCHANGING(local change) hides it.DualSense over Bluetooth under Wine: out of the box, Wine opens it as raw hidraw, and XInput sees no pad. With
HKLM\System\CurrentControlSet\Services\winebusDisableHidraw= 1 (DWORD) in the prefix, Wine's SDL backend presents it as XInput pad 0, and XCL's GameInput uses it with no code change. This works inside the network namespace too. (#552 leaves a Bluetooth DualSense out on Windows.)Setup: CachyOS, kernel 7.3.4, RX 9070 XT (RADV GFX1201), XCL
mainat508a0c7, DXC 1.9.2609.wine. System Wine 11.22 was also tried for the stall below.dxgi.b_ndebug, withd3d12_command_allocator_from_ifaceandd3d12_command_list_from_ifaceaccepting any non-null object (the same idea as #257's patch).-Zbuild-std,lld-link,clang-cl+ xwin.XCL_NETWORK=0,XCL_COHERENT_MB=512, isolated network namespace.Without
ignore_shared_fence(four runs, same every time, both Wine builds)PresentX, 839 unique shaders, DirectStorage requests flow.queue #35 ExecuteCommandListsX (1 lists, value 0x1), after BVH build/copy and meta commands, then spins on the value.0xc0000005write at+0x2215c35, at 41.6–42.4 s. The crash context saysGame State: Game Init, frame 0.winevulkan: signaller_worker wait timed out with non-empty poll list.called_stubs: list#131and#132, allocator#9.Not tested: #494 / #495 / #496 / #572,
RADV_DEBUG=hang, a run on vkd3d-proton master as long as the 3.1 one, Mesa with symbols (which RADV pass is slow), an RDNA3 or NVIDIA card on the same build.Breakpad warning for Linux testers: without network isolation, the title's crash reporter uploaded its minidump to
submit.backtrace.iohere too (as in #505). Run insideunshare -nor behind a firewall block; inside the namespace the upload fails with WinHTTP 12029.AI use: Claude Code, Claude Opus 5.5: ran the builds and the runs, and wrote this report from their logs. Counts and outcomes only, no game files.
@Ali-AbdulHadii on GitHub · 2026-11-24 11:49 UTC · original
Linux + NVIDIA data point on the compile-stall wall, with where the time goes and what #765 + #172 change.
Setup: RTX 5080 16 GB (NVIDIA 620.73.04), Ryzen 5 5600X, 31 GB RAM + zram, CachyOS, proton-cachyos-slr Wine, vkd3d-proton master
30b0eb9+scripts/linux/vkd3d-proton-xcl.patch(-Db_ndebug=true), DXVKdxgi. XCL: a local branch ofmain47efa2ewith #765 and #172 merged on top (plus #640 page budget,XCL_PAGE_BUDGET_MB=2048). Run settings:XCL_COMPUTE_WAIT_MS=1000,XCL_PSO_WAIT_MS=250.Where the stalls come from. The title reaches gameplay (HUD, subtitles, mission audio), but the 3D picture stays black and the run ends after 280–370 s, on the stall watchdog (
+0x23cf683) or on a garbage pointer read in the title. In every run 35–50 % of the dispatches are skipped because their compute pipelines are still being built.The slow pipelines are a large pool of very big compute programs:
xcl shaders shaders.rpf --recompwithXCL_DUMP_HLSL/XCL_DUMP_EVERY=20(translation only: all 26 698 programs in 41 s) gives 162 CS samples: 54 over 1 MB of HLSL, 12 over 4 MB.vN = tN;×6 008,scc = (uint)(tN != 0u);×3 227). 15 166 lines (17 %) are the per-lane exec predicatex = select((((exec_lo >> lane_id) & 1u) != 1u), …, x). It is a wave32 program, so split wave64 is not the cause here.perfon the title during a run: ~42 % inlibnvidia-gpucomp, ~40 % in a PE module above0x6fff…(DXC, notxcl.exe; XCL's own code barely shows up).What #765 + #172 changed here, same machine and route (6 runs each side):
Wait64waits released by the 5 s watchdogWait64waits per run: 1, 0, 0, 0, 41, 15. GPU load was logged in 3 of the runs: no 100 % period in 2, ~40 s at 100 % right before the end in 1. Less often, not gone.So on NVIDIA the main remaining wall looks like DXC + driver time on very large programs. Dropping the exec
selectwhere exec is known to be full, and folding the copies into temporaries, look like the obvious size levers; I have not tried them.Not tested: AMD, native Windows, upstream
mainwithout the merged PRs.AI use: Claude Code (Claude Opus 5.5) ran the runs and the analysis and wrote this text; the user approved posting it.
@Filip722 on GitHub · 2026-11-24 11:43 UTC · original · edited 2026-11-24 12:11 UTC
RTX 5060 Laptop GPU follow-up on the Wine allocation crash. On Bazzite 44 with NVIDIA 615.78.08, Proton Experimental
11.0-20261112, vkd3d-proton v3.1 with #257 and dxil-spirv1dc543f, the offline load reached full loading artwork with XCL47efa2eplus #640, #782, #793 and #820. Playable world entry remains unverified.A local vkd3d-proton probe logged allocation metadata immediately before and after
vkAllocateMemory. On the thread that faulted, a 64 MiB device-local request (Vulkan type 1, heap 0, type mask0x3) had a begin record and no return. It had no import, export or dedicated allocation info. A second run withVKD3D_DISABLE_EXTENSIONS=VK_EXT_zero_initialize_device_memoryreproduced the access violation on the same allocation category with flags0x2instead of0xa. Both exited with code 3. The enabled run sampled 1,817 presents and the disabled run 1,890. Neither run logged a DirectStorage failure or NVIDIA Xid. These results identify the failing call, while the trigger inside the driver remains unknown.OpenAI Codex with GPT-6.2-Sol high assisted with the probe, testing and report.
Follow-up with a private placement experiment. The actual reserved-resource requirements were mask
0x2for 7 buffers and0x3for 1,505 images sampled through startup. On this GPU, type 0 is CPU-invisible nonlocal memory and type 1 is device-local. The experiment uses the existing compatibility masks and prefers type 0 for eligible 64 MiB texture-only pools when local budget headroom is low. A synthetic GPU pixel readback passed with forced type 0 confirmed in the trace. The buffer pools stayed device-local.With a temporary 16 GiB NVMe swap file, the offline retail run got past the allocation access violation and reached 2,292 sampled presents and 74,094 DirectStorage executions (32 failures). It later exited at the title exception site associated with the GPU watchdog in #611. Several compute PSOs took 12–38 s to build, and XCL reported skipped dispatches. The visible milestone remained loading artwork. The swap file was removed after the run. This is a local feasibility test with additional host-memory pressure and no patch proposed for default placement.
@notdxbi on GitHub · 2026-11-24 13:19 UTC · original
Linux + NVIDIA 8 GB follow-up on
main47efa2e: the world load now runs without a device loss here, and the stop is the #505 watchdog. Two things that are not in the thread yet: #532 does not stop the Xid 31 copy-engine fault on this setup, #496's wait does, and #640's budget does not cover theresource_atview targets.Setup: RTX 5060 8 GB (NVIDIA 595.112.07), 32 GB RAM, Nobara (Fedora 44), kernel 7.3.4, Wine 11.22 Staging, vkd3d-proton master
30b0eb9with the relaxed*_from_ifacelookups and-Db_ndebug=true, dxil-spirv moved to53aac41(#775's pin), DXVK 3.1.1dxgi, DXC 1.9.2609.5. XCL47efa2ecross-built forx86_64-pc-windows-gnu, release. Retail 1.0.2.1,XCL_NETWORK=0,VKD3D_CONFIG=ignore_shared_fence,XCL_PRESS_A_AT=40,XCL_PSO_WAIT_MS=50,XCL_COHERENT_MB=4095, 360 s runs.1. Xid 31 with #532 alone; gone with #496's wait (one change between the runs)
Tree:
47efa2e+ #684 + #871's top commit (de6d71c) + #494 + #495 + my local view-target cap (XCL_TARGET_PAGES_MB=3072, see 2).0x887a0005at 144.9 s, before the firstListX #101+0x23cf683("GPU Loc Sig") at 221.4 sNVRM: Xid 31 … MMU Fault: ENGINE CE0 HUBCLIENT_CE1title texture: upload failed: texture copy: GPU fence still pending after 10000 ms#101The wait is #496's
after_title_work(the sparse queue waits on a fence per title queue), moved intoflush_parked, wheremainnow unmaps parked tiles. I know of @Kalmarv'ssparse_decommit_waitscase on #496 (a queue waiting for a fence another queue signals later); I have not hit it in these runs, and I am not proposing this as is. It is a data point that, on NVIDIA under Wine, parked tiles can still be unmapped under work in flight on the title's queues.2. #640's budget and the view targets
With #640 (
808a8a4) andXCL_PAGE_BUDGET_MB=2048instead of my cap:page budget: … textures evicted, but target pages still went to 6.6 GB (5.9 GB with 3072) and the device was lost (222 s: NVRMvaspace_api.casserts; 254 s with 3072:NV_ERR_NO_MEMORY). Most target pages here come fromreal::resource_at, views of memory with no title object, which #640 does not evict (it evicts whatplace_pagesplaced). A cap over those (LRU, render targets and depth exempt) held them at ~3 GB in every run.3. Precompile under Wine
xcl shaders <data>\shaders --precompile --pipelines(not listed inxcl --help) works under Wine. With 4 pipeline threads the process reached 20.8 GB and kept growing, so I had to stop it; 2 threads with a RAM guard are running now. Partial precompiles moved the cache hits from 25 to 266 compute PSOs per run and the builds over 1 s from 52 to 24, the same direction as @S1m0ne1997's.Not tested: AMD, Windows, the deadlock case above, a full precompile.
AI use: Claude Code with Claude Opus 5.5 ran the builds and the runs, read the logs and wrote this report; I checked it.
@pickles976 on GitHub · 2026-11-24 14:57 UTC · original
The unresolved number from the hash-rate exchange (release builds on both boxes, ~13 GB/s vs 2.65 GB/s, storage ruled out) has a candidate mechanism inside
read_committedthat would divide machines by design — hypothesis with a concrete discriminator, offered for the two of you to falsify:The content-hash read (
title_textures.rs:843 → read_committed) has two branches with wildly different costs:copy_nonoverlapping(line 1092-1094) — memcpy speed;VirtualQuerywalk, and each committed region is copied bycopy_rec→ReadProcessMemoryagainst one's own process (title_textures.rs:1059-1065). Under Wine, self-RPM is not a memcpy: it round-trips the syscall layer per call, and a fragmented streaming-pool VA layout multiplies the call count.Three independent things line up with this: (a) @metric-vac's fault stack is literally
msvcrt memcpyinsideread_committedand their registers showedsrcoutside a coherent window — proof the walk branch is live in real runs; (b) @cmt8's measurement thatXCL_COHERENT_MB=512moved the same title's menus from 4–7 fps to 27–28 — window size being a frame-rate lever is exactly what branch (2) predicts; (c) the machines differ in nothing else confirmed yet — if the faster box's texture VAs land inside the window and the slower box's don't (title VA layout is load-address sensitive), the same binary hashes at memcpy speed on one and self-RPM speed on the other.Discriminators, cheap → expensive: ① rerun the slow box with
XCL_COHERENT_MB=512and compare MB/s from the same16 lookslog lines — jump toward ~13 GB/s = confirmed; ② add a one-line counter (if window_hit { W1 } else { W2 }, logged in the periodic stats) so every future rate report self-labels its branch; ③ the real fix, if confirmed: probe in-process with a guarded read (VEH, same machinery I proposed for the TOCTOU in my earlier comment) and keepReadProcessMemoryonly as the per-page fault fallback — branch (2) then costs memcpy + fault-rate instead of RPM × regions. One fix, two open classes: rate anomaly and free-under-read crash.@pickles976 on GitHub · 2026-11-24 15:23 UTC · original
Diagnostic cross-post from the sibling project worth pinning for everyone here taking NVIDIA reports: Marvisak/VIctory#1054 documents a machine where TDR was disabled (
TdrLevel=0) — there, the same compile-stall/slow-frame wall that produces our familiar clean failures (device removal0x887A0006, or the title watchdog at+0x23cf683) instead ends in a frozen desktop and a hard GPU fault, because nothing ever breaks the hang and the freeze outlives the process. Practical consequence for this thread's cohort data: a tester whose run produces no xcl log tail, no report.json, just a dead desktop requiring a display-driver reset or reboot is likely measuring the same wall with TDR off — worth asking every "my PC freezes" report forreg query HKLM\\System\\CurrentControlSet\\Control\\GraphicsDrivers /v TdrLevelbefore it gets filed as a new crash class. Corollary from their issue title, which I would adopt as screening policy everywhere: a frozen desktop is not a device removal — different failure mode, same root cause, and the registry check costs one line.@cmt8 on GitHub · 2026-11-24 15:49 UTC · original
https://github.com/ivall/xcl/pull/1395 fyi
@pickles976 on GitHub · 2026-11-24 15:55 UTC · original
Thanks — read it: #1395 is the vtable-identity arm of this thread (vkd3d-proton assertion-checked classes keep their vtable under XCL writes), orthogonal to the hash-rate analysis above — good to know the #175 workstreams are fanning out rather than serializing. The hash-rate discriminator still stands on its own and #1395 does not touch it: the A/B is
XCL_COHERENT_MB=512against default with everything else fixed — if the hash phase collapses with a bigger coherent window, the cost is theVirtualQuerywalk + self-ReadProcessMemoryper region in the slow path (title_textures.rs:1054-1099) as diagnosed; if it does not, the fast-path memcpy itself is the line item and the fix target moves. Whichever lands first, worth noting for whoever picks up the read-path fix: the VEH-guarded-reads suggestion also closes the TOCTOU window (committed pages can change between walk and copy) for free.@PedroSilvaAlves on GitHub · 2026-11-24 17:48 UTC · original
I tested the Xbox Series 1.0.2.1 title on an RTX 3070 Ti 8 GB (NVIDIA 615.78.08), Ryzen 9 5900X, and 32 GB RAM on Omarchy (Linux 7.2.15). I cross-built release binaries for x86_64-pc-windows-msvc and ran
xcl run Z:\gameunder Proton Experimental (11.0, 2026-10-14), using its bundled vkd3d-proton 3.1 (0bb64c56c8f0dcc), DXVK, and DXC 1.9.2609.5. BothXCL_NETWORK=0and an isolated network namespace were in use. I setVKD3D_CONFIG=ignore_shared_fence.9e3831ereached the title entry point and initialized the real D3D12 backend, then exited atiface->lpVtbl == &d3d12_heap_vtblwith zero presents.wine-fixes-2atbbc472fpassed that assertion. XCL recorded 445 presents before0x80000003atgame_scarlett_master.exe+0x4dcbc9d, with callers+0x4e52a83and+0x4e529c4. The title’s crash log reported 39 seconds, game frame 82, zero streaming requests, and 271/6236 MB of tile heap in use. The breakpoint and game frame match a separate report in VIctory #698.d3d12_command_queue_flush_bind_sparse: Failed to perform sparse binding, vr -4, followed byVK_ERROR_DEVICE_LOST(0x887a0005). This run did not reproduce the frame-82 breakpoint.I did not verify gameplay or test Windows on this machine. AI use was OpenAI Codex (GPT-6 family, exact variant unavailable) for the local runs, log analysis, and drafting this report.
@YaBulochka on GitHub · 2026-11-24 17:52 UTC · original
Tested #1395 and #1395+#867 under Wine on RADV, on
main9e3831e(so #1211 is in). Numbers are wall-clock seconds fromxcl.logup toprocess ends with status 0x3.Setup: Linux, Wine 11.22 inside a Proton 11.0 prefix,
vkd3d-protonfrom Proton 11.0 (release, the asserts are kept), DXVKdxgi, RADV from Mesa 26.3.1, RX 7600 XT (RADV NAVI33).XCL_NETWORK=0.mainID3D12Heap1 – … (Heap, PC vtable d3d12core.dll+0x40acc0)main+ #1395ID3D12Fence1 – … (Fence, PC vtable d3d12core.dll+0x40afa0)main+ #1395 + #867display target 3840x2160 format 28: 0x1ff8000 bytes of the title's memory at 0x463c00000So both PRs do what they say on this title: #1395 carries the heap and the queue, and the next stop is the fence — exactly the arm you put in #867. With #867 as well the process adopts resources and descriptor heaps and then aborts inside
d3d12core.dll+0x38b840right after the display target line, so the remaining wall here is that target's creation, not a vtable assert.One more data point for the same title: the console heap is 1,245,184 view slots, and XCL's
one shader-visible PC heap of 1000000 view descriptorsline fires for it — the same 1,000,000 cap VIctory hits on this game.Happy to keep testing; I can rerun with the Windows-style
d3d12_debug/DRED settings or with a specific vkd3d-proton commit if that helps narrow the0x38b840abort.@pickles976 on GitHub · 2026-11-24 17:54 UTC · original
Registering your
+0x4dcbc9dagainst the shared kill-map (hash-matched copy, VIctory#630): verified deliberate, partially decoded — theint3sits in a tail block attached to a size/limit validation helper: the function compares a requested quantity ([rsp+0x2c]) against a stored limit ([rdi+0x1c]) and the int3 is a non-linear jump target at the tail (same tail-block shape as the 2 MiB range cap at+0x247af2d— report-then-dispatch style stops, not inline asserts). Your caller pair (+0x4e52a83/+0x4e529c4) sits in a helper that early-returns on[obj+0x18] == 0— a count/queue emptiness check before the size gate. Shape read: a bounded queue/size assertion on a non-empty structure fails at frame 82 — consistent with your "0 streaming requests, 271 MB tile heap" (nothing streamed → whatever the structure counts never populated → the gate that requires population fires). Two asks to finish the decode: ① does your log carry aparameter … valuedebug line just before (like #534'sGPU Loc Sig)? If yes, post the value; ② the frame-82 match with VIctory#698 makes this the ecosystem's first deterministic early stop (vs the ~1–5 min watchdog) — if yourwine-fixes-2fork is public, the repro is worth pinning for whoever owns the early-boot path.@YaBulochka on GitHub · 2026-11-24 17:54 UTC · original
Follow-up on the same combination (#1395 + #867), same setup. With the vkd3d asserts left on (
VKD3D_DEBUG=err), the run now gets past heaps, queue, fence and the earlier resource adoption, reaches the title's 4K display target, and dies on a resource assert:So the remaining one on this title is the placed resource the display target is built from (the path that places a resource at the title's own memory address,
0x463c00000here). It looks like that path does not go through the vtable-preserving adoption that #1395/#867 add for the other classes — the assert fires on the line right after XCL logs the target.Environment unchanged: Wine 11.22 in a Proton 11.0 prefix,
vkd3d-protonfrom Proton 11.0 (release, asserts kept), DXVKdxgi, RADV Mesa 26.3.1, RX 7600 XT;main9e3831e+ #1395 + #867.If it helps, I can rerun with any patch you want on that path, or with
VKD3D_DEBUG=fixmeto see which vkd3d call the object is passed back through.@pickles976 on GitHub · 2026-11-24 17:57 UTC · original
Source-side read of your remaining assert from the in-place-placement lane (hash-matched build of
9e3831e): your observation fits the adoption convention exactly. Adoption is done at creation factories — the codebase even has the rule as a comment ("made through the titles device it is adopted already",alloc_pool.rs:239) — and the display-target path (real.rs:2276+, the "console memory comes from the titles allocation hook" factory,CreateCommittedResource (console, slot 76)) is one of the paths that reaches for the underlying PC device rather than the title-facing device.[INFERENCE]from what I can trace statically: that makes its returned resource the remaining non-adopted creation object on the assert-bearing path, and the one-line completion is adopting it at creation (adopt(res, Kind::Resource)after success), same as the allocator pool does — but that call needs confirmation from @ksanjeev284/#1395-owner, who knows the passback bookkeeping better than a static read. Two notes on severity so the queue ranks it right: ① this assert is a diagnostics-build wall — vkd3d-proton release without asserts passes the pointer fine, which is why your earlier runs with this title got past display targets; it blocks the assert-keeping cohort (the very people producing your best reports), not production users. ② Your offer to rerun withVKD3D_DEBUG=fixmeis worth taking for this object only — the vkd3d call the object is passed back through names the exact passback site, converting my[INFERENCE]into a line number. Worth 10 minutes on the next run.@pickles976 on GitHub · 2026-11-24 18:22 UTC · original
Your
+0x4dcbc9ddecode is complete from the exe side — I posted the full read on the map thread (VIctory#630), short version: the int3 fires iff requested append quantity > fixed capacity − used — an inline overflow guard in the title's own append routine (+0x4dcbc40), so at frame 82 a container received more records than it was sized for. One ask sized to your repro, high value: at the moment just before the trap (or at the heap/format creation calls preceding it), dump the emulator-reported sizing inputs the title could be planning from — custom-heap properties (tile size, attributes),GetCustomHeapTextureSizes-equivalents, and any format-topology counts — so we can diff them against console-expected values. If one is reported at a granularity that multiplies record counts (tile size ÷16 ⇒ count ×16), you have the fix in one line instead of a bisect.@pickles976 on GitHub · 2026-11-24 18:27 UTC · original
Three things from reading the matrix as a whole: ① depth+UAV has a spec-side tiebreaker: D3D12 forbids
ALLOW_UNORDERED_ACCESSon depth-stencil formats —CreateCommittedResourcemust failE_INVALIDARG— so the fork is one line: if the test expects rejection and vkd3d-proton returns S_OK, that is an upstream validation gap worth a 2-line repro against vkd3d-proton proper (not a #257 artifact); if the test expects success, the test carries a console-side allowance that PC validation does not honor, and the test is the thing to change. Either way it stops being an open question the moment someone names which side it asserts. ② The 3080 skips are the good posture made visible:gpu_wave32_program_in_wave64_hardwareand the prefix-count test skip loudly when hardware cannot host them — the sibling runtime's legalize-without-remap default would run those same programs and return quietly wrong cross-lane values instead of skipping. This report is a nice exhibit for the #1407 wave-log argument: the skip line names the class, the silent path names nothing. ③ Your AI-use disclosure (agent set up toolchain + wrote report; human checked counts against logs) is exactly the standard the triage thread asked for — counts-verified is the load-bearing half, and it is why this report is directly citable. The scratch_valu cascade matches #257 exactly (same post-reset contamination; isolating it from the "2 failed" set was the right call).@wayback94 on GitHub · 2026-11-24 18:43 UTC · original · edited 2026-11-24 19:41 UTC
Thanks. One correction on ①: the test doesn't create a depth texture with
ALLOW_UNORDERED_ACCESS.pc_resource_descdrops that flag, and the test then places the texture withCreatePlacedResourceinD3D12_RESOURCE_STATE_UNORDERED_ACCESS, without the flag, and expects an error. vkd3d-proton v3.1 accepts it. Inlibs/vkd3d/resource.cit checks the render-target and depth states against their flags, but checksUNORDERED_ACCESSonly for acceleration structures.Update: Windows answers it. On the same PC and commit (
9e3831e, RTX 3080, Windows 11, driver 610.88), the test passes 3 of 3, so Windows' D3D12 refuses the placement as the test expects. That makes it a missing check in vkd3d-proton, not a problem in the test or in XCL. The whole suite on Windows on that PC gave 776 passed, 0 failed, 41 ignored, so all six differences in the Linux run come from Wine, vkd3d-proton or the Linux driver. I counted both runs with a script that adds up each test binary'stest result:line.AI-assisted: Claude Code (Claude Opus 5.5) checked the vkd3d-proton source, ran the Windows tests and drafted this reply.
@wayback94 on GitHub · 2026-11-24 18:25 UTC · original · edited 2026-11-24 19:59 UTC
Linux test run of
mainat9e3831eon an RTX 3080 (Ampere, 32-lane waves) under Proton Experimental's Wine, with the vkd3d-proton build from #257.Tested
main9e3831e, clean tree. Rust 1.100.0,x86_64-pc-windows-gnu(mingw-w64-gcc 16.2.0, posix threads), debug:cargo build --workspace+cargo test --workspace --no-runexperimental-11.0-20261112(files/bin/wine, has "Using kernel write watches"). Prefix from #257'ssetup-prefix.sh(Proton's libvkd3d and DXVKdxgi/d3d11/d3d10core). vkd3d-proton v3.1 + #257's patch,-Db_ndebug=true, built with #257'sbuild-vkd3d-proton.shat26fdda6. DXC 1.9.2609..exerun under that Wine from its package folder,--test-threads=4, withWINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b",VKD3D_CONFIG=ignore_shared_fence,DXVK_CONFIG='dxgi.hideNvidiaGpu = False',XCL_NETWORK=0,XCL_DXC_DIRset. NoXCL_SAMPLE_*set.gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valuhangs the GPU, the GPU tests after it fail, thenthread caused non-unwinding panic. aborting.(exit 9). The same cascade as in #257.gpu::recomp:: --skip gpu_more_atomics_sub_dword_scratch_valu: 191 passed, 0 failed, 18 ignored--skip gpu::recomp::: 533 passed, 2 failed, 3 ignoredgpu_more_atomics_sub_dword_scratch_valu, left out with--skipand failing when run alone (the two lib passes add up to 747 of the lib's 748 tests).SKIPPED: 2 (no wave64:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware), 1 ingpu_compute_e2e(heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows)gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valukernel dispatch: GPU fence still pending after 10000 ms, also when run alone (--exact)hle::d3d12x::device_x::tests::gpu_depth_buffer_created_for_unordered_access_is_placed5383506):UNORDERED_ACCESS without the UAV flag(device_x.rs:1113). The test places a D16 texture whose PC description hasALLOW_DEPTH_STENCILand noALLOW_UNORDERED_ACCESS(pc_resource_descdrops it) inD3D12_RESOURCE_STATE_UNORDERED_ACCESS, and expects an error. vkd3d-proton v3.1 returns success:d3d12_resource_validate_create_info/_initial_resource_state(libs/vkd3d/resource.c) check RENDER_TARGET and DEPTH_WRITE/READ states against their flags, but UNORDERED_ACCESS only for acceleration structures. Fails alone too, 2 of 2 runshle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetimeleft: 0, right: 12291(xaudio2.rs:1599), as in #257 (Proton's Wine)predication_e2e::set_predication_buffer_state_and_kickoffEQUAL_ZERO(0) must skip dst[0](2863267840vs286331153)e2e::test_title_runs_and_game_folder_is_untoucheduser32 … W: not cloaked,XMA2 GetState: ctx=0x0, queued=1pls_quota::disk_free_space_ex_reports_pls_quotaleft: (0, 2),right: (0, 3)Same PC, same commit, on Windows (for comparison)
stable-x86_64-pc-windows-msvc, MSVC 14.44 / Windows SDK 10.0.26100.0 (its DXC 1.9.2602.17), debug.\scripts\test.ps1, noXCL_SAMPLE_*, nothing skipped: 776 passed, 0 failed, 41 ignored, the same 3SKIPPEDlines. No hang, no device removal. All 6 tests in the table above pass, so on this PC all 6 differences come from Wine, vkd3d-proton or the Linux driver.gpu_depth_buffer_created_for_unordered_access_is_placedalone (--exact): passes 3 of 3 on driver 610.88, and 3 of 3 again after updating to driver 621.14 (32.0.16.2114), same build. So Windows' D3D12 refuses the UNORDERED_ACCESS placement without the UAV flag, as the test expects. The HRESULT it returns was not recorded.XCL_SAMPLE_RPFset to my own copy of the shader pack: also 776 / 0 / 41.Not tested
run.sh/smoke.sh/smoke.ps1);XCL_SAMPLE_*tests under WineXCL_SAMPLE_RPFrun on driver 621.14 (only the depth test was rerun there)AI use
@YaBulochka on GitHub · 2026-11-25 10:58 UTC · original · edited 2026-11-25 13:36 UTC
Consolidated summary of the Linux/RADV bring-up on this box, so the thread has one place to read instead of a stream of updates.
Setup: RX 7600 XT 8 GB, RADV 26.99.99, Wine 11.22, XCL
main568e7db, vkd3d-proton master with dxil-spirv #374.Timeline
568e7dbd3d12_resource_vtblassert right afterdisplay target 3840x2160 format 28568e7dbID3D12Heap1and dies atvkd3d_private.h:1079,iface->lpVtbl == &d3d12_heap_vtbl(~3 s)legacy-struct-remove)XCL_DSTORAGE_MEMORY_BUDGET_MIB=2048 XCL_VRAM_ARENAS=2 XCL_COHERENT_MB=512assert(iface->lpVtbl == &d3d12_*_vtbl)removed invkd3d_private.h0x80000003 at game_scarlett_master.exe+0x2478b7b,rax=rdx=0x80070057(E_INVALIDARG)VKD3D_CONFIG=breadcrumbs,breadcrumbs_traceE_INVALIDARGVKD3D_DEBUG=warnd3d12_command_list_Reset: Invalid command allocator.Reading. XCL wraps vkd3d objects by swapping
lpVtbl; vkd3d'simpl_from_*helpers reject the wrapper, and the heap assert is simply the first one reached. Masking the asserts lets the wrong interface travel further: the object layout is evidently identical (vkd3d did not crash onCONTAINING_RECORD), but the title then getsE_INVALIDARGright after device / queue / fence / command-allocator creation.VKD3D_DEBUG=warnnames it:d3d12_command_list_Reset: Invalid command allocator- the title passes its wrapper as the allocator, and vkd3d does not recognise it. So the real fix belongs in XCL - hand vkd3d the underlying interface, or unwrap beforeimpl_from_*- and the heap assert is the right place to start reading.No game files, no captures; counts and addresses only.
@ClosetPie107 on GitHub · 2026-11-25 11:29 UTC · original · edited 2026-11-25 15:05 UTC
Linux / AMD RDNA4 (RADV) progress check on
main426a5a7(after today's merge wave), withXCL_DIRECT_DXIL=1on the retail title (1.0.2.1).Setup
experimental-11.0-20261112), DXVKv3.1.1-209, DXC1.9.2609.5,x86_64-pc-windows-gnurelease build,XCL_NETWORK=0,XCL_COHERENT_MB=512,XCL_DIRECT_DXIL=1, capped atMemoryMax=18G/MemorySwapMax=0,XCL_RUN_SECONDS=180.Result
#257+dxil-spirv53aac418, the#775pin): runs at 30 fps through 1,200+ frames, then crashes at 50.2 s with an unhandled0xc0000005(read at0x130) insidedxil-spirv'sCFGStructurizer(node.cpp→cfg_structurizer.cpp→dxil_converter.cpp) on a translated direct-DXIL compute shader.#257+dxil-spirvlegacy-struct-removee084e35c, HansKristian-Work/dxil-spirv#374):exit=0at 180 s.ActivateProbes(direct DXIL compact form: 14377 blocks of 599 kinds,#2174) built cleanly at 59.8 s; huge 300–520 KB world-loading compute PSOs (#1613–#1715) compiled cleanly in 3.2–7.2 s each on RADV (graphics PSOs in 0.3–0.4 s) all the way to 180 s, with Opus audio still streaming (41,238packets, 0 errors).568e7db), right after 8 bridgedWait64BitValueX(wait-before-signal) queue waits, withGPU fences still pending after 10 son shutdown (the existing cross-platform stall in #505 / #1452).Update (
main1a0bbe3+ upstreamdxil-spirvmaster694cc674,XCL_RUN_SECONDS=600):exit=0, flat 13.1–13.7 GiB RSS / 15.1 GiB VRAM (0 swap), 0 crashes / 0 device removals.#1751–#1788) at 2.6–4.3 s each on RADV by 435.6 s, then sat idle (no compiles or presents; Opus audio still running) until 600 s (1,727frames shown,GPU fences still pending after 10 s).Update (
main06c9f55+vkd3d-protonmasterec207194(3.2.0) +dxil-spirv694cc674,-Db_ndebug=true+ relaxed-vtable patch):06c9f55(480 s,XCL_DIRECT_DXIL=1,VKD3D_CONFIG=ignore_shared_fence,XCL_SPLIT_MIDLIST_WAIT=0,XCL_COHERENT_MB=1024,XCL_PSO_DISK_CACHE=0,XCL_PSO_PRELOAD=0):exit=0, 1,763 frames shown, peak 15.0 GiB RSS / 15.6 GiB VRAM (0swap), 0 crashes / 0 device removals;#2080direct-dispatch compute splitting ran cleanly (41programs split,421pieces,50chained dispatches).06c9f55+#1297+#1429+#2244withXCL_PSO_WAIT_MS=50and disk cache enabled:1,409skipped,531PC), 131,072 dispatches (802skipped), 243 split compute programs / 2,471 pieces / 5,072 chained dispatches, 464 huge PSO compiles (#3712), 0 crashes / 0 device removals.#2244sync dump at 360 s reportedpending title ID3D12Fences: none,XCL's own queue waits unmet: none,0 GPU waits armed. Stopped cleanly by our host RAM guard (MemAvailable299 MiB).36skipped) / 131,072 dispatches (68skipped) / 5,470 chained dispatches in 167 s (3× faster), 0 crashes / 0 device removals. Stopped by our host RAM guard (MemAvailable387 MiB) whilexcl_rssstayed flat at 13.4 GiB (0swap) and 16 GB VRAM was full (16,296 MiB), pointing to ~10 GiB of kernel/RADV GTT spill on this 30 GiB host.06c9f55+#2306(XCL_TEXTURE_LEVEL_PAGES=1, warm cache,XCL_PSO_WAIT_MS=50):11.6 GiBvs16.3 GiBat 81–91 s) with 0 GTT spill (12.0 GiBfree RAM), reaching 49,111 draws (20skipped) / 114,950 dispatches (64skipped) before hitting#1164/#2140's0x80000003atgame_scarlett_master.exe+0x4da6315at 111 s (0 device removals).06c9f55+#2306+#1405(same flags, warm cache):+0x4da6315crash — ran cleanly to 302 s (exit=0, stopped by our 2 GiB host RAM guard atMemAvailable1,898 MiB,xcl_rss15.5 GiB,0swap), reaching 81,435 draws, 341,544 dispatches, 220 split compute programs / 14,862 chained dispatches, and moving past the compute-PSO wave into world-scene graphics PSOs (#3457–#3470, 264–329 KB DXIL, ~0.9–1.5 s each on RADV), with 0 crashes and 0 device removals.Not tested: default HLSL route on
426a5a7/1a0bbe3/06c9f55, stock unpatched vkd3d-proton.AI use: T3 Code / Antigravity (Gemini 4 Neon) built and ran these checks on this machine and drafted this report.
@itsd-effex on GitHub · 2026-11-25 13:52 UTC · original · edited 2026-11-25 15:10 UTC
A Linux / NVIDIA note for anyone measuring warm against cold, or using
xcl pipelines(#759).What I saw:
xcl.exeandtitle.exe(which owns the D3D12 device) each hold a different file of NVIDIA's shader disk cache. In my cache folder those are…fe7and…fe8(checked withls -l /proc/<pid>/fd).xcl pipelines, which runs as a process of its own, wrote to the host's file (fe7). The title never read it.What fixed it: swapping the two files before the run. The same pipelines went from 4–33 s misses to 1–6 ms hits. My guess is that NVIDIA gives each process open at the same time its own file, but I haven't confirmed that beyond these runs.
What this means for Linux numbers: a "warm" measurement may not be warm from the run you think. Mine from the night before were warmed by earlier title runs, not by the tool. For a cold Linux run, point
__GL_SHADER_DISK_CACHE_PATHat an empty folder.Details, and a second trap (the tool builds the memory-window form of the journal's latest run, so heap-window runs and non-heap runs don't share pipelines): #759
Confirmed later the same day (A/B): the same early compute pipelines (0.27–0.84 MB of DXIL), the same NVIDIA cache snapshot, and only the title's
vkd3d-proton.cachedifferent:vkd3d-proton.cachevkd3d-proton.cachein the title's overlaySo both steps count: the title's process needs the tool's NVIDIA cache file (most of the saving), and it needs the tool's
vkd3d-proton.cache(shader identifiers, per @voiceovarian1-max on #2003). Copy the tool'svkd3d-proton.cache.writeas well: vkd3d-proton only merges it into the main file on its next start.Written with Claude Code (Claude Opus 5.5).
@pickles976 on GitHub · 2026-11-25 19:06 UTC · original
Linux hybrid-GPU safety finding from a local integration (not clean main; includes adapted #877, closed #1395, and #1995). Reporting separately from vtable correctness: the last interactive title trial froze the desktop/machine and the user required a hard restart. Do not count this as a passing runtime test.
Environment: Acer ANV15-51, Intel RPL-P iGPU driving GNOME/Wayland, Xwayland title window, RTX 4060 Laptop 8 GiB rendering through vkd3d-proton 3.2 (
2576c0b4adfae4a), NVIDIA 590.48.01, Linux6.17.0-40-generic, 16 GiB RAM.Previous-boot kernel journal, about 40 s after launch:
At ~40 s, NVIDIA usage was 6,527 MiB and available system RAM ~7,041 MiB. Telemetry continued until 68.45 s (7,111 MiB NVIDIA, 6,278 MiB RAM available), then stopped. The guard never recorded a resource stop. No NVIDIA Xid or OOM was recorded in that launch interval. This establishes an i915 compositor hang, not its cause; no attribution to a specific XCL PR or to VRAM exhaustion is supported.
Stopped normal desktop trials. A standalone NVIDIA
vkcubecompleted 300 frames on isolated Xvfb, and a wrapper preflight/cleanup check passed without launching XCL. This avoids the desktop-compositor presentation path, but is not yet an XCL gameplay test or a guarantee against kernel/driver hangs. No reproduction run of the title after the reported hard freeze.AI-assisted log/source analysis; hard-freeze observation supplied by the machine owner.
@pickles976 on GitHub · 2026-11-26 04:57 UTC · original · edited 2026-11-26 05:29 UTC
Linux data point: the relaxed build turns the blocked GPU-fixture class into verifiable results on a second host. Ubuntu 24.04, RTX 4060 Laptop GPU 8 GiB, Wine 11.0, NVIDIA 590.48.1, cross-built XCL
--target x86_64-pc-windows-msvc.Built the exact commit our stock
d3d12core.dllreports (2576c0b4adfae4a, i.e. 3.2.0 lineage) with--buildtype release -Db_ndebug=trueand the twofrom_ifacerelaxations (d3d12_command_allocator_from_iface,d3d12_command_list_from_iface: keep the null check, accept any table). Two fixtures that abort pre-body on stock here now pass on the real adapter: #2558'sgpu_a_title_queue_upload_waits_for_the_page_mappings_before_it(was:Assertion failed: iface->lpVtbl == &d3d12_fence_vtbl,vkd3d_private.h:705) and #2573'sa_placed_texture_gets_the_pages_of_a_level_with_its_texels(same abort). VIctory, which never replaces vtables, is unchanged on the same DLL (its real-GPU tile test passes either way) — consistent with the mechanism being XCL's table replacement only.Two operational notes for anyone reproducing on Ubuntu 24.04's mingw, neither affecting the recipe's substance:
glslangValidator; the official Khronos 16.6.0 Linux prebuilt works user-local (no distro package needed).mingw-w64pathcch.hpredatesPATHCCH_NONE;libs/vkd3d-common/platform.cneeds a local#define PATHCCH_NONE 0x00000000guard to compile. That looks worth an upstream#ifndefsince it's a header-age gap, not a design question.All results from this build carry the caveat you stated: the relaxation is diagnostic, removes checks for every application, and is not a proposal. It is what lets this 8 GiB Wine host verify the GPU legs of #2428/#2558/#2573-class PRs at all. Logs local:
verify-pr2558-wine-mapping-wait-relaxed.log,verify-pr2573-wine-placed-relaxed.log. AI-assisted (OpenAI Codex).Guarded title follow-through, 2026-11-26: still no gameplay; new crash evidence, not stock-runtime certification. I built a separate local integration based on #2573
1bfa05d9214cf5f68e602233072d8786fd3c529a, with #2630's 4 MiB sparse pools and the previously tested local #735/low-resolution patches. This is a dirty mixed checkout, not an exact-PR retail result. Same relaxed vkd3d build disclosed above, Wine 11.0, RTX 4060 Laptop 8 GiB / NVIDIA 590.48.1, 16 GiB host. Seven focused tests (lazy-texture readback, sparse freed-run reclamation, five resolution tests) passed; the release build freshly compiled this checkout.Config:
XCL_TEXTURE_LEVEL_PAGES=1,XCL_RENDER_RES=1920x1080,DXVK_CONFIG=dxgi.hideNvidiaGpu = False, lockhart; the log confirms lazy residency and the mode/output patches. No input. The 18- and 32-second window captures were black; by 60 seconds the client had disappeared. XCL reports:Before that it logged a delayed GPU write completed despite the queue not reaching its fence after 10000 ms (
fence at 0, wanted 1; 2 writes). This sequence is evidence, not a proven causal explanation; I have not bypassed the title crash or blamed it on lazy residency.The independent resource guard later failed closed when
nvidia-smiexceeded its 2-second timeout; wrapper exit 5, elapsed ~69 s. Last valid resource sample was at 49.08 s: 4923 MiB global GPU, 7033.3 MiB RAM available, 3056.0 MiB scope / 2545.2 MiB anonymous, 20.214 GiB disk. Recorded GPU max was 4923 MiB and available-RAM min 4777.6 MiB, but samples end before the final failure: not a complete budget pass or performance comparison. Kernel journal GPU/OOM filtering found no matching entry; no driver-reset claim. Further GPU runs are parked until reliable safety telemetry is restored.Local evidence:
.compat-xcl/logs/20261126T052632Z-{console.log,resources.csv},menu-20261126T052650047241Z.png,menu-20261126T052704015308Z.png,verify-lazy-runtime-memory-resolution.log,build-xcl-lazy-runtime-provenance.log. No gameplay/FPS certification. AI-assisted: omp / OpenAI Codex GPT-6 Astra; no upstream code push.