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

Merged
Andretuta merged 1 commit from upstream-pr/273 into main 2026-11-25 21:25:56 +00:00
Andretuta commented 2026-11-24 02:57:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:57:01Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465221494 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/273). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:57:01Z. --- > 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.
YaBulochka commented 2026-11-24 17:14:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by YaBulochka on 2026-11-24T17:14:29Z.


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/.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7138898270 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/273#issuecomment-7138898270). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-24T17:14:29Z. --- 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/`.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!273
No description provided.