[GH #62] GTX 1660 (6 GB) on Linux/Wine: 20-minute run into the first playable scene at ~1.9 fps, no driver error; what it needed #62

Open
opened 2026-11-25 08:09:10 +00:00 by Impre-visible · 7 comments
Impre-visible commented 2026-11-25 08:09:10 +00:00 (Migrated from github.com)

Imported from Zettrox/ztrx. Originally posted by Impre-visible on 2026-11-25T07:12:55Z.


Summary

ztrx 90b529f runs on a GTX 1660 (6 GB, Turing without RT cores, so below the README's "RTX 20 series or newer") under Linux with Wine: one 20-minute run into the prologue's first playable scene with no driver error and no crash, at about 1.9 fps once in the world. The scene is drawn and lit (characters, buildings, sky), with the known dark-shadow look.

No game files, images or video attached; numbers and log lines of the tool only.

Setup

  • Arch Linux, kernel 6.18 LTS, i7-13700KF, 62 GB RAM
  • NVIDIA GeForce GTX 1660, 6 GB, driver 620.73.04 (open kernel modules), 32-lane waves only
  • Wine from GE-Proton11-6, with the d3d12 / d3d12core DLLs of vkd3d-proton taken from Proton Experimental (November build), KDE Wayland / XWayland
  • Cross-built from Linux for x86_64-pc-windows-msvc, --release --features diagnostics, toolchain from rust-toolchain.toml
  • Series X mode, scripted Enter key presses for the menus, no pad

What I had to add for Linux/Wine (nothing else changed)

  1. Marvisak/VIctory#523 (the Linux support PR) merged; it applies cleanly on 90b529f.
  2. An empty pipeline library created with a null blob. pipeline/library.rs calls make(&[]); an empty Rust slice has a non-null dangling pointer, and vkd3d-proton answers E_INVALIDARG to a non-null blob of length 0, so the log says no host pipeline library: pipelines are not kept on every run and nothing is prebuilt on the next one. Calling CreatePipelineLibrary through the vtable with a null pointer and length 0 fixes it (same change as Marvisak/VIctory#1722). I can send it as a PR here if wanted.
  3. Microsoft's d3dcompiler_47.dll in the Wine prefix (winetricks d3dcompiler_47). With Wine's built-in one the indirect-argument clamp in indirect.rs does not compile (Method 'Load' is not defined on type 'RWByteAddressBuffer') and every indirect execution is dropped.
  4. On the vkd3d-proton side: the build shipped in GE-Proton11-6 (August) crashes the NVIDIA shader compiler in vkCreateComputePipelines at world entry; the November build from Proton Experimental does not. That may be what #23 hit.

One machine-specific note for other Linux/NVIDIA users: driver 620.70/620.73 open modules have a kernel bug (NVIDIA/open-gpu-kernel-modules#1540) that froze this PC during runs until I rebuilt the module with their PR #1542. Not a ztrx problem.

Measured (one run, empty shader cache at start, 1,200 s limit, ended by my limit)

Run length 20 min, stopped by my time limit, process healthy
Kernel NVRM: Xid lines 0
Title's own stop / watchdog none
World reached yes, 2 min 31 s after launch, on a cold shader cache
Frame time in the world min 510 ms, median 536 ms (about 1.9 fps), max 26 s (first frames)
Draws per frame in the world about 4,800
Compute pipelines made / refused by the host 893 / 4
Programs that do not translate (compute / pixel) 4 / 2
a pipeline creation method that is not implemented warnings 29
a pipeline enables the depth bounds test, which its host pipeline leaves out 4
Pipeline library at the end saved bytes=308408 early=1717 made=1615 loaded=89
Video memory use not measured in this run

For comparison, on this same machine the upstream trees I ran over the last day gave 2 to 15 s per frame in the world, and ended within minutes with Xid 109 (context switch timeout) or Xid 13 (MMU fault) in most runs.

Not tested

  • Anything past the first playable scene: the run only presses Enter, so the character never moves.
  • Windows on this card.
  • Second run with the warm cache and the prebuilt pipelines (next).
  • 8 GB and above: this card has 6.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Zettrox/ztrx:issue:6599262808 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/62). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-25T07:12:55Z. --- ## Summary ztrx `90b529f` runs on a **GTX 1660** (6 GB, Turing without RT cores, so below the README's "RTX 20 series or newer") under **Linux with Wine**: one 20-minute run into the prologue's first playable scene with no driver error and no crash, at about 1.9 fps once in the world. The scene is drawn and lit (characters, buildings, sky), with the known dark-shadow look. No game files, images or video attached; numbers and log lines of the tool only. ## Setup - Arch Linux, kernel 6.18 LTS, i7-13700KF, 62 GB RAM - NVIDIA GeForce GTX 1660, 6 GB, driver 620.73.04 (open kernel modules), 32-lane waves only - Wine from GE-Proton11-6, with the `d3d12` / `d3d12core` DLLs of vkd3d-proton taken from Proton Experimental (November build), KDE Wayland / XWayland - Cross-built from Linux for `x86_64-pc-windows-msvc`, `--release --features diagnostics`, toolchain from `rust-toolchain.toml` - Series X mode, scripted Enter key presses for the menus, no pad ## What I had to add for Linux/Wine (nothing else changed) 1. **Marvisak/VIctory#523** (the Linux support PR) merged; it applies cleanly on `90b529f`. 2. **An empty pipeline library created with a null blob.** `pipeline/library.rs` calls `make(&[])`; an empty Rust slice has a non-null dangling pointer, and vkd3d-proton answers `E_INVALIDARG` to a non-null blob of length 0, so the log says `no host pipeline library: pipelines are not kept` on every run and nothing is prebuilt on the next one. Calling `CreatePipelineLibrary` through the vtable with a null pointer and length 0 fixes it (same change as Marvisak/VIctory#1722). I can send it as a PR here if wanted. 3. **Microsoft's `d3dcompiler_47.dll` in the Wine prefix** (`winetricks d3dcompiler_47`). With Wine's built-in one the indirect-argument clamp in `indirect.rs` does not compile (`Method 'Load' is not defined on type 'RWByteAddressBuffer'`) and every indirect execution is dropped. 4. On the vkd3d-proton side: the build shipped in GE-Proton11-6 (August) crashes the NVIDIA shader compiler in `vkCreateComputePipelines` at world entry; the November build from Proton Experimental does not. That may be what #23 hit. One machine-specific note for other Linux/NVIDIA users: driver 620.70/620.73 open modules have a kernel bug (NVIDIA/open-gpu-kernel-modules#1540) that froze this PC during runs until I rebuilt the module with their PR #1542. Not a ztrx problem. ## Measured (one run, empty shader cache at start, 1,200 s limit, ended by my limit) | | | |---|---| | Run length | 20 min, stopped by my time limit, process healthy | | Kernel `NVRM: Xid` lines | 0 | | Title's own stop / watchdog | none | | World reached | yes, 2 min 31 s after launch, on a cold shader cache | | Frame time in the world | min 510 ms, median 536 ms (about 1.9 fps), max 26 s (first frames) | | Draws per frame in the world | about 4,800 | | Compute pipelines made / refused by the host | 893 / 4 | | Programs that do not translate (compute / pixel) | 4 / 2 | | `a pipeline creation method that is not implemented` warnings | 29 | | `a pipeline enables the depth bounds test, which its host pipeline leaves out` | 4 | | Pipeline library at the end | `saved bytes=308408 early=1717 made=1615 loaded=89` | | Video memory use | not measured in this run | For comparison, on this same machine the upstream trees I ran over the last day gave 2 to 15 s per frame in the world, and ended within minutes with `Xid 109` (context switch timeout) or `Xid 13` (MMU fault) in most runs. ## Not tested - Anything past the first playable scene: the run only presses Enter, so the character never moves. - Windows on this card. - Second run with the warm cache and the prebuilt pipelines (next). - 8 GB and above: this card has 6. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
OzeyadO commented 2026-11-25 08:09:12 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by OzeyadO on 2026-11-25T08:06:32Z.


I think the GTX 1660 Super and GTX 1660 Ti should be investigated, as I believe they offer better performance Honestly, I’m surprised these cards weren’t included in the minimum requirements. Why did you choose to list RTX 20 series cards as the minimum requirement right away? I think this should be reconsidered and revised

<!-- greyfinch-sync:Zettrox/ztrx:comment:7156615838 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/62#issuecomment-7156615838). Originally posted by [OzeyadO](https://github.com/OzeyadO) on 2026-11-25T08:06:32Z. --- I think the GTX 1660 Super and GTX 1660 Ti should be investigated, as I believe they offer better performance Honestly, I’m surprised these cards weren’t included in the minimum requirements. Why did you choose to list RTX 20 series cards as the minimum requirement right away? I think this should be reconsidered and revised
ThomasHFWright commented 2026-11-25 08:09:12 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by ThomasHFWright on 2026-11-25T08:06:55Z.


Additional Linux/NVIDIA data point on unchanged 90b529f878a470fec9bf07b7be316bc769a12232: setup renders and accepts input, but this RTX 5090 run failed during world entry. This does not reproduce the successful GTX 1660 result above.

  • Ryzen 7 9800X3D, RTX 5090, NVIDIA 620.73.04, CachyOS Linux 7.3.6, about 30 GiB RAM.
  • Cross-built with pinned Rust 1.98.1 for x86_64-pc-windows-msvc; plain release, no diagnostics feature or source patches.
  • Full GE-Proton11-14 through umu 1.4.3; runtime identifies vkd3d-proton cae8353ed7959c4+ (v3.1-83-gcae8353ed-GE-Proton(dirty)+, applicationVersion 3.2.0).
  • Native Microsoft d3dcompiler_47; VK_NV_raw_access_chains disabled. Fresh prefix/cache/data, offline, read-only game input. No optional RELAY/LATE_WAIT/WIDE_BACK, shader skips, or debug target selection.

Observed sequence:

  1. Account prompts, splash, full setup and legal screens render; targeted keyboard input works.
  2. Loading advances to the prologue title card. No actual world scene was captured.
  3. Last frame summary before the GPU fault: 0.5 fps, 1942 draws/frame, 1732 dropped without a host pipeline (869 being made), 1840 indirect dropped. This is startup compilation, not measured gameplay performance.
  4. Kernel records Xid 13 / Graphics SM Warp Exception / MMU Fault for title-main at 08:04:42 UTC. Wine also reports three thread stack overflows across the run; the title ends with an unhandled 0xc0000005 null write. Launcher exit 5 after 520.82 s, before the 900 s test limit. No manual close.
  5. Four pipeline refusals are accompanied by required WaveSize 64 versus supported 32. The empty-pipeline-library warning mentioned above also appears. Neither is established as the cause of the Xid.

Memory is a confounder: this run used a cgroup with MemoryHigh 10 GiB, MemoryMax 14 GiB, SwapMax 8 GiB. It reached the high threshold and the 8 GiB swap cap; sampled resident peak was about 10 GiB, with no cgroup OOM/OOM-kill events. Minimum host available RAM was about 2.48 GiB. Peak total GPU memory was 11058 MiB including desktop/other clients, not a per-process measurement. I am not calling this memory-independent or a confirmed ztrx regression.

Build/test checks completed separately before the title run: release and diagnostics builds pass; native repository policy passes. The full Windows test suite under distro Wine 11.22 with a separate vkd3d runtime gives 497 passed, 7 failed, 7 ignored. Failures include host/fixture checks plus mesh-pipeline/library/stub-pipeline tests, so that suite is not clean and is not a GE runtime comparison.

Could you share the exact Proton Experimental vkd3d commit used for the successful run? That would make a controlled runtime comparison useful before adding unrelated patches. The pipeline-library null-blob fix is also relevant for caching, but has not been applied in this baseline.

AI-assisted testing on local hardware. No game files, generated shaders, raw title logs or captures attached.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7156623481 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/62#issuecomment-7156623481). Originally posted by [ThomasHFWright](https://github.com/ThomasHFWright) on 2026-11-25T08:06:55Z. --- Additional Linux/NVIDIA data point on unchanged `90b529f878a470fec9bf07b7be316bc769a12232`: setup renders and accepts input, but this RTX 5090 run failed during world entry. This does not reproduce the successful GTX 1660 result above. - Ryzen 7 9800X3D, RTX 5090, NVIDIA 620.73.04, CachyOS Linux 7.3.6, about 30 GiB RAM. - Cross-built with pinned Rust 1.98.1 for `x86_64-pc-windows-msvc`; plain release, no diagnostics feature or source patches. - Full GE-Proton11-14 through umu 1.4.3; runtime identifies vkd3d-proton `cae8353ed7959c4+` (`v3.1-83-gcae8353ed-GE-Proton(dirty)+`, applicationVersion 3.2.0). - Native Microsoft d3dcompiler_47; `VK_NV_raw_access_chains` disabled. Fresh prefix/cache/data, offline, read-only game input. No optional RELAY/LATE_WAIT/WIDE_BACK, shader skips, or debug target selection. Observed sequence: 1. Account prompts, splash, full setup and legal screens render; targeted keyboard input works. 2. Loading advances to the prologue title card. No actual world scene was captured. 3. Last frame summary before the GPU fault: 0.5 fps, 1942 draws/frame, 1732 dropped without a host pipeline (869 being made), 1840 indirect dropped. This is startup compilation, **not measured gameplay performance**. 4. Kernel records Xid 13 / Graphics SM Warp Exception / MMU Fault for `title-main` at 08:04:42 UTC. Wine also reports three thread stack overflows across the run; the title ends with an unhandled `0xc0000005` null write. Launcher exit 5 after 520.82 s, before the 900 s test limit. No manual close. 5. Four pipeline refusals are accompanied by required WaveSize 64 versus supported 32. The empty-pipeline-library warning mentioned above also appears. Neither is established as the cause of the Xid. Memory is a confounder: this run used a cgroup with MemoryHigh 10 GiB, MemoryMax 14 GiB, SwapMax 8 GiB. It reached the high threshold and the 8 GiB swap cap; sampled resident peak was about 10 GiB, with no cgroup OOM/OOM-kill events. Minimum host available RAM was about 2.48 GiB. Peak total GPU memory was 11058 MiB including desktop/other clients, not a per-process measurement. I am not calling this memory-independent or a confirmed ztrx regression. Build/test checks completed separately before the title run: release and diagnostics builds pass; native repository policy passes. The full Windows test suite under distro Wine 11.22 with a separate vkd3d runtime gives **497 passed, 7 failed, 7 ignored**. Failures include host/fixture checks plus mesh-pipeline/library/stub-pipeline tests, so that suite is not clean and is not a GE runtime comparison. Could you share the exact Proton Experimental vkd3d commit used for the successful run? That would make a controlled runtime comparison useful before adding unrelated patches. The pipeline-library null-blob fix is also relevant for caching, but has not been applied in this baseline. AI-assisted testing on local hardware. No game files, generated shaders, raw title logs or captures attached.
Impre-visible commented 2026-11-25 09:08:57 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by Impre-visible on 2026-11-25T08:10:10Z.


@ThomasHFWright the runtime of the successful run:

  • d3d12.dll / d3d12core.dll copied from Steam's Proton - Experimental, build experimental-11.0-20261112 into a GE-Proton11-6 prefix. The log reports vkd3d-proton - applicationVersion: 3.2.0; it does not print the commit and I have not extracted it from the DLL, so I cannot give you the exact hash.
  • VK_NV_raw_access_chains: left at the default, I did not disable it and did not check whether it is in use.
  • Memory: cgroup MemoryMax=40G, swap 0, on a 62 GB machine, so no memory pressure here. Your 10 GiB high threshold with swap in use is a real difference: world entry is the heaviest moment (this run's log shows over 10 GB of texture refreshes per frame for a few frames there).

Since then, on the same tree: 3 more 20-minute runs. Two ran to the limit with no Xid. One ended about 3 minutes after launch, 5 frames after world entry, with the title's own unhandled null write and no Xid in the kernel log: so 3 of 4 clean here, and world entry is the fragile point on this card too.

Two details from these logs that match yours:

  • The same 4 compute pipelines are refused for Required WaveSize range [64, 64]. Reading the translator: all four use LDS in thread groups larger than 32 and have a divergent region that both reads and writes LDS, which the 32-lane path declines (lds_meetings), and emit() then returns the 64-lane form without a warning. VICTORY_WAVE_WIDE=1 translates two of the four in a dry run; not tried in the title.
  • In the steady scene the frame summary still counts about 346 draws per frame dropped without a host pipeline, out of about 4,840. I have not broken those down by reason yet.

On the Xid 13: on upstream trees I had MMU faults on this card that stopped once root-view (buffer address) accesses were bounded. I have not seen one on 90b529f, so I cannot say it is the same thing.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Zettrox/ztrx:comment:7156691789 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/62#issuecomment-7156691789). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-25T08:10:10Z. --- @ThomasHFWright the runtime of the successful run: - `d3d12.dll` / `d3d12core.dll` copied from Steam's **Proton - Experimental, build `experimental-11.0-20261112`** into a GE-Proton11-6 prefix. The log reports `vkd3d-proton - applicationVersion: 3.2.0`; it does not print the commit and I have not extracted it from the DLL, so I cannot give you the exact hash. - `VK_NV_raw_access_chains`: left at the default, I did not disable it and did not check whether it is in use. - Memory: cgroup `MemoryMax=40G`, swap 0, on a 62 GB machine, so no memory pressure here. Your 10 GiB high threshold with swap in use is a real difference: world entry is the heaviest moment (this run's log shows over 10 GB of texture refreshes per frame for a few frames there). Since then, on the same tree: 3 more 20-minute runs. Two ran to the limit with no `Xid`. One ended about 3 minutes after launch, 5 frames after world entry, with the title's own unhandled null write and no `Xid` in the kernel log: so 3 of 4 clean here, and world entry is the fragile point on this card too. Two details from these logs that match yours: - The same 4 compute pipelines are refused for `Required WaveSize range [64, 64]`. Reading the translator: all four use LDS in thread groups larger than 32 and have a divergent region that both reads and writes LDS, which the 32-lane path declines (`lds_meetings`), and `emit()` then returns the 64-lane form without a warning. `VICTORY_WAVE_WIDE=1` translates two of the four in a dry run; not tried in the title. - In the steady scene the frame summary still counts about 346 draws per frame dropped without a host pipeline, out of about 4,840. I have not broken those down by reason yet. On the `Xid 13`: on upstream trees I had MMU faults on this card that stopped once root-view (buffer address) accesses were bounded. I have not seen one on `90b529f`, so I cannot say it is the same thing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ThomasHFWright commented 2026-11-25 09:08:57 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by ThomasHFWright on 2026-11-25T08:27:13Z.


Thanks for the build identifier. I downloaded experimental-11.0-20261112-x86_64 into a separate test directory. Its vkd3d version file identifies 2576c0b4adfae4a76d4c89d8cf5ec4f5ca795cff, and the title log confirms that build loaded.

A second cold-cache run changed only the D3D12 DLL pair (same GE-Proton11-14 host, unchanged ztrx executable, fresh prefix/cache/data, same extension override and memory caps). It reproduced Xid 13 / MMU fault, three Wine stack overflows and the same title null-write access violation; exit 5 after 355.83 s. Setup rendered; no world scene captured. Startup menu timing differed, so the elapsed times are not a performance comparison.

The memory confounder remains: the 10 GiB high threshold and almost all 8 GiB allowed swap were reached; no OOM/kill events; minimum available host RAM about 1.97 GiB. New DLLs alone did not resolve this setup. Separate GPU/shader tests with the new pair returned the same 324 passed / 3 failed / 3 ignored.

One concrete clue in both runtime logs: vkd3d accepts the current PORTABLE_VIEWS + 1 probe, but rejects the real 1,507,328-descriptor request with max 1,041,451. The clamp is then set by the late fallback, after early translations. This makes #50's larger probe relevant; #20 still probes 1,000,001. I am testing #50 separately next, without combining shader changes. This is a hypothesis for the GPU fault, not a demonstrated fix yet.

For reproducibility, SHA256 of the downloaded x64 DLLs:

  • d3d12.dll: fc2bbef02509fb11c334cc96dd211f64def94bb7b4eb82082a4808e6e0549543
  • d3d12core.dll: 9356501320114773be279506644aabd9a1717ff451d480ac802a4fd4e94b2576
<!-- greyfinch-sync:Zettrox/ztrx:comment:7157043010 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/62#issuecomment-7157043010). Originally posted by [ThomasHFWright](https://github.com/ThomasHFWright) on 2026-11-25T08:27:13Z. --- Thanks for the build identifier. I downloaded `experimental-11.0-20261112-x86_64` into a separate test directory. Its vkd3d version file identifies **2576c0b4adfae4a76d4c89d8cf5ec4f5ca795cff**, and the title log confirms that build loaded. A second cold-cache run changed only the D3D12 DLL pair (same GE-Proton11-14 host, unchanged ztrx executable, fresh prefix/cache/data, same extension override and memory caps). It reproduced **Xid 13 / MMU fault**, three Wine stack overflows and the same title null-write access violation; exit 5 after 355.83 s. Setup rendered; no world scene captured. Startup menu timing differed, so the elapsed times are not a performance comparison. The memory confounder remains: the 10 GiB high threshold and almost all 8 GiB allowed swap were reached; no OOM/kill events; minimum available host RAM about 1.97 GiB. New DLLs alone did not resolve this setup. Separate GPU/shader tests with the new pair returned the same 324 passed / 3 failed / 3 ignored. One concrete clue in **both** runtime logs: vkd3d accepts the current `PORTABLE_VIEWS + 1` probe, but rejects the real 1,507,328-descriptor request with **max 1,041,451**. The clamp is then set by the late fallback, after early translations. This makes #50's larger probe relevant; #20 still probes 1,000,001. I am testing #50 separately next, without combining shader changes. This is a hypothesis for the GPU fault, not a demonstrated fix yet. For reproducibility, SHA256 of the downloaded x64 DLLs: - d3d12.dll: `fc2bbef02509fb11c334cc96dd211f64def94bb7b4eb82082a4808e6e0549543` - d3d12core.dll: `9356501320114773be279506644aabd9a1717ff451d480ac802a4fd4e94b2576`
Impre-visible commented 2026-11-25 09:08:57 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by Impre-visible on 2026-11-25T08:36:18Z.


@ThomasHFWright thanks, that narrows it. Three comparisons from the log of my successful run (GTX 1660), same DLL pair:

  • Same DLLs: the SHA256 of my d3d12.dll and d3d12core.dll are identical to the two you posted, so 2576c0b is the commit I ran.
  • The Wine stack overflows are not the difference: my 20-minute clean run also logs 4 virtual_setup_exception stack overflow lines (one per thread, at the same code address) and carries on.
  • The descriptor rejection is a difference: my log has no rejected descriptor-heap request at all, neither the max 1,041,451 text nor any failed heap creation. vkd3d reports VK_EXT_descriptor_heap enabled (32 / 32 size, raw uav counter on) at start on this card. If your log does not have that line, the two cards are on different vkd3d descriptor paths, and the 1,041,451 limit would only exist on yours. That fits your hypothesis.

So for your setup #50 looks like the right thing to test first; I have no measurement of it here because this card never hits that limit.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Zettrox/ztrx:comment:7157244012 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/62#issuecomment-7157244012). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-25T08:36:18Z. --- @ThomasHFWright thanks, that narrows it. Three comparisons from the log of my successful run (GTX 1660), same DLL pair: - **Same DLLs**: the SHA256 of my `d3d12.dll` and `d3d12core.dll` are identical to the two you posted, so `2576c0b` is the commit I ran. - **The Wine stack overflows are not the difference**: my 20-minute clean run also logs 4 `virtual_setup_exception stack overflow` lines (one per thread, at the same code address) and carries on. - **The descriptor rejection is a difference**: my log has no rejected descriptor-heap request at all, neither the `max 1,041,451` text nor any failed heap creation. vkd3d reports `VK_EXT_descriptor_heap enabled (32 / 32 size, raw uav counter on)` at start on this card. If your log does not have that line, the two cards are on different vkd3d descriptor paths, and the 1,041,451 limit would only exist on yours. That fits your hypothesis. So for your setup #50 looks like the right thing to test first; I have no measurement of it here because this card never hits that limit. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ThomasHFWright commented 2026-11-25 11:10:49 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by ThomasHFWright on 2026-11-25T10:37:48Z.


Follow-up on this RTX 5090 / NVIDIA 620.73.04 / CachyOS setup: the descriptor-heap hypothesis needs a correction. Our original and current logs do report VK_EXT_descriptor_heap enabled (32 / 32 size, raw uav counter on). The descriptor allocation rejection still occurs. This is not simply enabled on the GTX 1660 versus disabled here.

Further local comparisons use GE-Proton11-14 + the same Experimental D3D12 pair (2576c0b4adfae4a76d4c89d8cf5ec4f5ca795cff), default raw-access-chain support, offline title execution and read-only game input:

  • #50 alone was reported in https://github.com/Zettrox/ztrx/pull/50#issuecomment-7157331070: early clamp works, but world entry still faults.
  • #50 + both #36 commits (6615c72, 1402bf7), local integration bc3f39a6b73202ead3dce250aac5ce77faa380ca: the wave32 flag shader is no longer refused (four refusals become three). No world scene captured; Xid 13 / Graphics SM Warp Exception / MMU fault followed by the title null-write crash, exit 5.
  • Disabling VK_EXT_descriptor_heap on that combined tree also produced Xid 13 / MMU fault. This did not resolve the failure.
  • Subsequent serialized submission diagnostics and selective compute skips moved the last outstanding command list. One attempt lasted longer, but none showed world geometry and all faulted. Those lists also contain copies/uploads and other work, so this does not isolate a culpable shader. I stopped accumulating skips.
  • Restoring all shaders and trying VICTORY_CARD_BUFFERS=0 also reproduced the fault.

The combined tree passes release/diagnostics builds and native asset policy. Separately, GPU/shader unit tests under distro Wine 11.22 + the Experimental native D3D12 DLLs: 328 passed, 3 failed, 3 ignored; all four added #36 tests pass. The failures match the baseline: mesh-pipeline library loading, rejected pipeline-library blob, and stub-pipeline creation. This is not a clean suite, nor a full GE-host test run.

RUST_MIN_STACK=16777216 did not eliminate Wine stack-overflow messages; your successful run also has these, so I am not treating them as the differentiator. Memory remains unresolved: 30 GiB host, cgroup high 10 GiB / max 14 GiB / swap 8 GiB, often reaching the swap cap without OOM/kill events. Trial durations differ with caches and instrumentation and should not be interpreted as performance comparisons.

I also tested #84 (082f8b1) on that #50+#36 integration in a separate checkout, with fresh cache/prefix, all shaders restored and VICTORY_TEXTURE_MIP_DROP=2 confirmed active. Its seven new GPU tests pass (GPU suite 124 passed / the same 2 failed / 1 ignored), diagnostics build and policy pass. The title still produced Xid 13 / MMU fault during world entry and exit 5 after 129.98 s, with no world geometry captured. Sampled cgroup resident peak was 7.40 GiB and swap 7.85 GiB, no OOM/kill, minimum host available about 1.63 GiB. Peak total GPU memory was 12050 MiB including desktop/other clients. That run does not establish memory independence or a controlled VRAM saving; it only shows mip drop did not get this setup into visible gameplay.

AI-assisted testing on local hardware. Aggregate observations only; no game files, generated shaders, raw title logs or captures attached.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7159956950 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/62#issuecomment-7159956950). Originally posted by [ThomasHFWright](https://github.com/ThomasHFWright) on 2026-11-25T10:37:48Z. --- Follow-up on this RTX 5090 / NVIDIA 620.73.04 / CachyOS setup: the descriptor-heap hypothesis needs a correction. Our original and current logs **do** report `VK_EXT_descriptor_heap enabled (32 / 32 size, raw uav counter on)`. The descriptor allocation rejection still occurs. This is not simply enabled on the GTX 1660 versus disabled here. Further local comparisons use GE-Proton11-14 + the same Experimental D3D12 pair (`2576c0b4adfae4a76d4c89d8cf5ec4f5ca795cff`), default raw-access-chain support, offline title execution and read-only game input: - #50 alone was reported in https://github.com/Zettrox/ztrx/pull/50#issuecomment-7157331070: early clamp works, but world entry still faults. - #50 + both #36 commits (`6615c72`, `1402bf7`), local integration `bc3f39a6b73202ead3dce250aac5ce77faa380ca`: the wave32 flag shader is no longer refused (four refusals become three). No world scene captured; Xid 13 / Graphics SM Warp Exception / MMU fault followed by the title null-write crash, exit 5. - Disabling `VK_EXT_descriptor_heap` on that combined tree also produced Xid 13 / MMU fault. This did not resolve the failure. - Subsequent serialized submission diagnostics and selective compute skips moved the last outstanding command list. One attempt lasted longer, but none showed world geometry and all faulted. Those lists also contain copies/uploads and other work, so this does **not** isolate a culpable shader. I stopped accumulating skips. - Restoring all shaders and trying `VICTORY_CARD_BUFFERS=0` also reproduced the fault. The combined tree passes release/diagnostics builds and native asset policy. Separately, GPU/shader unit tests under distro Wine 11.22 + the Experimental native D3D12 DLLs: **328 passed, 3 failed, 3 ignored**; all four added #36 tests pass. The failures match the baseline: mesh-pipeline library loading, rejected pipeline-library blob, and stub-pipeline creation. This is not a clean suite, nor a full GE-host test run. `RUST_MIN_STACK=16777216` did not eliminate Wine stack-overflow messages; your successful run also has these, so I am not treating them as the differentiator. Memory remains unresolved: 30 GiB host, cgroup high 10 GiB / max 14 GiB / swap 8 GiB, often reaching the swap cap without OOM/kill events. Trial durations differ with caches and instrumentation and should not be interpreted as performance comparisons. I also tested #84 (`082f8b1`) on that #50+#36 integration in a separate checkout, with fresh cache/prefix, all shaders restored and `VICTORY_TEXTURE_MIP_DROP=2` confirmed active. Its seven new GPU tests pass (GPU suite 124 passed / the same 2 failed / 1 ignored), diagnostics build and policy pass. The title still produced Xid 13 / MMU fault during world entry and exit 5 after 129.98 s, with no world geometry captured. Sampled cgroup resident peak was 7.40 GiB and swap 7.85 GiB, no OOM/kill, minimum host available about 1.63 GiB. Peak **total** GPU memory was 12050 MiB including desktop/other clients. That run does not establish memory independence or a controlled VRAM saving; it only shows mip drop did not get this setup into visible gameplay. AI-assisted testing on local hardware. Aggregate observations only; no game files, generated shaders, raw title logs or captures attached.
Impre-visible commented 2026-11-25 11:10:49 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by Impre-visible on 2026-11-25T10:40:07Z.


@ThomasHFWright a correction to what I wrote above about the Wine stack overflows, because I have now traced them and they are a real defect (not your Xid 13, but worth knowing on any Linux setup).

What they are. Each virtual_setup_exception stack overflow line is one of the victory-pipelines-N worker threads dying inside CreateComputePipelineState. On this tree it is always the same 4 compute pipelines; they stay "being made" for the whole run (the frame line's (4 being made) never goes down), the worker thread is lost, and every frame spends its whole 500 ms pipeline wait budget on them. A larger stack does not help (I tried 64 MiB on those threads; your RUST_MIN_STACK result agrees): it is unbounded recursion.

Where. I built dxil-spirv natively (HEAD 061225d) and ran it on the translated shaders saved with VICTORY_SHADER_SAVE. Of 2,568 saved translations, 2,564 convert and pass --validate, and exactly those 4 crash. Backtrace: Converter::Impl::convert_entry_point → CFGStructurizer::flatten_subgroup_shuffles → recompute_cfg → about 174,000 frames alternating CFGNode::recompute_immediate_dominator / CFGNode::find_common_dominator. The trigger is a shader that uses WaveReadLaneAt (so flatten_subgroup_shuffles runs, and its recompute_cfg sees the raw CFG before rewrite_multiple_back_edges) together with a loop header that has two or more back edges, or one block branching back to two loop headers. The input is valid; this looks like a dxil-spirv bug, still present at its HEAD.

Translator-side avoidance, measured. Emitting every loop with a single back edge (extra latches go through new empty blocks, a multi-latch header gets one latch block that carries its phis) changes 27 of the 2,568 modules, leaves the other 2,541 byte-identical, and all 2,568 then convert and validate natively. In the title on this card: 0 stack-overflow lines and (0 being made), where every earlier run had 4 of each. One unit test from a synthetic program; cargo test -p victory-shader 173 passed.

What it does not do. No speed gain in the steady scene here (the 500 ms wait was on a recording thread, not on the critical path: 522–542 ms per frame before and after), and I have no evidence it relates to your MMU fault. Not tested on AMD; a comment in the emitter says a nearby loop shape once hung AMD's driver, so that needs an AMD run.

If the maintainer wants it, I can open a PR with the emitter change and its test.

Also measured today on this card, in case it helps others: VICTORY_RELAY=2 and VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 gave no frame-time gain in the first playable scene (521–547 ms against 526–535 ms), and one of two VICTORY_RELAY=2 runs ended with Xid 109.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Zettrox/ztrx:comment:7160010360 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/62#issuecomment-7160010360). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-25T10:40:07Z. --- @ThomasHFWright a correction to what I wrote above about the Wine stack overflows, because I have now traced them and they are a real defect (not your `Xid 13`, but worth knowing on any Linux setup). **What they are.** Each `virtual_setup_exception stack overflow` line is one of the `victory-pipelines-N` worker threads dying inside `CreateComputePipelineState`. On this tree it is always the same 4 compute pipelines; they stay "being made" for the whole run (the frame line's `(4 being made)` never goes down), the worker thread is lost, and every frame spends its whole 500 ms pipeline wait budget on them. A larger stack does not help (I tried 64 MiB on those threads; your `RUST_MIN_STACK` result agrees): it is unbounded recursion. **Where.** I built dxil-spirv natively (HEAD `061225d`) and ran it on the translated shaders saved with `VICTORY_SHADER_SAVE`. Of 2,568 saved translations, 2,564 convert and pass `--validate`, and exactly those 4 crash. Backtrace: `Converter::Impl::convert_entry_point` → `CFGStructurizer::flatten_subgroup_shuffles` → `recompute_cfg` → about 174,000 frames alternating `CFGNode::recompute_immediate_dominator` / `CFGNode::find_common_dominator`. The trigger is a shader that uses `WaveReadLaneAt` (so `flatten_subgroup_shuffles` runs, and its `recompute_cfg` sees the raw CFG before `rewrite_multiple_back_edges`) together with a loop header that has two or more back edges, or one block branching back to two loop headers. The input is valid; this looks like a dxil-spirv bug, still present at its HEAD. **Translator-side avoidance, measured.** Emitting every loop with a single back edge (extra latches go through new empty blocks, a multi-latch header gets one latch block that carries its phis) changes 27 of the 2,568 modules, leaves the other 2,541 byte-identical, and all 2,568 then convert and validate natively. In the title on this card: 0 stack-overflow lines and `(0 being made)`, where every earlier run had 4 of each. One unit test from a synthetic program; `cargo test -p victory-shader` 173 passed. **What it does not do.** No speed gain in the steady scene here (the 500 ms wait was on a recording thread, not on the critical path: 522–542 ms per frame before and after), and I have no evidence it relates to your MMU fault. Not tested on AMD; a comment in the emitter says a nearby loop shape once hung AMD's driver, so that needs an AMD run. If the maintainer wants it, I can open a PR with the emitter change and its test. Also measured today on this card, in case it helps others: `VICTORY_RELAY=2` and `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1` gave no frame-time gain in the first playable scene (521–547 ms against 526–535 ms), and one of two `VICTORY_RELAY=2` runs ended with `Xid 109`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Zettrox/ztrx#62
No description provided.