upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/boot.md
diff options
context:
space:
mode:
authorAndréLanD <andreviniciusmerlia@gmail.com>2026-11-25 18:25:55 -0300
committerGitHub <noreply@github.com>2026-11-25 18:25:55 -0300
commit18d1851cf3cb589f94bddecc2cd3e64f28426a08 (patch)
treeaec05a2f7b9e0f963a71f5179c0e829efb36bd3d /docs/boot.md
parentf9642954fc6f7347f41595523e6f3a2106c32864 (diff)
parent82c5a2ed22db314ab62d84af168afc4ebb693ddb (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.md29
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
142The prefix has to supply a `d3d12.dll` that exports `D3D12SerializeVersionedRootSignature`, because the executable
143imports it. Wine's own `d3d12.dll` does not answer that export for the runtime's shim, and the failure is quiet:
144the D3D12 trace ends at about 1,658 calls, the startup trace ends in an access violation inside the executable,
145and 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
149Copying the DLLs a Proton prefix installs is not enough on its own: Wine keeps preferring its own copy next to
150them. Name them in the overrides.
151
152```bash
153GE=$HOME/GE-Proton11-13-x86_64/files/lib/wine
154cp "$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/"
157export WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n,b"
158export LEONIDA_D3D12=vulkan
159export LEONIDA_SHADERS='Z:\path\to\shaders\spirv'
160wine ./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
164With those three DLLs and the override, the same prefix reaches the frame loop: about 1.4 million D3D12 calls in
16590 s, no exception, `PresentX ready`, against 1,658 calls and an access violation without them, measured on Wine
16611.13 (GE-Proton 11-13) with an RDNA2 iGPU. A prefix that Proton itself created already carries these files and
167needs no override.
168
140## 3. Triage order 169## 3. Triage order
141 170
142Read the startup trace first; the first event that is not the expected one is the run's first fact. 171Read the startup trace first; the first event that is not the expected one is the run's first fact.