diff options
| author | AndréLanD <andreviniciusmerlia@gmail.com> | 2026-11-25 18:25:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-25 18:25:55 -0300 |
| commit | 18d1851cf3cb589f94bddecc2cd3e64f28426a08 (patch) | |
| tree | aec05a2f7b9e0f963a71f5179c0e829efb36bd3d /docs/boot.md | |
| parent | f9642954fc6f7347f41595523e6f3a2106c32864 (diff) | |
| parent | 82c5a2ed22db314ab62d84af168afc4ebb693ddb (diff) | |
Merge pull request #273 from ubiquitarianism/old-pr/10005
docs/boot.md: what a Wine prefix has to supply, and the quiet failure without it
Diffstat (limited to 'docs/boot.md')
| -rw-r--r-- | docs/boot.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/boot.md b/docs/boot.md index 2a695abeb..4bc580c75 100644 --- a/docs/boot.md +++ b/docs/boot.md | |||
| @@ -137,6 +137,35 @@ Useful switches: | |||
| 137 | for one run (it wins over `--overlay`). For a fresh first-run profile, also set `LEONIDA_SAVE_DIR` to a separate | 137 | for one run (it wins over `--overlay`). For a fresh first-run profile, also set `LEONIDA_SAVE_DIR` to a separate |
| 138 | empty directory for the local game-save provider. | 138 | empty directory for the local game-save provider. |
| 139 | 139 | ||
| 140 | ### Under Wine on Linux | ||
| 141 | |||
| 142 | The prefix has to supply a `d3d12.dll` that exports `D3D12SerializeVersionedRootSignature`, because the executable | ||
| 143 | imports it. Wine's own `d3d12.dll` does not answer that export for the runtime's shim, and the failure is quiet: | ||
| 144 | the D3D12 trace ends at about 1,658 calls, the startup trace ends in an access violation inside the executable, | ||
| 145 | and the one line that names the cause is | ||
| 146 | `[rt] d3d12_xs: host d3d12.dll has no D3D12SerializeVersionedRootSignature`. The run never reaches | ||
| 147 | `CreateRootSignature`. | ||
| 148 | |||
| 149 | Copying the DLLs a Proton prefix installs is not enough on its own: Wine keeps preferring its own copy next to | ||
| 150 | them. Name them in the overrides. | ||
| 151 | |||
| 152 | ```bash | ||
| 153 | GE=$HOME/GE-Proton11-13-x86_64/files/lib/wine | ||
| 154 | cp "$GE/vkd3d-proton/x86_64-windows/d3d12.dll" \ | ||
| 155 | "$GE/vkd3d-proton/x86_64-windows/d3d12core.dll" \ | ||
| 156 | "$GE/dxvk/x86_64-windows/dxgi.dll" "$WINEPREFIX/drive_c/windows/system32/" | ||
| 157 | export WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n,b" | ||
| 158 | export LEONIDA_D3D12=vulkan | ||
| 159 | export LEONIDA_SHADERS='Z:\path\to\shaders\spirv' | ||
| 160 | wine ./gta6rt.exe --run 'Z:\path\to\game_scarlett_master.exe' --game-dir 'Z:\path\to\the\package' \ | ||
| 161 | --trace /tmp/boot.jsonl --trace-d3d12 | ||
| 162 | ``` | ||
| 163 | |||
| 164 | With those three DLLs and the override, the same prefix reaches the frame loop: about 1.4 million D3D12 calls in | ||
| 165 | 90 s, no exception, `PresentX ready`, against 1,658 calls and an access violation without them, measured on Wine | ||
| 166 | 11.13 (GE-Proton 11-13) with an RDNA2 iGPU. A prefix that Proton itself created already carries these files and | ||
| 167 | needs no override. | ||
| 168 | |||
| 140 | ## 3. Triage order | 169 | ## 3. Triage order |
| 141 | 170 | ||
| 142 | Read the startup trace first; the first event that is not the expected one is the run's first fact. | 171 | Read the startup trace first; the first event that is not the expected one is the run's first fact. |