diff options
| author | YaBulochka <yabulochka@users.noreply.github.com> | 2026-11-23 23:07:13 +0300 |
|---|---|---|
| committer | YaBulochka <157796093+YaBulochka@users.noreply.github.com> | 2026-11-24 00:35:10 +0300 |
| commit | 82c5a2ed22db314ab62d84af168afc4ebb693ddb (patch) | |
| tree | 70a0c51368bd4bf60f50a747e208e0f16d186998 /docs/boot.md | |
| parent | 5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff) | |
docs/boot.md: what a Wine prefix has to supply, and the quiet failure without itold-pr/10005
The retail executable imports D3D12SerializeVersionedRootSignature, and Wine's own d3d12.dll
does not answer that export for the runtime's shim. The result is hard to place: the D3D12 trace
stops at about 1,658 calls, the startup trace ends in an access violation inside the executable,
and nothing in the log but one [rt] line names the cause. Two of us read that as a boot-chain stop
before finding it.
Document the prefix requirement, the three DLLs and the override that make Wine use them, and the
measured difference: 1.4 million calls with no exception against 1,658 calls and a fault.
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 16cbb80ee..f07cdb7c7 100644 --- a/docs/boot.md +++ b/docs/boot.md | |||
| @@ -83,6 +83,35 @@ Useful switches: | |||
| 83 | problems"). | 83 | problems"). |
| 84 | * `--overlay DIR` sends the guest's writes to a private folder instead of the package. | 84 | * `--overlay DIR` sends the guest's writes to a private folder instead of the package. |
| 85 | 85 | ||
| 86 | ### Under Wine on Linux | ||
| 87 | |||
| 88 | The prefix has to supply a `d3d12.dll` that exports `D3D12SerializeVersionedRootSignature`, because the executable | ||
| 89 | imports it. Wine's own `d3d12.dll` does not answer that export for the runtime's shim, and the failure is quiet: | ||
| 90 | the D3D12 trace ends at about 1,658 calls, the startup trace ends in an access violation inside the executable, | ||
| 91 | and the one line that names the cause is | ||
| 92 | `[rt] d3d12_xs: host d3d12.dll has no D3D12SerializeVersionedRootSignature`. The run never reaches | ||
| 93 | `CreateRootSignature`. | ||
| 94 | |||
| 95 | Copying the DLLs a Proton prefix installs is not enough on its own: Wine keeps preferring its own copy next to | ||
| 96 | them. Name them in the overrides. | ||
| 97 | |||
| 98 | ```bash | ||
| 99 | GE=$HOME/GE-Proton11-13-x86_64/files/lib/wine | ||
| 100 | cp "$GE/vkd3d-proton/x86_64-windows/d3d12.dll" \ | ||
| 101 | "$GE/vkd3d-proton/x86_64-windows/d3d12core.dll" \ | ||
| 102 | "$GE/dxvk/x86_64-windows/dxgi.dll" "$WINEPREFIX/drive_c/windows/system32/" | ||
| 103 | export WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n,b" | ||
| 104 | export LEONIDA_D3D12=vulkan | ||
| 105 | export LEONIDA_SHADERS='Z:\path\to\shaders\spirv' | ||
| 106 | wine ./gta6rt.exe --run 'Z:\path\to\game_scarlett_master.exe' --game-dir 'Z:\path\to\the\package' \ | ||
| 107 | --trace /tmp/boot.jsonl --trace-d3d12 | ||
| 108 | ``` | ||
| 109 | |||
| 110 | With those three DLLs and the override, the same prefix reaches the frame loop: about 1.4 million D3D12 calls in | ||
| 111 | 90 s, no exception, `PresentX ready`, against 1,658 calls and an access violation without them, measured on Wine | ||
| 112 | 11.13 (GE-Proton 11-13) with an RDNA2 iGPU. A prefix that Proton itself created already carries these files and | ||
| 113 | needs no override. | ||
| 114 | |||
| 86 | ## 3. Triage order | 115 | ## 3. Triage order |
| 87 | 116 | ||
| 88 | Read the startup trace first; the first event that is not the expected one is the run's first fact. | 117 | Read the startup trace first; the first event that is not the expected one is the run's first fact. |