Repository navigation
Conversation
…3d-proton and DXVK - docs/linux.md: cross-build, DXC, Wine choice, prefix, patched vkd3d-proton, DXVK, running, known state - scripts/linux: vkd3d-proton v3.1 patch and build, prefix setup, run - preflight (Wine only): error when d3d12core.dll holds vkd3d-proton's heap vtable assertion (ivall#241), warning when dxgi.dll is not DXVK's
Wine and Proton have no MSOpusDecoder.dll, so with xcl-dev#294 XCL loads libopus from an opus.dll there. build-opus.sh downloads the official libopus 1.5.2 release, checks its SHA-256 and builds opus.dll with mingw-w64; docs/linux.md says where to put it (XCL_OPUS_DIR or next to xcl.exe) and how to tell which decoder xcl.log reports.
scripts/smoke.ps1 needs Windows (Start-Process, Get-CimInstance), so a contributor on Linux cannot make the xcl-smoke blocks a PR that changes the runtime needs. smoke.sh runs the title the same way under Proton's Wine (XCL_RUN_SECONDS, XCL_ACTIVITY, networking off), reads XCL's log and prints the same block; the GPU name comes from the log, and peak commit reads 0 under Wine. docs/linux.md says how to use it.
9c4a3fc to
f02f377
Compare
…ail title's compute programs (ivall#611) vkd3d-proton v3.1's dxil-spirv (8b48f0e) cannot structure 20 of the 782 DXIL programs a retail title compiled in its world load: rewrite_invalid_real_loop_breaks() dispatches the same loop every round without end (one more block and a leaked reachability bitset each time, 26 GB at 300 s), or a transform leaves a loop header with a second back edge (an assert compiled out in release) and the dominator recomputation recurses until the stack runs out. The title's thread stays in the conversion until its GPU watchdog ends it. dxil-spirv's master (53aac41) converts all 782 to SPIR-V that passes validation, the slowest in 7.6 s, so build-vkd3d-proton.sh moves the submodule there (DXIL_SPIRV_REF; empty keeps the tag's). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f02f377 to
2f81a69
Compare
|
Test report from RDNA3 / RADV: dxil-spirv Setup
Stock dxil-spirv (
(Two runs per row. The one frame left over 100 ms is the ~14 s load after the intro.)
dxil-spirv
A crash that comes from my builds, not from the dxil-spirv change
Not tested: this PR's script itself (v3.1 + AI use: Claude Code (Claude Opus 5.5) ran the runs, wrote the shim and the builds, and wrote this report. |
|
First run of this PR's vkd3d-proton on the newer retail title, on Linux + NVIDIA. Tested
Not tested: AI use: Claude Code (Claude Opus 5.5) read the logs and the title's call site, built the branches, ran the tests and the scripted runs, and wrote this report. The runs are on my machine, on the hardware above. |
|
I reproduced the atomics failure from #175 on an RTX 5060 Laptop GPU with driver 615.78.08, Bazzite 44 and Proton Experimental I rebuilt the same vkd3d-proton source with dxil-spirv AI assistance by OpenAI Codex for the build, test and report. Model GPT-6.2-Sol (high). |
|
Linux/Wine test (NVIDIA laptop, Ubuntu-24.04-based distro): the build script stops on an older mingw-w64 Written by Claude (claude-opus-5-5) through Hermes, agent of the account owner, posted with his permission. Every result below is from a Linux/Wine run, not a Windows Setup
Build failure
#ifndef PATHCCH_NONE
#define PATHCCH_NONE 0 /* older mingw-w64 pathcch.h */
#endifIt could go into Runs with the built
|
crastinator
left a comment
There was a problem hiding this comment.
Tested on RDNA2 under Wine (RADV). The newer dxil-spirv also fixes #1246: the crash in jumps_to_outer_loop_heads_are_structured, added to main in b8b1f49.
Tested (this PR's build-vkd3d-proton.sh at head 2f81a69, used with main 930e8b4)
- AMD Radeon RX 6700 XT (RDNA2, RADV NAVI22, Mesa 26.3.1), Ryzen 7 5700X, Linux 7.3.5 (CachyOS). Proton Experimental 11.0-20261112's Wine, DXVK v3.1.1-209
dxgi, DXC 1.9.2609.5,opus.dllfrom #257'sbuild-opus.sh. The script ran with llvm-mingw 20261117 (clang 23.1.6) as the mingw-w64 and meson 1.12.1. It builds cleanly, and dxil-spirv ends up at53aac418. XCL cross-built forx86_64-pc-windows-msvc, Rust 1.99.1, debug. jumps_to_outer_loop_heads_are_structuredalone: v3.1's dxil-spirv fails 3/3 (exit status 5, access violation indxil_spv::CFGNode::find_common_post_dominatorunderCFGStructurizer::rewrite_invalid_real_loop_breaks; stack in #1246). With this PR's build it passes 3/3.cargo test -p xcl --lib -- --test-threads=1with this PR's build: 702 passed, 5 failed, 21 ignored. The 5 are Wine-lane failures with open PRs (#530 ×2, #676, #890 ×2). With v3.1's dxil-spirv, the same run dies at that test.cargo test --workspace --no-fail-fast -- --test-threads=4(XCL_REQUIRE_GPU=wave64,mesh, 0 SKIPPED): 735 passed, 16 failed, 41 ignored. 8 of the failures arejumps_to_outer_loop_heads_are_structuredgetting a device removal in parallel and taking 7 D3D12.X tests down with it. That still happens with this build; details in #1246.
Not tested
- The retail title (no regression run). NVIDIA. GCC mingw-w64 (I used llvm-mingw).
AI use
- Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report; I checked the results.
|
Linux retest of the #775 pin on 77 compute shaders from an existing XCL cache On CachyOS x86-64 and a Ryzen 7 7800X3D, I built vkd3d-proton I also built native Linux Release CLIs at the old and new dxil-spirv pins. Each ran
A second pass on the old pin reproduced all three failures. This confirms a converter improvement on inputs from our run. A separate live XCL run with the old DLLs hit an AMD compute-queue timeout and a MODE1 reset. Whether these DLLs change that result remains untested. The CLI comparison ran on CPU only and did not launch the title or create Vulkan pipelines. AI use. OpenAI Codex (GPT-6, exact variant undisclosed) built the binaries, ran the comparison and wrote this report. |
|
Linux + NVIDIA test of Setup: Fedora 44 (kernel 7.2.9), MinGW gcc 16.2.1, meson 1.11.2, ninja 1.13.2, Ryzen 9 9950X3D, 62 GB RAM. The script and patch from
Tested
With this pull request's kit the two compiles that were not finished had started at 113.2 and 111.4 s, 7 to 9 s before the run ended. Presents stopped at 82.1 to 96.2 s with every kit; no run reached the title's watchdog by 120 s. The machine was busy with other work (load 9 to 12); the first run with this pull request's kit was made with about 7 GB of memory available, and a third run of our kit that started with 3 GB available is left out (its first record's build started at 103.3 s and had not finished). Natively dxil-spirv converts the first record's DXIL in 0.3 s at
The three that convert everything give the same SPIR-V, byte for byte, on all 2,976. Read
Not tested: memory use with v3.1's own dxil-spirv (#611 describes growth; here the threads overflowed their stacks instead, and Wine reports no commit figure); AI use: two Claude Code sessions (Claude Fable 5.2) on the same machine: one built the kits and ran the native conversions, the other read the commit, ran the title and wrote this comment from both. Posted without review by a person: the account owner was away and reads replies later. |
|
Follow-up to my test above, on the CPU only: with the pin moved to dxil-spirv Setup: Fedora 44, gcc 16.2.1, Ryzen 9 9950X3D, no GPU. dxil-spirv's CLI built natively (Release) at each commit, with vkd3d-proton's options. One pass each, 1 to 8 programs at a time on a machine doing other work; row one was timed about three hours before the others. Seconds are elapsed per program, summed.
Not tested: the DLLs the script built, under Wine or in the title; AMD and Intel; whether the branch's changes are right beyond AI use: Claude Code (Claude Fable 5.2) built these, ran the conversions and wrote this comment. Posted without review by a person: the account owner was away and reads replies later. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Since #2120 (merged today) this script's dxil-spirv gets direct DXIL without Setup: Fedora 44, Ryzen 9 9950X3D, no GPU. The six programs' DXIL from
Not tested: #1860 with this pin; AI use: Claude Code (Claude Opus 5.5) ran these conversions and wrote this comment. Posted without review by a person: the account owner was away and reads replies later. |
Stacked on #257 (its 3 commits, rebased on current
main, are the first ones here; only the last commit is this PR). Fixes #611.On Linux, the retail title (1.0.2.1) stops presenting during world loading while a title thread is inside vkd3d-proton's DXIL → SPIR-V conversion of a translated compute program. Its memory grows until the machine runs out, or the title's GPU watchdog (
+0x23cf683) ends it first. The cause is vkd3d-proton v3.1's dxil-spirv (8b48f0e). Current dxil-spirvmasterhas fixed it, sobuild-vkd3d-proton.shnow builds v3.1 with its dxil-spirv submodule at53aac41.(An earlier version of this PR patched v3.1's dxil-spirv to give up on these programs. It is replaced: refusing them only moved the crash, because the title needs their results.)
What goes wrong in v3.1's dxil-spirv: 20 of the 782 DXIL programs in XCL's cache after a world load fail. Two of them, traced with gdb, perf and temporary logging:
d0771dbcd87e4d6d(2e0055c25f49848a_Compute, the one #611 names)while (rewrite_invalid_real_loop_breaks()) structurize(1);never ends. Every round dispatches the same loop again (header339.pred, merge52.merge, 1 100+ rounds), adds a block (3 942 → 7 187 in 60 s), rebuilds the CFG, and leaves that round'sreachability_bitsetin the thread allocator, which never frees. Native CLI: still running at 300 s, 26 GB. In the title: 19 GB and swap full.9f05e0a08e548fddvisit()asserts against that, but release builds compile the assert out, so the edge stays inpred/succas a forward edge. The dominator recomputation then recurses around a 12-block cycle until the stack runs out (an assert build stops atcfg_structurizer.cpp:3452). Likely the "two blobs crash the CLI (exit 139)" in #611, and the same crash as dxil-spirv's #320.What is in it
scripts/linux/build-vkd3d-proton.sh:vkd3d-proton-xcl.patch, it fetches the dxil-spirv submodule's origin and checks outDXIL_SPIRV_REF(default53aac41815f8203dff4e081969438ed5063dbff3; empty keeps the tag's), then updates its submodules.apply_oncefunction.docs/linux.md: says so in the vkd3d-proton section.v3.1 builds against that dxil-spirv commit unchanged: same meson subproject, no vkd3d-proton source change.
Tested
VKD3D_CONFIG=ignore_shared_fence,XCL_NETWORK=0, no network.build-vkd3d-proton.shon an empty work dir: clone, patch, dxil-spirv at53aac418,d3d12.dll+d3d12core.dll. A second run on the same dir: "already applied", same commit, built.--bindless --validate, 120 s limit per program), all 782 DXIL programs of the title's cache:8b48f0e53aac41bbdb276f717dd7a8)ExecuteIndirect; a file-driven button-press helper used to walk the menus),XCL_BIG_COMPILES=6(D3D12.X: XCL_BIG_COMPILES sets how many big compute pipelines the driver builds at once #820).0x7c007c00fc00fc00, then a read at-1).53aac41: no thread is in dxil-spirv for long, no pipeline is refused (0the driver rejected the compute PSO), and 2 383 of 16 046 dispatches were skipped at the stop (still building).D3D12 device removed: 0x887a0005, reported in D3D12.X: preserve recorded positions of 64-bit waits #708'sWait64BitValueX gate on queue. No Xid in the kernel log. That is the next obstacle, not part of this PR.xcl_testtitleunder the same Wine with the new DLLs: 48 passed, 2 failed (user32 cloaking, XAudio2 XMA2 GetState: the Wine results of Linux (Wine + vkd3d-proton): a retail game reaches whatmainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175), the same as with v3.1's.Regression run
This PR only changes
scripts/linuxanddocs/linux.md; the runtime changes in the diff are #257's. Blocks from #257'sscripts/linux/smoke.shunder Wine (GE-Proton 11-14, vkd3d-proton built by this PR's script), 60 s at the title's first screen with no input.title:is the SHA-256 prefix of the lower-cased folder name, as #704'ssmoke_title.ps1makes it.peak commitis 0 because Wine reports no process commit.main:
PR:
Not tested
AI use
🤖 Generated with Claude Code