docs/boot.md: what a Wine prefix has to supply, and the quiet failure without it #273

Manually merged
github merged 1 commit from gh-pr/273/head into gh-pr/273/base 2026-11-26 08:51:31 +00:00
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:57 UTC · original
ubiquitarianism:old-pr/10005 → main · +29 −0 · 1 files · 1 commits · merged 2026-11-25 21:25 UTC

Carried over from old PR 10005 by YaBulochka in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10005, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
YaBulochka: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Re-created after the reset. docs/boot.md gains a short "Under Wine on Linux" part under "Commands", because the failure it prevents reads like a boot-chain stop and is not one.

The executable imports D3D12SerializeVersionedRootSignature. Wine's own d3d12.dll does not answer that export for the runtime's shim, and nothing says so at the point that matters: the D3D12 trace ends at about 1,658 calls, the startup trace ends in an access violation inside the executable, and the run never reaches CreateRootSignature. The only line that names the cause is [rt] d3d12_xs: host d3d12.dll has no D3D12SerializeVersionedRootSignature.

Copying the DLLs a Proton prefix installs is not enough on its own, because Wine keeps preferring its own copy beside them; the overrides are what make it use them.

Measured on Wine 11.13 (GE-Proton 11-13), RDNA2 iGPU, same binary, shader folder and command line, only the prefix differing:

prefix result
bare wine, Wine's d3d12.dll 1,658 D3D12 calls, then an access violation inside the executable
same, plus vkd3d-proton's d3d12.dll/d3d12core.dll and DXVK's dxgi.dll, no override 1,658 calls, same fault
same, plus WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n,b" 1,400,573 calls in 90 s, no exception, PresentX ready
a prefix Proton created frame loop without any override

Rebased onto main@d083a2cc3. tests/test_docs_links.py and test_docs_list_items.py pass; test_docs_env_vars.py fails only on LEONIDA_RNG_SEED (runtime/shims/bcrypt_rng.cpp:80), which is undocumented on main as well.

**@⁠Andretuta** on GitHub · 2026-11-24 02:57 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/273) `ubiquitarianism:old-pr/10005` → `main` · +29 −0 · 1 files · 1 commits · merged 2026-11-25 21:25 UTC > Carried over from **old PR 10005** by `YaBulochka` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10005`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `YaBulochka`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Re-created after the reset. `docs/boot.md` gains a short "Under Wine on Linux" part under "Commands", because the failure it prevents reads like a boot-chain stop and is not one. The executable imports `D3D12SerializeVersionedRootSignature`. Wine's own `d3d12.dll` does not answer that export for the runtime's shim, and nothing says so at the point that matters: the D3D12 trace ends at about 1,658 calls, the startup trace ends in an access violation inside the executable, and the run never reaches `CreateRootSignature`. The only line that names the cause is `[rt] d3d12_xs: host d3d12.dll has no D3D12SerializeVersionedRootSignature`. Copying the DLLs a Proton prefix installs is not enough on its own, because Wine keeps preferring its own copy beside them; the overrides are what make it use them. Measured on Wine 11.13 (GE-Proton 11-13), RDNA2 iGPU, same binary, shader folder and command line, only the prefix differing: | prefix | result | |---|---| | bare `wine`, Wine's `d3d12.dll` | 1,658 D3D12 calls, then an access violation inside the executable | | same, plus vkd3d-proton's `d3d12.dll`/`d3d12core.dll` and DXVK's `dxgi.dll`, no override | 1,658 calls, same fault | | same, plus `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n,b"` | 1,400,573 calls in 90 s, no exception, `PresentX ready` | | a prefix Proton created | frame loop without any override | Rebased onto `main@d083a2cc3`. `tests/test_docs_links.py` and `test_docs_list_items.py` pass; `test_docs_env_vars.py` fails only on `LEONIDA_RNG_SEED` (`runtime/shims/bcrypt_rng.cpp:80`), which is undocumented on `main` as well.
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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:51:30 +00:00
github manually merged commit 82c5a2ed22 into gh-pr/273/base 2026-11-26 08:51:31 +00:00
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-24 17:14 UTC · original

This is the original work from the closed project (it was PR #10005 there). I opened #1033 with the same content before noticing this draft and have now closed that one, so the review lives here.

The change is documentation only: what a Wine prefix has to supply for this runtime (vkd3d-proton's d3d12.dll/d3d12core.dll plus the loader overrides) and the quiet failure mode without it - the run stops after ~1,658 calls with no D3D12 error, which reads like a hang. Happy to adjust the wording or split it if you prefer it somewhere else in docs/.

**@⁠YaBulochka** on GitHub · 2026-11-24 17:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/273#issuecomment-7138898270) This is the original work from the closed project (it was PR #10005 there). I opened #1033 with the same content before noticing this draft and have now closed that one, so the review lives here. The change is documentation only: what a Wine prefix has to supply for this runtime (vkd3d-proton's `d3d12.dll`/`d3d12core.dll` plus the loader overrides) and the quiet failure mode without it - the run stops after ~1,658 calls with no D3D12 error, which reads like a hang. Happy to adjust the wording or split it if you prefer it somewhere else in `docs/`.
This discussion has been locked. Commenting is limited to contributors.
No description provided.