Linux / NVIDIA: XCL's cached driver blob plus a warm NVIDIA shader cache crashes in vkCreateGraphicsPipelines #2003

Open
opened 2026-11-26 05:14:08 +00:00 by github-bot · 5 comments
Owner

@⁠itsd-effex on GitHub · 2026-11-25 00:37 UTC · original

Summary: on Linux / NVIDIA, a title run that gets both a driver blob from XCL's disk cache (driver_cache, written by xcl pipelines) and a warm NVIDIA shader disk cache crashes in vkCreateGraphicsPipelines a few seconds in. Either one alone is fine. Workaround: XCL_PSO_DISK_CACHE=0.

Setup: CachyOS, Proton Experimental's Wine, vkd3d-proton ec207194 (+ #257's patch), RTX 3080 Ti (NVIDIA 620.73.04), retail 1.0.2.1. xcl: main 62265d3 + #688 + #759 + #684 + #1660 + #1860, XCL_DIRECT_DXIL=1. Before the runs, a full xcl pipelines (58,804 made, 0 failed) with a private NVIDIA cache (__GL_SHADER_DISK_CACHE_PATH + __GL_SHADER_DISK_CACHE_SIZE, see this comment on #1269).

title run XCL driver blobs NVIDIA disk cache result
1 on (default) on (warm) process ends with status 0x3 at 5.8 s
2 on off (__GL_SHADER_DISK_CACHE=0) ran 10+ min, big compiles 16 s median ("driver blob supplied")
3, 4 off (XCL_PSO_DISK_CACHE=0) on (warm) ran; 19 cache hits (≤ 12 ms) and 2 misses in the first 70 s

Run 1, from xcl.log and Wine's error channel:

[    5.808][  404][ERROR] process ends with status 0x3 (thread 404); on the stack: d3d12core.dll+0x43c36, kernel32.dll+0x1a2de, winevulkan.dll+0x11ce0, d3d12core.dll+0x4f8ca, …, d3d12core.dll+0x54499, …, xcl.exe+0x6ab193, …
err:vulkan:vkCreateGraphicsPipelines Exception 0xc0000005 in Unix call.

Symbolized against the vkd3d-proton build (same code path in an earlier crash of this kind): d3d12_device_CreateGraphicsPipelineState → d3d12_pipeline_state_create → d3d12_pipeline_state_create_pipeline_variant → winevulkan, i.e. an access violation in the NVIDIA driver while creating a graphics pipeline from the supplied cached blob. Two xcl pipelines runs earlier the same evening ended the same way (exit 3 within 15 s, the same vkCreateGraphicsPipelines exception) while blobs from an earlier run and a warm NVIDIA cache were present.

My reading, not verified: XCL hands vkd3d-proton the CachedPSO blob saved by xcl pipelines; with the driver's own cache warm, the driver crashes on it. Whether the blob is stale for this run, or this is a driver/vkd3d-proton bug XCL should work around, I haven't established.

Not tested: native Windows, AMD, other drivers, which pipeline it is (the log names none), whether blobs written by the same build and run settings as the title avoid it.

AI use

  • Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this issue.
**@⁠itsd-effex** on GitHub · 2026-11-25 00:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/2003) **Summary:** on Linux / NVIDIA, a title run that gets both a driver blob from XCL's disk cache (`driver_cache`, written by `xcl pipelines`) and a warm NVIDIA shader disk cache crashes in `vkCreateGraphicsPipelines` a few seconds in. Either one alone is fine. Workaround: `XCL_PSO_DISK_CACHE=0`. **Setup:** CachyOS, Proton Experimental's Wine, vkd3d-proton `ec207194` (+ #257's patch), RTX 3080 Ti (NVIDIA 620.73.04), retail 1.0.2.1. xcl: `main` `62265d3` + #688 + #759 + #684 + #1660 + #1860, `XCL_DIRECT_DXIL=1`. Before the runs, a full `xcl pipelines` (58,804 made, 0 failed) with a private NVIDIA cache (`__GL_SHADER_DISK_CACHE_PATH` + `__GL_SHADER_DISK_CACHE_SIZE`, see [this comment on #1269](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269)). | title run | XCL driver blobs | NVIDIA disk cache | result | |---|---|---|---| | 1 | on (default) | on (warm) | **process ends with status 0x3 at 5.8 s** | | 2 | on | off (`__GL_SHADER_DISK_CACHE=0`) | ran 10+ min, big compiles 16 s median ("driver blob supplied") | | 3, 4 | off (`XCL_PSO_DISK_CACHE=0`) | on (warm) | ran; 19 cache hits (≤ 12 ms) and 2 misses in the first 70 s | Run 1, from `xcl.log` and Wine's error channel: ``` [ 5.808][ 404][ERROR] process ends with status 0x3 (thread 404); on the stack: d3d12core.dll+0x43c36, kernel32.dll+0x1a2de, winevulkan.dll+0x11ce0, d3d12core.dll+0x4f8ca, …, d3d12core.dll+0x54499, …, xcl.exe+0x6ab193, … err:vulkan:vkCreateGraphicsPipelines Exception 0xc0000005 in Unix call. ``` Symbolized against the vkd3d-proton build (same code path in an earlier crash of this kind): `d3d12_device_CreateGraphicsPipelineState` → `d3d12_pipeline_state_create` → `d3d12_pipeline_state_create_pipeline_variant` → winevulkan, i.e. an access violation in the NVIDIA driver while creating a graphics pipeline from the supplied cached blob. Two `xcl pipelines` runs earlier the same evening ended the same way (exit 3 within 15 s, the same `vkCreateGraphicsPipelines` exception) while blobs from an earlier run and a warm NVIDIA cache were present. **My reading, not verified:** XCL hands vkd3d-proton the `CachedPSO` blob saved by `xcl pipelines`; with the driver's own cache warm, the driver crashes on it. Whether the blob is stale for this run, or this is a driver/vkd3d-proton bug XCL should work around, I haven't established. **Not tested:** native Windows, AMD, other drivers, which pipeline it is (the log names none), whether blobs written by the same build and run settings as the title avoid it. **AI use** - Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this issue.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:14:08 +00:00
Author
Owner

@⁠humsterbumster on GitHub · 2026-11-25 02:48 UTC · original

Independent confirmation on a different Ada/Blackwell-class box: this is exactly what stops the retail title here, and turning both caches off makes it go away.

Setup: RTX 5090 32 GB, driver 620.70.06, CachyOS/Arch kernel 7.3.5, Proton 11 (Wine 11), vkd3d-proton ec207194 + scripts/linux/vkd3d-proton-xcl.patch, VKD3D_CONFIG=ignore_shared_fence, XCL_DIRECT_DXIL=1, XCL_PSO_WAIT_MS=50. main aa9ab8a, local release build.

With the caches on (defaults, XCL_PSO_DISK_CACHE unset, NVIDIA shader disk cache warm from earlier runs): the title reaches the first-run flow and dies 10-20 s after "Confirm setup and start the game", and sometimes already during the startup shader-load burst:

err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call.
xcl: process ends with status 0x3; on the stack: winevulkan.dll+0x20071, ... d3d12core.dll+0x5de100, ...

It is the PSO-build thread (D3D12.X: a pipeline still being built after 50 ms ... a few lines before, and the last successful build is logged as compute PSO with the translated console CS (... B DXIL, ... the driver's blob of an earlier build)). Reusing the data root after such a run makes the next one abort before a window exists.

With XCL_PSO_DISK_CACHE=0 + __GL_SHADER_DISK_CACHE=0 (+ XCL_PSO_PRELOAD=0): the same build, same package, same data root runs the whole first-run flow — account picker, UI/text size, brightness, legal notices, privacy/ToS accept, "Confirm setup and start the game", loading — with no Vulkan exception and no abort. The next failure is a different one (#916 territory: split command list (type 2) around mid-list Wait after Write64 (#1) -> process ends with status 0x3).

So: same signature, same workaround, and on this box it is the gate between menus and the world load. Worth documenting the pair (XCL_PSO_DISK_CACHE=0 + __GL_SHADER_DISK_CACHE=0) as the workaround for NVIDIA users, since one leg with only the driver blob cache off (XCL_PSO_DISK_CACHE=0, NVIDIA cache warm, WINEDEBUG=err+all) still aborted at startup with the same vkCreateComputePipelines exception.

AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

**@⁠humsterbumster** on GitHub · 2026-11-25 02:48 UTC · [original](https://github.com/xcl-dev/xcl/issues/2003#issuecomment-7151223277) Independent confirmation on a different Ada/Blackwell-class box: this is exactly what stops the retail title here, and turning **both** caches off makes it go away. **Setup:** RTX 5090 32 GB, driver 620.70.06, CachyOS/Arch kernel 7.3.5, Proton 11 (Wine 11), vkd3d-proton `ec207194` + `scripts/linux/vkd3d-proton-xcl.patch`, `VKD3D_CONFIG=ignore_shared_fence`, `XCL_DIRECT_DXIL=1`, `XCL_PSO_WAIT_MS=50`. `main` `aa9ab8a`, local release build. **With the caches on** (defaults, `XCL_PSO_DISK_CACHE` unset, NVIDIA shader disk cache warm from earlier runs): the title reaches the first-run flow and dies 10-20 s after "Confirm setup and start the game", and sometimes already during the startup shader-load burst: ``` err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call. xcl: process ends with status 0x3; on the stack: winevulkan.dll+0x20071, ... d3d12core.dll+0x5de100, ... ``` It is the PSO-build thread (`D3D12.X: a pipeline still being built after 50 ms ...` a few lines before, and the last successful build is logged as `compute PSO with the translated console CS (... B DXIL, ... the driver's blob of an earlier build)`). Reusing the data root after such a run makes the next one abort before a window exists. **With `XCL_PSO_DISK_CACHE=0` + `__GL_SHADER_DISK_CACHE=0` (+ `XCL_PSO_PRELOAD=0`):** the same build, same package, same data root runs the whole first-run flow — account picker, UI/text size, brightness, legal notices, privacy/ToS accept, "Confirm setup and start the game", loading — with no Vulkan exception and no abort. The next failure is a different one (#916 territory: `split command list (type 2) around mid-list Wait after Write64 (#1)` -> `process ends with status 0x3`). So: same signature, same workaround, and on this box it is *the* gate between menus and the world load. Worth documenting the pair (`XCL_PSO_DISK_CACHE=0` + `__GL_SHADER_DISK_CACHE=0`) as the workaround for NVIDIA users, since one leg with only the driver blob cache off (`XCL_PSO_DISK_CACHE=0`, NVIDIA cache warm, `WINEDEBUG=err+all`) still aborted at startup with the same `vkCreateComputePipelines` exception. *AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.*
Author
Owner

@⁠humsterbumster on GitHub · 2026-11-25 03:35 UTC · original

Follow-up after longer runs on the same box: the workaround is necessary here but not sufficient, and it is the same AV class once the title is actually loading the world.

With XCL_PSO_DISK_CACHE=0 + __GL_SHADER_DISK_CACHE=0 + XCL_PSO_PRELOAD=0 + XCL_SPLIT_MIDLIST_WAIT=0 (and a saved profile, so no wizard), the run gets through the first-run flow and into the story load: menus at 28-30 fps, the loading screen at 2-10 fps, 80,774 draws through translated pipelines (512 skipped), 8,110 dispatches. Then, 200-300 s in, process ends with status 0x3 again, with the same shape of stack:

winevulkan.dll+0x12eb2 ... d3d12core.dll+0x4d7cb <- xcl.exe+0x1531da <- d3d12core.dll+0x54fe5f
  • xcl.exe+0x1531da is nearest xcl::hle::d3d12x::real::finish_two_pass+0xf4a (nm -C --defined-only xcl.exe; addr2line gives nothing for this PE),
  • d3d12core.dll+0x4d7cb is inside d3d12_pipeline_state_create in the vkd3d-proton build,
  • so the failing side is again a pipeline build going into the driver, not a stale blob being loaded.

With the same settings plus WINEDEBUG=err+all (which slows the PSO workers) two runs ended earlier, at 193 s and 256 s, with the literal message err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call. - i.e. on a cold cache after dozens of successful builds.

Video memory at the end: 12.7-13.9 GB local, 1.4-4.5 GB non-local of 32 GB, so it is not exhaustion. Build: vkd3d-proton 4522cc1a8b1347f+ (v3.1 + only the #175 relaxed-vtable patch). Driver 620.73.04.

Trying the stock vkd3d-proton in the prefix instead (the Oct 27 build under /fast/proton/files) dies within seconds on the vtable checks the #175 patch removes, so that is not an option here.

AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

**@⁠humsterbumster** on GitHub · 2026-11-25 03:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/2003#issuecomment-7152053694) Follow-up after longer runs on the same box: the workaround is necessary here but not sufficient, and it is the same AV class once the title is actually loading the world. With `XCL_PSO_DISK_CACHE=0` + `__GL_SHADER_DISK_CACHE=0` + `XCL_PSO_PRELOAD=0` + `XCL_SPLIT_MIDLIST_WAIT=0` (and a saved profile, so no wizard), the run gets through the first-run flow and into the story load: menus at **28-30 fps**, the loading screen at 2-10 fps, `80,774` draws through translated pipelines (512 skipped), `8,110` dispatches. Then, 200-300 s in, `process ends with status 0x3` again, with the same shape of stack: ``` winevulkan.dll+0x12eb2 ... d3d12core.dll+0x4d7cb <- xcl.exe+0x1531da <- d3d12core.dll+0x54fe5f ``` - `xcl.exe+0x1531da` is nearest `xcl::hle::d3d12x::real::finish_two_pass+0xf4a` (`nm -C --defined-only xcl.exe`; `addr2line` gives nothing for this PE), - `d3d12core.dll+0x4d7cb` is inside `d3d12_pipeline_state_create` in the vkd3d-proton build, - so the failing side is again a pipeline build going into the driver, not a stale blob being loaded. With the same settings plus `WINEDEBUG=err+all` (which slows the PSO workers) two runs ended earlier, at 193 s and 256 s, with the literal message `err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call.` - i.e. on a **cold** cache after dozens of successful builds. Video memory at the end: 12.7-13.9 GB local, 1.4-4.5 GB non-local of 32 GB, so it is not exhaustion. Build: vkd3d-proton `4522cc1a8b1347f+` (v3.1 + only the #175 relaxed-vtable patch). Driver 620.73.04. Trying the *stock* vkd3d-proton in the prefix instead (the Oct 27 build under `/fast/proton/files`) dies within seconds on the vtable checks the #175 patch removes, so that is not an option here. *AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.*
Author
Owner

@⁠humsterbumster on GitHub · 2026-11-25 05:10 UTC · original

Follow-up: on this box the vkCreateComputePipelines AV stops happening with vkd3d-proton master (3.2.0), and the next wall is on the title's side.

What was built

Upstream master ec20719 (PACKAGE_VERSION 3.2.0), cross-built for x86_64-pc-windows-gnu with --buildtype release --strip -Db_ndebug=true plus the two-hunk relaxed-vtable change the Linux notes describe for v3.1 (d3d12_command_allocator_from_iface no longer compares the vtable, d3d12_command_list_from_iface accepts the extended list). Submodules: Vulkan-Headers ee2ec5f, SPIRV-Headers f88a2d7, dxil-spirv 7c04863. Resulting d3d12core.dll: 9,054,325 B, sha256 2ce1205ec72eae9c1e7dcd9d93ab398183eacb09e0570c18b8279ad99ea27cec.

Two things are needed to build it with mingw-w64 13 that the v3.1 recipe does not mention: windres in the cross file, and dxil-spirv needs a newer SPIRV-Headers than the one the parent pins (its own third_party/spirv-headers must point at a tree with DecorationUTFEncodedKHR). And -Db_ndebug=true is not optional: with asserts left on the build aborts ~2.3 s in, right after the title's first heap is wrapped, through msvcrt — the vtable assertions that the patch relaxes are still reached from other objects.

Runs (RTX 5090, NVIDIA 620.73.04, Wine 11 / Proton 11, VKD3D_CONFIG=ignore_shared_fence, XCL_PSO_DISK_CACHE=0, __GL_SHADER_DISK_CACHE=0, XCL_PSO_PRELOAD=0, XCL_SPLIT_MIDLIST_WAIT=0, 4096 MB page budget / 1024 MB coherent, saved profile)

leg extras end
wl23 XCL_PSO_WAIT_MS=50 417 s, title failfast 0x80000003 at game+0x4da6315 (STATUS_BREAKPOINT, rax=2, rdx=0xffffffff)
wl24 XCL_PSO_WAIT_MS=500 564 s, exit rc=1 with no XCL crash line
wl26 XCL_PSO_WAIT_MS=50 + VKD3D_CONFIG=ignore_shared_fence,single_queue 377 s, 0xc0000005 read at 0xffffffffffffffff in game+0x4f28df1 (rax=0xe5e0c0c0aaaaaaae — a poison pattern, so a title-side read of memory it never wrote)

None of the three logs contains err:vulkan:vkCreateComputePipelines Exception 0xc0000005 or process ends with status 0x3. With 3.1 + the same patch the AV came back in every leg (193, 200, 242, 256, 331 s), so the version change is what moved the stop, not the environment. single_queue changes neither the timing nor the failure shape.

What the 3.2.0 legs do show

  • Menus: 30.0 fps, steady (60 presents / 2 s).
  • Story phase: 0-2 presents per 2 s and a black screen — where 3.1 drew the loading artwork at 4.5 fps. 298-355 translated compute PSOs built, 13.8-15.2 GB local VRAM, no device removal, no 0x887a0006.
  • Skipped work is a knob, not the cause: with XCL_PSO_WAIT_MS=50 the run reports 65,848 draws with translated pipelines (61,978 skipped, 8,761 PC) and 90,508 dispatches (60,572 skipped); with 500 ms the same phase reports 84,610 draws (2,048 skipped) — and the screen is equally black. So the black frame is not missing draws.
  • Repeated D3D12.X: Write64 Signal ... would close a GPU cycle (waiters=...) – signalled on CPU warnings throughout, which 3.1 did not print.

So for this title + this driver: 3.1 (even with both caches off) is not enough on its own here, and 3.2.0 is where the pipeline-build AV stops reproducing. What is left is a title-side failfast/AV after ~6 minutes of prestream with everything idle, which needs its own issue; I am not claiming it is the same defect.

AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

**@⁠humsterbumster** on GitHub · 2026-11-25 05:10 UTC · [original](https://github.com/xcl-dev/xcl/issues/2003#issuecomment-7153522519) Follow-up: on this box the `vkCreateComputePipelines` AV stops happening with **vkd3d-proton master (3.2.0)**, and the next wall is on the title's side. **What was built** Upstream master `ec20719` (`PACKAGE_VERSION 3.2.0`), cross-built for `x86_64-pc-windows-gnu` with `--buildtype release --strip -Db_ndebug=true` plus the two-hunk relaxed-vtable change the Linux notes describe for v3.1 (`d3d12_command_allocator_from_iface` no longer compares the vtable, `d3d12_command_list_from_iface` accepts the extended list). Submodules: Vulkan-Headers `ee2ec5f`, SPIRV-Headers `f88a2d7`, dxil-spirv `7c04863`. Resulting `d3d12core.dll`: 9,054,325 B, sha256 `2ce1205ec72eae9c1e7dcd9d93ab398183eacb09e0570c18b8279ad99ea27cec`. Two things are needed to build it with mingw-w64 13 that the v3.1 recipe does not mention: `windres` in the cross file, and dxil-spirv needs a newer SPIRV-Headers than the one the parent pins (its own `third_party/spirv-headers` must point at a tree with `DecorationUTFEncodedKHR`). And `-Db_ndebug=true` is not optional: with asserts left on the build aborts ~2.3 s in, right after the title's first heap is wrapped, through `msvcrt` — the vtable assertions that the patch relaxes are still reached from other objects. **Runs (RTX 5090, NVIDIA 620.73.04, Wine 11 / Proton 11, `VKD3D_CONFIG=ignore_shared_fence`, `XCL_PSO_DISK_CACHE=0`, `__GL_SHADER_DISK_CACHE=0`, `XCL_PSO_PRELOAD=0`, `XCL_SPLIT_MIDLIST_WAIT=0`, 4096 MB page budget / 1024 MB coherent, saved profile)** | leg | extras | end | |---|---|---| | wl23 | `XCL_PSO_WAIT_MS=50` | 417 s, title failfast `0x80000003` at `game+0x4da6315` (STATUS_BREAKPOINT, `rax=2`, `rdx=0xffffffff`) | | wl24 | `XCL_PSO_WAIT_MS=500` | 564 s, exit rc=1 with no XCL crash line | | wl26 | `XCL_PSO_WAIT_MS=50` + `VKD3D_CONFIG=ignore_shared_fence,single_queue` | 377 s, `0xc0000005` read at `0xffffffffffffffff` in `game+0x4f28df1` (`rax=0xe5e0c0c0aaaaaaae` — a poison pattern, so a title-side read of memory it never wrote) | None of the three logs contains `err:vulkan:vkCreateComputePipelines Exception 0xc0000005` or `process ends with status 0x3`. With 3.1 + the same patch the AV came back in every leg (193, 200, 242, 256, 331 s), so the version change is what moved the stop, not the environment. `single_queue` changes neither the timing nor the failure shape. **What the 3.2.0 legs do show** - Menus: 30.0 fps, steady (60 presents / 2 s). - Story phase: 0-2 presents per 2 s and a black screen — where 3.1 drew the loading artwork at 4.5 fps. 298-355 translated compute PSOs built, 13.8-15.2 GB local VRAM, no device removal, no `0x887a0006`. - Skipped work is a knob, not the cause: with `XCL_PSO_WAIT_MS=50` the run reports 65,848 draws with translated pipelines (61,978 skipped, 8,761 PC) and 90,508 dispatches (60,572 skipped); with 500 ms the same phase reports 84,610 draws (2,048 skipped) — and the screen is equally black. So the black frame is not missing draws. - Repeated `D3D12.X: Write64 Signal ... would close a GPU cycle (waiters=...) – signalled on CPU` warnings throughout, which 3.1 did not print. So for this title + this driver: 3.1 (even with both caches off) is not enough on its own here, and 3.2.0 is where the pipeline-build AV stops reproducing. What is left is a title-side failfast/AV after ~6 minutes of prestream with everything idle, which needs its own issue; I am not claiming it is the same defect. *AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.*
Author
Owner

@⁠humsterbumster on GitHub · 2026-11-25 06:00 UTC · original

Correction to a detail in my previous comment: the 3.2.0 legs are not black for the whole story phase. Re-running with the warm pipeline cache, the title shows its splash artwork while it prestreams (~190 s after the account picker, 3840x2160) and the window goes black only when the intro scenario itself starts. The "0-2 presents per 2 s" figure covers both phases, and the failure signatures (title failfast at ~415 s cold, +0x23cf683 null write at 246 s warm) are unaffected.

AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class.

**@⁠humsterbumster** on GitHub · 2026-11-25 06:00 UTC · [original](https://github.com/xcl-dev/xcl/issues/2003#issuecomment-7154344102) Correction to a detail in my previous comment: the 3.2.0 legs are **not** black for the whole story phase. Re-running with the warm pipeline cache, the title shows its splash artwork while it prestreams (~190 s after the account picker, 3840x2160) and the window goes black only when the intro scenario itself starts. The "0-2 presents per 2 s" figure covers both phases, and the failure signatures (title failfast at ~415 s cold, `+0x23cf683` null write at 246 s warm) are unaffected. *AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class.*
Author
Owner

@⁠voiceovarian1-max on GitHub · 2026-11-25 08:07 UTC · original

A v3.1-based data point (no crash with both caches on), and what the kept blobs are on this stack: 112-byte stubs. The offline pass and the title also use different vkd3d-proton cache files.

Setup: RTX 4070 Ti 12 GB (NVIDIA 620.73.04), CachyOS kernel 7.3.5, Proton Experimental's Wine (wine-11.0), vkd3d-proton v3.1 + scripts/linux/vkd3d-proton-xcl.patch, dxil-spirv 53aac418 + the fix of 7f5a7780. Local stack on main 9e3831e (+ #1315/#1316, #867, #871, #877, #1321, #684, #640, #605, #495, #1420, #1368's line), HLSL path (XCL_DIRECT_DXIL unset), blobs from xcl shaders --precompile --pipelines --only cs (not xcl pipelines). A private NVIDIA cache (__GL_SHADER_DISK_CACHE_PATH, 1.5 GB by now).

  1. No crash here. 15 title runs and the offline passes with XCL's driver blobs on and the NVIDIA cache warm: no vkCreate…Pipelines Exception line in any log. So the crash may need vkd3d-proton master, graphics blobs from xcl pipelines, or XCL_DIRECT_DXIL=1; I have none of the three.
  2. The blobs are stubs. 1,941 of the 1,948 files in driver are 112 bytes: vkd3d-proton's header and compatibility chunk, no SPIR-V. The other 7 (1.0–4.7 MB) are from one pass I ran with vkd3d-proton's own cache off (VKD3D_SHADER_CACHE_PATH=0): then the blob is complete, and a second pass was fast from XCL's blobs alone, with NVIDIA's cache off too (9 pipelines: 52.1 s, then 3.4 s). With VK_EXT_shader_module_identifier it keeps shader identifiers in its own vkd3d-proton.cache and expects the driver's cache to hold the code. VKD3D_CONFIG=…,pipeline_library_log shows it: [IDENTIFIER] Successfully created compute pipeline from identifier 2,780 times, [IDENTIFIER] None compute 250 times in one title run.
  3. Two cache files. vkd3d-proton keeps that file in the working directory. For the title that is its overlay folder (<data root>/<package>/overlay/vkd3d-proton.cache); for xcl shaders it was wherever I started it. So for every program the pass had built, the title translated DXIL to SPIR-V again (the compacted CS_ScreenProbes_ActivateProbes of #1316 alone: 267 s in dxil-spirv). After running the pass with the title's overlay folder as its working directory: 3,242 compute pipelines from an identifier, 0 without (before: 3,034 and 219). With VKD3D_SHADER_CACHE_PATH set, vkd3d-proton names the file after the program (vkd3d-proton.xcl.exe.cache).
  4. A run that is killed loses the identifiers vkd3d-proton had not flushed yet (it flushes when pipeline creation pauses), while XCL's stub and the driver's code are already on disk.

For #2125: on this stack XCL_PSO_DISK_CACHE=0 would cost little, since the stubs carry nothing; what makes a second run fast is the pair vkd3d-proton cache + NVIDIA cache.

Not tested: vkd3d-proton master, XCL_DIRECT_DXIL=1, xcl pipelines (#759), graphics blobs, AMD.

AI use: Claude Code (Claude Fable 5.2) ran the runs and wrote this report; posted with the account owner's approval.

**@⁠voiceovarian1-max** on GitHub · 2026-11-25 08:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/2003#issuecomment-7156640651) **A v3.1-based data point (no crash with both caches on), and what the kept blobs are on this stack: 112-byte stubs. The offline pass and the title also use different vkd3d-proton cache files.** **Setup:** RTX 4070 Ti 12 GB (NVIDIA 620.73.04), CachyOS kernel 7.3.5, Proton Experimental's Wine (wine-11.0), vkd3d-proton **v3.1** + `scripts/linux/vkd3d-proton-xcl.patch`, dxil-spirv `53aac418` + the fix of `7f5a7780`. Local stack on `main` `9e3831e` (+ #1315/#1316, #867, #871, #877, #1321, #684, #640, #605, #495, #1420, #1368's line), HLSL path (`XCL_DIRECT_DXIL` unset), blobs from `xcl shaders --precompile --pipelines --only cs` (not `xcl pipelines`). A private NVIDIA cache (`__GL_SHADER_DISK_CACHE_PATH`, 1.5 GB by now). 1. **No crash here.** 15 title runs and the offline passes with XCL's driver blobs on and the NVIDIA cache warm: no `vkCreate…Pipelines Exception` line in any log. So the crash may need vkd3d-proton master, graphics blobs from `xcl pipelines`, or `XCL_DIRECT_DXIL=1`; I have none of the three. 2. **The blobs are stubs.** 1,941 of the 1,948 files in `driver` are 112 bytes: vkd3d-proton's header and compatibility chunk, no SPIR-V. The other 7 (1.0–4.7 MB) are from one pass I ran with vkd3d-proton's own cache off (`VKD3D_SHADER_CACHE_PATH=0`): then the blob is complete, and a second pass was fast from XCL's blobs alone, with NVIDIA's cache off too (9 pipelines: 52.1 s, then 3.4 s). With `VK_EXT_shader_module_identifier` it keeps shader identifiers in its own `vkd3d-proton.cache` and expects the driver's cache to hold the code. `VKD3D_CONFIG=…,pipeline_library_log` shows it: `[IDENTIFIER] Successfully created compute pipeline from identifier` 2,780 times, `[IDENTIFIER] None compute` 250 times in one title run. 3. **Two cache files.** vkd3d-proton keeps that file in the working directory. For the title that is its overlay folder (`<data root>/<package>/overlay/vkd3d-proton.cache`); for `xcl shaders` it was wherever I started it. So for every program the pass had built, the title translated DXIL to SPIR-V again (the compacted `CS_ScreenProbes_ActivateProbes` of #1316 alone: 267 s in dxil-spirv). After running the pass with the title's overlay folder as its working directory: 3,242 compute pipelines from an identifier, 0 without (before: 3,034 and 219). With `VKD3D_SHADER_CACHE_PATH` set, vkd3d-proton names the file after the program (`vkd3d-proton.xcl.exe.cache`). 4. A run that is killed loses the identifiers vkd3d-proton had not flushed yet (it flushes when pipeline creation pauses), while XCL's stub and the driver's code are already on disk. For #2125: on this stack `XCL_PSO_DISK_CACHE=0` would cost little, since the stubs carry nothing; what makes a second run fast is the pair vkd3d-proton cache + NVIDIA cache. **Not tested:** vkd3d-proton master, `XCL_DIRECT_DXIL=1`, `xcl pipelines` (#759), graphics blobs, AMD. **AI use:** Claude Code (Claude Fable 5.2) ran the runs and wrote this report; posted with the account owner's approval.
This discussion has been locked. Commenting is limited to contributors.
No description provided.