Linux (Wine + vkd3d-proton): a retail game reaches what main reaches on Windows; the obstacle is replaced vtables — proposal: proxies #175

Open
opened 2026-11-26 04:13:42 +00:00 by github-bot · 77 comments
Owner

@⁠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

  • Linux, kernel 7.0, Wine 11.21 (Staging), in a container.
  • GeForce RTX 5060 Ti (32-lane waves) and an AMD iGPU (RADV, Mesa 25.2.8, 64-lane waves, mesh shaders).
  • vkd3d-proton: release 3.1, and master at cae8353.
  • DXVK 3.1.1 for dxgi.dll, d3d11.dll, d3d10core.dll, as Proton pairs them.

Result

Test title, xcl run <testgame> -- --hello:

vkd3d-proton AMD (RADV) RTX 5060 Ti
release 3.1 6 [PASS], then Assertion failed: iface->lpVtbl == &d3d12_heap_vtbl (vkd3d_private.h:1077) not run
master the same assertion not run
master, identity checks relaxed (below) 47 [PASS], 2 [FAIL] 47 [PASS], 2 [FAIL]

With the checks relaxed every D3D12.X check 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 through 66e8e97.

cargo test -p xcl --lib on the AMD GPU at 66e8e97: 373 passed. The failures are two from my packaging (tests/data/llvm-amdgpu not next to the test binary), three of Mesa's compiler (one is the ds_bpermute case below), one Wine error-code difference (get_proc_address_and_load_library_ex_reject_null_name), and frame::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 at 60599a9: gpu:: 222 passed, 2 failed (packaging), 2 SKIPPED … no wave64. With a retail shader pack and console DLLs (XCL_SAMPLE_RPF, XCL_SAMPLE_DLLS): gpu_pso_e2e 6 of 6 ("MS + PS pipelines through the hook: 7 / 7") and gpu_compute_e2e pass 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_bpermute failure (gpu_format_stores_atomics_global_lds, "lane 0 ds_bpermute", left 1280, right 63) is RADV's: it passes with RADV_DEBUG=llvm and on NVIDIA. ACO's emit_bpermute_shared_vgpr puts its two shared VGPRs at align(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:

  • eleven assert(iface->lpVtbl == &…_vtbl) in the impl_from_* helpers. They are compiled into the official release, so this is what a Proton user gets.
  • d3d12_command_allocator_from_iface returns NULL for an allocator whose table is not its own.
  • d3d12_command_list_from_iface (used by ExecuteCommandLists) returns NULL for a list whose table is not one of its seven; the caller then reads through it (an access violation at address 0x2b20).
  • one place dispatches on it: is_shared_ID3D12Fence1 picks between two different fence structures by comparing the vtable with d3d12_shared_fence_vtbl. A retail game creates its fences with D3D12_FENCE_FLAG_SHARED. With XCL's table in place the shared fence is handled as an ordinary one: the queue's Signal reaches d3d12_fence_lock on 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=true and the two from_iface functions changed to accept any table (about ten lines), and, for the shared fences, with the sharing bits cleared before CreateFence (VKD3D_CONFIG=ignore_shared_fence does 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 / readopt chase it at eight call sites on current main (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 is mov rax,[rcx]; jmp [rax+72] on a descriptor heap (slot 9, GetCPUDescriptorHandleForHeapStart: RAX on the console, a hidden pointer on the PC):

[FAIL] D3D12.X: a console method by tail call from a system callback (thread start): the PC method ran: returned 0x1686030 (the console handle is 0x1445fe0, the spare buffer is at 0x1686030) and wrote 0x1445fe0 through rdx

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.rs already 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 remove preserve_vtable on 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

  • userfaultfd must be allowed. Wine Staging tracks MEM_WRITE_WATCH with userfaultfd write protection and falls back to read-only pages when the call is refused. In the fallback, OpenExistingHeapFromAddress on 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].
  • DXVK's DXGI and Direct3D 11 are needed next to vkd3d-proton. With Wine's own dxgi.dll, PresentX crashes in wined3d.dll; with DXVK's DXGI but Wine's d3d11.dll, a later check stops in DXGID3D10CreateDevice.
  • The two [FAIL]s: xmem: working-set statistics (limit 0x360000000, used 0x0) and user32: … hidden console screen: W: not cloaked. Wine differences; not looked into.
  • In the test title, after the last graphics check the run ends in Wine's xaudio2_9.dll when the mastering voice is created; my container has no audio device.
  • Once in about ten runs on RADV: 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

**@⁠ozimchuk** on GitHub · 2026-11-23 18:56 UTC · [original](https://github.com/xcl-dev/xcl/issues/175) 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 - Linux, kernel 7.0, Wine 11.21 (Staging), in a container. - GeForce RTX 5060 Ti (32-lane waves) and an AMD iGPU (RADV, Mesa 25.2.8, 64-lane waves, mesh shaders). - vkd3d-proton: release 3.1, and `master` at `cae8353`. - DXVK 3.1.1 for `dxgi.dll`, `d3d11.dll`, `d3d10core.dll`, as Proton pairs them. ## Result Test title, `xcl run <testgame> -- --hello`: | vkd3d-proton | AMD (RADV) | RTX 5060 Ti | |---|---|---| | release 3.1 | 6 `[PASS]`, then `Assertion failed: iface->lpVtbl == &d3d12_heap_vtbl` (`vkd3d_private.h:1077`) | not run | | `master` | the same assertion | not run | | `master`, identity checks relaxed (below) | **47 `[PASS]`, 2 `[FAIL]`** | **47 `[PASS]`, 2 `[FAIL]`** | With the checks relaxed every `D3D12.X` check 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 through `66e8e97`. `cargo test -p xcl --lib` on the AMD GPU at `66e8e97`: 373 passed. The failures are two from my packaging (`tests/data/llvm-amdgpu` not next to the test binary), three of Mesa's compiler (one is the `ds_bpermute` case below), one Wine error-code difference (`get_proc_address_and_load_library_ex_reject_null_name`), and `frame::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 at `60599a9`: `gpu::` 222 passed, 2 failed (packaging), 2 `SKIPPED … no wave64`. With a retail shader pack and console DLLs (`XCL_SAMPLE_RPF`, `XCL_SAMPLE_DLLS`): `gpu_pso_e2e` 6 of 6 ("MS + PS pipelines through the hook: 7 / 7") and `gpu_compute_e2e` pass 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_bpermute` failure (`gpu_format_stores_atomics_global_lds`, "lane 0 ds_bpermute", left 1280, right 63) is RADV's: it passes with `RADV_DEBUG=llvm` and on NVIDIA. ACO's `emit_bpermute_shared_vgpr` puts its two shared VGPRs at `align(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: - eleven `assert(iface->lpVtbl == &…_vtbl)` in the `impl_from_*` helpers. They are compiled into the official release, so this is what a Proton user gets. - `d3d12_command_allocator_from_iface` returns NULL for an allocator whose table is not its own. - `d3d12_command_list_from_iface` (used by `ExecuteCommandLists`) returns NULL for a list whose table is not one of its seven; the caller then reads through it (an access violation at address `0x2b20`). - **one place dispatches on it**: `is_shared_ID3D12Fence1` picks between two different fence structures by comparing the vtable with `d3d12_shared_fence_vtbl`. A retail game creates its fences with `D3D12_FENCE_FLAG_SHARED`. With XCL's table in place the shared fence is handled as an ordinary one: the queue's `Signal` reaches `d3d12_fence_lock` on 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=true` and the two `from_iface` functions changed to accept any table (about ten lines), and, for the shared fences, with the sharing bits cleared before `CreateFence` (`VKD3D_CONFIG=ignore_shared_fence` does 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` / `readopt` chase it at eight call sites on current `main` (`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 is `mov rax,[rcx]; jmp [rax+72]` on a descriptor heap (slot 9, `GetCPUDescriptorHandleForHeapStart`: RAX on the console, a hidden pointer on the PC): ``` [FAIL] D3D12.X: a console method by tail call from a system callback (thread start): the PC method ran: returned 0x1686030 (the console handle is 0x1445fe0, the spare buffer is at 0x1686030) and wrote 0x1445fe0 through rdx ``` 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.rs` already 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 remove `preserve_vtable` on 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 - **`userfaultfd` must be allowed.** Wine Staging tracks `MEM_WRITE_WATCH` with `userfaultfd` write protection and falls back to read-only pages when the call is refused. In the fallback, `OpenExistingHeapFromAddress` on 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]`. - **DXVK's DXGI and Direct3D 11 are needed** next to vkd3d-proton. With Wine's own `dxgi.dll`, `PresentX` crashes in `wined3d.dll`; with DXVK's DXGI but Wine's `d3d11.dll`, a later check stops in `DXGID3D10CreateDevice`. - The two `[FAIL]`s: `xmem: working-set statistics` (limit `0x360000000`, used `0x0`) and `user32: … hidden console screen: W: not cloaked`. Wine differences; not looked into. - In the test title, after the last graphics check the run ends in Wine's `xaudio2_9.dll` when the mastering voice is created; my container has no audio device. - Once in about ten runs on RADV: `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](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:42 +00:00
Author
Owner

@⁠martinchooxp on GitHub · 2026-11-23 19:01 UTC · original

How did you build the project on linux ?. Did you use a VM ?

**@⁠martinchooxp** on GitHub · 2026-11-23 19:01 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7110994851) How did you build the project on linux ?. Did you use a VM ?
Author
Owner

@⁠ozimchuk on GitHub · 2026-11-23 19:04 UTC · original

No VM. I cross-compile XCL for Windows on Linux and run the .exe under Wine.

Build (Ubuntu 24.04, in a Docker container, but a plain Linux setup works the same):

  • mingw-w64 (gcc-mingw-w64-x86-64, g++-mingw-w64-x86-64) and Rust with the x86_64-pc-windows-gnu target
  • CARGO_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 unmodified main. The tests build with cargo test --release --workspace --no-run --target x86_64-pc-windows-gnu, and the test .exes run under Wine too.
  • Microsoft's DXC Windows release (dxcompiler.dll, dxil.dll) next to xcl.exe.

Run: Wine 11.21 (Staging), with vkd3d-proton as d3d12.dll / d3d12core.dll and DXVK's dxgi.dll, d3d11.dll, d3d10core.dll, all next to xcl.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; and userfaultfd must be allowed (Docker's default seccomp profile blocks it).

**@⁠ozimchuk** on GitHub · 2026-11-23 19:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7111066757) No VM. I cross-compile XCL for Windows on Linux and run the `.exe` under Wine. **Build** (Ubuntu 24.04, in a Docker container, but a plain Linux setup works the same): - mingw-w64 (`gcc-mingw-w64-x86-64`, `g++-mingw-w64-x86-64`) and Rust with the `x86_64-pc-windows-gnu` target - `CARGO_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 unmodified `main`. The tests build with `cargo test --release --workspace --no-run --target x86_64-pc-windows-gnu`, and the test `.exe`s run under Wine too. - Microsoft's DXC Windows release (`dxcompiler.dll`, `dxil.dll`) next to `xcl.exe`. **Run:** Wine 11.21 (Staging), with vkd3d-proton as `d3d12.dll` / `d3d12core.dll` and DXVK's `dxgi.dll`, `d3d11.dll`, `d3d10core.dll`, all next to `xcl.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; and `userfaultfd` must be allowed (Docker's default seccomp profile blocks it).
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-23 20:49 UTC · original

An addition to the userfaultfd note above, from a plain Ubuntu 24.04 VM (no container) with an RTX 2060 (Turing), NVIDIA 595.91.07, at main 956a476, cross-built for x86_64-pc-windows-gnu. The stack is Kron4ek's Wine 11.21 Staging (wow64 build), vkd3d-proton master 30b0eb9 relaxed as described above, and DXVK 3.1.1 dxgi.

On this stack five gpu::recomp tests read zeros from title memory, on main and 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_grazing and gpu_sparse_vram_descriptors_buffers_and_xmem. For example, gpu_unified_memory_arena fails 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.

  • The userfaultfd write-watch code is a Proton Wine patch (dlls/ntdll/unix/virtual.c in ValveSoftware/wine). The Wine Staging build I used doesn't have it: its ntdll.so contains no userfaultfd code, and Kron4ek's staging-tkg build doesn't either. strace -e userfaultfd over a test run shows no such call at all. With such a Wine, MEM_WRITE_WATCH memory always takes the read-only-page fallback, whatever the host allows.
  • In that case vkd3d-proton's OpenExistingHeapFromAddress → vkd3d_import_host_memory logs Failed to import host memory, hr 0x8007000e (VKD3D_DEBUG=warn). It then allocates host-visible memory of its own and still returns S_OK (libs/vkd3d/memory.c). The CPU and the GPU each see their own copy.
  • I checked the cause with one change, an experiment and not a proposal: MEM_WRITE_WATCH set to 0 in gpu/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_windows and gpu_bvh64_intersect_ray_across_memory_windows_and_grazing. Unchanged, all 5 fail.
  • gpu_sparse_vram_descriptors_buffers_and_xmem still 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 userfaultfd is needed, besides the host allowing the call. Proton's code passes UFFD_USER_MODE_ONLY, so it should work with Ubuntu's default vm.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.

**@⁠Kalmarv** on GitHub · 2026-11-23 20:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7113618181) An addition to the `userfaultfd` note above, from a plain Ubuntu 24.04 VM (no container) with an **RTX 2060 (Turing)**, NVIDIA 595.91.07, at `main` `956a476`, cross-built for `x86_64-pc-windows-gnu`. The stack is Kron4ek's Wine 11.21 Staging (wow64 build), vkd3d-proton `master` 30b0eb9 relaxed as described above, and DXVK 3.1.1 `dxgi`. **On this stack five `gpu::recomp` tests read zeros from title memory**, on `main` and 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_grazing` and `gpu_sparse_vram_descriptors_buffers_and_xmem`. For example, `gpu_unified_memory_arena` fails 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.** - The `userfaultfd` write-watch code is a Proton Wine patch (`dlls/ntdll/unix/virtual.c` in ValveSoftware/wine). The Wine Staging build I used doesn't have it: its `ntdll.so` contains no `userfaultfd` code, and Kron4ek's `staging-tkg` build doesn't either. `strace -e userfaultfd` over a test run shows no such call at all. With such a Wine, `MEM_WRITE_WATCH` memory always takes the read-only-page fallback, whatever the host allows. - In that case vkd3d-proton's `OpenExistingHeapFromAddress` → `vkd3d_import_host_memory` logs `Failed to import host memory, hr 0x8007000e` (`VKD3D_DEBUG=warn`). It then allocates host-visible memory of its own and still returns `S_OK` (`libs/vkd3d/memory.c`). The CPU and the GPU each see their own copy. - I checked the cause with one change, an experiment and not a proposal: `MEM_WRITE_WATCH` set to 0 in `gpu/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_windows` and `gpu_bvh64_intersect_ray_across_memory_windows_and_grazing`. Unchanged, all 5 fail. - `gpu_sparse_vram_descriptors_buffers_and_xmem` still 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 `userfaultfd` is needed, besides the host allowing the call. Proton's code passes `UFFD_USER_MODE_ONLY`, so it should work with Ubuntu's default `vm.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.
Author
Owner

@⁠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, main at db5dc26.

Build: besides mingw, the MSVC target cross-compiles with cargo-xwin (cargo xwin build --workspace --target x86_64-pc-windows-msvc). One snag: libudis86-sys passes the gcc-style -includestring.h, which clang-cl ignores, so udis86.c fails on an undeclared memset; a clang-cl wrapper that adds /FIstring.h fixes 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 at gpu_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_valu hung 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 RWByteAddressBuffer used with 64-bit atomics carries only the { Atomic64Use, 1 } extended property, dxil-spirv read that 1 as a structured stride, and its BDA (root descriptor) loads / stores on that buffer then added the undef element offset to the address. It shows up when a load from the buffer feeds a 64-bit atomic on it, e.g. the rmw64 compare-exchange loop for GLOBAL_ATOMIC_INC_X2 / DEC_X2. Whether undef comes 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.

**@⁠BlestTerror** on GitHub · 2026-11-23 20:56 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7113766580) 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**, `main` at `db5dc26`. **Build:** besides mingw, the MSVC target cross-compiles with `cargo-xwin` (`cargo xwin build --workspace --target x86_64-pc-windows-msvc`). One snag: `libudis86-sys` passes the gcc-style `-includestring.h`, which `clang-cl` ignores, so `udis86.c` fails on an undeclared `memset`; a `clang-cl` wrapper that adds `/FIstring.h` fixes 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 at `gpu_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_valu` **hung 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 `RWByteAddressBuffer` used with 64-bit atomics carries only the `{ Atomic64Use, 1 }` extended property, dxil-spirv read that `1` as a structured stride, and its BDA (root descriptor) loads / stores on that buffer then added the `undef` element offset to the address. It shows up when a load from the buffer feeds a 64-bit atomic on it, e.g. the `rmw64` compare-exchange loop for `GLOBAL_ATOMIC_INC_X2` / `DEC_X2`. Whether `undef` comes 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.
Author
Owner

@⁠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_xmem has the same single cause as the other four.

My experiment, MEM_WRITE_WATCH = 0 for all of gpu/uma.rs, also turned off XCL's dirty tracking for the sparse windows: hle/d3d12x/sparse.rs uploads only what GetWriteWatch reports. So that test read zeros because of the experiment itself.

The narrower experiment, at main 6da33fa, 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_xmem passes, 3 of 3, with no import warning from vkd3d-proton.

A standalone repro (OpenExistingHeapFromAddress on 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:

Imported block GPU reads the CPU's write
plain commit, 512 MB or 1 MB yes
MEM_WRITE_WATCH commit, 512 MB or 1 MB no: zeros, and vkd3d-proton logs Failed to import host memory, hr 0x8007000e
plain commit next to a 12 GiB MEM_WRITE_WATCH reservation yes

Only write watch on the imported memory itself matters. XCL needs write watch there: title_textures watches the coherent window too. So this isn't something XCL can drop. It needs a Wine with userfaultfd write watches (Proton's), as described above.

AI use: Claude Code, Claude Opus 5.5

**@⁠Kalmarv** on GitHub · 2026-11-23 21:22 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7114385761) Correction to my comment above: there is **no second cause**. `gpu_sparse_vram_descriptors_buffers_and_xmem` has the same single cause as the other four. My experiment, `MEM_WRITE_WATCH` = 0 for all of `gpu/uma.rs`, also turned off XCL's dirty tracking for the sparse windows: `hle/d3d12x/sparse.rs` uploads only what `GetWriteWatch` reports. So that test read zeros because of the experiment itself. The narrower experiment, at `main` `6da33fa`, 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_xmem` **passes, 3 of 3**, with no import warning from vkd3d-proton. A standalone repro (`OpenExistingHeapFromAddress` on 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: | Imported block | GPU reads the CPU's write | |---|---| | plain commit, 512 MB or 1 MB | yes | | `MEM_WRITE_WATCH` commit, 512 MB or 1 MB | **no**: zeros, and vkd3d-proton logs `Failed to import host memory, hr 0x8007000e` | | plain commit next to a 12 GiB `MEM_WRITE_WATCH` reservation | yes | Only write watch on the imported memory itself matters. XCL needs write watch there: `title_textures` watches the coherent window too. So this isn't something XCL can drop. It needs a Wine with `userfaultfd` write watches (Proton's), as described above. AI use: Claude Code, Claude Opus 5.5
Author
Owner

@⁠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 wine package), with vm.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), with VKD3D_DEBUG=warn and no Failed to import host memory. Also in full serial --lib runs. RTX 4060, vkd3d-proton 3.1 (+ dxil-spirv#372, relaxed as above), x86_64-pc-windows-msvc, main 6da33fa.

So the read-only fallback looks like Wine Staging's write-watch path specifically; upstream Wine's MEM_WRITE_WATCH memory 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.

**@⁠BlestTerror** on GitHub · 2026-11-23 21:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7114495012) A data point on the write-watch import: on **upstream (non-Staging) Wine 11.20** (Arch's `wine` package), with `vm.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`), with `VKD3D_DEBUG=warn` and no `Failed to import host memory`. Also in full serial `--lib` runs. RTX 4060, vkd3d-proton 3.1 (+ dxil-spirv#372, relaxed as above), `x86_64-pc-windows-msvc`, `main` `6da33fa`. So the read-only fallback looks like Wine Staging's write-watch path specifically; upstream Wine's `MEM_WRITE_WATCH` memory 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.
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-23 21:29 UTC · original

A correction to my notes above, prompted by @⁠BlestTerror's result. The userfaultfd write-watch code is in upstream Wine, not only in Proton's: dlls/ntdll/unix/virtual.c at wine-11.20 and wine-11.21, built as USE_UFFD_WRITEWATCH. It only compiles when the build's kernel headers have UFFD_FEATURE_WP_ASYNC and PM_SCAN_WP_MATCHING, both from Linux 6.7. Kron4ek's portable builds are compiled in an Ubuntu 18.04 chroot (CHROOT_DISTRO="bionic" in create_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 with USE_UFFD_WRITEWATCH, running on a 6.7+ kernel. vm.unprivileged_userfaultfd=0 doesn't matter, because the call passes UFFD_USER_MODE_ONLY.

Tested: upstream source at both tags; Kron4ek's build script; ntdll.so of Kron4ek 11.21 Staging (no userfaultfd code, no such syscall under strace).
Not tested: a Wine built here with USE_UFFD_WRITEWATCH.

🤖 Claude Opus 5.5

**@⁠Kalmarv** on GitHub · 2026-11-23 21:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7114529442) A correction to my notes above, prompted by @⁠BlestTerror's result. **The `userfaultfd` write-watch code is in upstream Wine, not only in Proton's**: `dlls/ntdll/unix/virtual.c` at `wine-11.20` and `wine-11.21`, built as `USE_UFFD_WRITEWATCH`. It only compiles when the build's kernel headers have `UFFD_FEATURE_WP_ASYNC` and `PM_SCAN_WP_MATCHING`, both from Linux 6.7. Kron4ek's portable builds are compiled in an Ubuntu 18.04 chroot (`CHROOT_DISTRO="bionic"` in `create_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 with `USE_UFFD_WRITEWATCH`, running on a 6.7+ kernel. `vm.unprivileged_userfaultfd=0` doesn't matter, because the call passes `UFFD_USER_MODE_ONLY`. **Tested:** upstream source at both tags; Kron4ek's build script; `ntdll.so` of Kron4ek 11.21 Staging (no `userfaultfd` code, no such syscall under `strace`). **Not tested:** a Wine built here with `USE_UFFD_WRITEWATCH`. 🤖 Claude Opus 5.5
Author
Owner

@⁠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_arena passes anyway). XCL cross-built for x86_64-pc-windows-gnu with Fedora's mingw64 (posix threads) in a rootless podman container. vkd3d-proton master 30b0eb9, relaxed as described in this issue (-Db_ndebug=true + the two from_iface changes), VKD3D_CONFIG=ignore_shared_fence. DXVK 3.1.1 dxgi/d3d11/d3d10core, DXC 1.9.2609. XCL_NETWORK=0.

Tests at 956a476: lib 531 passed / 4 failed (Wine error codes in get_proc_address_and_load_library_ex_reject_null_name and vfs::truncate_existing_validation_errors, vfs_hooks::move_case_only_and_self_rename_preserve_file, and legacy_console_iids_map_to_their_own_slots, which #200 addresses). 2 SKIPPED (no wave64). With XCL_SAMPLE_RPF / _DLLS / _TTPF: gpu_pso_e2e 6/6 and gpu_compute_e2e 2/2. console_dlls_e2e 11/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:

  • First frame at 17 s, then a steady ~27 fps (16 000+ PresentX in 600 s). No crash, ~19 GB commit.
  • The picture never shows the menu. With 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.
  • Window title for the whole run: compiling shaders: 0 running, 0 done, 57817 pipelines queued (warm DXIL cache; the queue is the lazy pipelines, so this alone is expected).
  • Warnings, once each: 6 mesh pipelines with their MS in the AS slot refused, VB/IB outside unified memory mirrored (#195), rect lists drawn as their first half, 4× "a UAV of a resource that cannot have one on the PC (a depth buffer) – a null view", 4× Write64BitValueBottomOfPipeX: … is not 8-byte aligned in unified memory.
  • Called stubs every frame: allocator #9, list #126 / #142 / #75 (console extension); queue #31 ×21; list #131 ×7, #132 ×5.

At 956a476 the same setup gave all-zero frames (no seam) and the title never opened audio.rpf, textures.rpf, script.rpf, pack/* or the ttdb archives 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 Write64BitValueBottomOfPipeX warnings are timestamps (list_x.rs timestamp()) into the title's own memory, not misaligned addresses (e.g. 0x…6698). Unlike write(), timestamp() has no cpu_writes fallback, 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 any XCL_* trace.

AI-assisted.

**@⁠notdxbi** on GitHub · 2026-11-23 21:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7114642762) 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_arena` passes anyway). XCL cross-built for `x86_64-pc-windows-gnu` with Fedora's mingw64 (posix threads) in a rootless podman container. vkd3d-proton `master` `30b0eb9`, relaxed as described in this issue (`-Db_ndebug=true` + the two `from_iface` changes), `VKD3D_CONFIG=ignore_shared_fence`. DXVK 3.1.1 `dxgi`/`d3d11`/`d3d10core`, DXC 1.9.2609. `XCL_NETWORK=0`. **Tests at `956a476`:** lib 531 passed / 4 failed (Wine error codes in `get_proc_address_and_load_library_ex_reject_null_name` and `vfs::truncate_existing_validation_errors`, `vfs_hooks::move_case_only_and_self_rename_preserve_file`, and `legacy_console_iids_map_to_their_own_slots`, which #200 addresses). 2 SKIPPED (no wave64). With `XCL_SAMPLE_RPF` / `_DLLS` / `_TTPF`: `gpu_pso_e2e` 6/6 and `gpu_compute_e2e` 2/2. `console_dlls_e2e` 11/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:** - First frame at 17 s, then a steady ~27 fps (16 000+ PresentX in 600 s). No crash, ~19 GB commit. - **The picture never shows the menu.** With `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. - Window title for the whole run: `compiling shaders: 0 running, 0 done, 57817 pipelines queued` (warm DXIL cache; the queue is the lazy pipelines, so this alone is expected). - Warnings, once each: 6 mesh pipelines with their MS in the AS slot refused, VB/IB outside unified memory mirrored (#195), rect lists drawn as their first half, 4× "a UAV of a resource that cannot have one on the PC (a depth buffer) – a null view", 4× `Write64BitValueBottomOfPipeX: … is not 8-byte aligned in unified memory`. - Called stubs every frame: allocator #9, list #126 / #142 / #75 (console extension); queue #31 ×21; list #131 ×7, #132 ×5. At `956a476` the same setup gave all-zero frames (no seam) and the title never opened `audio.rpf`, `textures.rpf`, `script.rpf`, `pack/*` or the `ttdb` archives 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 `Write64BitValueBottomOfPipeX` warnings are timestamps (`list_x.rs` `timestamp()`) into the title's own memory, not misaligned addresses (e.g. `0x…6698`). Unlike `write()`, `timestamp()` has no `cpu_writes` fallback, 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 any `XCL_*` trace. AI-assisted.
Author
Owner

@⁠notdxbi on GitHub · 2026-11-23 21:49 UTC · original

Follow-up to my comment above, now on main 60565c4 (with #199). Same Linux / Wine / RTX 5060 setup. I localised the black image with XCL_DEBUG_MAGENTA and XCL_TRACE_FRAME:

  • vs 7fda1be8fbc78299 / ps c1d5a4b8b07ccbce is 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 e2bcc91e569d6d13 is a full-screen pass into the target the composite reads. Forced to blue, the whole screen is blue.
  • vs 28d887aa04ffa15a / ps b40d9ca24fe3d23d is 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 userfaultfd with UFFD_USER_MODE_ONLY (flags 0x80801) and logs "Using kernel write watches", so vm.unprivileged_userfaultfd = 0 doesn'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 run XCL_DEBUG_PS_EXPR / XCL_DUMP_SHADERS on that VS if a specific output would help.

AI-assisted.

**@⁠notdxbi** on GitHub · 2026-11-23 21:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7114965012) Follow-up to my comment above, now on `main` **`60565c4`** (with #199). Same Linux / Wine / RTX 5060 setup. I localised the black image with `XCL_DEBUG_MAGENTA` and `XCL_TRACE_FRAME`: - `vs 7fda1be8fbc78299 / ps c1d5a4b8b07ccbce` is 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 e2bcc91e569d6d13` is a full-screen pass into the target the composite reads. Forced to blue, the whole screen is blue. - `vs 28d887aa04ffa15a / ps b40d9ca24fe3d23d` is 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 `userfaultfd` with `UFFD_USER_MODE_ONLY` (flags `0x80801`) and logs "Using kernel write watches", so `vm.unprivileged_userfaultfd = 0` doesn'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 run `XCL_DEBUG_PS_EXPR` / `XCL_DUMP_SHADERS` on that VS if a specific output would help. AI-assisted.
Author
Owner

@⁠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.

image
**@⁠jvyden** on GitHub · 2026-11-23 22:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7115587049) 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. <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/b2e48a31-6807-4e66-b68b-882d42fd3b39" />
Author
Owner

@⁠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-gnu at 6da33fa, 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.
  • The same for XCL's own lists (title texture uploads, the presenter), which go through the PC slots.
  • Under Wine, CreateFence drops the sharing bits. GE-Proton's vkd3d-proton 3.1.0 has no ignore_shared_fence; without this change the game crashed in d3d12_shared_fence_set_native_sync_handle_on_completion_explicit about 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=1 under HKLM\System\CurrentControlSet\Services\winebus; otherwise Proton's Wine passes it through as raw HID and XInput sees nothing.

image

@⁠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_iface lookups 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.

**@⁠FilipeSilvens** on GitHub · 2026-11-23 22:50 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7116238642) 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-gnu` at `6da33fa`, `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. - The same for XCL's own lists (title texture uploads, the presenter), which go through the PC slots. - Under Wine, `CreateFence` drops the sharing bits. GE-Proton's vkd3d-proton 3.1.0 has no `ignore_shared_fence`; without this change the game crashed in `d3d12_shared_fence_set_native_sync_handle_on_completion_explicit` about 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=1` under `HKLM\System\CurrentControlSet\Services\winebus`; otherwise Proton's Wine passes it through as raw HID and XInput sees nothing. <img width="2000" height="1084" alt="image" src="https://github.com/user-attachments/assets/5ca91bc1-3c97-4af3-a21e-ad65ae1ad71a" /> @⁠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_iface` lookups 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.
Author
Owner

@⁠notdxbi on GitHub · 2026-11-23 22:56 UTC · original · edited 2026-11-23 22:58 UTC

1-account-prompt 2-navigation-experience 3-subtitles

@⁠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 master 30b0eb9, DXVK 3.1.1 dxgi). XCL is main 0e946cf plus the four local changes below. Patches are uncommitted; I can open them as separate PRs if wanted, but scripts/smoke.ps1 needs Windows.

1. The diagonal: CBV descriptors have stride 0 (real.rs dev_create_cbv_x → buffer_words(va, 0, size, 22))

  • The menu element VS 28d887aa04ffa15a reads its 2D transform rows with buffer_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.
  • With stride 0, every row reads row 0, so x = y for 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, via XCL_TRACE_SHADERS).
  • Change: desc::cbv_words = stride 16, num_records = ceil(size / 16). The emitter's scalar-load limit is num_records × stride, so s_buffer_load keeps the same byte bound.
  • Result: the account prompt, then (Enter presses) NAVIGATION EXPERIENCE and SUBTITLES of the first-run setup.
  • @⁠FilipeSilvens: 6da33fa has 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 run XCL_TRACE_FRAME=1 XCL_TRACE_SHADERS=28d887aa04ffa15a and 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

  • Wine has no DWM cloaking, so the title's 1920×1080 console-screen window (Hyprland shows it as a floating window titled "A") sits over XCL's window.
  • A layered alpha-0 window did not help: the compositor ignores the opacity Wine passes on.
  • Change (hle/user.rs): after DWMWA_CLOAK, DWMWA_CLOAKED is checked. If the window isn't cloaked it is hidden and kept hidden (WM_WINDOWPOSCHANGING drops SWP_SHOWWINDOW). No change on Windows.

3. Then a black XCL window: the swap chain on the title's queue gets nothing

  • With a local diagnostic that reads back the swap chain image right after the presenter's copy:
    • copy on the title's queue: 0 of 518 400 samples non-black (CopyResource and CopyTextureRegion alike), while the title's image had 517 542;
    • swap chain + copy + Present on a presenter-owned queue: the full image.
  • Change (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.
  • This is probably the same problem your vtable hand-back for XCL's own lists solves.

4. #298's crash (+0x13936) looks like a race in kernelx/lazy.rs; I'll add a comment there

  • In my run, 4 threads faulted within 3 ms writing to fresh pages of one region, 3 of them in the same 64 KiB page.
  • handler → commit removes the page from LAZY before committing it. The second thread to fault on the page finds it no longer lazy, gets EXCEPTION_CONTINUE_SEARCH, and the title's first store into a new pool object crashes. ensure (DirectStorage destinations) races the same way.
  • Change: the commit happens under the lock, and a fault on a page committed by that path (read or write, page now committed RW) continues.
  • Unit test a_fault_that_raced_the_commit_goes_on drives 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)

  • lib suite: 612 passed, 0 failed, 20 ignored; SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • Each change has a unit or GPU test that fails without it, except 3: that needs vkd3d-proton with an adopted queue.
  • Intermittent here: gpu_f64_math_random (all-zero results, 1 of 3 isolated runs) and gpu_built_bvh_nodes_match_the_cpu_node_test (1 run).
  • Excluded: the new 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.

**@⁠notdxbi** on GitHub · 2026-11-23 22:56 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7116372105) · edited 2026-11-23 22:58 UTC <img width="960" height="540" alt="1-account-prompt" src="https://github.com/user-attachments/assets/c28454ac-1eb4-4a22-80bf-2079680f4d27" /> <img width="960" height="540" alt="2-navigation-experience" src="https://github.com/user-attachments/assets/db6c5073-60c9-4819-b937-41c28288d7d6" /> <img width="960" height="540" alt="3-subtitles" src="https://github.com/user-attachments/assets/e3fc61b3-fa12-4655-8acc-826ddf74a2e0" /> @⁠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 `master` 30b0eb9, DXVK 3.1.1 dxgi). XCL is `main` **`0e946cf`** plus the four local changes below. Patches are uncommitted; I can open them as separate PRs if wanted, but `scripts/smoke.ps1` needs Windows. **1. The diagonal: CBV descriptors have stride 0** (`real.rs` `dev_create_cbv_x` → `buffer_words(va, 0, size, 22)`) - The menu element VS `28d887aa04ffa15a` reads its 2D transform rows with `buffer_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. - With stride 0, every row reads row 0, so `x = y` for 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, via `XCL_TRACE_SHADERS`). - Change: `desc::cbv_words` = stride 16, num_records = ceil(size / 16). The emitter's scalar-load limit is num_records × stride, so `s_buffer_load` keeps the same byte bound. - Result: the account prompt, then (Enter presses) NAVIGATION EXPERIENCE and SUBTITLES of the first-run setup. - @⁠FilipeSilvens: `6da33fa` has 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 run `XCL_TRACE_FRAME=1 XCL_TRACE_SHADERS=28d887aa04ffa15a` and 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** - Wine has no DWM cloaking, so the title's 1920×1080 console-screen window (Hyprland shows it as a floating window titled "A") sits over XCL's window. - A layered alpha-0 window did not help: the compositor ignores the opacity Wine passes on. - Change (`hle/user.rs`): after `DWMWA_CLOAK`, `DWMWA_CLOAKED` is checked. If the window isn't cloaked it is hidden and kept hidden (`WM_WINDOWPOSCHANGING` drops `SWP_SHOWWINDOW`). No change on Windows. **3. Then a black XCL window: the swap chain on the title's queue gets nothing** - With a local diagnostic that reads back the swap chain image right after the presenter's copy: - copy on the title's queue: **0 of 518 400** samples non-black (`CopyResource` and `CopyTextureRegion` alike), while the title's image had 517 542; - swap chain + copy + Present on a presenter-owned queue: the full image. - Change (`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. - This is probably the same problem your vtable hand-back for XCL's own lists solves. **4. #298's crash (`+0x13936`) looks like a race in `kernelx/lazy.rs`; I'll add a comment there** - In my run, 4 threads faulted within 3 ms writing to fresh pages of one region, 3 of them in the same 64 KiB page. - `handler` → `commit` removes the page from `LAZY` before committing it. The second thread to fault on the page finds it no longer lazy, gets `EXCEPTION_CONTINUE_SEARCH`, and the title's first store into a new pool object crashes. `ensure` (DirectStorage destinations) races the same way. - Change: the commit happens under the lock, and a fault on a page committed by that path (read or write, page now committed RW) continues. - Unit test `a_fault_that_raced_the_commit_goes_on` drives 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) - lib suite: 612 passed, 0 failed, 20 ignored; SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - Each change has a unit or GPU test that fails without it, except 3: that needs vkd3d-proton with an adopted queue. - Intermittent here: `gpu_f64_math_random` (all-zero results, 1 of 3 isolated runs) and `gpu_built_bvh_nodes_match_the_cpu_node_test` (1 run). - Excluded: the new `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.
Author
Owner

@⁠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 for x86_64-pc-windows-msvc from main 0e946cf with #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):

  • CBV stride 16, the same change as @⁠notdxbi's item 1. Without it, the diagonal; with it, every boot screen draws.
  • to_zero pruned once per submit, as in #203. Without it, the title stopped at 2.6 s inside decommit_tiles here.
  • Format 67 UAV / RT as R11G11B10 (#242 covers this properly). Without it, FSR throws a C++ exception at its UAV creation.
  • A cap on sparse-window VRAM (CUSTOM heap past ~500 MB). Without it, the Series X profile went past 11 GB on a 12 GB card.
  • An int3 at game_scarlett_master.exe+0xcc2834 is stepped over. It is hit once at start-up; not investigated.
  • BCPack BC4 / BC5 requests are unpacked with an approximate decoder, and the modes nothing unpacks are filled with flat blocks. Before this, loading stopped on refused BC4 / BC5 requests. So textures from those requests are approximate or flat; the loading artwork itself is complete.

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.

loading-screen

Where it stops:

  • DirectStorage serves 2 066 requests up to ~150 s, then 0 requests for the rest of the run.
  • The window title stays at 0 running, 0 done, 58746 pipelines queued; the PSO workers wait on an empty queue.
  • No XCL call blocks: the thread dumps show the title's threads waiting in its own code. The main thread sits in a timed WaitForSingleObject (+0x2250c0, called from +0x2431600) between frames. The render thread presents normally (wait_frame_event_x).
  • The only recurring runtime call is the ROS ticket request (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.

**@⁠wiktorekdev** on GitHub · 2026-11-23 23:06 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7116564736) 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 for `x86_64-pc-windows-msvc` from `main` `0e946cf` with #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): - CBV stride 16, the same change as @⁠notdxbi's item 1. Without it, the diagonal; with it, every boot screen draws. - `to_zero` pruned once per submit, as in #203. Without it, the title stopped at 2.6 s inside `decommit_tiles` here. - Format 67 UAV / RT as R11G11B10 (#242 covers this properly). Without it, FSR throws a C++ exception at its UAV creation. - A cap on sparse-window VRAM (`CUSTOM` heap past ~500 MB). Without it, the Series X profile went past 11 GB on a 12 GB card. - An `int3` at `game_scarlett_master.exe+0xcc2834` is stepped over. It is hit once at start-up; not investigated. - BCPack BC4 / BC5 requests are unpacked with an approximate decoder, and the modes nothing unpacks are filled with flat blocks. Before this, loading stopped on refused BC4 / BC5 requests. So textures from those requests are approximate or flat; the loading artwork itself is complete. **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. <img width="960" height="540" alt="loading-screen" src="https://github.com/user-attachments/assets/7d6d2296-d59d-49c7-bb01-d052c4d2d735" /> **Where it stops:** - DirectStorage serves 2 066 requests up to ~150 s, then **0 requests** for the rest of the run. - The window title stays at `0 running, 0 done, 58746 pipelines queued`; the PSO workers wait on an empty queue. - No XCL call blocks: the thread dumps show the title's threads waiting in its own code. The main thread sits in a timed `WaitForSingleObject` (`+0x2250c0`, called from `+0x2431600`) between frames. The render thread presents normally (`wait_frame_event_x`). - The only recurring runtime call is the ROS ticket request (`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.
Author
Owner

@⁠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, and 9ab7d76 (which includes 7a033c8) + 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):

[4eaadc00, 00100004, 00000060, 0002403c]
  • stride 16 (word 1 bits 16–29), num_records 0x60 = 96 rows of 16 bytes = 1536 bytes, the same size as yours.
  • Word 3 is 0x0002403c. XCL's encoder (desc::buffer_words) always writes 0xFAC | format << 12 | 1 << 24 | oob << 28 there, which for stride 0 and format 22 is exactly your 0x31016FAC. So yours came from XCL's CreateConstantBufferView path (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. 7a033c8 isn'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.

**@⁠FilipeSilvens** on GitHub · 2026-11-23 23:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7116596561) @⁠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, and `9ab7d76` (which includes `7a033c8`) + 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): ``` [4eaadc00, 00100004, 00000060, 0002403c] ``` - **stride 16** (word 1 bits 16–29), num_records `0x60` = 96 rows of 16 bytes = 1536 bytes, the same size as yours. - Word 3 is `0x0002403c`. XCL's encoder (`desc::buffer_words`) always writes `0xFAC | format << 12 | 1 << 24 | oob << 28` there, which for stride 0 and format 22 is exactly your `0x31016FAC`. So yours came from XCL's `CreateConstantBufferView` path (`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. `7a033c8` isn'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.
Author
Owner

@⁠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-slr with its bundled vkd3d-proton 0bb64c5 (vkd3d-1.1-5656), RTX 3060 12 GB, NVIDIA 620.73.04, Ryzen 5 5500, 16 GB RAM. XCL cross-built for x86_64-pc-windows-msvc with cargo-xwin (with CL=-FIstring.h for libudis86-sys, the same snag @⁠BlestTerror hit). Retail GTA VI 1.0.2.1, run in a network namespace plus XCL_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 in CreateCommandList / list Reset (cl_reset, reset_x, console_list::cl_reset, KickoffX) and the lists in ExecuteCommandLists (queue override and KickoffX). That covers d3d12_command_allocator_from_iface and d3d12_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.
  • Shared fences can't be handled that way (is_shared_ID3D12Fence1 is also checked later on the submission thread), so CreateFence drops D3D12_FENCE_FLAG_SHARED | SHARED_CROSS_ADAPTER under Wine, as your ignore_shared_fence experiment did.
  • This Proton build's vkd3d-proton evidently has assertions off: the d3d12_heap_vtbl assertion never fired.

Result: before, int3 at device setup (E_INVALIDARG from the list Reset), then 2,765 Invalid command allocator per 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 28d887aa04ffa15a reads a 2x4 transform as two buffer_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 an idxen access (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=28d887aa04ffa15a logs 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 +0x61bbd6 that @⁠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.

**@⁠pedro-anthony** on GitHub · 2026-11-23 23:19 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7116823811) 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-slr` with its bundled vkd3d-proton `0bb64c5` (`vkd3d-1.1-5656`), RTX 3060 12 GB, NVIDIA 620.73.04, Ryzen 5 5500, 16 GB RAM. XCL cross-built for `x86_64-pc-windows-msvc` with `cargo-xwin` (with `CL=-FIstring.h` for `libudis86-sys`, the same snag @⁠BlestTerror hit). Retail GTA VI 1.0.2.1, run in a network namespace plus `XCL_NETWORK=0`. **What I did instead of proxies** ([262eb06](https://github.com/pedro-anthony/xcl/commit/262eb0635ac75a9a37dbe8d74c6316cf998ae456), 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 in `CreateCommandList` / list `Reset` (`cl_reset`, `reset_x`, `console_list::cl_reset`, `KickoffX`) and the lists in `ExecuteCommandLists` (queue override and `KickoffX`). That covers `d3d12_command_allocator_from_iface` and `d3d12_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. - Shared fences can't be handled that way (`is_shared_ID3D12Fence1` is also checked later on the submission thread), so `CreateFence` drops `D3D12_FENCE_FLAG_SHARED | SHARED_CROSS_ADAPTER` under Wine, as your `ignore_shared_fence` experiment did. - This Proton build's vkd3d-proton evidently has assertions off: the `d3d12_heap_vtbl` assertion never fired. **Result:** before, `int3` at device setup (`E_INVALIDARG` from the list `Reset`), then 2,765 `Invalid command allocator` per 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 `28d887aa04ffa15a` reads a 2x4 transform as two `buffer_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 an `idxen` access ([9f02137](https://github.com/pedro-anthony/xcl/commit/9f02137eaeea12d390454af7226f01a3bf31c0d2), `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=28d887aa04ffa15a` logs 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 `+0x61bbd6` that @⁠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.
Author
Owner

@⁠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:21 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7116856891) 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. :)
Author
Owner

@⁠jvyden on GitHub · 2026-11-23 23:29 UTC · original

Interestingly, on main I 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.

xcl: D3D12.X: 3000 frames presented, 30.0 fps over the last 300
xcl: XUser: token #7 for POST https://auth-arc-prod.ros.rockstargames.com/arc/11/gameservices/auth.asmx/CreateTicketXbl3 – none: no Xbox Live (0x80072E
FD)
xcl: D3D12.X: 3300 frames presented, 30.0 fps over the last 300
xcl: D3D12.X: console code so far: 65536 draws with translated pipelines (0 skipped, 0 with PC pipelines), 3125 dispatches (0 skipped); coherent 3998/4
095 MB, sparse 7445 MB, 214 blocks held for 214 allocators
xcl: D3D12.X: 3600 frames presented, 30.0 fps over the last 300
xcl: D3D12.X: 3900 frames presented, 30.0 fps over the last 300
xcl: XUser: token #8 for POST https://auth-arc-prod.ros.rockstargames.com/arc/11/gameservices/auth.asmx/CreateTicketXbl3 – none: no Xbox Live (0x80072E
FD)
xcl: D3D12.X: 4200 frames presented, 30.0 fps over the last 300
xcl: D3D12.X: console code so far: 85910 draws with translated pipelines (0 skipped, 0 with PC pipelines), 4096 dispatches (0 skipped); coherent 3998/4
095 MB, sparse 7445 MB, 214 blocks held for 214 allocators
xcl: D3D12.X: 4500 frames presented, 30.0 fps over the last 300
xcl: D3D12.X: 4800 frames presented, 30.0 fps over the last 300
**@⁠jvyden** on GitHub · 2026-11-23 23:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7117023798) Interestingly, on `main` I 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. ``` xcl: D3D12.X: 3000 frames presented, 30.0 fps over the last 300 xcl: XUser: token #7 for POST https://auth-arc-prod.ros.rockstargames.com/arc/11/gameservices/auth.asmx/CreateTicketXbl3 – none: no Xbox Live (0x80072E FD) xcl: D3D12.X: 3300 frames presented, 30.0 fps over the last 300 xcl: D3D12.X: console code so far: 65536 draws with translated pipelines (0 skipped, 0 with PC pipelines), 3125 dispatches (0 skipped); coherent 3998/4 095 MB, sparse 7445 MB, 214 blocks held for 214 allocators xcl: D3D12.X: 3600 frames presented, 30.0 fps over the last 300 xcl: D3D12.X: 3900 frames presented, 30.0 fps over the last 300 xcl: XUser: token #8 for POST https://auth-arc-prod.ros.rockstargames.com/arc/11/gameservices/auth.asmx/CreateTicketXbl3 – none: no Xbox Live (0x80072E FD) xcl: D3D12.X: 4200 frames presented, 30.0 fps over the last 300 xcl: D3D12.X: console code so far: 85910 draws with translated pipelines (0 skipped, 0 with PC pipelines), 4096 dispatches (0 skipped); coherent 3998/4 095 MB, sparse 7445 MB, 214 blocks held for 214 allocators xcl: D3D12.X: 4500 frames presented, 30.0 fps over the last 300 xcl: D3D12.X: 4800 frames presented, 30.0 fps over the last 300 ```
Author
Owner

@⁠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 in real.rs dev_create_cbv_x:

-    super::console_heap::write(&slot, &crate::gpu::desc::buffer_words(va, 0, size, 22));
+    super::console_heap::write(&slot, &crate::gpu::desc::buffer_words(va, 16, size.div_ceil(16), 22));

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_zero pruned 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.

**@⁠wiktorekdev** on GitHub · 2026-11-23 23:31 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7117061749) @⁠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 in `real.rs` `dev_create_cbv_x`: ```diff - super::console_heap::write(&slot, &crate::gpu::desc::buffer_words(va, 0, size, 22)); + super::console_heap::write(&slot, &crate::gpu::desc::buffer_words(va, 16, size.div_ceil(16), 22)); ``` `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_zero` pruned 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.
Author
Owner

@⁠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.

**@⁠FilipeSilvens** on GitHub · 2026-11-23 23:32 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7117074907) @⁠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.
Author
Owner

@⁠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.

**@⁠JarzaCode** on GitHub · 2026-11-23 23:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7117111810) 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.
Author
Owner

@⁠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.


xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples
xcl: DirectStorage: a request failed (0x89240030): 262144 bytes from
xcl: D3D12.X: a texture at 0x749279910000 lies in a GPU view of the title's CPU memory: kept in step with 0x749879c20000 (16384 so far)
xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples
xcl: sparse windows: 4096 submits, 2098 MB of CPU writes uploaded, 436 ms spent, 19054 tiles mapped
xcl: sparse windows timing: write-watch 5128 ms (1914252 dirty pages), lock wait 21 ms, chunk scan 157 ms, upload 254 ms (178108 runs)
xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from
xcl: XUser: token #9 for POST https://userpresence.xboxlive.com/users/xuid(2533274790395905)/devices/current/titles/current – none: no Xbox Live (0x800
72EFD)
xcl: XGameRuntime: QueryApiImpl 8836fe87-edb9-4fe3-8dad-05f0d2cd5b40/8836fe87-edb9-4fe3-8dad-05f0d2cd5b40 → XGameRuntimeFeature: XCL
xcl: XGameRuntime: QueryApiImpl bbfbdcc7-bfe7-409b-a5ca-edf054960b4d/bbfbdcc7-bfe7-409b-a5ca-edf054960b4d → XGameEvent: XCL
xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples
xcl: DirectStorage: a request failed (0x89240030): 24576 bytes from
xcl: DirectStorage: request #32768: options 0x1 (file source, zlib), destination 0x749821e7b000 (17616 bytes, page offset 0), source size 6365, interme
diate 0
xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from
xcl: DirectStorage: BCPack BC6H: mode 6 unsupported (src=669735, intermediate=0, dst=1048576, swizzle=0); the request fails with E_DECOMPRESSION
xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples
xcl: DirectStorage: BCPack refusals so far: 256 requests: BC1 110 (3244032 bytes), BC5 107 (7077888 bytes), BC6H 1 (1048576 bytes), BC7 38 (3637248 byt
es)
xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from
xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from
xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples
xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from
xcl: DirectStorage: a request failed (0x89240030): 16384 bytes from
xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples
xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples
xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples
xcl: process ends with status 0x3 (thread 416); on the stack: d3d12core.dll+0x1db16, d3d12core.dll+0xa3e32, kernel32.dll+0x1a24a, d3d12core.dll+0x32833
, winevulkan.dll+0xaf00, d3d12core.dll+0x32833, d3d12core.dll+0x36236, d3d12core.dll+0x1db16, ucrtbase.dll+0x5f19a, d3d12core.dll+0xa3e32, d3d12core.dl
l+0x1db16, d3d12core.dll+0x366d5, d3d12core.dll+0x376ec, xcl.exe+0x410fd5, d3d12core.dll+0x11f045, xcl.exe+0x13a77c
xcl: thread dump (138 threads):
thread 308 'main': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < xcl.exe+0x2a2aa1 < xcl.exe+0x3201f7 < xcl.exe+0x34b7 < xcl.exe+0x1c16 < xcl.exe+0x1f8c <
 xcl.exe+0x4e2ea1 < xcl.exe+0x4b0d < xcl.exe+0x10d9 < xcl.exe+0x1456 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 312 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0x32e07 < d3d12core.dll+0x333f4 < d3d
12core.dll+0x329eb < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 316 'vkd3d-disk$': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xbc40f < d3d12core.dll+0x
c588b < d3d12core.dll+0xbbec8 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 328 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 332 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 336 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x23cf729 < game_scarlett_master.exe+0x8126a7 < game_scarlett_maste
r.exe+0x53ec040 < game_scarlett_master.exe+0x53ebf3a < game_scarlett_master.exe+0x661f0 < game_scarlett_master.exe+0x1d109c9 < game_scarlett_master.exe
+0x5a91c0d < game_scarlett_master.exe+0x56a1e5a < xcl.exe+0x2a0347 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 340 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x55e8b2a < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 344 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 348 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 352 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 356 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 360 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 364 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 368 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 372 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 376 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 380 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 384 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 388 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 392 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 396 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 400 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 404 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x2215b0b < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 408 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x2218c82 < game_scarlett_master
.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 412 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221957f < game_scarlett_master.exe+0x25933da < game_scarlett_mast
er.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 420 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x4e7f358 < game_scarlett_master
.exe+0x6259 < game_scarlett_master.exe+0x2481f73 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 424 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 428 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 432 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 436 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 440 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 444 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 448 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 452 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 456 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 460 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 464 'xcl-frame-clock': ntdll.dll+0xf754 < kernelbase.dll+0x771fc < kernelbase.dll+0x7708e < xcl.exe+0x2b09bf < xcl.exe+0xd5c89 < xcl.exe+0xebfa2
 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 468 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 472 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 476 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 480 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 484 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 488 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 492 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x
119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 496 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x2a8bc5c < game_scarlett_maste
r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 500 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x19b4eaf < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 504 'xcl-window': win32u.dll+0x13cc4 < xcl.exe+0xc4ee0 < xcl.exe+0xd5c99 < xcl.exe+0xec0d2 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll
+0x1116f
thread 508 'vkd3d-swapchain-sync': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0x98f49 < d3d12co
re.dll+0xa23d5 < d3d12core.dll+0x98b2d < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 512 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 516 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 520 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 524 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 528 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 532 'xcl-fences': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < xcl.exe+0xe7b2d < xcl.exe+0xd4c19 < xcl.exe+0xe7986 < xcl.exe+0x11c149 < xcl.exe+0
xeaeb6 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 536 'xcl-pso-0': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 540 'xcl-pso-1': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 544 'xcl-pso-2': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 548 'xcl-pso-3': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 552 'xcl-pso-4': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 556 'xcl-pso-5': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 560 'xcl-pso-6': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 564 'xcl-pso-7': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x157c25 < xcl.e
xe+0xd4ca4 < xcl.exe+0xeafe7 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 568 'xcl-pso-8': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 572 'xcl-pso-9': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 576 'xcl-pso-10': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 580 'xcl-pso-11': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 584 'xcl-pso-12': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 588 'xcl-pso-13': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 592 'xcl-pso-14': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 596 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0xa50
5 < bink2scarlett.dll+0x9cac < bink2scarlett.dll+0xaaee < bink2scarlett.dll+0xa609 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x111
6f
thread 600 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0xa50
5 < bink2scarlett.dll+0x9cac < bink2scarlett.dll+0xaaee < bink2scarlett.dll+0xa609 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x111
6f
thread 604 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0xa50
5 < bink2scarlett.dll+0x9cac < bink2scarlett.dll+0xaaee < bink2scarlett.dll+0xa609 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x111
6f
thread 608 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0xa50
5 < bink2scarlett.dll+0x9cac < bink2scarlett.dll+0xaaee < bink2scarlett.dll+0xa609 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x111
6f
thread 612 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x3a158bf < game_scarlett_master.exe+0x3a15773 < game_scarlett_mast
er.exe+0x1bc2ed2 < game_scarlett_master.exe+0x58ab92d < game_scarlett_master.exe+0x442fcae < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 
< ntdll.dll+0x1116f
thread 616 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x3a1a200 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 620 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x4e7f358 < game_scarlett_master
.exe+0x6259 < game_scarlett_master.exe+0x3a1a5ab < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 624 'wine_mmdevapi_notification': ntdll.dll+0x10234 < kernelbase.dll+0x56e0d < mmdevapi.dll+0x13f5a < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 632 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x1da8776 < game_scarlett_master
.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 640 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x1e951bb < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 644 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43adeda < game_scarlett_master.exe+0x43add8d < game_scarlett_mast
er.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 648 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x25a595c < game_scarlett_master.exe+0x25a5764 < game_scarlett_mast
er.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 652 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 656 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 660 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 664 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 668 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 672 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 676 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 680 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 684 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 688 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 692 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 696 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 700 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 704 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 708 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 712 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc
l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 716 '': ntdll.dll+0xec74 < kernelbase.dll+0x77392 < ws2_32.dll+0x13bf0 < game_scarlett_master.exe+0x41f19cc < game_scarlett_master.exe+0x2215eca
 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 720 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x22170d3 < game_scarlett_maste
r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 724 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x22170d3 < game_scarlett_maste
r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 728 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x22170d3 < game_scarlett_maste
r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 732 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x22170d3 < game_scarlett_maste
r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 736 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x41ec1a9 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 740 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x41eb52b < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 744 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x41ea2f4 < game_scarlett_master
.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 748 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x3da3da9 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117
89 < ntdll.dll+0x1116f
thread 752 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x2218c82 < game_scarlett_master
.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 756 'wine_xinput_hid_update': win32u.dll+0x150c4 < xinput1_4.dll+0x3d54 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 760 'wine_sechost_device_notify': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < rpcrt4.dll+0x44bbd < rpcrt4.dll+0x2c921 < rpcrt4.dll+0x2b10b < rpc
rt4.dll+0x14f60 < rpcrt4.dll+0x154fc < rpcrt4.dll+0x2371b < rpcrt4.dll+0x436d4 < rpcrt4.dll+0x26ee3 < rpcrt4.dll+0x66ab < sechost.dll+0xbca7 < sechost.
dll+0x9d48 < kernel32.dll+0x11789
thread 768 'xcl-taskqueue-0': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x
cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 772 'xcl-taskqueue-1': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x
cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 776 'xcl-taskqueue-2': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x1588a5 <
 xcl.exe+0xd46d3 < xcl.exe+0xeac07 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 780 'xcl-taskqueue-3': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x
cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 784 'xcl-taskqueue-4': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x
cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 788 'xcl-taskqueue-5': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x
cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 792 'xcl-taskqueue-6': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x
cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 796 'xcl-taskqueue-7': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x
cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 800 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_maste
r.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 804 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_maste
r.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 808 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_maste
r.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 812 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_maste
r.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 816 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x2a1bc0 < game_scarlett_master
.exe+0x5b6bf7e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 820 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0x5d5
6 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 824 'xcl-dxc-0': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 828 'xcl-dxc-1': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 832 'xcl-dxc-2': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x15a222 < xcl.e
xe+0xd4065 < xcl.exe+0xeaa87 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 836 'xcl-dxc-3': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 840 'xcl-dxc-4': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 844 'xcl-dxc-5': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 848 'xcl-dxc-6': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 852 'xcl-dxc-7': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 856 'xcl-dxc-8': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 860 'xcl-dxc-9': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe
+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 864 'xcl-dxc-10': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 868 'xcl-dxc-11': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 872 'xcl-dxc-12': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 876 'xcl-dxc-13': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f
thread 880 'xcl-dxc-14': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex
e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f

**@⁠jvyden** on GitHub · 2026-11-23 23:47 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7117369551) 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. <details> ``` xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples xcl: DirectStorage: a request failed (0x89240030): 262144 bytes from xcl: D3D12.X: a texture at 0x749279910000 lies in a GPU view of the title's CPU memory: kept in step with 0x749879c20000 (16384 so far) xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples xcl: sparse windows: 4096 submits, 2098 MB of CPU writes uploaded, 436 ms spent, 19054 tiles mapped xcl: sparse windows timing: write-watch 5128 ms (1914252 dirty pages), lock wait 21 ms, chunk scan 157 ms, upload 254 ms (178108 runs) xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from xcl: XUser: token #9 for POST https://userpresence.xboxlive.com/users/xuid(2533274790395905)/devices/current/titles/current – none: no Xbox Live (0x800 72EFD) xcl: XGameRuntime: QueryApiImpl 8836fe87-edb9-4fe3-8dad-05f0d2cd5b40/8836fe87-edb9-4fe3-8dad-05f0d2cd5b40 → XGameRuntimeFeature: XCL xcl: XGameRuntime: QueryApiImpl bbfbdcc7-bfe7-409b-a5ca-edf054960b4d/bbfbdcc7-bfe7-409b-a5ca-edf054960b4d → XGameEvent: XCL xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples xcl: DirectStorage: a request failed (0x89240030): 24576 bytes from xcl: DirectStorage: request #32768: options 0x1 (file source, zlib), destination 0x749821e7b000 (17616 bytes, page offset 0), source size 6365, interme diate 0 xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from xcl: DirectStorage: BCPack BC6H: mode 6 unsupported (src=669735, intermediate=0, dst=1048576, swizzle=0); the request fails with E_DECOMPRESSION xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples xcl: DirectStorage: BCPack refusals so far: 256 requests: BC1 110 (3244032 bytes), BC5 107 (7077888 bytes), BC6H 1 (1048576 bytes), BC7 38 (3637248 byt es) xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples xcl: DirectStorage: a request failed (0x89240030): 12288 bytes from xcl: DirectStorage: a request failed (0x89240030): 16384 bytes from xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples xcl: xapu: 0 Opus packets decoded (0 errors), 0 frames, 0 non-zero samples xcl: process ends with status 0x3 (thread 416); on the stack: d3d12core.dll+0x1db16, d3d12core.dll+0xa3e32, kernel32.dll+0x1a24a, d3d12core.dll+0x32833 , winevulkan.dll+0xaf00, d3d12core.dll+0x32833, d3d12core.dll+0x36236, d3d12core.dll+0x1db16, ucrtbase.dll+0x5f19a, d3d12core.dll+0xa3e32, d3d12core.dl l+0x1db16, d3d12core.dll+0x366d5, d3d12core.dll+0x376ec, xcl.exe+0x410fd5, d3d12core.dll+0x11f045, xcl.exe+0x13a77c xcl: thread dump (138 threads): thread 308 'main': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < xcl.exe+0x2a2aa1 < xcl.exe+0x3201f7 < xcl.exe+0x34b7 < xcl.exe+0x1c16 < xcl.exe+0x1f8c < xcl.exe+0x4e2ea1 < xcl.exe+0x4b0d < xcl.exe+0x10d9 < xcl.exe+0x1456 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 312 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0x32e07 < d3d12core.dll+0x333f4 < d3d 12core.dll+0x329eb < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 316 'vkd3d-disk$': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xbc40f < d3d12core.dll+0x c588b < d3d12core.dll+0xbbec8 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 328 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 332 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 336 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x23cf729 < game_scarlett_master.exe+0x8126a7 < game_scarlett_maste r.exe+0x53ec040 < game_scarlett_master.exe+0x53ebf3a < game_scarlett_master.exe+0x661f0 < game_scarlett_master.exe+0x1d109c9 < game_scarlett_master.exe +0x5a91c0d < game_scarlett_master.exe+0x56a1e5a < xcl.exe+0x2a0347 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 340 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x55e8b2a < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 344 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 348 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 352 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 356 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 360 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 364 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 368 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 372 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 376 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 380 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 384 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 388 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 392 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 396 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 400 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221c3c2 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 404 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x2215b0b < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 408 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x2218c82 < game_scarlett_master .exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 412 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x221957f < game_scarlett_master.exe+0x25933da < game_scarlett_mast er.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 420 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x4e7f358 < game_scarlett_master .exe+0x6259 < game_scarlett_master.exe+0x2481f73 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 424 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 428 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 432 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 436 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 440 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 444 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 448 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 452 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 456 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 460 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 464 'xcl-frame-clock': ntdll.dll+0xf754 < kernelbase.dll+0x771fc < kernelbase.dll+0x7708e < xcl.exe+0x2b09bf < xcl.exe+0xd5c89 < xcl.exe+0xebfa2 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 468 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 472 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 476 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 480 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 484 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 488 'vkd3d_fence': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x cb94b < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 492 'vkd3d_queue': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0xc6d90 < d3d12core.dll+0x 119488 < d3d12core.dll+0xc694d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 496 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x2a8bc5c < game_scarlett_maste r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 500 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x19b4eaf < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 504 'xcl-window': win32u.dll+0x13cc4 < xcl.exe+0xc4ee0 < xcl.exe+0xd5c99 < xcl.exe+0xec0d2 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll +0x1116f thread 508 'vkd3d-swapchain-sync': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a84b < kernelbase.dll+0x6652c < d3d12core.dll+0x98f49 < d3d12co re.dll+0xa23d5 < d3d12core.dll+0x98b2d < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 512 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 516 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 520 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 524 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 528 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43c421e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 532 'xcl-fences': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < xcl.exe+0xe7b2d < xcl.exe+0xd4c19 < xcl.exe+0xe7986 < xcl.exe+0x11c149 < xcl.exe+0 xeaeb6 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 536 'xcl-pso-0': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 540 'xcl-pso-1': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 544 'xcl-pso-2': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 548 'xcl-pso-3': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 552 'xcl-pso-4': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 556 'xcl-pso-5': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 560 'xcl-pso-6': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 564 'xcl-pso-7': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x157c25 < xcl.e xe+0xd4ca4 < xcl.exe+0xeafe7 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 568 'xcl-pso-8': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 572 'xcl-pso-9': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 576 'xcl-pso-10': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 580 'xcl-pso-11': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 584 'xcl-pso-12': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 588 'xcl-pso-13': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 592 'xcl-pso-14': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4df5 < xcl.exe+0xeafe7 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 596 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0xa50 5 < bink2scarlett.dll+0x9cac < bink2scarlett.dll+0xaaee < bink2scarlett.dll+0xa609 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x111 6f thread 600 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0xa50 5 < bink2scarlett.dll+0x9cac < bink2scarlett.dll+0xaaee < bink2scarlett.dll+0xa609 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x111 6f thread 604 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0xa50 5 < bink2scarlett.dll+0x9cac < bink2scarlett.dll+0xaaee < bink2scarlett.dll+0xa609 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x111 6f thread 608 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0xa50 5 < bink2scarlett.dll+0x9cac < bink2scarlett.dll+0xaaee < bink2scarlett.dll+0xa609 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x111 6f thread 612 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x3a158bf < game_scarlett_master.exe+0x3a15773 < game_scarlett_mast er.exe+0x1bc2ed2 < game_scarlett_master.exe+0x58ab92d < game_scarlett_master.exe+0x442fcae < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 616 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x3a1a200 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 620 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x4e7f358 < game_scarlett_master .exe+0x6259 < game_scarlett_master.exe+0x3a1a5ab < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 624 'wine_mmdevapi_notification': ntdll.dll+0x10234 < kernelbase.dll+0x56e0d < mmdevapi.dll+0x13f5a < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 632 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x1da8776 < game_scarlett_master .exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 640 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x1e951bb < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 644 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x43adeda < game_scarlett_master.exe+0x43add8d < game_scarlett_mast er.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 648 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x25a595c < game_scarlett_master.exe+0x25a5764 < game_scarlett_mast er.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 652 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 656 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 660 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 664 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 668 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 672 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 676 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 680 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 684 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 688 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 692 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 696 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 700 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 704 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 708 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 712 'xcl-dstorage': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x156f45 < xc l.exe+0x29be59 < xcl.exe+0xd5012 < xcl.exe+0xeb164 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 716 '': ntdll.dll+0xec74 < kernelbase.dll+0x77392 < ws2_32.dll+0x13bf0 < game_scarlett_master.exe+0x41f19cc < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 720 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x22170d3 < game_scarlett_maste r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 724 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x22170d3 < game_scarlett_maste r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 728 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x22170d3 < game_scarlett_maste r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 732 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x22170d3 < game_scarlett_maste r.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 736 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x41ec1a9 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 740 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x41eb52b < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 744 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x41ea2f4 < game_scarlett_master .exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 748 '': ntdll.dll+0xf274 < kernelbase.dll+0x6642c < game_scarlett_master.exe+0x3da3da9 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x117 89 < ntdll.dll+0x1116f thread 752 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x56a0d < game_scarlett_master.exe+0x2218c82 < game_scarlett_master .exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 756 'wine_xinput_hid_update': win32u.dll+0x150c4 < xinput1_4.dll+0x3d54 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 760 'wine_sechost_device_notify': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < rpcrt4.dll+0x44bbd < rpcrt4.dll+0x2c921 < rpcrt4.dll+0x2b10b < rpc rt4.dll+0x14f60 < rpcrt4.dll+0x154fc < rpcrt4.dll+0x2371b < rpcrt4.dll+0x436d4 < rpcrt4.dll+0x26ee3 < rpcrt4.dll+0x66ab < sechost.dll+0xbca7 < sechost. dll+0x9d48 < kernel32.dll+0x11789 thread 768 'xcl-taskqueue-0': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 772 'xcl-taskqueue-1': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 776 'xcl-taskqueue-2': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x1588a5 < xcl.exe+0xd46d3 < xcl.exe+0xeac07 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 780 'xcl-taskqueue-3': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 784 'xcl-taskqueue-4': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 788 'xcl-taskqueue-5': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 792 'xcl-taskqueue-6': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 796 'xcl-taskqueue-7': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd4750 < xcl.exe+0xeac07 < x cl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 800 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_maste r.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 804 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_maste r.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 808 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_maste r.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 812 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_maste r.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 816 '': ntdll.dll+0xec74 < kernelbase.dll+0x772bd < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x2a1bc0 < game_scarlett_master .exe+0x5b6bf7e < game_scarlett_master.exe+0x2215eca < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 820 '': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < ntdll.dll+0x3a7c4 < kernelbase.dll+0x6648c < bink2scarlett.dll+0x237d8 < bink2scarlett.dll+0x5d5 6 < bink2scarlett.dll+0x23ece < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 824 'xcl-dxc-0': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 828 'xcl-dxc-1': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 832 'xcl-dxc-2': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4d5b93 < xcl.exe+0x154d38 < xcl.exe+0x15a222 < xcl.e xe+0xd4065 < xcl.exe+0xeaa87 < xcl.exe+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 836 'xcl-dxc-3': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 840 'xcl-dxc-4': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 844 'xcl-dxc-5': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 848 'xcl-dxc-6': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 852 'xcl-dxc-7': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 856 'xcl-dxc-8': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 860 'xcl-dxc-9': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.exe +0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 864 'xcl-dxc-10': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 868 'xcl-dxc-11': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 872 'xcl-dxc-12': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 876 'xcl-dxc-13': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f thread 880 'xcl-dxc-14': ntdll.dll+0x10cb4 < ntdll.dll+0x3efad < kernelbase.dll+0x77799 < xcl.exe+0x4c38e7 < xcl.exe+0xd42c9 < xcl.exe+0xeaa87 < xcl.ex e+0x4ef283 < kernel32.dll+0x11789 < ntdll.dll+0x1116f ``` </details>
Author
Owner

@⁠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 linux branch has main plus this change and two local stopgaps:

  • CreateFence without the sharing flags, so ignore_shared_fence is not needed;
  • XCL_PC_VIEW=1, the vtable hand-back for unmodified vkd3d-proton. It covers @⁠FilipeSilvens' calls plus the console ResetX, 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).

**@⁠ozimchuk** on GitHub · 2026-11-23 23:48 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7117376739) 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 `linux` branch has `main` plus this change and two local stopgaps: - CreateFence without the sharing flags, so `ignore_shared_fence` is not needed; - `XCL_PC_VIEW=1`, the vtable hand-back for unmodified vkd3d-proton. It covers @⁠FilipeSilvens' calls plus the console `ResetX`, 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).
Author
Owner

@⁠notdxbi on GitHub · 2026-11-24 00:07 UTC · original

Update from my side, now on main a6f5f7a (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::refresh per 5 s during the video (A pressed at the account prompt). Before:

  • refresh: ~4.9 s of every 5 s
  • detile: ~4.5 s for ~430 MB (≈ 95 MB/s, one thread, on the title's submit thread)
  • upload: ~0.3 s
  • write-watch: ~0.07 s

Change (gpu/tiling.rs only, +~150 lines with tests), in the same direction as @⁠gw1337x's diff on #283:

  • Chain::detile_level splits the rows of a level of ≥ 256 K elements across available_parallelism / 2 threads (max 8).
  • The x terms of 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 is row_base + col[x] + (col_xor[x] ^ row_xor).
  • Whole rows whose blocks lie in src use fixed-size copies; linear levels (the video planes, mode 0) are copied a row at a time (gw1337x's idea).
  • Test detile_matches_element_at compares with element_at per 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 presented over 300: 23.1 / 22.0 / 29.4 / 26.8).

2. The tiling tables were rebuilt for every placed texture.

  • 15 thread dumps during world streaming: in 6 of 15 the render thread was in CreatePlacedResource → title_textures::register → xg::Texture::with_pipes → Surface::new → tiling::Layout::from_bits.
  • from_bits rebuilds ox/oy/oz and the "high" tables (up to 3 × 8 192 entries) each time.
  • Change: from_bits is memoized per (mode, element size, block bits, pattern, dims).
  • Tests: the existing permutation / retail-pattern / round-trip tests run on cached layouts, plus a consistency test.

3. @⁠gw1337x: your Uploader diff (#283, 23:30) does not work as-is on top of #288.

  • It applies with one conflict in upload_all; I kept #288's vram::before_execute(&queue) in front of both paths.
  • With it, three tests fail under Wine on the RTX 5060: 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_submitted and vram::tests::d32s8_targets_take_their_own_size_of_video_memory.
  • All three pass with XCL_SYNC_UPLOADS=1, so #288's paths seem to rely on the upload being finished when upload_batch returns. 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):

  • render thread: 7 / 15 waiting in the title (+0x56a0d, which matches @⁠bKNNNNN's semaphore wait);
  • 2 / 15 in texture::wait (the synchronous upload wait);
  • 2 / 15 detiling;
  • 1 / 15 in res_release of the upload staging;
  • 1 / 15 in refresh;
  • 2 / 15 in winevulkan.

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 a libopus-0.dll that #294 picks up next to xcl.exe (imports only KERNEL32 / msvcrt). The run logs Opus packets decoded (0 errors) with non-zero samples.

6. Still needed under Wine, not upstream:

  • the title's window hidden when it can't be cloaked (items 2 and 3 of my first update);
  • the presenter's swap chain on its own queue.

Without those, the XCL window here is white, then black. I can open these two as PRs (Wine-only, util::under_wine()), but smoke.ps1 needs 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.
  • With 4 threads the GPU tests sometimes lose the device here (NVRM Xid 109 CTX SWITCH TIMEOUT); serially they all pass.
  • The new 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:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7117736330) Update from my side, now on `main` **`a6f5f7a`** (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::refresh` per 5 s during the video (A pressed at the account prompt). Before: - refresh: ~4.9 s of every 5 s - detile: ~4.5 s for ~430 MB (≈ 95 MB/s, one thread, on the title's submit thread) - upload: ~0.3 s - write-watch: ~0.07 s Change (`gpu/tiling.rs` only, +~150 lines with tests), in the same direction as @⁠gw1337x's diff on #283: - `Chain::detile_level` splits the rows of a level of ≥ 256 K elements across `available_parallelism / 2` threads (max 8). - The x terms of `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 is `row_base + col[x] + (col_xor[x] ^ row_xor)`. - Whole rows whose blocks lie in `src` use fixed-size copies; linear levels (the video planes, mode 0) are copied a row at a time (gw1337x's idea). - Test `detile_matches_element_at` compares with `element_at` per 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 presented` over 300: 23.1 / 22.0 / 29.4 / 26.8). **2. The tiling tables were rebuilt for every placed texture.** - 15 thread dumps during world streaming: in 6 of 15 the render thread was in `CreatePlacedResource → title_textures::register → xg::Texture::with_pipes → Surface::new → tiling::Layout::from_bits`. - `from_bits` rebuilds `ox/oy/oz` and the "high" tables (up to 3 × 8 192 entries) each time. - Change: `from_bits` is memoized per (mode, element size, block bits, pattern, dims). - Tests: the existing permutation / retail-pattern / round-trip tests run on cached layouts, plus a consistency test. **3. @⁠gw1337x: your `Uploader` diff (#283, 23:30) does not work as-is on top of #288.** - It applies with one conflict in `upload_all`; I kept #288's `vram::before_execute(&queue)` in front of both paths. - With it, three tests fail under Wine on the RTX 5060: `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_submitted` and `vram::tests::d32s8_targets_take_their_own_size_of_video_memory`. - All three pass with `XCL_SYNC_UPLOADS=1`, so #288's paths seem to rely on the upload being finished when `upload_batch` returns. 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):** - render thread: 7 / 15 waiting in the title (`+0x56a0d`, which matches @⁠bKNNNNN's semaphore wait); - 2 / 15 in `texture::wait` (the synchronous upload wait); - 2 / 15 detiling; - 1 / 15 in `res_release` of the upload staging; - 1 / 15 in `refresh`; - 2 / 15 in winevulkan. 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 a `libopus-0.dll` that #294 picks up next to `xcl.exe` (imports only KERNEL32 / msvcrt). The run logs `Opus packets decoded (0 errors)` with non-zero samples. **6. Still needed under Wine, not upstream:** - the title's window hidden when it can't be cloaked (items 2 and 3 of my first update); - the presenter's swap chain on its own queue. Without those, the XCL window here is white, then black. I can open these two as PRs (Wine-only, `util::under_wine()`), but `smoke.ps1` needs 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`. - With 4 threads the GPU tests sometimes lose the device here (NVRM Xid 109 CTX SWITCH TIMEOUT); serially they all pass. - The new `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.
Author
Owner

@⁠notdxbi on GitHub · 2026-11-24 00:29 UTC · original

Two more things past the loading screen, on main a6f5f7a / 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: XNetworkingGetConnectivityHint says "online" while XCL_NETWORK=0 blocks everything.

  • The hint reports the host's connectivity (level 3, InternetAccess) even with 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).
  • Change (xgameruntime/networking.rs): _ if crate::hle::netoff::enabled() => 1 (None) before the host mapping, i.e. a console without a network.
  • Result: no token requests at all, and after the intro and loading art the title streams its world instead of sitting on the loading screen. @⁠bKNNNNN's semaphore wait at +0x56a0d was with the "online" answer; I haven't checked that same wait with this change.

2. Then the title stops on its own int3 at +0xb18de7: XMemMapPhysicalPagesScatter(addresses, n, NULL) is refused.

  • +0xb18dc0 calls xmem!XMemMapPhysicalPagesScatter(&addrs, count, NULL) (the IAT slot resolves to it) and executes int3 if it returns 0. The Breakpad reporter follows.
  • XCL returns ERROR_INVALID_PARAMETER for a NULL page array. Page 0 already means "unmap this address" in the scatter, so I take NULL as page 0 for every address.
  • Test 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.
  • With 1 + 2 the run goes past 113 s, to 160 s+.

3. Next stop (still open), on an 8 GB card while the world streams:

  • Series X profile: VRAM full (7.7 / 8.15 GB), then device lost. The kernel log has NVRM Xid 31, an MMU fault in a copy engine (CE0) at a GPU VA with nothing mapped.
  • My reading: kernelx::unmap_away → sparse::decommitted → unmap_tiles runs UpdateTileMappings(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.
  • An earlier run without 2 ended in vkd3d-proton (status 3) after the driver logged 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/48000 help.

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:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7118129089) Two more things past the loading screen, on `main` `a6f5f7a` / `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: `XNetworkingGetConnectivityHint` says "online" while `XCL_NETWORK=0` blocks everything.** - The hint reports the host's connectivity (level 3, InternetAccess) even with `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). - Change (`xgameruntime/networking.rs`): `_ if crate::hle::netoff::enabled() => 1` (None) before the host mapping, i.e. a console without a network. - Result: **no token requests at all**, and after the intro and loading art the title streams its world instead of sitting on the loading screen. @⁠bKNNNNN's semaphore wait at `+0x56a0d` was with the "online" answer; I haven't checked that same wait with this change. **2. Then the title stops on its own `int3` at `+0xb18de7`: `XMemMapPhysicalPagesScatter(addresses, n, NULL)` is refused.** - `+0xb18dc0` calls `xmem!XMemMapPhysicalPagesScatter(&addrs, count, NULL)` (the IAT slot resolves to it) and executes `int3` if it returns 0. The Breakpad reporter follows. - XCL returns `ERROR_INVALID_PARAMETER` for a NULL page array. Page 0 already means "unmap this address" in the scatter, so I take NULL as page 0 for every address. - Test `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. - With 1 + 2 the run goes past 113 s, to 160 s+. **3. Next stop (still open), on an 8 GB card while the world streams:** - Series X profile: VRAM full (7.7 / 8.15 GB), then device lost. The kernel log has **NVRM Xid 31, an MMU fault in a copy engine (CE0)** at a GPU VA with nothing mapped. - My reading: `kernelx::unmap_away` → `sparse::decommitted` → `unmap_tiles` runs `UpdateTileMappings(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. - An earlier run without 2 ended in vkd3d-proton (status 3) after the driver logged `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/48000` help. **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.
Author
Owner

@⁠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.

**@⁠notdxbi** on GitHub · 2026-11-24 00:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7118235150) 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.
Author
Owner

@⁠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.so has "Using kernel write watches"), vkd3d-proton 3.1 built with -Db_ndebug=true + the two from_iface lookups relaxed, VKD3D_CONFIG=ignore_shared_fence, DXVK 3.1.1 dxgi/d3d11/d3d10core, DXC 1.9.2609. XCL main 85bdf21 cross-built for x86_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.txt says 4.8 GB): under 0.5 fps

  • One thread at ~100 % CPU, everything else idle, the GPU nearly idle. winedbg backtrace: q_execute_command_lists / present_x → title_textures::refresh → subresources → tiling::Chain::detile_level / Layout::offset_z.
  • Write watch reports ~120 000 dirty pages per submit (sparse windows timing: write-watch … (15 506 206 dirty pages) after 128 submits), so every title texture on them is re-detiled every submit.
  • Wine's write watch itself behaves. A standalone test under the same Wine (64 MB 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).
  • Update: with gw1337x's detile change (posted on #283, measured in #449) on top, the intro plays at ~17–23 fps here instead of 6–9; the menus stay at ~30 (512 MB window).
  • Guess, not verified: the window is imported into amdgpu as a userptr BO. Each 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

  • In every run: two XErrorReport 0x89240107, about 2 s later amdgpu: ring gfx_0.0.0 timeout (process main, thread vkd3d_queue), then D3D12 device removed: 0x887a0005 (or 0x80004005). 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 with nocache for the disassembly): the same draw every time. Pipeline (RADV hash 71ae6799889aaddb), a DrawIndexed of 30 indices, the index buffer in sparse window 0 (a virtual BO, the range bound). vm_fault.log is empty; GE_BUSY/SPI_BUSY are set. VGT_SHADER_STAGES_EN = 0x06012010, so no GS: a plain VS (NGG) + PS. Neither shader has a backward branch.
  • Ruled out: the rect list GS (disabled locally, same hang, same draw), and #203 alone (it logs AllocateTitlePhysicalPages(99776): no room in unified memory; it needs #187, which no longer applies to main).
  • What I think it is: with a 512 / 1024 MB window most of the title's ~4.4 GB of GPU heaps don't fit (coherent 116/512 MB) and fall back to plain memory, which per the comment in kernelx.rs its shaders read as zeros. So the hang is probably a consequence of the workaround, and the real problem is point 2.
  • Update: with 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 two XErrorReport lines, 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.
  • Update 2: RADV_DEBUG=nonggc changes nothing. With XCL_TRACE_FRAME=1, three pipelines draw for the first time right after the two XErrorReport lines, ~2 s before the hang: vs cc7a1fd71cd7f6b2 / ps 5306d4e7f6e2ca6e, vs ff0798b8f97355d1 / ps 8ab8dca315291c32 and vs 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 via s_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 logs Broken NULL PRT with SMEM detected, per-game workarounds may apply on 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_removed calls TerminateProcess at 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 before TerminateProcess gets past that.
  • VKD3D_LOG_FILE stays 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.

**@⁠lucsoft** on GitHub · 2026-11-24 00:12 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7117825493) · 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.so` has "Using kernel write watches"), vkd3d-proton 3.1 built with `-Db_ndebug=true` + the two `from_iface` lookups relaxed, `VKD3D_CONFIG=ignore_shared_fence`, DXVK 3.1.1 `dxgi`/`d3d11`/`d3d10core`, DXC 1.9.2609. XCL `main` `85bdf21` cross-built for `x86_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.txt` says 4.8 GB): under 0.5 fps** - One thread at ~100 % CPU, everything else idle, the GPU nearly idle. `winedbg` backtrace: `q_execute_command_lists` / `present_x` → `title_textures::refresh` → `subresources` → `tiling::Chain::detile_level` / `Layout::offset_z`. - Write watch reports ~120 000 dirty pages per submit (`sparse windows timing: write-watch … (15 506 206 dirty pages)` after 128 submits), so every title texture on them is re-detiled every submit. - Wine's write watch itself behaves. A standalone test under the same Wine (64 MB `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). - **Update:** with gw1337x's detile change (posted on #283, measured in #449) on top, the intro plays at ~17–23 fps here instead of 6–9; the menus stay at ~30 (512 MB window). - Guess, **not verified**: the window is imported into amdgpu as a userptr BO. Each `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** - In every run: two `XErrorReport 0x89240107`, about 2 s later `amdgpu: ring gfx_0.0.0 timeout` (process `main`, thread `vkd3d_queue`), then `D3D12 device removed: 0x887a0005` (or `0x80004005`). 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 with `nocache` for the disassembly): **the same draw every time**. Pipeline (RADV hash `71ae6799889aaddb`), a `DrawIndexed` of 30 indices, the index buffer in sparse window 0 (a virtual BO, the range bound). `vm_fault.log` is empty; `GE_BUSY`/`SPI_BUSY` are set. `VGT_SHADER_STAGES_EN = 0x06012010`, so no GS: a plain VS (NGG) + PS. Neither shader has a backward branch. - Ruled out: the rect list GS (disabled locally, same hang, same draw), and #203 alone (it logs `AllocateTitlePhysicalPages(99776): no room in unified memory`; it needs #187, which no longer applies to `main`). - What I think it is: with a 512 / 1024 MB window most of the title's ~4.4 GB of GPU heaps don't fit (`coherent 116/512 MB`) and fall back to plain memory, which per the comment in `kernelx.rs` its shaders read as zeros. So the hang is probably a consequence of the workaround, and the real problem is point 2. - **Update:** with `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 two `XErrorReport` lines, 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. - **Update 2:** `RADV_DEBUG=nonggc` changes nothing. With `XCL_TRACE_FRAME=1`, three pipelines draw for the first time right after the two `XErrorReport` lines, ~2 s before the hang: `vs cc7a1fd71cd7f6b2 / ps 5306d4e7f6e2ca6e`, `vs ff0798b8f97355d1 / ps 8ab8dca315291c32` and `vs 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 via `s_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 logs `Broken NULL PRT with SMEM detected, per-game workarounds may apply` on 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_removed` calls `TerminateProcess` at 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 before `TerminateProcess` gets past that. - `VKD3D_LOG_FILE` stays 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.
Author
Owner

@⁠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.ps1 regression run:

  • #494: XCL_NETWORK=0 makes the connectivity hint None (no more ROS ticket loop)
  • #495: XMemMapPhysicalPagesScatter(…, NULL) unmaps instead of being refused (the title's int3 at +0xb18de7)
  • #496: sparse tiles are unmapped only after the work already given to the title's queues (the NVRM Xid 31 copy-engine fault / device lost while streaming)

A correction to my earlier comment, after @⁠bKNNNNN's audio comparison: our runs always had a PipeWire output. So the semaphore wait at +0x56a0d was 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.

**@⁠notdxbi** on GitHub · 2026-11-24 01:03 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7118712024) 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.ps1` regression run: - #494: `XCL_NETWORK=0` makes the connectivity hint None (no more ROS ticket loop) - #495: `XMemMapPhysicalPagesScatter(…, NULL)` unmaps instead of being refused (the title's `int3` at `+0xb18de7`) - #496: sparse tiles are unmapped only after the work already given to the title's queues (the NVRM Xid 31 copy-engine fault / device lost while streaming) A correction to my earlier comment, after @⁠bKNNNNN's audio comparison: our runs always had a PipeWire output. So the semaphore wait at `+0x56a0d` was 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.
Author
Owner

@⁠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), DXVK dxgi/d3d11/d3d10core from Proton, DXC 1.9.2609. XCL main 2997c9a + #257 + #451 + #486, cross-built for x86_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 (thread vkd3d_queue) and D3D12 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 a DRAW_INDEX_2 with VGT_NUM_INDICES = 30, index buffer at 0xffff8001a3a7… (sparse window), then a PS_PARTIAL_FLUSH that 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_BUSY set; UTCL2_BUSY/EA_BUSY clear; vm_fault.log empty. 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 optimisations: ACO_DEBUG=noopt,nosched,force-waitcnt with RADV_DEBUG=nocache hangs the same way.
  • RADV_DEBUG=llvm can't be tried: vkd3d-proton then reports SM 6.0 and XCL refuses the device.
  • BCPack: with refused requests filled and reported as successful, same hang. I also wired a strict BCPack decoder (BC1/BC3/BC4/BC5) into dstorage.rs locally; 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:

D3D12.X: CopyMemoryToMemoryX: 0x117bb70000 → 0x3dfe9440 (0x4000 bytes) is not in unified memory – not done

The source varies only a little across runs (0x117b9f0000 … 0x117bb70000); the destination is always around 0x3dfe…–0x3e87…. With a local diagnostic in copy_memory_x:

CopyMemoryToMemoryX source 0x117bb70000: readable=false gpu-view-of=Some(0xb7bb70000) mirror-readable=false physical-page=false
… (dst in UMA: false, src in UMA: false)

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_va does 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 writes 0xb7bb70000's GPU view or what reads 0x3dfe… 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 in copy_memory_x, a build of a branch) on this card.

AI-assisted.

**@⁠radv-tinker** on GitHub · 2026-11-24 01:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7119156378) 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`), DXVK `dxgi`/`d3d11`/`d3d10core` from Proton, DXC 1.9.2609. XCL `main` `2997c9a` + #257 + #451 + #486, cross-built for `x86_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` (thread `vkd3d_queue`) and `D3D12 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 a `DRAW_INDEX_2` with `VGT_NUM_INDICES = 30`, index buffer at `0xffff8001a3a7…` (sparse window), then a `PS_PARTIAL_FLUSH` that 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_BUSY` set; `UTCL2_BUSY`/`EA_BUSY` clear; `vm_fault.log` empty. 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 optimisations: `ACO_DEBUG=noopt,nosched,force-waitcnt` with `RADV_DEBUG=nocache` hangs the same way. - `RADV_DEBUG=llvm` can't be tried: vkd3d-proton then reports SM 6.0 and XCL refuses the device. - BCPack: with refused requests filled and reported as successful, same hang. I also wired a strict BCPack decoder (BC1/BC3/BC4/BC5) into `dstorage.rs` locally; 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: ``` D3D12.X: CopyMemoryToMemoryX: 0x117bb70000 → 0x3dfe9440 (0x4000 bytes) is not in unified memory – not done ``` The source varies only a little across runs (`0x117b9f0000` … `0x117bb70000`); the destination is always around `0x3dfe…`–`0x3e87…`. With a local diagnostic in `copy_memory_x`: ``` CopyMemoryToMemoryX source 0x117bb70000: readable=false gpu-view-of=Some(0xb7bb70000) mirror-readable=false physical-page=false … (dst in UMA: false, src in UMA: false) ``` 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_va` does 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 writes `0xb7bb70000`'s GPU view or what reads `0x3dfe…` 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 in `copy_memory_x`, a build of a branch) on this card. AI-assisted.
Author
Owner

@⁠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, main a6f5f7a, built for x86_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

  • Commit a6f5f7a74cc620c1f88a9e3669a633d10c3c8212 (main), clean tree. Debug: cargo build --workspace and cargo test --workspace --no-run, target x86_64-pc-windows-gnullvm, llvm-mingw 20261117, Rust 1.97.1. Each test .exe run under Wine with --test-threads=4.
  • Ryzen 5 7535HS, 22 GB, CachyOS kernel 7.3.5. Radeon 660M (Rembrandt-R, gfx1035), RADV Mesa 26.3.1. RTX 3050 Laptop 4 GB, NVIDIA 620.73.04. GPU chosen with VK_LOADER_DRIVERS_SELECT, plus DXVK_CONFIG='dxgi.hideNvidiaGpu = False' for NVIDIA.
  • Proton Experimental's Wine (experimental-11.0-20261027b), prefix from #257's setup-prefix.sh. vkd3d-proton v3.1 with #257's patch and -Db_ndebug=true, Proton's DXVK dxgi/d3d11/d3d10core (3.1.1-97), DXC 1.9.2609.5. VKD3D_CONFIG=ignore_shared_fence, XCL_NETWORK=0, DISPLAY set (see the first note).
GPU passed failed ignored SKIPPED
Radeon 660M (wave32 + wave64, mesh) 669 7 41 0
RTX 3050 Laptop (wave32) 671 5 41 2 (no wave64)

Failing on both GPUs (Wine / vkd3d-proton, not the GPU):

  • predication_e2e::set_predication_buffer_state_and_kickoff: dst[0] is 0xAAAA0000, want 0x11111111. vkd3d-proton predicates draws and dispatches but not CopyBufferRegion, and this test's predicated commands are copies.
  • pls_quota::disk_free_space_ex_reports_pls_quota: error 2 instead of 3 for S:\missing. The hook forwards to Wine's GetDiskFreeSpaceExW, which returns ERROR_FILE_NOT_FOUND.
  • e2e::test_title_runs_and_game_folder_is_untouched: W: not cloaked (no DWM cloaking, @⁠notdxbi's item 2) and XMA2 GetState: ctx=0x0, queued=1, the same as hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime (also failing).

Radeon 660M only: gpu_f64_roots and gpu_f64_math_random (v_rsq_f64 of negatives and NaN = 0, what #530 fixes; RDNA4 there, the same on RDNA2), and gpu_nonfused_mad_and_mac_prevent_fma_contraction (fused control gives +inf: RADV on RDNA2 leaves mad() 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_valu hangs 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 --skip for it.

Linux notes

  • Without a display, NVIDIA GPU tests skip and the run still looks green. DXVK logs Failed to create Vulkan instance, every GPU test prints SKIPPED …: no GPU and passes (87 such lines in my first run). NVIDIA's Vulkan driver has no VK_EXT_headless_surface; RADV has it, which is why the 660M ran headless. With DISPLAY set, the 3050 is used. Check the SKIPPED count before trusting a run over SSH or in a container.
  • Without a display the 660M has two hangs too. The two e2e tests that start xcl.exe never finish (over 10 min). gpu_pso_e2e hangs in sample_pack_read_errors_fail_instead_of_skipping when the whole binary runs (5 of 5 runs); alone it passes. With DISPLAY set, both binaries finish in seconds on both GPUs.
  • x86_64-pc-windows-gnullvm builds main with llvm-mingw unchanged, with no MinGW gcc and no xwin. Set the linker and CC/CXX/AR for that target to llvm-mingw's x86_64-w64-mingw32-*, and copy llvm-mingw's libunwind.dll and libc++.dll next to xcl.exe and the test executables (debug/ and debug/deps/), otherwise they exit with 0xC0000135. Its xcl.exe has a TLS directory (llvm-readobj --coff-tls-directory) and pe::tests::parses_own_test_binary_tls passes, 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.

**@⁠matheusfermiano-source** on GitHub · 2026-11-24 02:50 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7120528724) **Test suite under Wine on an RDNA2 iGPU (Radeon 660M, RADV) and an RTX 3050 Laptop, `main` `a6f5f7a`, built for `x86_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** - Commit `a6f5f7a74cc620c1f88a9e3669a633d10c3c8212` (`main`), clean tree. Debug: `cargo build --workspace` and `cargo test --workspace --no-run`, target `x86_64-pc-windows-gnullvm`, llvm-mingw 20261117, Rust 1.97.1. Each test `.exe` run under Wine with `--test-threads=4`. - Ryzen 5 7535HS, 22 GB, CachyOS kernel 7.3.5. **Radeon 660M** (Rembrandt-R, gfx1035), RADV Mesa 26.3.1. **RTX 3050 Laptop 4 GB**, NVIDIA 620.73.04. GPU chosen with `VK_LOADER_DRIVERS_SELECT`, plus `DXVK_CONFIG='dxgi.hideNvidiaGpu = False'` for NVIDIA. - Proton Experimental's Wine (`experimental-11.0-20261027b`), prefix from #257's `setup-prefix.sh`. vkd3d-proton v3.1 with #257's patch and `-Db_ndebug=true`, Proton's DXVK `dxgi`/`d3d11`/`d3d10core` (3.1.1-97), DXC 1.9.2609.5. `VKD3D_CONFIG=ignore_shared_fence`, `XCL_NETWORK=0`, `DISPLAY` set (see the first note). | GPU | passed | failed | ignored | `SKIPPED` | |---|---|---|---|---| | Radeon 660M (wave32 + wave64, mesh) | 669 | 7 | 41 | 0 | | RTX 3050 Laptop (wave32) | 671 | 5 | 41 | 2 (`no wave64`) | Failing on both GPUs (Wine / vkd3d-proton, not the GPU): - `predication_e2e::set_predication_buffer_state_and_kickoff`: `dst[0]` is `0xAAAA0000`, want `0x11111111`. vkd3d-proton predicates draws and dispatches but not `CopyBufferRegion`, and this test's predicated commands are copies. - `pls_quota::disk_free_space_ex_reports_pls_quota`: error 2 instead of 3 for `S:\missing`. The hook forwards to Wine's `GetDiskFreeSpaceExW`, which returns `ERROR_FILE_NOT_FOUND`. - `e2e::test_title_runs_and_game_folder_is_untouched`: `W: not cloaked` (no DWM cloaking, @⁠notdxbi's item 2) and `XMA2 GetState: ctx=0x0, queued=1`, the same as `hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime` (also failing). Radeon 660M only: `gpu_f64_roots` and `gpu_f64_math_random` (`v_rsq_f64` of negatives and NaN = 0, what #530 fixes; RDNA4 there, the same on RDNA2), and `gpu_nonfused_mad_and_mac_prevent_fma_contraction` (fused control gives +inf: RADV on RDNA2 leaves `mad()` 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_valu` hangs 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 `--skip` for it. **Linux notes** - **Without a display, NVIDIA GPU tests skip and the run still looks green.** DXVK logs `Failed to create Vulkan instance`, every GPU test prints `SKIPPED …: no GPU` and passes (87 such lines in my first run). NVIDIA's Vulkan driver has no `VK_EXT_headless_surface`; RADV has it, which is why the 660M ran headless. With `DISPLAY` set, the 3050 is used. Check the `SKIPPED` count before trusting a run over SSH or in a container. - **Without a display the 660M has two hangs too.** The two e2e tests that start `xcl.exe` never finish (over 10 min). `gpu_pso_e2e` hangs in `sample_pack_read_errors_fail_instead_of_skipping` when the whole binary runs (5 of 5 runs); alone it passes. With `DISPLAY` set, both binaries finish in seconds on both GPUs. - **`x86_64-pc-windows-gnullvm` builds `main` with llvm-mingw unchanged**, with no MinGW gcc and no xwin. Set the linker and `CC`/`CXX`/`AR` for that target to llvm-mingw's `x86_64-w64-mingw32-*`, and copy llvm-mingw's `libunwind.dll` and `libc++.dll` next to `xcl.exe` and the test executables (`debug/` and `debug/deps/`), otherwise they exit with `0xC0000135`. Its `xcl.exe` has a TLS directory (`llvm-readobj --coff-tls-directory`) and `pe::tests::parses_own_test_binary_tls` passes, 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.
Author
Owner

@⁠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: -lunwind must resolve to the static libunwind.a before libunwind.dll.a, else the exe dies silently at startup):

  • cargo test -p xcl --lib --target x86_64-pc-windows-gnu under Wine: 286 tests pass, until the process aborts in hle::d3d12x::bind::tests::create_list_reset_and_clear_state_track_initial_pso_on_d3d12:
    Assertion failed: iface->lpVtbl == &d3d12_root_signature_vtbl,
      file libs/vkd3d/libs/vkd3d/state.c, line 197
    
    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 return E_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 host ID3D12* 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:23 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7121050444) 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: `-lunwind` must resolve to the **static** `libunwind.a` before `libunwind.dll.a`, else the exe dies silently at startup): - **`cargo test -p xcl --lib --target x86_64-pc-windows-gnu` under Wine: 286 tests pass**, until the process aborts in `hle::d3d12x::bind::tests::create_list_reset_and_clear_state_track_initial_pso_on_d3d12`: ``` Assertion failed: iface->lpVtbl == &d3d12_root_signature_vtbl, file libs/vkd3d/libs/vkd3d/state.c, line 197 ``` 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 return `E_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 host `ID3D12*` 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.
Author
Owner

@⁠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):

suite result
console_dlls_e2e ok — 13 passed
console_shaders ok — 3 passed, 4 ignored
disasm_e2e ok — 1 passed
heap_probe 0 run (4 ignored — needs device)
pls_quota 1 failed — environment, not logic
lib (--lib) 286 passed, 1 vkd3d vtable assert (comment above)

The pls_quota failure is a Wine-only export-location gap: hook: kernelbase.dll!CopyFile2 not found. On Windows CopyFile2 is a kernelbase export; Wine still exports it from kernel32. One-line portability fix for the hook resolver: when a kernelbase.dll!<fn> lookup misses under Wine, retry kernel32.dll!<fn> (the reverse also holds for a few kernel32 functions 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 03:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7121076074) Follow-up with the **e2e binaries** on the same Wine 9 + llvmpipe setup (`--test-threads=2`, xvfb): | suite | result | |---|---| | `console_dlls_e2e` | ok — 13 passed | | `console_shaders` | ok — 3 passed, 4 ignored | | `disasm_e2e` | ok — 1 passed | | `heap_probe` | 0 run (4 ignored — needs device) | | `pls_quota` | **1 failed — environment, not logic** | | lib (`--lib`) | 286 passed, 1 vkd3d vtable assert (comment above) | The `pls_quota` failure is a Wine-only export-location gap: `hook: kernelbase.dll!CopyFile2 not found`. On Windows `CopyFile2` is a `kernelbase` export; Wine still exports it from `kernel32`. One-line portability fix for the hook resolver: when a `kernelbase.dll!<fn>` lookup misses under Wine, retry `kernel32.dll!<fn>` (the reverse also holds for a few `kernel32` functions 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.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 04:26 UTC · original

Correction to my earlier comment — the pls_quota / kernelbase.dll!CopyFile2 note: 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 all x86_64-windows/*.dll — no CopyFile2 anywhere), so there is no alias to retry; and current Wine (wine-11.0, dlls/kernelbase/file.c) implements CopyFile2 (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 is Wine ≥ 11, no XCL change. Anyone on a Wine 9-era runner (including CI images built from Ubuntu packages) will see exactly one pls_quota-style failure and can ignore it as a known environment artifact.

**@⁠pickles976** on GitHub · 2026-11-24 04:26 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7122027670) **Correction to my earlier comment** — the `pls_quota` / `kernelbase.dll!CopyFile2` note: 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 all `x86_64-windows/*.dll` — no `CopyFile2` anywhere), so there is no alias to retry; and current Wine (`wine-11.0`, `dlls/kernelbase/file.c`) implements `CopyFile2 (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 is `Wine ≥ 11`, no XCL change.** Anyone on a Wine 9-era runner (including CI images built from Ubuntu packages) will see exactly one `pls_quota`-style failure and can ignore it as a known environment artifact.
Author
Owner

@⁠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

  • Commit: 26fdda6 (head of #257), release build, x86_64-pc-windows-gnu, rustc 1.98.1
  • GPU: AMD Radeon 8060S (Strix Halo, RDNA 3.5), Mesa RADV 26.2.7
  • CPU: Ryzen AI Max+ 392, 30 GB RAM
  • OS: Fedora 44, kernel 7.3.4
  • Wine: Proton Experimental (bleeding-edge 11.0-471824, 2026-11-12); has kernel write watches
  • vkd3d-proton v3.1 + vkd3d-proton-xcl.patch, built with build-vkd3d-proton.sh
  • DXVK v3.1.1-213 (Proton's), DXC 1.9.2609.5, libopus 1.5.2 from build-opus.sh
  • Game: GTA VI 1.0.2.1, started with scripts/linux/run.sh, XCL_NETWORK=0
  • Input: keyboard only, no gamepad

What happened

  • Pressing Enter (A) started the opening video, but it was very choppy.
  • After the video I got to the settings, brightness screen and TOS. They responded to input, but all the text was unreadable (garbled glyphs), on every one of those screens.
  • A white line went across the whole screen from top right to bottom left. That looks like the diagonal line mentioned in this issue for NVIDIA, so it isn't NVIDIA-only.
  • No Failed to import host memory in the output.
  • No device removal. 30 fps on the menus, around 8–9 fps while it loaded after the first button press.

Crash at 356 s

unhandled exception 0xc0000005 in msvcrt.dll+0xa4b6 (read at address 0xb638e2000)
process ends with status 0xc0000005 (thread 432); on the stack: xcl.exe+0x4f5e7b, d3d12core.dll+0x1f7e0,
d3d12core.dll+0x1e1b5, xcl.exe+0x2cfde0, msvcrt.dll+0xa4b6, msvcrt.dll+0xa4b6, msvcrt.dll+0xa4b6,
xcl.exe+0x5db2a8, xcl.exe+0x4df73c

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.exe offsets.

What the log showed shortly before the crash:

DirectStorage: BCPack BC7: mode 7 unsupported (...) the request fails with E_DECOMPRESSION
(same for BC5 mode 5 and BC1 mode 1, 64+ requests refused)
D3D12.X: CopyMemoryToMemoryX: 0x117bb70000 → 0x43fbf4e0 (0x4000 bytes) is not in unified memory – not done
D3D12.X: index buffer at 0x4467c600 (98304 bytes) is outside unified memory – ... mirrored, each draw copies what it reads
D3D12.X: vertex buffer at 0x446c8000 (294912 bytes) is outside unified memory – ... (8 mirrors, 2 MB)

I can share the full xcl.log / report.json or 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.

**@⁠metric-vac** on GitHub · 2026-11-24 05:54 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7123388322) 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** - Commit: `26fdda6` (head of #257), release build, `x86_64-pc-windows-gnu`, rustc 1.98.1 - GPU: AMD Radeon 8060S (Strix Halo, RDNA 3.5), Mesa RADV 26.2.7 - CPU: Ryzen AI Max+ 392, 30 GB RAM - OS: Fedora 44, kernel 7.3.4 - Wine: Proton Experimental (bleeding-edge 11.0-471824, 2026-11-12); has kernel write watches - vkd3d-proton v3.1 + `vkd3d-proton-xcl.patch`, built with `build-vkd3d-proton.sh` - DXVK v3.1.1-213 (Proton's), DXC 1.9.2609.5, libopus 1.5.2 from `build-opus.sh` - Game: GTA VI 1.0.2.1, started with `scripts/linux/run.sh`, `XCL_NETWORK=0` - Input: keyboard only, no gamepad **What happened** - Pressing Enter (A) started the opening video, but it was very choppy. - After the video I got to the settings, brightness screen and TOS. They responded to input, but all the text was unreadable (garbled glyphs), on every one of those screens. - A white line went across the whole screen from top right to bottom left. That looks like the diagonal line mentioned in this issue for NVIDIA, so it isn't NVIDIA-only. - No `Failed to import host memory` in the output. - No device removal. 30 fps on the menus, around 8–9 fps while it loaded after the first button press. **Crash at 356 s** ``` unhandled exception 0xc0000005 in msvcrt.dll+0xa4b6 (read at address 0xb638e2000) process ends with status 0xc0000005 (thread 432); on the stack: xcl.exe+0x4f5e7b, d3d12core.dll+0x1f7e0, d3d12core.dll+0x1e1b5, xcl.exe+0x2cfde0, msvcrt.dll+0xa4b6, msvcrt.dll+0xa4b6, msvcrt.dll+0xa4b6, xcl.exe+0x5db2a8, xcl.exe+0x4df73c ``` 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.exe` offsets. What the log showed shortly before the crash: ``` DirectStorage: BCPack BC7: mode 7 unsupported (...) the request fails with E_DECOMPRESSION (same for BC5 mode 5 and BC1 mode 1, 64+ requests refused) D3D12.X: CopyMemoryToMemoryX: 0x117bb70000 → 0x43fbf4e0 (0x4000 bytes) is not in unified memory – not done D3D12.X: index buffer at 0x4467c600 (98304 bytes) is outside unified memory – ... mirrored, each draw copies what it reads D3D12.X: vertex buffer at 0x446c8000 (294912 bytes) is outside unified memory – ... (8 mirrors, 2 MB) ``` I can share the full `xcl.log` / `report.json` or 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.*
Author
Owner

@⁠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 GB int3, 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.

**@⁠pickles976** on GitHub · 2026-11-24 05:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7123429488) 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 GB `int3`, 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.**
Author
Owner

@⁠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.

**@⁠metric-vac** on GitHub · 2026-11-24 06:13 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7123715636) 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.
Author
Owner

@⁠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) reading 0xb638e2000 on 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.

**@⁠pickles976** on GitHub · 2026-11-24 06:22 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7123864921) 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) reading `0xb638e2000` **on 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.
Author
Owner

@⁠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 26fdda6 release 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.

**@⁠metric-vac** on GitHub · 2026-11-24 06:31 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124014666) 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 26fdda6 release 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.
Author
Owner

@⁠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. XCL main (e50836b) + the branch below, cross-built for x86_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.rs on the branch; 4095 MiB window opened with OpenExistingHeapFromAddress, import checked by a GPU readback, median of 5):

scenario GetWriteWatch pages reported next submit + wait
untouched 0.8 ms 0 –
CPU wrote 1000 pages 1.0 ms 1000 –
after any submit (touching the window or not) 27 ms all 1,048,320 590–700 ms
second submit, no look in between – – 23.6 ms
reset of only 4 KiB – – ~505 ms
same window, not imported – 0 after submits 0.05 ms

So, 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 is PAGEMAP_SCAN with PM_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 with OpenExistingHeapFromAddress are 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 in d3d12core.dll), so the first thing a GPU run hits is iface->lpVtbl == &d3d12_heap_vtbl. Under util::under_wine() only:

  • ff59ccd: for Heap, Resource, DescriptorHeap, RootSignature, PipelineState, QueryHeap and CommandSignature, XCL's entries are written into vkd3d-proton's own vtable (as xaudio2.rs already 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 around ExecuteCommandLists (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 (queue Signal/Wait, CreateCommandList, list Reset, KickoffX). No swap, so no window, and shared fences need no flag dropped.
  • Why allocators are wrappers and not in place: the retail title calls console allocator slot #9. With the table patched in place that slot is whatever follows vkd3d-proton's table (zeros in 3.1) and the title jumped to address 0. The other seven in-place kinds have the same hazard if a title calls past the PC interface on them; I have not seen one do it.

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_quota as in #810, predication_e2e because vkd3d-proton does not predicate CopyBufferRegion, and e2e at the Opus voice without a libopus). Known gaps: bundles (vkd3d-proton drops an adopted one), SetEventOnMultipleFenceCompletion with several fences, a fence's CreateSharedHandle.

3. Two smaller Wine things

  • Wine never calls the exe's TLS callback at process exit, so the final report.json was never written under Wine (no called stubs, no shader statistics, presents: 0). 5eefc87 writes it from the existing NtTerminateProcess hook.
  • The title's own window is not cloaked under Wine and takes the focus, so no input reaches XCL's window (#794 covers this; my 7694a6a does 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 +0x23cf683 after ~470 s, with the registers from #662. With the 7-argument CopyFromSubresource reading (#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.md on wine-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.

**@⁠cmt8** on GitHub · 2026-11-24 06:32 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124031809) 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. XCL `main` (`e50836b`) + the branch below, cross-built for `x86_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.rs` on the branch; 4095 MiB window opened with `OpenExistingHeapFromAddress`, import checked by a GPU readback, median of 5): | scenario | `GetWriteWatch` | pages reported | next submit + wait | |---|---|---|---| | untouched | 0.8 ms | 0 | – | | CPU wrote 1000 pages | 1.0 ms | 1000 | – | | after **any** submit (touching the window or not) | 27 ms | all 1,048,320 | 590–700 ms | | second submit, no look in between | – | – | 23.6 ms | | reset of only 4 KiB | – | – | ~505 ms | | same window, not imported | – | 0 after submits | 0.05 ms | So, 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 is `PAGEMAP_SCAN` with `PM_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 with `OpenExistingHeapFromAddress` are 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 in `d3d12core.dll`), so the first thing a GPU run hits is `iface->lpVtbl == &d3d12_heap_vtbl`. Under `util::under_wine()` only: - `ff59ccd`: for Heap, Resource, DescriptorHeap, RootSignature, PipelineState, QueryHeap and CommandSignature, XCL's entries are written **into vkd3d-proton's own vtable** (as `xaudio2.rs` already 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 around `ExecuteCommandLists` (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 (queue `Signal`/`Wait`, `CreateCommandList`, list `Reset`, `KickoffX`). No swap, so no window, and shared fences need no flag dropped. - Why allocators are wrappers and not in place: the retail title calls console allocator slot #9. With the table patched in place that slot is whatever follows vkd3d-proton's table (zeros in 3.1) and the title jumped to address 0. The other seven in-place kinds have the same hazard if a title calls past the PC interface on them; I have not seen one do it. 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_quota` as in #810, `predication_e2e` because vkd3d-proton does not predicate `CopyBufferRegion`, and e2e at the Opus voice without a libopus). Known gaps: bundles (vkd3d-proton drops an adopted one), `SetEventOnMultipleFenceCompletion` with several fences, a fence's `CreateSharedHandle`. **3. Two smaller Wine things** - Wine never calls the exe's TLS callback at process exit, so the final `report.json` was never written under Wine (no called stubs, no shader statistics, `presents: 0`). `5eefc87` writes it from the existing `NtTerminateProcess` hook. - The title's own window is not cloaked under Wine and takes the focus, so no input reaches XCL's window (#794 covers this; my `7694a6a` does 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 `+0x23cf683` after ~470 s, with the registers from #662. With the 7-argument `CopyFromSubresource` reading (#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.md` on `wine-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.
Author
Owner

@⁠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 its files/lib/wine/vkd3d-proton) — no assertion, and the device is real:

  • report.json: "backend": "real", adapter AMD Radeon RX 7800 XT (RADV NAVI32) (16368 MiB VRAM),
    classes ID3D12Device15, ID3D12Heap1, ID3D12CommandQueue, ID3D12Fence1, ID3D12CommandAllocator,
    unknown_iids: [], failed_pipelines: 0, fallback_pipelines: 0.
  • vkd3d's vkd3d_fence / vkd3d_queue / vkd3d-disk threads 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 int3 with E_INVALIDARG in the return register, before any shader is submitted (shaders.unique == 0) and before any present (d3d12.presents == 0). called_stubs is 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:

  • With Wine's builtin d3d12 the run only gets WARP (SM 6.2, no mesh shaders) and nothing compiles; the overrides that work are WINEDLLOVERRIDES="d3d12=n,d3d12core=n,dxgi=n" with the Proton copies in the exe's directory.
  • The title uploads its own crash report to submit.backtrace.io on this path (HTTP 200 on the assert), so Linux runs may want the network blocked.

Happy to re-run with XCL_D3D12_DEBUG=1 and report which call returns the E_INVALIDARG, if that is useful.

**@⁠Aruku448** on GitHub · 2026-11-24 06:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124083628) 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 its `files/lib/wine/vkd3d-proton`)** — **no assertion**, and the device is real: - `report.json`: `"backend": "real"`, adapter `AMD Radeon RX 7800 XT (RADV NAVI32) (16368 MiB VRAM)`, classes `ID3D12Device15, ID3D12Heap1, ID3D12CommandQueue, ID3D12Fence1, ID3D12CommandAllocator`, `unknown_iids: []`, `failed_pipelines: 0`, `fallback_pipelines: 0`. - vkd3d's `vkd3d_fence` / `vkd3d_queue` / `vkd3d-disk` threads 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 `int3` with `E_INVALIDARG` in the return register, **before any shader is submitted** (`shaders.unique == 0`) and **before any present** (`d3d12.presents == 0`). `called_stubs` is 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: - With Wine's **builtin** d3d12 the run only gets WARP (SM 6.2, no mesh shaders) and nothing compiles; the overrides that work are `WINEDLLOVERRIDES="d3d12=n,d3d12core=n,dxgi=n"` with the Proton copies in the exe's directory. - The title uploads its own crash report to `submit.backtrace.io` on this path (HTTP 200 on the assert), so Linux runs may want the network blocked. Happy to re-run with `XCL_D3D12_DEBUG=1` and report which call returns the `E_INVALIDARG`, if that is useful.
Author
Owner

@⁠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_committed is xcl's texture-read path faulting, which makes your report and brainhay5's #616 signature (VCRUNTIME140 copy AV, also texture-adjacent) two hits on one subsystem, not just one shape.

I couldn't pin +0x209 to a specific copy: 26fdda6 isn'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_committed contains exactly two copy sites (crates/xcl/src/hle/dstorage-adjacent file hle/d3d12x/title_textures.rs:1028):

  1. the coherent-window fast path: in_committed_window(at, len) then one copy_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;
  2. the VirtualQuery walk: each chunk is judged MEM_COMMIT and 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:

  • make read_committed fault-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);
  • or close the window properly: kernelx's free/decommit path deferring (or blocking on) in-flight read_committed spans 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.

**@⁠pickles976** on GitHub · 2026-11-24 06:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124096874) @⁠metric-vac — correction accepted and it *upgrades* the report: a first-chance AV inside `title_textures::read_committed` is xcl's texture-read path faulting, which makes your report and brainhay5's #616 signature (`VCRUNTIME140` copy AV, also texture-adjacent) two hits on **one subsystem**, not just one shape. I couldn't pin `+0x209` to a specific copy: `26fdda6` isn'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_committed` contains **exactly two copy sites** (`crates/xcl/src/hle/dstorage`-adjacent file `hle/d3d12x/title_textures.rs:1028`): 1. the coherent-window fast path: `in_committed_window(at, len)` then one `copy_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; 2. the `VirtualQuery` walk: each chunk is judged `MEM_COMMIT` and *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: - make `read_committed` **fault-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); - or close the window properly: kernelx's free/decommit path deferring (or blocking on) in-flight `read_committed` spans 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.
Author
Owner

@⁠cmt8 on GitHub · 2026-11-24 06:37 UTC · original

@⁠Aruku448 that int3 with E_INVALIDARG before the first shader matches what I got with an assertion-free build of 3.1: the list's Reset (and CreateCommandList) fail because d3d12_command_allocator_from_iface compares the allocator's vtable at run time, not in an assertion, so a build without assertions still rejects XCL's adopted allocator. VKD3D_DEBUG=warn should show Invalid command allocator. in your stderr if it is the same thing. ExecuteCommandLists has 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.

**@⁠cmt8** on GitHub · 2026-11-24 06:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124120557) @⁠Aruku448 that `int3` with `E_INVALIDARG` before the first shader matches what I got with an assertion-free build of 3.1: the list's `Reset` (and `CreateCommandList`) fail because `d3d12_command_allocator_from_iface` compares the allocator's vtable at run time, not in an assertion, so a build without assertions still rejects XCL's adopted allocator. `VKD3D_DEBUG=warn` should show `Invalid command allocator.` in your stderr if it is the same thing. `ExecuteCommandLists` has 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.
Author
Owner

@⁠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.

**@⁠metric-vac** on GitHub · 2026-11-24 06:46 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124278523) 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.
Author
Owner

@⁠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), DXVK dxgi, 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, no int3; 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 MB
  • title 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 far
  • window title at the same moment: compiling shaders: 0 running, 12 done, 57,817 pipelines queued, 1.3 FPS
  • report.json has presents: 0 only 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 with 2b10a05 reverted, 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.io when it asserts, so XCL_NETWORK=0 is worth having on by default here.

**@⁠Aruku448** on GitHub · 2026-11-24 06:52 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124377836) @⁠cmt8 — the 7800 XT datapoint you asked for. Your `wine-fixes-2` (`bbc472f`) on stock **vkd3d-proton 3.1 (release DLLs, assertions on)**, DXVK `dxgi`, 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, no `int3`; 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 MB` - `title 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 far` - window title at the same moment: `compiling shaders: 0 running, 12 done, 57,817 pipelines queued`, **1.3 FPS** - `report.json` has `presents: 0` only 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 with `2b10a05` reverted, 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.io` when it asserts, so `XCL_NETWORK=0` is worth having on by default here.
Author
Owner

@⁠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 2b10a05 reverted, on a release build if you can. What I'd expect without it: ~10^5 dirty pages per submit in the sparse windows timing line 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.

**@⁠cmt8** on GitHub · 2026-11-24 06:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124439678) @⁠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 `2b10a05` reverted, on a release build if you can. What I'd expect without it: ~10^5 dirty pages per submit in the `sparse windows timing` line 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`.
Author
Owner

@⁠Aruku448 on GitHub · 2026-11-24 07:10 UTC · original

@⁠cmt8 not a debug build: cargo build --release (Finished \release` profile [optimized]), cross-built for x86_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 ntfs3 cannot 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:

  1. The 2b10a05 A/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.
  2. If you know the look budget knob, I can run with XCL_PIPELINE_THREADS=1 and 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.

**@⁠Aruku448** on GitHub · 2026-11-24 07:10 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124699944) @⁠cmt8 not a debug build: `cargo build --release` (`Finished \`release\` profile [optimized]`), cross-built for `x86_64-pc-windows-msvc` with 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 `ntfs3` cannot 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: 1. **The `2b10a05` A/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. 2. If you know the look budget knob, I can run with `XCL_PIPELINE_THREADS=1` and 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`.
Author
Owner

@⁠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.

**@⁠cmt8** on GitHub · 2026-11-24 07:16 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124803215) @⁠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.
Author
Owner

@⁠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 main beaa245 + @⁠cmt8's 2b10a05 (imported window left out of the write watch under Wine) + #684 (CopyFromSubresource with 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:

  • Intro, then the loading screen; the artwork appears. 128 BCPack refusals (BC1 8, BC5 100, BC7 20), the same counts @⁠bKNNNNN logged on the RTX 5080.
  • Without #684: 0xc0000005 writing in msvcrt memcpy from xcl::hle::xg::copy_from, called from game+0x979f5b, 574 s in. That is #662's first crash, so #684 is needed under Linux as well.
  • With #684: no XCL fault. At 681 s (~16 400 draws, 0 skipped) the title stops itself at game+0x23cf683 (write to 0), and Breakpad logs GPU Loc Sig, as in #505 / #534 / #662.
  • 3–6 fps during intro and loading with the full window and 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.

**@⁠lucsoft** on GitHub · 2026-11-24 07:19 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124868265) 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 `main` `beaa245` + @⁠cmt8's `2b10a05` (imported window left out of the write watch under Wine) + #684 (`CopyFromSubresource` with 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:** - Intro, then the loading screen; the artwork appears. 128 BCPack refusals (BC1 8, BC5 100, BC7 20), the same counts @⁠bKNNNNN logged on the RTX 5080. - Without #684: `0xc0000005` writing in `msvcrt` memcpy from `xcl::hle::xg::copy_from`, called from `game+0x979f5b`, 574 s in. That is #662's first crash, so #684 is needed under Linux as well. - With #684: no XCL fault. At 681 s (~16 400 draws, 0 skipped) the title stops itself at `game+0x23cf683` (write to 0), and Breakpad logs `GPU Loc Sig`, as in #505 / #534 / #662. - 3–6 fps during intro and loading with the full window and `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.
Author
Owner

@⁠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_hash in title_textures.rs (four multiply-rotate lanes over 32-byte chunks — a few GB/s on one core is the design point):

  • this phase hashes 63 textures per look, ~160 KB each, i.e. ~0.37 ms per texture — roughly 7× slower per byte than the function should be, so the cost is per-texture (the committed-range check / VirtualQuery walk), not the hash loop;
  • the longer run I quoted earlier (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;
  • on your 7900 XTX run the same phase is 328 MB per look at 23 GB/s, which is ~9× the per-byte rate at a similar look size, so something in the walk/coherence path is different on your side, not the storage or the build.

If it helps, I can run a fixed shape on request — e.g. XCL_PIPELINE_THREADS=1 plus XCL_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.

**@⁠Aruku448** on GitHub · 2026-11-24 07:23 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124935334) 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_hash` in `title_textures.rs` (four multiply-rotate lanes over 32-byte chunks — a few GB/s on one core is the design point): - this phase hashes **63 textures per look, ~160 KB each**, i.e. ~0.37 ms per texture — roughly 7× slower per byte than the function should be, so the cost is per-texture (the committed-range check / VirtualQuery walk), not the hash loop; - the longer run I quoted earlier (`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; - on your 7900 XTX run the same phase is 328 MB per look at 23 GB/s, which is ~9× the per-byte rate at a similar look size, so something in the walk/coherence path is different on your side, not the storage or the build. If it helps, I can run a fixed shape on request — e.g. `XCL_PIPELINE_THREADS=1` plus `XCL_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.
Author
Owner

@⁠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 for x86_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), then 64 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:

  1. cat /sys/kernel/mm/transparent_hugepage/enabled (mine is always).
  2. Which write-watch mode your Wine uses: WINEDEBUG=+virtual prints Using kernel write watches. near the top when it is the userfaultfd one. Staging builds have differed on this earlier in the thread.
  3. The decisive one: perf top -p <pid of xcl.exe> (or perf record -g for ~10 s) while it sits in the menus. If the time is in the kernel (page faults, handle_userfault, follow_page) rather than in xcl.exe, it is the memory mapping, not the code. If it is in xcl.exe, the symbol will say whether it is content_hash or the committed-range check you suspect.

A run with XCL_COHERENT_MB=512 would 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 timing lines are enough to compare.

**@⁠cmt8** on GitHub · 2026-11-24 07:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7124985548) @⁠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 for `x86_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)`, then `64 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: 1. `cat /sys/kernel/mm/transparent_hugepage/enabled` (mine is `always`). 2. Which write-watch mode your Wine uses: `WINEDEBUG=+virtual` prints `Using kernel write watches.` near the top when it is the userfaultfd one. Staging builds have differed on this earlier in the thread. 3. The decisive one: `perf top -p <pid of xcl.exe>` (or `perf record -g` for ~10 s) while it sits in the menus. If the time is in the kernel (page faults, `handle_userfault`, `follow_page`) rather than in `xcl.exe`, it is the memory mapping, not the code. If it is in `xcl.exe`, the symbol will say whether it is `content_hash` or the committed-range check you suspect. A run with `XCL_COHERENT_MB=512` would 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 timing` lines are enough to compare.
Author
Owner

@⁠Aruku448 on GitHub · 2026-11-24 07:32 UTC · original

The three checks, on my side:

  1. THP: [always] madvise never — same as yours.
  2. Write watch: WINEDEBUG=+virtual prints trace:virtual:kernel_writewatch_init Using kernel write watches. — same mode as yours.
  3. perf: nothing to sample. Once the title is at its account screen it idles at 0.1–0.3 % CPU (3 threads, all sleeping), so perf record -p catches 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:

  • CPU: Ryzen 7 5700X3D here vs your 7800X3D — same class, nowhere near 9×.
  • Free RAM during the run: this box has 32 GB but 19.8 GB is in use by other things (the guest itself is 7.1 GB RSS), leaving ~6.7 GB of page cache. Your note says no swap in use with 32 GB; if most of your RAM is free, a 727 GB hash stream stays in cache and mine may re-read it. I could not confirm that: during the loading phase the NVMe shows only a few MB/s of reads.

The two lines I would like to compare, cold start, same phase:

  • yours: title textures timing: 16 looks … hash 6 ms (142 MB) → ~23 GB/s
  • mine: 512 looks, 32,069 textures checked … hash 11,567 ms (5,312 MB) ≈ 460 MB/s, and 1,024 looks … hash 26,638 ms (10,651 MB) ≈ 400 MB/s

Same 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 build x86_64-pc-windows-msvc (clang-cl + lld-link, against the xwin SDK). If the windows crate'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.

**@⁠Aruku448** on GitHub · 2026-11-24 07:32 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7125108602) The three checks, on my side: 1. **THP:** `[always] madvise never` — same as yours. 2. **Write watch:** `WINEDEBUG=+virtual` prints `trace:virtual:kernel_writewatch_init Using kernel write watches.` — same mode as yours. 3. **perf:** nothing to sample. Once the title is at its account screen it idles at **0.1–0.3 % CPU** (3 threads, all sleeping), so `perf record -p` catches 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: - **CPU:** Ryzen 7 **5700X3D** here vs your **7800X3D** — same class, nowhere near 9×. - **Free RAM during the run:** this box has 32 GB but 19.8 GB is in use by other things (the guest itself is 7.1 GB RSS), leaving ~6.7 GB of page cache. Your note says no swap in use with 32 GB; if most of your RAM is free, a 727 GB hash stream stays in cache and mine may re-read it. I could not confirm that: during the loading phase the NVMe shows only a few MB/s of reads. The two lines I would like to compare, cold start, same phase: - yours: `title textures timing: 16 looks … hash 6 ms (142 MB)` → ~23 GB/s - mine: `512 looks, 32,069 textures checked … hash 11,567 ms (5,312 MB)` ≈ 460 MB/s, and `1,024 looks … hash 26,638 ms (10,651 MB)` ≈ 400 MB/s Same 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 build `x86_64-pc-windows-msvc` (clang-cl + lld-link, against the xwin SDK). If the `windows` crate'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`.
Author
Owner

@⁠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 #101 call comes, and ~34 s later GPU Loc Sig follows (#505). It runs at 25–30 fps until then.

Setup: XCL main beaa245 + #871 (with #867) + #775 (dxil-spirv 53aac418 in vkd3d-proton 3.1) + #684. vkd3d-proton 3.1 with the relaxed from_iface lookups, 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:

  • #871 puts the coherent window at 512 MB (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.
  • No GPU hang, no 40b of address set. Without #871, the same 512 MB window died at 172 s in xboxbvhbuilder.dll: the overflow went to a GPU view at 0x726e27fe0000, far above 2^40 (#585).
  • 19 590 draws and 8 192 dispatches, 0 skipped. The biggest compute PSO took 6.1 s; no long dxil-spirv stalls.
  • At 162.5 s comes the first ID3D12GraphicsCommandList10::#101 (not on PC) call, from +0x50a6657. At 196.3 s the title writes to 0 at +0x23cf683 and Breakpad logs GPU 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:

  • The post-intro GPU hang was the Mesa 26.1.8 RADV bug, not the window size. With 26.3.1 the 512 MB window runs through it.
  • Not needed in the end: #203 / #187, disabling the rect list GS, RADV_DEBUG=nonggc. They were all chasing that same hang.
  • @⁠cmt8's 2b10a05 and #871 touch the same code in title_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.

**@⁠lucsoft** on GitHub · 2026-11-24 07:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7125134612) 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 `#101` call comes, and ~34 s later `GPU Loc Sig` follows (#505). It runs at 25–30 fps until then. **Setup:** XCL `main` `beaa245` + #871 (with #867) + #775 (dxil-spirv `53aac418` in vkd3d-proton 3.1) + #684. vkd3d-proton 3.1 with the relaxed `from_iface` lookups, `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:** - #871 puts the coherent window at 512 MB (`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. - No GPU hang, no `40b of address set`. Without #871, the same 512 MB window died at 172 s in `xboxbvhbuilder.dll`: the overflow went to a GPU view at `0x726e27fe0000`, far above 2^40 (#585). - 19 590 draws and 8 192 dispatches, 0 skipped. The biggest compute PSO took 6.1 s; no long dxil-spirv stalls. - At 162.5 s comes the first `ID3D12GraphicsCommandList10::#101 (not on PC)` call, from `+0x50a6657`. At 196.3 s the title writes to 0 at `+0x23cf683` and Breakpad logs `GPU 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:** - The post-intro GPU hang was the Mesa 26.1.8 RADV bug, not the window size. With 26.3.1 the 512 MB window runs through it. - Not needed in the end: #203 / #187, disabling the rect list GS, `RADV_DEBUG=nonggc`. They were all chasing that same hang. - @⁠cmt8's `2b10a05` and #871 touch the same code in `title_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.
Author
Owner

@⁠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), DXVK dxgi/d3d11/d3d10core from Proton. vkd3d-proton cae8353e + scripts/linux/vkd3d-proton-xcl.patch + -Db_ndebug=true, with dxil-spirv at 53aac418 (the #775 pin). XCL main beaa245 + #793 + #820 + #759 + #640, built for x86_64-pc-windows-gnu. VKD3D_CONFIG=ignore_shared_fence, XCL_NETWORK=0.

What happens

  • Boot, first-run screens, legal / terms, story load: steady 30 fps.
  • Without a page budget every world load ended with err:vulkan:vkAllocateMemory Exception 0xc0000005 in Unix call while local video memory sat at ~11.9 of 12.3 GB (sampled every 2 s); 4 of 4 runs. With #640 and XCL_PAGE_BUDGET_MB=4096 the 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.
  • Compile stalls on NVIDIA under vkd3d-proton are the remaining wall. During the world load the title creates several hundred big translated compute PSOs (100-530 KB DXIL); each takes 3-14 s here and the title blocks on them (0 fps for minutes). With VKD3D_SHADER_CACHE_PATH and __GL_SHADER_DISK_CACHE_PATH on persistent storage and a full xcl pipelines pass first, the next run still spends the same time: the log marks many as "the driver's blob of an earlier build" (the CachedPSO blob 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.
  • With the stall watchdog disarmed locally (the two sites VIctory #454 patches), the run does not crash but stays at 0 fps while those compiles run.
  • Without that, it ends on the title's stall watchdog (the #505 / #232 site) about 1.5 min in. The stalls line up with synchronous big compute PSO builds (0.5-4 s each here, hundreds of them during the world load; XCL_BIG_COMPILES=4 helps 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

  • Under gamescope the window is white: XCL also maps a blank 1920x1080 top-level window titled "A", and gamescope shows that one instead of the game window. Unmapping it (xdotool search --name '^A$' windowunmap) shows the game. Not sure which component creates it; reporting in case it matters on other compositors.
  • Synthetic key input: xdotool key taps are too short for the title's 30 Hz polling and are ignored; keydown, ~150 ms, keyup works.

AI-assisted (Claude Code). No game data attached.

**@⁠oeirughrepuiohg** on GitHub · 2026-11-24 07:40 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7125246087) 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), DXVK `dxgi`/`d3d11`/`d3d10core` from Proton. vkd3d-proton `cae8353e` + `scripts/linux/vkd3d-proton-xcl.patch` + `-Db_ndebug=true`, with dxil-spirv at `53aac418` (the #775 pin). XCL `main` `beaa245` + #793 + #820 + #759 + #640, built for `x86_64-pc-windows-gnu`. `VKD3D_CONFIG=ignore_shared_fence`, `XCL_NETWORK=0`. **What happens** - Boot, first-run screens, legal / terms, story load: steady 30 fps. - Without a page budget every world load ended with `err:vulkan:vkAllocateMemory Exception 0xc0000005 in Unix call` while local video memory sat at ~11.9 of 12.3 GB (sampled every 2 s); 4 of 4 runs. With #640 and `XCL_PAGE_BUDGET_MB=4096` the 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. - Compile stalls on NVIDIA under vkd3d-proton are the remaining wall. During the world load the title creates several hundred big translated compute PSOs (100-530 KB DXIL); each takes 3-14 s here and the title blocks on them (0 fps for minutes). With `VKD3D_SHADER_CACHE_PATH` and `__GL_SHADER_DISK_CACHE_PATH` on persistent storage and a full `xcl pipelines` pass first, the next run still spends the same time: the log marks many as "the driver's blob of an earlier build" (the `CachedPSO` blob 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. - With the stall watchdog disarmed locally (the two sites VIctory #454 patches), the run does not crash but stays at 0 fps while those compiles run. - Without that, it ends on the title's stall watchdog (the #505 / #232 site) about 1.5 min in. The stalls line up with synchronous big compute PSO builds (0.5-4 s each here, hundreds of them during the world load; `XCL_BIG_COMPILES=4` helps 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** - Under gamescope the window is white: XCL also maps a blank 1920x1080 top-level window titled "A", and gamescope shows that one instead of the game window. Unmapping it (`xdotool search --name '^A$' windowunmap`) shows the game. Not sure which component creates it; reporting in case it matters on other compositors. - Synthetic key input: `xdotool key` taps are too short for the title's 30 Hz polling and are ignored; `keydown`, ~150 ms, `keyup` works. *AI-assisted (Claude Code). No game data attached.*
Author
Owner

@⁠ClosetPie107 on GitHub · 2026-11-24 07:57 UTC · original · edited 2026-11-24 08:31 UTC

Edited 2026-11-24: the first version guessed that the device loss below came from "state building up on one device and its imported memory". That was wrong. It has two test-only causes, both found after posting: #913's sparse test, and a list_x test that frees memory a live imported heap still maps. Details under Cause; the original observations are kept.

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-spirv 53aac418, DXVK v3.1.1-209, DXC 1.9.2609.5. Release build of main 1ec4c98, x86_64-pc-windows-gnu. Run with VKD3D_CONFIG=ignore_shared_fence XCL_NETWORK=0 XCL_ADAPTER=9070.

What happens

  • In every full --lib run (3 of 3 with --test-threads=4, 1 of 1 with --test-threads=1), RADV prints radv/amdgpu: The CS has been rejected, see dmesg for more information (-14) (sometimes (-1)). Then hle::d3d12x::title_textures::tests::gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes fails with HRESULT(0x887A0005) at title_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).
  • The kernel log has nothing for it. -14 is EFAULT from the CS ioctl.
  • With XCL_SPLIT_WAVE64=1 and 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)

  1. hle::d3d12x::list_x::tests::write_buffer_immediate_on_open_existing_heap_visible_to_cpu produces the CS rejection.
    • The test imports a VirtualAlloc(MEM_WRITE_WATCH) block into the shared test device with OpenExistingHeapFromAddress and places a buffer in it.
    • Its barriers hold buf.clone() inside ManuallyDrop, which is never dropped, so the buffer and its heap stay alive.
    • It then calls VirtualFree(mem, 0, MEM_RELEASE).
    • From then on, every submission on that device is rejected with -14. My reading, not verified: amdgpu has the block as a userptr BO, and its pages are gone.
    • That one test followed by hle::d3d12x::title_textures reproduces it alone: 3 of 3 serial runs, no gpu::recomp needed.
    • With only the VirtualFree left out (a local experiment, not a proposal), that pair no longer shows the rejection in 3 runs. On Windows drivers this apparently goes unnoticed.
  2. #913 (hle::d3d12x::sparse::tests::a_freed_block_is_decommitted_before_its_address_is_reused, a new 64 MiB sparse pool per alloc/free cycle).
    • With cause 1 removed, gpu_mirror_upload… still fails in 3 of 3 full runs, here as Timeout(5000) at title_textures.rs:1291 (E_OUTOFMEMORY on the RTX 3060 in #913).

With both out of the way (the VirtualFree left out plus --skip a_freed_block_is_decommitted_before_its_address_is_reused):

  • full --lib with --test-threads=4: 668 passed, 5 failed, 21 ignored, 3 of 3. The 5 are the f64 rsq (#530), the FMA control (#472 / #676), and XMA2 / Opus GetState (#890).
  • With XCL_SPLIT_WAVE64=1 the 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 sparse test or the list_x test above.

Tests in the process gpu_mirror_upload…
that test alone passes 5 / 5
+ gpu_sparse_vram_descriptors_buffers_and_xmem passes 3 / 3
hle::d3d12x::title_textures + hle::d3d12x::list_x passes
hle::d3d12x::title_textures + hle::d3d12x::sparse passes
all of gpu:: + hle::d3d12x::title_textures passes (2 / 2)
gpu::recomp + title_textures + hle::d3d12x::sparse fails
gpu::recomp + title_textures + hle::d3d12x::list_x process aborts after the CS rejection, no result line
all of hle:: (no gpu::) passes (2 / 2)
whole lib with --skip gpu_sparse_vram_descriptors_buffers_and_xmem fails (2 / 2; one of them aborted)

One row I can't explain: title_textures + all of hle::d3d12x::list_x passed in a single run, while the one list_x test above plus title_textures failed 3 of 3 later. Something else in list_x may 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.

**@⁠ClosetPie107** on GitHub · 2026-11-24 07:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7125561381) · edited 2026-11-24 08:31 UTC > **Edited 2026-11-24:** the first version guessed that the device loss below came from "state building up on one device and its imported memory". That was wrong. It has two test-only causes, both found after posting: #913's sparse test, and a `list_x` test that frees memory a live imported heap still maps. Details under **Cause**; the original observations are kept. **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-spirv `53aac418`, DXVK `v3.1.1-209`, DXC 1.9.2609.5. Release build of `main` `1ec4c98`, `x86_64-pc-windows-gnu`. Run with `VKD3D_CONFIG=ignore_shared_fence XCL_NETWORK=0 XCL_ADAPTER=9070`. **What happens** - In every full `--lib` run (3 of 3 with `--test-threads=4`, 1 of 1 with `--test-threads=1`), RADV prints `radv/amdgpu: The CS has been rejected, see dmesg for more information (-14)` (sometimes `(-1)`). Then `hle::d3d12x::title_textures::tests::gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes` fails with `HRESULT(0x887A0005)` at `title_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`). - The kernel log has nothing for it. -14 is `EFAULT` from the CS ioctl. - With `XCL_SPLIT_WAVE64=1` and 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) 1. **`hle::d3d12x::list_x::tests::write_buffer_immediate_on_open_existing_heap_visible_to_cpu`** produces the CS rejection. - The test imports a `VirtualAlloc(MEM_WRITE_WATCH)` block into the shared test device with `OpenExistingHeapFromAddress` and places a buffer in it. - Its barriers hold `buf.clone()` inside `ManuallyDrop`, which is never dropped, so the buffer and its heap stay alive. - It then calls `VirtualFree(mem, 0, MEM_RELEASE)`. - From then on, every submission on that device is rejected with -14. My reading, **not verified**: amdgpu has the block as a userptr BO, and its pages are gone. - That one test followed by `hle::d3d12x::title_textures` reproduces it alone: 3 of 3 serial runs, no `gpu::recomp` needed. - With only the `VirtualFree` left out (a local experiment, not a proposal), that pair no longer shows the rejection in 3 runs. On Windows drivers this apparently goes unnoticed. 2. **#913** (`hle::d3d12x::sparse::tests::a_freed_block_is_decommitted_before_its_address_is_reused`, a new 64 MiB sparse pool per alloc/free cycle). - With cause 1 removed, `gpu_mirror_upload…` still fails in 3 of 3 full runs, here as `Timeout(5000)` at `title_textures.rs:1291` (`E_OUTOFMEMORY` on the RTX 3060 in #913). With both out of the way (the `VirtualFree` left out plus `--skip a_freed_block_is_decommitted_before_its_address_is_reused`): - full `--lib` with `--test-threads=4`: **668 passed, 5 failed, 21 ignored**, 3 of 3. The 5 are the f64 `rsq` (#530), the FMA control (#472 / #676), and XMA2 / Opus `GetState` (#890). - With `XCL_SPLIT_WAVE64=1` the 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 `sparse` test or the `list_x` test above. | Tests in the process | `gpu_mirror_upload…` | |---|---| | that test alone | passes 5 / 5 | | + `gpu_sparse_vram_descriptors_buffers_and_xmem` | passes 3 / 3 | | `hle::d3d12x::title_textures` + `hle::d3d12x::list_x` | passes | | `hle::d3d12x::title_textures` + `hle::d3d12x::sparse` | passes | | all of `gpu::` + `hle::d3d12x::title_textures` | passes (2 / 2) | | `gpu::recomp` + `title_textures` + `hle::d3d12x::sparse` | **fails** | | `gpu::recomp` + `title_textures` + `hle::d3d12x::list_x` | **process aborts** after the CS rejection, no result line | | all of `hle::` (no `gpu::`) | passes (2 / 2) | | whole lib with `--skip gpu_sparse_vram_descriptors_buffers_and_xmem` | **fails** (2 / 2; one of them aborted) | One row I can't explain: `title_textures` + all of `hle::d3d12x::list_x` passed in a single run, while the one `list_x` test above plus `title_textures` failed 3 of 3 later. Something else in `list_x` may 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.
Author
Owner

@⁠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-gnu release build, rustc 1.99.1. Tree: main 09940bb + restoring the native vtable of allocators and submitted lists around CreateCommandList / 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_DECOMPRESSION and presents stop ~60 s in, before the loading screen.

Three Wine-specific things I hit, none root-caused:

  1. Started through umu-run, xcl.exe hangs with no output, even for --version. The same binary started with Proton's wine directly works.
  2. When cache\uma_coherent.txt is present (written at the end of a run: "a window of up to 4095 MB from the next run"), the next start stops after UMA: 3 sparse VRAM window(s) (12 GiB VA) + 4095 MB coherent window. The process runs at ~600 % CPU and blocks in the kernel (ps on it hangs) until SIGKILL. Deleting the file before each start avoids it.
  3. cargo test -p xcl --lib under 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-smoke script.

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.

**@⁠sander110419** on GitHub · 2026-11-24 08:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7126478274) 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-gnu` release build, rustc 1.99.1. Tree: `main` 09940bb + restoring the native vtable of allocators and submitted lists around `CreateCommandList` / `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_DECOMPRESSION` and presents stop ~60 s in, before the loading screen. Three Wine-specific things I hit, none root-caused: 1. Started through `umu-run`, `xcl.exe` hangs with no output, even for `--version`. The same binary started with Proton's `wine` directly works. 2. When `cache\uma_coherent.txt` is present (written at the end of a run: "a window of up to 4095 MB from the next run"), the next start stops after `UMA: 3 sparse VRAM window(s) (12 GiB VA) + 4095 MB coherent window`. The process runs at ~600 % CPU and blocks in the kernel (`ps` on it hangs) until SIGKILL. Deleting the file before each start avoids it. 3. `cargo test -p xcl --lib` under 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-smoke` script. 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.
Author
Owner

@⁠ClosetPie107 on GitHub · 2026-11-24 09:09 UTC · original

RDNA4 + Mesa 26.3.1: stock main reaches 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's vkd3d-proton-xcl.patch + -Db_ndebug=true + dxil-spirv 53aac418 (#775), DXVK v3.1.1-209, DXC 1.9.2609.5, opus.dll from #257's build-opus.sh. XCL x86_64-pc-windows-gnu, release. Retail 1.0.2.1, started with #257's run.sh inside unshare --user --map-current-user --net, XCL_NETWORK=0 XCL_COHERENT_MB=512 VKD3D_CONFIG=ignore_shared_fence. 8BitDo pad, menus walked by hand.

main 077ce40, nothing else 077ce40 + #905 (44953c2)
first-run, account and legal screens 30 fps 30 fps
BCPack 2,048 requests refused by 86 s 0 refused (BC1/BC5/BC7/BC6H unpacked)
loading screen black the artwork, at 30 fps
first ListX #101 92.1 s 88.2 s
stop: write to 0 at +0x23cf683 124.7 s (+32.6 s) 132.8 s (+44.6 s)
video memory at the stop 16.1 GB of 16 (sampled every 5 s) 16.2 GB
lowest MemAvailable 14.4 GB 12.4 GB
  • Same stop as Windows and as @⁠lucsoft's RDNA3 run: #101, then the title's "GPU Loc Sig" kill about 30–45 s later (#505). Here it takes only stock main and 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's CopyFromSubresource crash came for @⁠lucsoft, so they say nothing about #684.)
  • The coherent window stayed at 116 / 512 MB with XCL_COHERENT_MB=512. Video memory still fills the 16 GB card during loading, but that isn't what stops it.
  • Linux note for controllers: inside a separate network namespace, Wine never sees a pad connected after the game starts (udev hotplug events don't reach the namespace), so the first-run screens can't be passed with it. A pad connected before the start works. The keyboard (arrows, Enter, Esc) works either way.

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.

**@⁠ClosetPie107** on GitHub · 2026-11-24 09:09 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7127037297) **RDNA4 + Mesa 26.3.1: stock `main` reaches 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's `vkd3d-proton-xcl.patch` + `-Db_ndebug=true` + dxil-spirv `53aac418` (#775), DXVK `v3.1.1-209`, DXC 1.9.2609.5, `opus.dll` from #257's `build-opus.sh`. XCL `x86_64-pc-windows-gnu`, release. Retail 1.0.2.1, started with #257's `run.sh` inside `unshare --user --map-current-user --net`, `XCL_NETWORK=0 XCL_COHERENT_MB=512 VKD3D_CONFIG=ignore_shared_fence`. 8BitDo pad, menus walked by hand. | | `main` `077ce40`, nothing else | `077ce40` + #905 (`44953c2`) | |---|---|---| | first-run, account and legal screens | 30 fps | 30 fps | | BCPack | 2,048 requests refused by 86 s | 0 refused (BC1/BC5/BC7/BC6H unpacked) | | loading screen | black | the artwork, at 30 fps | | first ListX `#101` | 92.1 s | 88.2 s | | stop: write to 0 at `+0x23cf683` | 124.7 s (+32.6 s) | 132.8 s (+44.6 s) | | video memory at the stop | 16.1 GB of 16 (sampled every 5 s) | 16.2 GB | | lowest `MemAvailable` | 14.4 GB | 12.4 GB | - **Same stop as Windows and as @⁠lucsoft's RDNA3 run:** `#101`, then the title's "GPU Loc Sig" kill about 30–45 s later (#505). Here it takes only stock `main` and 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's `CopyFromSubresource` crash came for @⁠lucsoft, so they say nothing about #684.) - The **coherent window stayed at 116 / 512 MB** with `XCL_COHERENT_MB=512`. Video memory still fills the 16 GB card during loading, but that isn't what stops it. - **Linux note for controllers:** inside a separate network namespace, Wine never sees a pad connected *after* the game starts (udev hotplug events don't reach the namespace), so the first-run screens can't be passed with it. A pad connected before the start works. The keyboard (arrows, Enter, Esc) works either way. **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.
Author
Owner

@⁠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's docs/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_COMPILES to let more than one big compile run at once).

  • With one big compile at a time, the game process sat at 12 GB for 23 minutes while one compile ran (CPU time). Then that one compile grew the process to 34 GB in about a minute (~300 MB/s), and swap was nearly gone. I ended the run before the OOM killer. With 3 or 5 big compiles at once, memory ran out within 2 minutes.
  • Correction: I first blamed RADV and a 22.9 MB program. #611 shows the same growth (~500 MB/s) is dxil-spirv's structurizer on ~284 KB programs, fixed by dxil-spirv #371, which vkd3d-proton master (34f0ff8 pin) 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.
  • A warm cache doesn't move the stop (main 077ce40 merged, 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 one xcl-pso worker 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.
  • Big programs that did finish now come back from the caches: four of 1.0–1.26 MB were made in 8–27 ms ("the driver's blob of an earlier build").
  • With dxil-spirv 53aac418 (#371) in vkd3d-proton master 30b0eb9: 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 busy xcl-pso worker had spent over 2 minutes of CPU in dxil-spirv, all 8 samples in CFGNode::dominates. So #371 fixes the memory, but the structurizer is still slow on these programs here.

Update 4 (main 64b3f35 with #636 / #634 / #690, same machine, vkd3d-proton master): the driver-blob disk cache and the preload both work under Wine + vkd3d-proton.

  • #690: from the second run on, "the pipelines of 607 shader sets an earlier run used are built ahead of their first use"; 512 were built by 11.7 s. Correction: an earlier version of this update said each run got further. It doesn't: measured from when the world starts loading, three runs are the same: the first compute pipeline over 4 s at +47 s, the watchdog (+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.
  • #634 under vkd3d-proton: GetCachedBlob returns 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=8G stops that.
  • What still stalls: big compute programs (≥ 256 KB DXIL, built one at a time). One took 15½ minutes of CPU in a single xcl-pso worker, 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 main 508a0c7 plus #533 (f849ecc), #208/#273 (5f12643), #267 (043d1f7), #567 (7a63914) and #574 (86a5d0b), merged locally (#574 conflicted with #267 in bind.rs; I took #574's side). Same machine and Wine as below.

  • vkd3d-proton 3.1: once the world loads, compute pipelines "still building after 4000 ms" pile up (16 in a 535 s run), and 19 draws are lost to #267's limit, one graphics pipeline still unbuilt after more than two minutes. Six xcl-pso workers sat at 100% CPU. 18 of 18 stack samples were inside vkd3d-proton's dxil-spirv structurizer, almost all in CFGNode::find_common_post_dominator (the rest in get_outer_selection_dominator, dominates_all_reachable_exits and can_optimize_conditional_branch_to_static). So on Linux the time goes in DXIL → SPIR-V, a step native Windows drivers don't have.
  • #567 isn't what helps here: its "proceeding with serialized big compute PSO compile" line was never logged, so the page-file wait isn't the stall under Wine (30 GB RAM + 30 GB swap).
  • vkd3d-proton master 30b0eb9 (dxil-spirv 34f0ff8, with the structurizer rewrite from dxil-spirv #326), same relaxed from_iface checks: 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).
  • The watchdog still fires with all of the above: +0x2215c35 at 117 s (run on 3.1), +0x23cf683 at 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.
  • Two windows under Wine: Wine's DwmSetWindowAttribute doesn't implement DWMWA_CLOAK, so the title's own window stays visible next to XCL's. Moving it off-screen in WM_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\winebus DisableHidraw = 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 main at 508a0c7, DXC 1.9.2609.

  • Wine: Proton Experimental's wine. System Wine 11.22 was also tried for the stall below.
  • DXVK dxgi.
  • vkd3d-proton 3.1 built from source as a release build with b_ndebug, with d3d12_command_allocator_from_iface and d3d12_command_list_from_iface accepting any non-null object (the same idea as #257's patch).
  • XCL built from Linux: -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)

  • The title boots: one PresentX, 839 unique shaders, DirectStorage requests flow.
  • At about 11 s it submits one queue #35 ExecuteCommandListsX (1 lists, value 0x1), after BVH build/copy and meta commands, then spins on the value.
  • That work never completes. The title's watchdog fires about 30.5 s later: 0xc0000005 write at +0x2215c35, at 41.6–42.4 s. The crash context says Game State: Game Init, frame 0.
  • No amdgpu ring timeout or reset in the kernel log. Proton's wine logs winevulkan: signaller_worker wait timed out with non-empty poll list.
  • called_stubs: list #131 and #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.io here too (as in #505). Run inside unshare -n or 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.

**@⁠sperm** on GitHub · 2026-11-24 01:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7119118653) · 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's `docs/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](https://github.com/ivall/xcl/pull/533#issuecomment-7119446363)). **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_COMPILES` to let more than one big compile run at once). - With one big compile at a time, the game process sat at 12 GB for 23 minutes while one compile ran (CPU time). Then that one compile grew the process to 34 GB in about a minute (~300 MB/s), and swap was nearly gone. I ended the run before the OOM killer. With 3 or 5 big compiles at once, memory ran out within 2 minutes. - **Correction:** I first blamed RADV and a 22.9 MB program. #611 shows the same growth (~500 MB/s) is dxil-spirv's structurizer on ~284 KB programs, fixed by dxil-spirv #371, which vkd3d-proton master (`34f0ff8` pin) 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. - **A warm cache doesn't move the stop** (main `077ce40` merged, 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 one `xcl-pso` worker 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. - Big programs that did finish now come back from the caches: four of 1.0–1.26 MB were made in 8–27 ms ("the driver's blob of an earlier build"). - **With dxil-spirv `53aac418` (#371) in vkd3d-proton master `30b0eb9`:** 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 busy `xcl-pso` worker had spent over 2 minutes of CPU in dxil-spirv, all 8 samples in `CFGNode::dominates`. So #371 fixes the memory, but the structurizer is still slow on these programs here. **Update 4 (main `64b3f35` with #636 / #634 / #690, same machine, vkd3d-proton master):** the driver-blob disk cache and the preload both work under Wine + vkd3d-proton. - #690: from the second run on, "the pipelines of 607 shader sets an earlier run used are built ahead of their first use"; 512 were built by 11.7 s. **Correction:** an earlier version of this update said each run got further. It doesn't: measured from when the world starts loading, three runs are the same: the first compute pipeline over 4 s at +47 s, the watchdog (`+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. - #634 under vkd3d-proton: `GetCachedBlob` returns 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=8G` stops that. - What still stalls: big compute programs (≥ 256 KB DXIL, built one at a time). One took 15½ minutes of CPU in a single `xcl-pso` worker, 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 `main` `508a0c7` plus #533 (`f849ecc`), #208/#273 (`5f12643`), #267 (`043d1f7`), #567 (`7a63914`) and #574 (`86a5d0b`), merged locally (`#574` conflicted with #267 in `bind.rs`; I took #574's side). Same machine and Wine as below. - **vkd3d-proton 3.1:** once the world loads, compute pipelines "still building after 4000 ms" pile up (16 in a 535 s run), and 19 draws are lost to #267's limit, one graphics pipeline still unbuilt after more than two minutes. Six `xcl-pso` workers sat at 100% CPU. 18 of 18 stack samples were inside vkd3d-proton's dxil-spirv structurizer, almost all in `CFGNode::find_common_post_dominator` (the rest in `get_outer_selection_dominator`, `dominates_all_reachable_exits` and `can_optimize_conditional_branch_to_static`). So on Linux the time goes in DXIL → SPIR-V, a step native Windows drivers don't have. - **#567 isn't what helps here:** its "proceeding with serialized big compute PSO compile" line was never logged, so the page-file wait isn't the stall under Wine (30 GB RAM + 30 GB swap). - **vkd3d-proton `master` `30b0eb9`** (dxil-spirv `34f0ff8`, with the structurizer rewrite from dxil-spirv #326), same relaxed `from_iface` checks: 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). - **The watchdog still fires** with all of the above: `+0x2215c35` at 117 s (run on 3.1), `+0x23cf683` at 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. - **Two windows under Wine:** Wine's `DwmSetWindowAttribute` doesn't implement `DWMWA_CLOAK`, so the title's own window stays visible next to XCL's. Moving it off-screen in `WM_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\winebus` `DisableHidraw` = 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 `main` at `508a0c7`, DXC 1.9.2609. - Wine: Proton Experimental's `wine`. System Wine 11.22 was also tried for the stall below. - DXVK `dxgi`. - vkd3d-proton **3.1** built from source as a release build with `b_ndebug`, with `d3d12_command_allocator_from_iface` and `d3d12_command_list_from_iface` accepting any non-null object (the same idea as #257's patch). - XCL built from Linux: `-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)** - The title boots: one `PresentX`, 839 unique shaders, DirectStorage requests flow. - At about 11 s it submits one `queue #35 ExecuteCommandListsX (1 lists, value 0x1)`, after BVH build/copy and meta commands, then spins on the value. - That work never completes. The title's watchdog fires about 30.5 s later: `0xc0000005` write at `+0x2215c35`, at 41.6–42.4 s. The crash context says `Game State: Game Init`, frame 0. - No amdgpu ring timeout or reset in the kernel log. Proton's wine logs `winevulkan: signaller_worker wait timed out with non-empty poll list`. - `called_stubs`: list `#131` and `#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.io` here too (as in #505). Run inside `unshare -n` or 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.
Author
Owner

@⁠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), DXVK dxgi. XCL: a local branch of main 47efa2e with #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 --recomp with XCL_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.
  • The biggest sampled CS is 7.6 MB / 88 896 lines of HLSL. Per line shape: one statement per console instruction, plus temporaries (vN = tN; ×6 008, scc = (uint)(tN != 0u); ×3 227). 15 166 lines (17 %) are the per-lane exec predicate x = select((((exec_lo >> lane_id) & 1u) != 1u), …, x). It is a wave32 program, so split wave64 is not the cause here.
  • Their DXIL is 600 KB – 1.5 MB, and one pipeline takes 30–160 s to build. perf on the title during a run: ~42 % in libnvidia-gpucomp, ~40 % in a PE module above 0x6fff… (DXC, not xcl.exe; XCL's own code barely shows up).
  • The NVIDIA disk cache does keep them: the slow programs of two runs had no overlap (17 and 15 builds over 10 s, 0 in common). Each run just reaches about 15 new ones before it ends, so warming up by playing converges only slowly.

What #765 + #172 changed here, same machine and route (6 runs each side):

  • before: runs lasted 148–248 s; by world start up to 82 % of dispatches skipped, then often the GPU at 100 % / ~175 W for 30 s with no frames, and dozens of bridged Wait64 waits released by the 5 s watchdog
  • after: runs last 280–370 s. Of the compute programs built in-run, 4.5 % are over 300 KB of DXIL, against 17 % before. Released Wait64 waits 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 select where 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 main without 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.

**@⁠Ali-AbdulHadii** on GitHub · 2026-11-24 11:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7130599108) 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`), DXVK `dxgi`. XCL: a local branch of `main` `47efa2e` with #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 --recomp` with `XCL_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. - The biggest sampled CS is 7.6 MB / 88 896 lines of HLSL. Per line shape: one statement per console instruction, plus temporaries (`vN = tN;` ×6 008, `scc = (uint)(tN != 0u);` ×3 227). 15 166 lines (17 %) are the per-lane exec predicate `x = select((((exec_lo >> lane_id) & 1u) != 1u), …, x)`. It is a wave32 program, so split wave64 is not the cause here. - Their DXIL is 600 KB – 1.5 MB, and one pipeline takes 30–160 s to build. `perf` on the title during a run: ~42 % in `libnvidia-gpucomp`, ~40 % in a PE module above `0x6fff…` (DXC, not `xcl.exe`; XCL's own code barely shows up). - The NVIDIA disk cache does keep them: the slow programs of two runs had no overlap (17 and 15 builds over 10 s, 0 in common). Each run just reaches about 15 new ones before it ends, so warming up by playing converges only slowly. **What #765 + #172 changed here**, same machine and route (6 runs each side): - before: runs lasted 148–248 s; by world start up to 82 % of dispatches skipped, then often the GPU at 100 % / ~175 W for 30 s with no frames, and dozens of bridged `Wait64` waits released by the 5 s watchdog - after: runs last 280–370 s. Of the compute programs built in-run, 4.5 % are over 300 KB of DXIL, against 17 % before. Released `Wait64` waits 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 `select` where 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 `main` without 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.
Author
Owner

@⁠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-spirv 1dc543f, the offline load reached full loading artwork with XCL 47efa2e plus #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 mask 0x3) had a begin record and no return. It had no import, export or dedicated allocation info. A second run with VKD3D_DISABLE_EXTENSIONS=VK_EXT_zero_initialize_device_memory reproduced the access violation on the same allocation category with flags 0x2 instead of 0xa. 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 0x2 for 7 buffers and 0x3 for 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.

**@⁠Filip722** on GitHub · 2026-11-24 11:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7130463090) · 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-spirv `1dc543f`, the offline load reached full loading artwork with XCL `47efa2e` plus #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 mask `0x3`) had a begin record and no return. It had no import, export or dedicated allocation info. A second run with `VKD3D_DISABLE_EXTENSIONS=VK_EXT_zero_initialize_device_memory` reproduced the access violation on the same allocation category with flags `0x2` instead of `0xa`. 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 `0x2` for 7 buffers and `0x3` for 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.
Author
Owner

@⁠notdxbi on GitHub · 2026-11-24 13:19 UTC · original

Linux + NVIDIA 8 GB follow-up on main 47efa2e: 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 the resource_at view 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 30b0eb9 with the relaxed *_from_iface lookups and -Db_ndebug=true, dxil-spirv moved to 53aac41 (#775's pin), DXVK 3.1.1 dxgi, DXC 1.9.2609.5. XCL 47efa2e cross-built for x86_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).

without #496's wait with it
end 0x887a0005 at 144.9 s, before the first ListX #101 +0x23cf683 ("GPU Loc Sig") at 221.4 s
kernel NVRM: Xid 31 … MMU Fault: ENGINE CE0 HUBCLIENT_CE1 no Xid
just before title texture: upload failed: texture copy: GPU fence still pending after 10000 ms –
first #101 – 144.8 s
compute PSOs 185 391 (360 from cache, 9 over 1 s, the longest 162 s)
target pages 2.9 GB 3.0 GB

The wait is #496's after_title_work (the sparse queue waits on a fence per title queue), moved into flush_parked, where main now unmaps parked tiles. I know of @⁠Kalmarv's sparse_decommit_waits case 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) and XCL_PAGE_BUDGET_MB=2048 instead 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: NVRM vaspace_api.c asserts; 254 s with 3072: NV_ERR_NO_MEMORY). Most target pages here come from real::resource_at, views of memory with no title object, which #640 does not evict (it evicts what place_pages placed). 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 in xcl --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.

**@⁠notdxbi** on GitHub · 2026-11-24 13:19 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7132678364) Linux + NVIDIA 8 GB follow-up on `main` `47efa2e`: 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 the `resource_at` view 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 `30b0eb9` with the relaxed `*_from_iface` lookups and `-Db_ndebug=true`, dxil-spirv moved to `53aac41` (#775's pin), DXVK 3.1.1 `dxgi`, DXC 1.9.2609.5. XCL `47efa2e` cross-built for `x86_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). | | without #496's wait | with it | |---|---|---| | end | `0x887a0005` at 144.9 s, before the first `ListX #101` | `+0x23cf683` ("GPU Loc Sig") at 221.4 s | | kernel | `NVRM: Xid 31 … MMU Fault: ENGINE CE0 HUBCLIENT_CE1` | no Xid | | just before | `title texture: upload failed: texture copy: GPU fence still pending after 10000 ms` | – | | first `#101` | – | 144.8 s | | compute PSOs | 185 | 391 (360 from cache, 9 over 1 s, the longest 162 s) | | target pages | 2.9 GB | 3.0 GB | The wait is #496's `after_title_work` (the sparse queue waits on a fence per title queue), moved into `flush_parked`, where `main` now unmaps parked tiles. I know of @⁠Kalmarv's `sparse_decommit_waits` case 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`) and `XCL_PAGE_BUDGET_MB=2048` instead 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: NVRM `vaspace_api.c` asserts; 254 s with 3072: `NV_ERR_NO_MEMORY`). Most target pages here come from `real::resource_at`, views of memory with no title object, which #640 does not evict (it evicts what `place_pages` placed). 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 in `xcl --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.
Author
Owner

@⁠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_committed that 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:

  1. In the coherent window: one raw copy_nonoverlapping (line 1092-1094) — memcpy speed;
  2. Outside it: a VirtualQuery walk, and each committed region is copied by copy_rec → ReadProcessMemory against 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 memcpy inside read_committed and their registers showed src outside a coherent window — proof the walk branch is live in real runs; (b) @⁠cmt8's measurement that XCL_COHERENT_MB=512 moved 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=512 and compare MB/s from the same 16 looks log 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 keep ReadProcessMemory only 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 14:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7135214610) 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_committed`** that 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: 1. **In the coherent window**: one raw `copy_nonoverlapping` (line 1092-1094) — memcpy speed; 2. **Outside it**: a `VirtualQuery` walk, and each committed region is copied by `copy_rec` → **`ReadProcessMemory` against 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 memcpy` **inside** `read_committed` and their registers showed `src` *outside* a coherent window — proof the walk branch is live in real runs; (b) @⁠cmt8's measurement that `XCL_COHERENT_MB=512` moved 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=512` and compare MB/s from the same `16 looks` log 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 keep `ReadProcessMemory` only 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.
Author
Owner

@⁠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 removal 0x887A0006, 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 for reg query HKLM\\System\\CurrentControlSet\\Control\\GraphicsDrivers /v TdrLevel before 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.

**@⁠pickles976** on GitHub · 2026-11-24 15:23 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7135946057) 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 removal `0x887A0006`, 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 for `reg query HKLM\\System\\CurrentControlSet\\Control\\GraphicsDrivers /v TdrLevel` before 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.
Author
Owner

@⁠cmt8 on GitHub · 2026-11-24 15:49 UTC · original

https://github.com/ivall/xcl/pull/1395 fyi

**@⁠cmt8** on GitHub · 2026-11-24 15:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7136687932) https://github.com/ivall/xcl/pull/1395 fyi
Author
Owner

@⁠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=512 against default with everything else fixed — if the hash phase collapses with a bigger coherent window, the cost is the VirtualQuery walk + self-ReadProcessMemory per 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.

**@⁠pickles976** on GitHub · 2026-11-24 15:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7136827792) 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=512` against default with everything else fixed — if the hash phase collapses with a bigger coherent window, the cost is the `VirtualQuery` walk + self-`ReadProcessMemory` per 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.
Author
Owner

@⁠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:\game under Proton Experimental (11.0, 2026-10-14), using its bundled vkd3d-proton 3.1 (0bb64c56c8f0dcc), DXVK, and DXC 1.9.2609.5. Both XCL_NETWORK=0 and an isolated network namespace were in use. I set VKD3D_CONFIG=ignore_shared_fence.

  • Upstream main 9e3831e reached the title entry point and initialized the real D3D12 backend, then exited at iface->lpVtbl == &d3d12_heap_vtbl with zero presents.
  • wine-fixes-2 at bbc472f passed that assertion. XCL recorded 445 presents before 0x80000003 at game_scarlett_master.exe+0x4dcbc9d, with callers +0x4e52a83 and +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.
  • Same Wine build with fresh XCL state exited before presenting. The first vkd3d-proton error was d3d12_command_queue_flush_bind_sparse: Failed to perform sparse binding, vr -4, followed by VK_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.

**@⁠PedroSilvaAlves** on GitHub · 2026-11-24 17:48 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7139722376) 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:\game` under Proton Experimental (11.0, 2026-10-14), using its bundled vkd3d-proton 3.1 (`0bb64c56c8f0dcc`), DXVK, and DXC 1.9.2609.5. Both `XCL_NETWORK=0` and an isolated network namespace were in use. I set `VKD3D_CONFIG=ignore_shared_fence`. - **Upstream main `9e3831e`** reached the title entry point and initialized the real D3D12 backend, then exited at `iface->lpVtbl == &d3d12_heap_vtbl` with zero presents. - **`wine-fixes-2` at `bbc472f`** passed that assertion. XCL recorded 445 presents before `0x80000003` at `game_scarlett_master.exe+0x4dcbc9d`, with callers `+0x4e52a83` and `+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](https://github.com/Marvisak/VIctory/issues/698). - **Same Wine build with fresh XCL state** exited before presenting. The first vkd3d-proton error was `d3d12_command_queue_flush_bind_sparse: Failed to perform sparse binding, vr -4`, followed by `VK_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.
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-24 17:52 UTC · original

Tested #1395 and #1395+#867 under Wine on RADV, on main 9e3831e (so #1211 is in). Numbers are wall-clock seconds from xcl.log up to process ends with status 0x3.

Setup: Linux, Wine 11.22 inside a Proton 11.0 prefix, vkd3d-proton from Proton 11.0 (release, the asserts are kept), DXVK dxgi, RADV from Mesa 26.3.1, RX 7600 XT (RADV NAVI33). XCL_NETWORK=0.

build ends at last line before the abort
main 0.543 s ID3D12Heap1 – … (Heap, PC vtable d3d12core.dll+0x40acc0)
main + #1395 1.403 s ID3D12Fence1 – … (Fence, PC vtable d3d12core.dll+0x40afa0)
main + #1395 + #867 1.630 s display target 3840x2160 format 28: 0x1ff8000 bytes of the title's memory at 0x463c00000

So 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+0x38b840 right 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 descriptors line 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 the 0x38b840 abort.

**@⁠YaBulochka** on GitHub · 2026-11-24 17:52 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7139819470) Tested #1395 and #1395+#867 under Wine on RADV, on `main` `9e3831e` (so #1211 is in). Numbers are wall-clock seconds from `xcl.log` up to `process ends with status 0x3`. **Setup**: Linux, Wine 11.22 inside a Proton 11.0 prefix, `vkd3d-proton` from Proton 11.0 (release, the asserts are kept), DXVK `dxgi`, RADV from Mesa 26.3.1, RX 7600 XT (RADV NAVI33). `XCL_NETWORK=0`. | build | ends at | last line before the abort | |---|---|---| | `main` | **0.543 s** | `ID3D12Heap1 – … (Heap, PC vtable d3d12core.dll+0x40acc0)` | | `main` + #1395 | **1.403 s** | `ID3D12Fence1 – … (Fence, PC vtable d3d12core.dll+0x40afa0)` | | `main` + #1395 + #867 | **1.630 s** | `display target 3840x2160 format 28: 0x1ff8000 bytes of the title's memory at 0x463c00000` | So 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+0x38b840` right 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 descriptors` line 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 the `0x38b840` abort.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 17:54 UTC · original

Registering your +0x4dcbc9d against the shared kill-map (hash-matched copy, VIctory#630): verified deliberate, partially decoded — the int3 sits 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 a parameter … value debug line just before (like #534's GPU 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 your wine-fixes-2 fork is public, the repro is worth pinning for whoever owns the early-boot path.

**@⁠pickles976** on GitHub · 2026-11-24 17:54 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7139873586) Registering your `+0x4dcbc9d` against the shared kill-map (hash-matched copy, VIctory#630): **verified deliberate, partially decoded** — the `int3` sits 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 a `parameter … value` debug line just before (like #534's `GPU 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 your `wine-fixes-2` fork is public, the repro is worth pinning for whoever owns the early-boot path.
Author
Owner

@⁠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:

[1.745] D3D12.X: display target 3840x2160 format 28: 0x1ff8000 bytes of the title's memory at 0x463c00000
Assertion failed: iface->lpVtbl == &d3d12_resource_vtbl, file ../src-vkd3d-proton/libs/vkd3d/vkd3d_private.h, line 1243
process ends with status 0x3; stack: d3d12core.dll+0x38b840, msvcrt.dll+0x76f90, kernel32.dll+0x1a24a, d3d12core.dll+0x40aea0, …

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, 0x463c00000 here). 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-proton from Proton 11.0 (release, asserts kept), DXVK dxgi, RADV Mesa 26.3.1, RX 7600 XT; main 9e3831e + #1395 + #867.

If it helps, I can rerun with any patch you want on that path, or with VKD3D_DEBUG=fixme to see which vkd3d call the object is passed back through.

**@⁠YaBulochka** on GitHub · 2026-11-24 17:54 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7139883430) 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: ``` [1.745] D3D12.X: display target 3840x2160 format 28: 0x1ff8000 bytes of the title's memory at 0x463c00000 Assertion failed: iface->lpVtbl == &d3d12_resource_vtbl, file ../src-vkd3d-proton/libs/vkd3d/vkd3d_private.h, line 1243 process ends with status 0x3; stack: d3d12core.dll+0x38b840, msvcrt.dll+0x76f90, kernel32.dll+0x1a24a, d3d12core.dll+0x40aea0, … ``` 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, `0x463c00000` here). 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-proton` from Proton 11.0 (release, asserts kept), DXVK `dxgi`, RADV Mesa 26.3.1, RX 7600 XT; `main` `9e3831e` + #1395 + #867. If it helps, I can rerun with any patch you want on that path, or with `VKD3D_DEBUG=fixme` to see which vkd3d call the object is passed back through.
Author
Owner

@⁠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 with VKD3D_DEBUG=fixme is 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 17:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7139943493) 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 with `VKD3D_DEBUG=fixme` is 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.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 18:22 UTC · original

Your +0x4dcbc9d decode 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:22 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7140561543) Your `+0x4dcbc9d` decode 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.
Author
Owner

@⁠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_ACCESS on depth-stencil formats — CreateCommittedResource must fail E_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_hardware and 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).

**@⁠pickles976** on GitHub · 2026-11-24 18:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7140681719) Three things from reading the matrix as a whole: ① **depth+UAV has a spec-side tiebreaker**: D3D12 forbids `ALLOW_UNORDERED_ACCESS` on depth-stencil formats — `CreateCommittedResource` must fail `E_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_hardware` and 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).
Author
Owner

@⁠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_desc drops that flag, and the test then places the texture with CreatePlacedResource in D3D12_RESOURCE_STATE_UNORDERED_ACCESS, without the flag, and expects an error. vkd3d-proton v3.1 accepts it. In libs/vkd3d/resource.c it checks the render-target and depth states against their flags, but checks UNORDERED_ACCESS only 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's test 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:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7141073041) · 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_desc` drops that flag, and the test then places the texture with `CreatePlacedResource` in `D3D12_RESOURCE_STATE_UNORDERED_ACCESS`, without the flag, and expects an error. vkd3d-proton v3.1 accepts it. In `libs/vkd3d/resource.c` it checks the render-target and depth states against their flags, but checks `UNORDERED_ACCESS` only 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's `test result:` line. AI-assisted: Claude Code (Claude Opus 5.5) checked the vkd3d-proton source, ran the Windows tests and drafted this reply.
Author
Owner

@⁠wayback94 on GitHub · 2026-11-24 18:25 UTC · original · edited 2026-11-24 19:59 UTC

Linux test run of main at 9e3831e on an RTX 3080 (Ampere, 32-lane waves) under Proton Experimental's Wine, with the vkd3d-proton build from #257.

Tested

  • NVIDIA GeForce RTX 3080 10 GB, driver 620.73.04; Intel i7-13700K, 32 GB; CachyOS, kernel 7.3.5-2-cachyos
  • main 9e3831e, 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-run
  • Wine: Proton Experimental experimental-11.0-20261112 (files/bin/wine, has "Using kernel write watches"). Prefix from #257's setup-prefix.sh (Proton's libvkd3d and DXVK dxgi/d3d11/d3d10core). vkd3d-proton v3.1 + #257's patch, -Db_ndebug=true, built with #257's build-vkd3d-proton.sh at 26fdda6. DXC 1.9.2609.
  • Each test .exe run under that Wine from its package folder, --test-threads=4, with WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b", VKD3D_CONFIG=ignore_shared_fence, DXVK_CONFIG='dxgi.hideNvidiaGpu = False', XCL_NETWORK=0, XCL_DXC_DIR set. No XCL_SAMPLE_* set.
  • One pass over every binary: the lib binary aborts after 15 s with no result line. gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valu hangs the GPU, the GPU tests after it fail, then thread caused non-unwinding panic. aborting. (exit 9). The same cascade as in #257.
  • So the lib binary ran as two processes, 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 ignored
  • The other 18 binaries in one pass: 46 passed, 3 failed, 20 ignored
  • Total: 770 passed, 5 failed, 41 ignored, plus gpu_more_atomics_sub_dword_scratch_valu, left out with --skip and 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 in gpu_compute_e2e (heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows)
test result under Wine / vkd3d-proton
gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valu kernel 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_placed new since the reports in #257 (the test is from 5383506): UNORDERED_ACCESS without the UAV flag (device_x.rs:1113). The test places a D16 texture whose PC description has ALLOW_DEPTH_STENCIL and no ALLOW_UNORDERED_ACCESS (pc_resource_desc drops it) in D3D12_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 runs
hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime left: 0, right: 12291 (xaudio2.rs:1599), as in #257 (Proton's Wine)
predication_e2e::set_predication_buffer_state_and_kickoff EQUAL_ZERO(0) must skip dst[0] (2863267840 vs 286331153)
e2e::test_title_runs_and_game_folder_is_untouched test title: user32 … W: not cloaked, XMA2 GetState: ctx=0x0, queued=1
pls_quota::disk_free_space_ex_reports_pls_quota left: (0, 2), right: (0, 3)

Same PC, same commit, on Windows (for comparison)

  • Windows 11 Home 26H2 (build 26300.9974), NVIDIA driver 610.88 (32.0.16.1088), Rust 1.100.0 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, no XCL_SAMPLE_*, nothing skipped: 776 passed, 0 failed, 41 ignored, the same 3 SKIPPED lines. 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_placed alone (--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.
  • With XCL_SAMPLE_RPF set to my own copy of the shader pack: also 776 / 0 / 41.

Not tested

  • Release builds; the retail title (run.sh / smoke.sh / smoke.ps1); XCL_SAMPLE_* tests under Wine
  • The whole Windows suite and the XCL_SAMPLE_RPF run on driver 621.14 (only the depth test was rerun there)
  • The Linux and Windows drivers differ (620.73.04 vs 610.88 for the Windows suite), so the GPU hang is not yet pinned to Wine/vkd3d-proton rather than the driver version
  • Which HRESULT Windows returns for the depth+UAV placement; which D3D12 runtime (Agility SDK or the OS's) the Windows run used
  • Other Wine builds (system Wine 11.22), stock vkd3d-proton

AI use

  • Claude Code (Claude Opus 5.5) set up the toolchains on Linux and Windows, ran the tests and wrote this report; I checked the counts against the logs.
**@⁠wayback94** on GitHub · 2026-11-24 18:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7140633370) · edited 2026-11-24 19:59 UTC Linux test run of `main` at `9e3831e` on an RTX 3080 (Ampere, 32-lane waves) under Proton Experimental's Wine, with the vkd3d-proton build from #257. **Tested** - NVIDIA GeForce RTX 3080 10 GB, driver 620.73.04; Intel i7-13700K, 32 GB; CachyOS, kernel 7.3.5-2-cachyos - `main` `9e3831e`, 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-run` - Wine: Proton Experimental `experimental-11.0-20261112` (`files/bin/wine`, has "Using kernel write watches"). Prefix from #257's `setup-prefix.sh` (Proton's libvkd3d and DXVK `dxgi`/`d3d11`/`d3d10core`). vkd3d-proton v3.1 + #257's patch, `-Db_ndebug=true`, built with #257's `build-vkd3d-proton.sh` at `26fdda6`. DXC 1.9.2609. - Each test `.exe` run under that Wine from its package folder, `--test-threads=4`, with `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b"`, `VKD3D_CONFIG=ignore_shared_fence`, `DXVK_CONFIG='dxgi.hideNvidiaGpu = False'`, `XCL_NETWORK=0`, `XCL_DXC_DIR` set. No `XCL_SAMPLE_*` set. - One pass over every binary: the lib binary aborts after 15 s with no result line. `gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valu` hangs the GPU, the GPU tests after it fail, then `thread caused non-unwinding panic. aborting.` (exit 9). The same cascade as in #257. - So the lib binary ran as two processes, 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 ignored - The other 18 binaries in one pass: 46 passed, 3 failed, 20 ignored - **Total: 770 passed, 5 failed, 41 ignored**, plus `gpu_more_atomics_sub_dword_scratch_valu`, left out with `--skip` and 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 in `gpu_compute_e2e` (`heap_window_out_of_memory_falls_back_to_the_switch_form`: no heap windows) | test | result under Wine / vkd3d-proton | |---|---| | `gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valu` | `kernel 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_placed` | **new since the reports in #257** (the test is from `5383506`): `UNORDERED_ACCESS without the UAV flag` (`device_x.rs:1113`). The test places a D16 texture whose PC description has `ALLOW_DEPTH_STENCIL` and no `ALLOW_UNORDERED_ACCESS` (`pc_resource_desc` drops it) in `D3D12_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 runs | | `hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime` | `left: 0, right: 12291` (`xaudio2.rs:1599`), as in #257 (Proton's Wine) | | `predication_e2e::set_predication_buffer_state_and_kickoff` | `EQUAL_ZERO(0) must skip dst[0]` (`2863267840` vs `286331153`) | | `e2e::test_title_runs_and_game_folder_is_untouched` | test title: `user32 … W: not cloaked`, `XMA2 GetState: ctx=0x0, queued=1` | | `pls_quota::disk_free_space_ex_reports_pls_quota` | `left: (0, 2)`, `right: (0, 3)` | **Same PC, same commit, on Windows** (for comparison) - Windows 11 Home 26H2 (build 26300.9974), NVIDIA driver 610.88 (32.0.16.1088), Rust 1.100.0 `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`, no `XCL_SAMPLE_*`, nothing skipped: **776 passed, 0 failed, 41 ignored**, the same 3 `SKIPPED` lines. 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_placed` alone (`--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. - With `XCL_SAMPLE_RPF` set to my own copy of the shader pack: also 776 / 0 / 41. **Not tested** - Release builds; the retail title (`run.sh` / `smoke.sh` / `smoke.ps1`); `XCL_SAMPLE_*` tests under Wine - The whole Windows suite and the `XCL_SAMPLE_RPF` run on driver 621.14 (only the depth test was rerun there) - The Linux and Windows drivers differ (620.73.04 vs 610.88 for the Windows suite), so the GPU hang is not yet pinned to Wine/vkd3d-proton rather than the driver version - Which HRESULT Windows returns for the depth+UAV placement; which D3D12 runtime (Agility SDK or the OS's) the Windows run used - Other Wine builds (system Wine 11.22), stock vkd3d-proton **AI use** - Claude Code (Claude Opus 5.5) set up the toolchains on Linux and Windows, ran the tests and wrote this report; I checked the counts against the logs.
Author
Owner

@⁠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 main 568e7db, vkd3d-proton master with dxil-spirv #374.

Timeline

Step Result
before 568e7db d3d12_resource_vtbl assert right after display target 3840x2160 format 28
568e7db that assert is gone; the run reaches UMA / ID3D12Heap1 and dies at vkd3d_private.h:1079, iface->lpVtbl == &d3d12_heap_vtbl (~3 s)
+ dxil-spirv #374 (legacy-struct-remove) no change - the stop is before any shader is compiled
+ XCL_DSTORAGE_MEMORY_BUDGET_MIB=2048 XCL_VRAM_ARENAS=2 XCL_COHERENT_MB=512 no change - not a memory-pressure stop
local experiment: all eight assert(iface->lpVtbl == &d3d12_*_vtbl) removed in vkd3d_private.h no asserts, the window opens (black), and at 1.9 s the title fail-fasts: 0x80000003 at game_scarlett_master.exe+0x2478b7b, rax=rdx=0x80070057 (E_INVALIDARG)
+ VKD3D_CONFIG=breadcrumbs,breadcrumbs_trace zero breadcrumb lines; same E_INVALIDARG
+ VKD3D_DEBUG=warn names the call: d3d12_command_list_Reset: Invalid command allocator.

Reading. XCL wraps vkd3d objects by swapping lpVtbl; vkd3d's impl_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 on CONTAINING_RECORD), but the title then gets E_INVALIDARG right after device / queue / fence / command-allocator creation. VKD3D_DEBUG=warn names 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 before impl_from_* - and the heap assert is the right place to start reading.

No game files, no captures; counts and addresses only.

**@⁠YaBulochka** on GitHub · 2026-11-25 10:58 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7160424302) · 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 `main` `568e7db`, vkd3d-proton master with dxil-spirv #374. **Timeline** | Step | Result | |---|---| | before `568e7db` | `d3d12_resource_vtbl` assert right after `display target 3840x2160 format 28` | | `568e7db` | that assert is gone; the run reaches UMA / `ID3D12Heap1` and dies at `vkd3d_private.h:1079`, `iface->lpVtbl == &d3d12_heap_vtbl` (~3 s) | | + dxil-spirv #374 (`legacy-struct-remove`) | no change - the stop is before any shader is compiled | | + `XCL_DSTORAGE_MEMORY_BUDGET_MIB=2048 XCL_VRAM_ARENAS=2 XCL_COHERENT_MB=512` | no change - not a memory-pressure stop | | local experiment: all eight `assert(iface->lpVtbl == &d3d12_*_vtbl)` removed in `vkd3d_private.h` | no asserts, the window opens (black), and at **1.9 s** the title fail-fasts: `0x80000003 at game_scarlett_master.exe+0x2478b7b`, `rax=rdx=0x80070057` (`E_INVALIDARG`) | | + `VKD3D_CONFIG=breadcrumbs,breadcrumbs_trace` | zero breadcrumb lines; same `E_INVALIDARG` | | + `VKD3D_DEBUG=warn` | names the call: `d3d12_command_list_Reset: Invalid command allocator.` | **Reading.** XCL wraps vkd3d objects by swapping `lpVtbl`; vkd3d's `impl_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 on `CONTAINING_RECORD`), but the title then gets `E_INVALIDARG` right after device / queue / fence / command-allocator creation. `VKD3D_DEBUG=warn` names 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 before `impl_from_*` - and the heap assert is the right place to start reading. No game files, no captures; counts and addresses only.
Author
Owner

@⁠ClosetPie107 on GitHub · 2026-11-25 11:29 UTC · original · edited 2026-11-25 15:05 UTC

Linux / AMD RDNA4 (RADV) progress check on main 426a5a7 (after today's merge wave), with XCL_DIRECT_DXIL=1 on the retail title (1.0.2.1).

Setup

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS
  • Proton Experimental (experimental-11.0-20261112), DXVK v3.1.1-209, DXC 1.9.2609.5, x86_64-pc-windows-gnu release build, XCL_NETWORK=0, XCL_COHERENT_MB=512, XCL_DIRECT_DXIL=1, capped at MemoryMax=18G / MemorySwapMax=0, XCL_RUN_SECONDS=180.

Result

  1. vkd3d-proton v3.1 (#257 + dxil-spirv 53aac418, the #775 pin): runs at 30 fps through 1,200+ frames, then crashes at 50.2 s with an unhandled 0xc0000005 (read at 0x130) inside dxil-spirv's CFGStructurizer (node.cpp → cfg_structurizer.cpp → dxil_converter.cpp) on a translated direct-DXIL compute shader.
  2. vkd3d-proton v3.1 (#257 + dxil-spirv legacy-struct-remove e084e35c, HansKristian-Work/dxil-spirv#374):
    • No crash, no OOM, no device removal, clean exit=0 at 180 s.
    • Memory stayed flat at 15.2 GiB RSS / 16.1 GiB VRAM (0 swap used by XCL, 9.5 GiB system RAM free).
    • 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,238 packets, 0 errors).
    • Presentation still stops around ~74 s (1,760 frames shown, up from 1,686 on 568e7db), right after 8 bridged Wait64BitValueX (wait-before-signal) queue waits, with GPU fences still pending after 10 s on shutdown (the existing cross-platform stall in #505 / #1452).

Update (main 1a0bbe3 + upstream dxil-spirv master 694cc674, XCL_RUN_SECONDS=600):

  • Same setup, 600 s run: clean exit=0, flat 13.1–13.7 GiB RSS / 15.1 GiB VRAM (0 swap), 0 crashes / 0 device removals.
  • Finished the entire wave of ~900 KB–1.0 MB world-load compute PSOs (#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,727 frames shown, GPU fences still pending after 10 s).

Update (main 06c9f55 + vkd3d-proton master ec207194 (3.2.0) + dxil-spirv 694cc674, -Db_ndebug=true + relaxed-vtable patch):

  • Clean 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 (0 swap), 0 crashes / 0 device removals; #2080 direct-dispatch compute splitting ran cleanly (41 programs split, 421 pieces, 50 chained dispatches).
  • 06c9f55 + #1297 + #1429 + #2244 with XCL_PSO_WAIT_MS=50 and disk cache enabled:
    • Cold run (498 s): reached 34,737 draws (1,409 skipped, 531 PC), 131,072 dispatches (802 skipped), 243 split compute programs / 2,471 pieces / 5,072 chained dispatches, 464 huge PSO compiles (#3712), 0 crashes / 0 device removals. #2244 sync dump at 360 s reported pending title ID3D12Fences: none, XCL's own queue waits unmet: none, 0 GPU waits armed. Stopped cleanly by our host RAM guard (MemAvailable 299 MiB).
    • Warm-cache run (167 s): cached ~1.0–1.2 MB compute PSOs loaded in 0–5 ms (vs 3.7–5.7 s cold), reaching 37,377 draws (36 skipped) / 131,072 dispatches (68 skipped) / 5,470 chained dispatches in 167 s (3× faster), 0 crashes / 0 device removals. Stopped by our host RAM guard (MemAvailable 387 MiB) while xcl_rss stayed flat at 13.4 GiB (0 swap) 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):
    • Cut VRAM by ~4.6 GiB during world setup (11.6 GiB vs 16.3 GiB at 81–91 s) with 0 GTT spill (12.0 GiB free RAM), reaching 49,111 draws (20 skipped) / 114,950 dispatches (64 skipped) before hitting #1164 / #2140's 0x80000003 at game_scarlett_master.exe+0x4da6315 at 111 s (0 device removals).
  • 06c9f55 + #2306 + #1405 (same flags, warm cache):
    • No +0x4da6315 crash — ran cleanly to 302 s (exit=0, stopped by our 2 GiB host RAM guard at MemAvailable 1,898 MiB, xcl_rss 15.5 GiB, 0 swap), 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.

**@⁠ClosetPie107** on GitHub · 2026-11-25 11:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7161122619) · edited 2026-11-25 15:05 UTC Linux / AMD RDNA4 (RADV) progress check on `main` `426a5a7` (after today's merge wave), with `XCL_DIRECT_DXIL=1` on the retail title (1.0.2.1). **Setup** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS - Proton Experimental (`experimental-11.0-20261112`), DXVK `v3.1.1-209`, DXC `1.9.2609.5`, `x86_64-pc-windows-gnu` release build, `XCL_NETWORK=0`, `XCL_COHERENT_MB=512`, `XCL_DIRECT_DXIL=1`, capped at `MemoryMax=18G` / `MemorySwapMax=0`, `XCL_RUN_SECONDS=180`. **Result** 1. **vkd3d-proton v3.1 (`#257` + `dxil-spirv` `53aac418`, the `#775` pin):** runs at 30 fps through 1,200+ frames, then crashes at **50.2 s** with an unhandled `0xc0000005` (read at `0x130`) inside `dxil-spirv`'s `CFGStructurizer` (`node.cpp` → `cfg_structurizer.cpp` → `dxil_converter.cpp`) on a translated direct-DXIL compute shader. 2. **vkd3d-proton v3.1 (`#257` + `dxil-spirv` `legacy-struct-remove` `e084e35c`, HansKristian-Work/dxil-spirv#374):** - **No crash, no OOM, no device removal**, clean `exit=0` at 180 s. - **Memory stayed flat** at **15.2 GiB RSS / 16.1 GiB VRAM** (0 swap used by XCL, 9.5 GiB system RAM free). - `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,238` packets, 0 errors). - **Presentation still stops around ~74 s** (**1,760 frames shown**, up from 1,686 on `568e7db`), right after 8 bridged `Wait64BitValueX` (`wait-before-signal`) queue waits, with `GPU fences still pending after 10 s` on shutdown (the existing cross-platform stall in #505 / #1452). **Update (`main` `1a0bbe3` + upstream `dxil-spirv` `master` `694cc674`, `XCL_RUN_SECONDS=600`):** - Same setup, 600 s run: clean `exit=0`, flat **13.1–13.7 GiB RSS / 15.1 GiB VRAM** (0 swap), 0 crashes / 0 device removals. - Finished the entire wave of ~900 KB–1.0 MB world-load compute PSOs (`#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,727` frames shown, `GPU fences still pending after 10 s`). **Update (`main` `06c9f55` + `vkd3d-proton` `master` `ec207194` (3.2.0) + `dxil-spirv` `694cc674`, `-Db_ndebug=true` + relaxed-vtable patch):** - Clean `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** (`0` swap), 0 crashes / 0 device removals; `#2080` direct-dispatch compute splitting ran cleanly (`41` programs split, `421` pieces, `50` chained dispatches). - `06c9f55` + `#1297` + `#1429` + `#2244` with **`XCL_PSO_WAIT_MS=50`** and disk cache enabled: - **Cold run (498 s):** reached **34,737 draws** (`1,409` skipped, `531` PC), **131,072 dispatches** (`802` skipped), **243 split compute programs / 2,471 pieces / 5,072 chained dispatches**, **464** huge PSO compiles (`#3712`), 0 crashes / 0 device removals. `#2244` sync dump at 360 s reported `pending title ID3D12Fences: none`, `XCL's own queue waits unmet: none`, `0 GPU waits armed`. Stopped cleanly by our host RAM guard (`MemAvailable` 299 MiB). - **Warm-cache run (167 s):** cached ~1.0–1.2 MB compute PSOs loaded in **0–5 ms** (vs 3.7–5.7 s cold), reaching **37,377 draws** (`36` skipped) / **131,072 dispatches** (`68` skipped) / **5,470 chained dispatches** in 167 s (3× faster), 0 crashes / 0 device removals. Stopped by our host RAM guard (`MemAvailable` 387 MiB) while `xcl_rss` stayed flat at **13.4 GiB** (`0` swap) 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`):** - Cut VRAM by **~4.6 GiB** during world setup (`11.6 GiB` vs `16.3 GiB` at 81–91 s) with **0 GTT spill** (`12.0 GiB` free RAM), reaching **49,111 draws** (`20` skipped) / **114,950 dispatches** (`64` skipped) before hitting `#1164` / `#2140`'s `0x80000003` at `game_scarlett_master.exe+0x4da6315` at **111 s** (0 device removals). - **`06c9f55` + `#2306` + `#1405` (same flags, warm cache):** - **No `+0x4da6315` crash** — ran cleanly to **302 s** (`exit=0`, stopped by our 2 GiB host RAM guard at `MemAvailable` 1,898 MiB, `xcl_rss` 15.5 GiB, `0` swap), 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.
Author
Owner

@⁠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:

  • During a title run, the host xcl.exe and title.exe (which owns the D3D12 device) each hold a different file of NVIDIA's shader disk cache. In my cache folder those are …fe7 and …fe8 (checked with ls -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_PATH at 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.cache different:

Setup Time each
Precompiled, nothing else done 4–33 s (the driver compiles)
NVIDIA files swapped, no vkd3d-proton.cache 0.18–1.2 s (the driver hits; vkd3d-proton converts DXIL to SPIR-V again, about 1.4 ms per KB)
Swapped, plus the tool's vkd3d-proton.cache in the title's overlay 3–9 ms

So 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's vkd3d-proton.cache.write as well: vkd3d-proton only merges it into the main file on its next start.

Written with Claude Code (Claude Opus 5.5).

**@⁠itsd-effex** on GitHub · 2026-11-25 13:52 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7164408926) · 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:** - During a title run, the host `xcl.exe` and `title.exe` (which owns the D3D12 device) each hold a different file of NVIDIA's shader disk cache. In my cache folder those are `…fe7` and `…fe8` (checked with `ls -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_PATH` at 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): https://git.gtahub.st/github/xcl-dev--xcl/pulls/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.cache` different: | Setup | Time each | |---|---| | Precompiled, nothing else done | 4–33 s (the driver compiles) | | NVIDIA files swapped, no `vkd3d-proton.cache` | 0.18–1.2 s (the driver hits; vkd3d-proton converts DXIL to SPIR-V again, about 1.4 ms per KB) | | Swapped, plus the tool's `vkd3d-proton.cache` in the title's overlay | 3–9 ms | So 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's `vkd3d-proton.cache.write` as well: vkd3d-proton only merges it into the main file on its next start. _Written with Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠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, Linux 6.17.0-40-generic, 16 GiB RAM.

Previous-boot kernel journal, about 40 s after launch:

i915 0000:00:02.0: [drm] Uninitialized forcewake domain(s) 0x8 accessed at 0x1cd000
WARNING ... find_fw_domain ... [i915]
i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
i915 0000:00:02.0: [drm] gnome-shell[4159] context reset due to GPU hang
i915 0000:00:02.0: [drm] GPU HANG: ecode 12:1:9edbffff, in gnome-shell [4159]

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 vkcube completed 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-25 19:06 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7171824205) 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, Linux `6.17.0-40-generic`, 16 GiB RAM. Previous-boot kernel journal, about 40 s after launch: ``` i915 0000:00:02.0: [drm] Uninitialized forcewake domain(s) 0x8 accessed at 0x1cd000 WARNING ... find_fw_domain ... [i915] i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out i915 0000:00:02.0: [drm] gnome-shell[4159] context reset due to GPU hang i915 0000:00:02.0: [drm] GPU HANG: ecode 12:1:9edbffff, in gnome-shell [4159] ``` 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 `vkcube` completed 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.
Author
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.dll reports (2576c0b4adfae4a, i.e. 3.2.0 lineage) with --buildtype release -Db_ndebug=true and the two from_iface relaxations (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's gpu_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's a_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:

  • meson requires glslangValidator; the official Khronos 16.6.0 Linux prebuilt works user-local (no distro package needed).
  • Ubuntu's mingw-w64 pathcch.h predates PATHCCH_NONE; libs/vkd3d-common/platform.c needs a local #define PATHCCH_NONE 0x00000000 guard to compile. That looks worth an upstream #ifndef since 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:

unhandled exception 0xc0000005 in game_scarlett_master.exe+0x2215c35 (write at address 0x0)
stack: game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215eca, kernel32.dll+0x11469

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-smi exceeded 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.

**@⁠pickles976** on GitHub · 2026-11-26 04:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/175#issuecomment-7183055808) · 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.dll` reports (`2576c0b4adfae4a`, i.e. 3.2.0 lineage) with `--buildtype release -Db_ndebug=true` and the two `from_iface` relaxations (`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's `gpu_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's `a_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: - meson requires `glslangValidator`; the official Khronos 16.6.0 Linux prebuilt works user-local (no distro package needed). - Ubuntu's `mingw-w64` `pathcch.h` predates `PATHCCH_NONE`; `libs/vkd3d-common/platform.c` needs a local `#define PATHCCH_NONE 0x00000000` guard to compile. That looks worth an upstream `#ifndef` since 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: ``` unhandled exception 0xc0000005 in game_scarlett_master.exe+0x2215c35 (write at address 0x0) stack: game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215eca, kernel32.dll+0x11469 ``` 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-smi` exceeded 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.