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:
authorlines9686-rgb <282495677+lines9686-rgb@users.noreply.github.com>2026-11-23 15:02:13 +0300
committerlines9686-rgb <282495677+lines9686-rgb@users.noreply.github.com>2026-11-24 07:05:44 +0300
commit9a12e5ae6fa86b564594574d0dc8b2c50f8bdb88 (patch)
tree5dff76a285677f9fff41cc8e1750be653da7d67e /docs/boot.md
parentece4ba5b31ebc6f345c8e29eae1261f2f780057a (diff)
boot.md: first-boot runbook fixes; boot_trace marks relocated modules in its text report
- Where gta6rt.exe is: runtime\build with build_runtime.ps1 (Ninja), runtime\build\RelWithDebInfo with the direct CMake (Visual Studio generator) path. - Without LEONIDA_D3D12=vulkan the trace is not empty: the Xbox-ABI proxy still records device creation, queue, fence and allocator calls. Say so, and to check the log for "[rt] d3d12: Vulkan device:". - The runtime writes no "partial" outcome yet (ExecuteCommandLists records ok or failed); only the tool knows it. - --overlay: the default is already <game-dir>\overlay; the package is never written. - d3d12_vulkan.md 8.2 no longer repeats questions 16, 19 and 20. - Triage step 1 asks whether the executable is at its preferred base, but the text report printed module names only; it now marks a relocated module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/boot.md')
-rw-r--r--docs/boot.md26
1 files changed, 18 insertions, 8 deletions
diff --git a/docs/boot.md b/docs/boot.md
index 7ec69f031..001181123 100644
--- a/docs/boot.md
+++ b/docs/boot.md
@@ -61,10 +61,17 @@ wine runtime/build/windows/gta6rt.exe --run /path/to/game_scarlett_master.exe \
61python3 -I tools/boot_trace.py /tmp/boot.jsonl --d3d12 /tmp/d3d12.log 61python3 -I tools/boot_trace.py /tmp/boot.jsonl --d3d12 /tmp/d3d12.log
62``` 62```
63 63
64`runtime\build\gta6rt.exe` is where `scripts\build_runtime.ps1` (Ninja) puts it; the direct CMake path in
65[runtime/README.md](../runtime/README.md) uses the multi-config Visual Studio generator, which writes
66`runtime\build\RelWithDebInfo\gta6rt.exe` instead.
67
64`--trace FILE` **refuses an existing file** (exit 2): it is created before the loader reads anything, so use a 68`--trace FILE` **refuses an existing file** (exit 2): it is created before the loader reads anything, so use a
65fresh name or delete the old one. `LEONIDA_D3D12=vulkan` selects the Vulkan-backed device, the only backend that 69fresh name or delete the old one. `LEONIDA_D3D12=vulkan` selects the Vulkan-backed device, the only backend that
66writes the `[d3d12-trace]` lines; without it the layer uses the Windows D3D12 device and the trace has nothing to 70traces command lists, resources and pipelines; without it the layer uses the Windows D3D12 device, and the
67read. Keep the traces out of the repository: they can quote whatever the game prints. 71`[d3d12-trace]` lines are only what the Xbox-ABI proxy forwards (device creation, queue, fence and allocator
72calls), which `boot_trace.py` summarizes without complaint. A run on the Vulkan device prints
73`[rt] d3d12: Vulkan device: <name>`; check the log for it (a runtime built without the Vulkan headers accepts the
74variable and stays on the Windows device). Keep the traces out of the repository: they can quote whatever the game prints.
68 75
69Useful switches: 76Useful switches:
70 77
@@ -85,7 +92,8 @@ Useful switches:
85* `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` when MSI Afterburner or OBS is installed; their 92* `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` when MSI Afterburner or OBS is installed; their
86 implicit layers add swapchain usage that shows up as validation errors ([testing.md](testing.md), "Known 93 implicit layers add swapchain usage that shows up as validation errors ([testing.md](testing.md), "Known
87 problems"). 94 problems").
88* `--overlay DIR` sends the guest's writes to a private folder instead of the package. 95* `--overlay DIR` sends the guest's writes to DIR instead of the default `<game-dir>\overlay` (useful when the
96 package drive is read-only); the package itself is never written.
89 97
90## 3. Triage order 98## 3. Triage order
91 99
@@ -105,8 +113,9 @@ Read the startup trace first; the first event that is not the expected one is th
105 the final slot for the last observed exception. The trace also includes handled exceptions, so the last 113 the final slot for the last observed exception. The trace also includes handled exceptions, so the last
106 observation alone does not establish what caused the run to stop. 114 observation alone does not establish what caused the run to stop.
1075. **`exit` / `error`** — a clean exit is not a correct frame; continue to the D3D12 trace. 1155. **`exit` / `error`** — a clean exit is not a correct frame; continue to the D3D12 trace.
1086. **D3D12 trace** — the `failed`, `unsupported`, `refused` and `partial` lines name the method. A `partial` 1166. **D3D12 trace** — the `failed`, `unsupported` and `refused` lines name the method. A `failed`
109 submission ran the supported commands from a list. The runtime's `[rt]` diagnostic names the command it left out. 117 `ExecuteCommandLists` submitted nothing from its lists. (`boot_trace.py` also lists a `partial` outcome, a
118 submission that ran only the supported commands; the runtime does not write it yet.)
110 Compare the method's position with the public SDK vtable. An unknown slot is expected until the executable names it 119 Compare the method's position with the public SDK vtable. An unknown slot is expected until the executable names it
111 (Q2, Q6). The `[rt]` lines in the same log carry the 24 device words, feature IDs and warnings. 120 (Q2, Q6). The `[rt]` lines in the same log carry the 24 device words, feature IDs and warnings.
112 The summary expects `#1` first, then one more than the last observed number. It counts each mismatch once and 121 The summary expects `#1` first, then one more than the last observed number. It counts each mismatch once and
@@ -125,8 +134,8 @@ is `null`; if neither input yields a report, stdout is empty.
125 134
126## 4. The open questions, and the trace signal for each 135## 4. The open questions, and the trace signal for each
127 136
128The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; that table repeats 16, 19 and 20, and this one is 137The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in
129the de-duplicated 1–22. It maps each question to the event to look for; it does not answer them. 138order. It maps each question to the event to look for; it does not answer them.
130 139
131| # | Question | Signal in the first trace | 140| # | Question | Signal in the first trace |
132|---|---|---| 141|---|---|---|
@@ -167,5 +176,6 @@ the de-duplicated 1–22. It maps each question to the event to look for; it doe
167The retail executable is not in the package, so this page is untested against it; the tool and the trace formats 176The retail executable is not in the package, so this page is untested against it; the tool and the trace formats
168are tested on synthetic fixtures and on `tiny_game` (which has no D3D12 calls). The present slots (Q6) and the 177are tested on synthetic fixtures and on `tiny_game` (which has no D3D12 calls). The present slots (Q6) and the
169Xbox device parameters (Q1) remain the first things the executable itself has to name. The D3D12 trace needs the 178Xbox device parameters (Q1) remain the first things the executable itself has to name. The D3D12 trace needs the
170Vulkan backend; a build without it runs the game's calls through the PC device and records nothing. The runbook 179Vulkan backend; a build without it runs the game's calls through the PC device and records only the proxy's
180device, queue, fence and allocator calls. The runbook
171does not make the game boot; it makes the first real trace readable. 181does not make the game boot; it makes the first real trace readable.