From 2c0628054d97283872d796353a7177ff0761241d Mon Sep 17 00:00:00 2001 From: DesertGamer Date: Tue, 24 Nov 2026 14:15:45 +0400 Subject: [PATCH 1/4] docs: measure the retail boot on plain main with an RTX 5070 retail_boot_chain.md and retail_boot_intel_host.md measure trees with pull requests merged locally. This page records plain main: --dry-run and --init exit 0, and --run stops at the title's int3 right after the first device slot 73 call, with one D3D12 call recorded and the runtime's allocator-proxy warning printed before it. Only slot numbers, counts and log classes are given; the page lists what the single run does not show. --- docs/README.md | 1 + docs/retail_boot_main_rtx5070.md | 54 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 docs/retail_boot_main_rtx5070.md diff --git a/docs/README.md b/docs/README.md index 6d34d575e2..758f5ac42f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -68,6 +68,7 @@ method, scope and caveats. No game data is included. | [boot.md](boot.md) | The first real boot: the `gta6rt --trace`/`--trace-d3d12` runbook, the startup + D3D12 trace summary (`tools/boot_trace.py`), the triage order and the Q1–Q22 checklist. | | [retail_boot_chain.md](retail_boot_chain.md) | How far `gta6rt --run` gets with the retail executable: the stops in order and what clears each, the physical-page export shapes, and device slots 26, 48 and 73. | | [retail_boot_intel_host.md](retail_boot_intel_host.md) | The retail boot on an Intel host with 16 GB: which stops of the two boot pages hold there with #7111, the commit-limit stop at the 6.1 GiB physical-page request that #7556 clears, the frame loop to the 900 s timeout with stub pipelines, and what the layer refuses at that depth (the console mesh-shader subobject among it). | +| [retail_boot_main_rtx5070.md](retail_boot_main_rtx5070.md) | The retail boot on plain `main` with an RTX 5070: `--dry-run` and `--init` exit 0, and `--run` stops at the title's `int3` right after the first device slot 73 call, with 1 D3D12 call recorded and the runtime's allocator-proxy warning. | | [modding.md](modding.md) | The mod format: a `mods//mod.json` next to `gta6rt.exe` or under `--mods DIR`, swapping a named (or `joaat`) archetype for another; the `tools/leonida_mods.py` manager (`Mods.bat` on Windows, `Mods.sh` on Linux and macOS); load order, the start-up log, and the fact that a swap waits for the executable's archetype lookup address (RT-5). | | [descriptor_lookup_apple.md](descriptor_lookup_apple.md) | M3 Max GPU timings for texture and sampler descriptor lookups at 1k, 10k and 100k live entries. | | [descriptor_lookup_ada.md](descriptor_lookup_ada.md) | RTX 4070 SUPER (Ada, Windows) timings for the same lookups in VRAM, host-visible and ReBAR memory. | diff --git a/docs/retail_boot_main_rtx5070.md b/docs/retail_boot_main_rtx5070.md new file mode 100644 index 0000000000..9d017a23da --- /dev/null +++ b/docs/retail_boot_main_rtx5070.md @@ -0,0 +1,54 @@ +# The retail boot on plain `main`, RTX 5070: where `gta6rt --run` stops + +**Status: one run on one machine, 2026-11-24. A measurement, not a claim on any code item.** It continues +[retail_boot_chain.md](retail_boot_chain.md) for a tree with none of the pull requests that page merged locally. +Nothing here quotes the executable: no addresses, offsets or bytes; only slot numbers, call shapes, counts and the +runtime's own log classes. + +Setup: `main` `21625bca8`, nothing merged on top. AMD Ryzen 7 7800X3D, 32 GB, Windows 11 build 26200, NVIDIA +GeForce RTX 5070 (Windows driver version 32.0.16.1714; the machine also has an AMD integrated GPU, and which +Vulkan device the layer picked was not recorded), Vulkan SDK 1.4.363.0, `llvm-mc` 23.1.6 from conda-forge, Visual +Studio 2026 (v18) with CMake 4.4 for `RelWithDebInfo`. Own 1.0.2.1 copy, `LEONIDA_D3D12=vulkan`, `--overlay` +outside the package, no other switches. + +## 1. What holds + +| Pass | Result | +|---|---| +| `make_game.py --stages check,shaders,runtime` | built; 26,503 shaders translated (2,236 VS, 12,101 PS, 2,689 CS, 9,282 mesh, 195 geometry); the runtime built with Visual Studio 2026 | +| `--dry-run` | exit 0, no exception | +| `--init` | exit 0; 4 `DllMain` ok, 0 failed; the loader reports 53,246 index-0 TLS reads redirected to the module's own TLS (the stop 4 shape of [retail_boot_chain.md](retail_boot_chain.md) does not occur) | +| `--run` | exit 3 after the title's `int3`; 4 minute limit, not reached | + +The `--run` startup trace has 21 events and no bad line: 5 `map`, 2 `tls_callback`, 4 `dllmain`, 5 +`xmem_attributes`, 1 `xmem_physical_pages` (attributes `0x280`, 11,360 pages), 3 `exception`. The log has no +unimplemented import and no `[rt] cpu:` line. + +## 2. The stop + +The D3D12 trace records one call, `D3D12XboxCreateDevice ok`. The runtime then logs the first call of device slots +0, 1, 2, 26 (`GetCustomHeapProperties`), 8 (`CreateCommandQueue`), 36 (`CreateFence`), 48 (routed to +`CreateCommandQueueX`, queue flags `0x1`), 9 (`CreateCommandAllocator`) and 73 (routed to `CreateCommandListX`, +node mask 0, type 0), plus slots 0 and 1 of the first queue and the first fence. Two things belong to the last step: + +- the runtime logs `allocators of this device are not wrapped: its command lists cannot resolve an allocator proxy` + before the first slot 73 call; +- the title's `int3` (`0x80000003`) follows the slot 73 call, with no further D3D12 call. + +The three exceptions in the trace are the `int3` and two C++ throws whose frames are all in the host's `d3d12.dll` +and `D3D12Core.dll`, not in the title. + +Hypothesis, not confirmed: the `int3` is the title's check on the command list that slot 73 returned, and the warning +names its cause, a console command-list proxy that cannot resolve the allocator proxy because the allocator came +from the PC slot 9. This is the area of stop 9 in [retail_boot_chain.md](retail_boot_chain.md), whose fix there is +the list proxy of #2490 plus local routing. It was not tested here. + +## 3. What this does not show + +One run, no repeat, no debugger. Whether `LEONIDA_SKIP_INT3=1` goes further was not tried. The Vulkan device the +layer used was not recorded, so an AMD or NVIDIA difference is not excluded. + +## 4. Reproduce + +The commands of [boot.md](boot.md) section 2, with `--overlay` and an empty `--trace` name. Keep the traces out of the +repository: they hold addresses of the executable. From b0ad659c560356ae55b2badcf867848ec49b2c7d Mon Sep 17 00:00:00 2001 From: DesertGamer Date: Tue, 24 Nov 2026 14:19:04 +0400 Subject: [PATCH 2/4] docs: correct the cause of the slot 73 stop and add the int3-skip run The page named the unwrapped-allocator warning as the likely cause. Reading proxy_create_command_list_x shows slot 73 passes the title's riid to the PC CreateCommandList and clears the output pointer on failure, which is what the open pull requests on the console command-list IID describe; the allocator warning comes from slot 9 and is not the cause. Also record the LEONIDA_SKIP_INT3=1 run (the int3 is stepped over, then a read from address 0 in the same function) and say that the exit codes are what the shell reported. --- docs/README.md | 2 +- docs/retail_boot_main_rtx5070.md | 25 ++++++++++++++++++------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/docs/README.md b/docs/README.md index 758f5ac42f..5589cb4c29 100644 --- a/docs/README.md +++ b/docs/README.md @@ -68,7 +68,7 @@ method, scope and caveats. No game data is included. | [boot.md](boot.md) | The first real boot: the `gta6rt --trace`/`--trace-d3d12` runbook, the startup + D3D12 trace summary (`tools/boot_trace.py`), the triage order and the Q1–Q22 checklist. | | [retail_boot_chain.md](retail_boot_chain.md) | How far `gta6rt --run` gets with the retail executable: the stops in order and what clears each, the physical-page export shapes, and device slots 26, 48 and 73. | | [retail_boot_intel_host.md](retail_boot_intel_host.md) | The retail boot on an Intel host with 16 GB: which stops of the two boot pages hold there with #7111, the commit-limit stop at the 6.1 GiB physical-page request that #7556 clears, the frame loop to the 900 s timeout with stub pipelines, and what the layer refuses at that depth (the console mesh-shader subobject among it). | -| [retail_boot_main_rtx5070.md](retail_boot_main_rtx5070.md) | The retail boot on plain `main` with an RTX 5070: `--dry-run` and `--init` exit 0, and `--run` stops at the title's `int3` right after the first device slot 73 call, with 1 D3D12 call recorded and the runtime's allocator-proxy warning. | +| [retail_boot_main_rtx5070.md](retail_boot_main_rtx5070.md) | The retail boot on plain `main` with an RTX 5070: `--dry-run` and `--init` exit 0, and `--run` stops at the title's `int3` right after the first device slot 73 call, with 1 D3D12 call recorded; with `LEONIDA_SKIP_INT3=1` it ends on a read from address 0 in the same function. | | [modding.md](modding.md) | The mod format: a `mods//mod.json` next to `gta6rt.exe` or under `--mods DIR`, swapping a named (or `joaat`) archetype for another; the `tools/leonida_mods.py` manager (`Mods.bat` on Windows, `Mods.sh` on Linux and macOS); load order, the start-up log, and the fact that a swap waits for the executable's archetype lookup address (RT-5). | | [descriptor_lookup_apple.md](descriptor_lookup_apple.md) | M3 Max GPU timings for texture and sampler descriptor lookups at 1k, 10k and 100k live entries. | | [descriptor_lookup_ada.md](descriptor_lookup_ada.md) | RTX 4070 SUPER (Ada, Windows) timings for the same lookups in VRAM, host-visible and ReBAR memory. | diff --git a/docs/retail_boot_main_rtx5070.md b/docs/retail_boot_main_rtx5070.md index 9d017a23da..0c7e8cb2b7 100644 --- a/docs/retail_boot_main_rtx5070.md +++ b/docs/retail_boot_main_rtx5070.md @@ -18,7 +18,8 @@ outside the package, no other switches. | `make_game.py --stages check,shaders,runtime` | built; 26,503 shaders translated (2,236 VS, 12,101 PS, 2,689 CS, 9,282 mesh, 195 geometry); the runtime built with Visual Studio 2026 | | `--dry-run` | exit 0, no exception | | `--init` | exit 0; 4 `DllMain` ok, 0 failed; the loader reports 53,246 index-0 TLS reads redirected to the module's own TLS (the stop 4 shape of [retail_boot_chain.md](retail_boot_chain.md) does not occur) | -| `--run` | exit 3 after the title's `int3`; 4 minute limit, not reached | +| `--run` | ends on the title's `int3` (the shell reported 3); the 4 minute limit is not reached | +| `--run`, `LEONIDA_SKIP_INT3=1` | the `int3` is stepped over once, then a read from address 0 in the title (the shell reported 139) | The `--run` startup trace has 21 events and no bad line: 5 `map`, 2 `tls_callback`, 4 `dllmain`, 5 `xmem_attributes`, 1 `xmem_physical_pages` (attributes `0x280`, 11,360 pages), 3 `exception`. The log has no @@ -38,15 +39,25 @@ node mask 0, type 0), plus slots 0 and 1 of the first queue and the first fence. The three exceptions in the trace are the `int3` and two C++ throws whose frames are all in the host's `d3d12.dll` and `D3D12Core.dll`, not in the title. -Hypothesis, not confirmed: the `int3` is the title's check on the command list that slot 73 returned, and the warning -names its cause, a console command-list proxy that cannot resolve the allocator proxy because the allocator came -from the PC slot 9. This is the area of stop 9 in [retail_boot_chain.md](retail_boot_chain.md), whose fix there is -the list proxy of #2490 plus local routing. It was not tested here. +This is stop 9 of [retail_boot_chain.md](retail_boot_chain.md). Reading `proxy_create_command_list_x` in +`runtime/shims/d3d12_xs_device.cpp` on this tree, slot 73 hands the title's `riid` to the PC +`ID3D12Device::CreateCommandList`, clears the output pointer first and returns the failure when the PC device does +not know the interface. Open pull requests #601 and #359 describe the title's `riid` as a console command-list IID +the PC device answers with `E_NOINTERFACE`, so the title's output pointer stays null and the `int3` is its check on +it. The allocator warning above is not that cause: it is printed once by device slot 9 and only says that the +allocator is passed on unwrapped. The `riid` and the returned `HRESULT` are not in this run's log, and neither pull +request was applied here, so the link between them and this stop is from the code and their descriptions, not from a +run. + +With `LEONIDA_SKIP_INT3=1` the `int3` is stepped over once (`int3_skipped` 1) and the run then ends on a read from +address 0 a few instructions later in the same function of the title (the shell reported 139). The D3D12 trace is the same +single call and the log ends at the same slot 73 line. That is the "reads through a null list" of stop 9. ## 3. What this does not show -One run, no repeat, no debugger. Whether `LEONIDA_SKIP_INT3=1` goes further was not tried. The Vulkan device the -layer used was not recorded, so an AMD or NVIDIA difference is not excluded. +One run of each kind, no repeat, no debugger. Neither #601 nor #359 was applied, so whether they take this tree past +stop 9 was not tried. The Vulkan device the layer used was not recorded, so an AMD or NVIDIA difference is not +excluded. ## 4. Reproduce From 121edcc9ea372df0f1c655714efb4e998ddd701f Mon Sep 17 00:00:00 2001 From: DesertGamer Date: Tue, 24 Nov 2026 14:30:46 +0400 Subject: [PATCH 3/4] docs: redo the RTX 5070 boot measurement on the Vulkan device The runs behind the first version were made with a gta6rt built without Vulkan headers, so LEONIDA_D3D12=vulkan was ignored and the title ran on the host's D3D12 device. The page now reports runs of a rebuilt binary that logs the Vulkan device: main stops after 13 D3D12 calls at a failed CreateCommandList, and with #601 the boot goes on for 1,639 calls. It also records that CMake only warns when the Vulkan headers are missing. --- docs/README.md | 2 +- docs/retail_boot_main_rtx5070.md | 125 ++++++++++++++++--------------- 2 files changed, 67 insertions(+), 60 deletions(-) diff --git a/docs/README.md b/docs/README.md index 5589cb4c29..b04dd9e4e9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -68,7 +68,7 @@ method, scope and caveats. No game data is included. | [boot.md](boot.md) | The first real boot: the `gta6rt --trace`/`--trace-d3d12` runbook, the startup + D3D12 trace summary (`tools/boot_trace.py`), the triage order and the Q1–Q22 checklist. | | [retail_boot_chain.md](retail_boot_chain.md) | How far `gta6rt --run` gets with the retail executable: the stops in order and what clears each, the physical-page export shapes, and device slots 26, 48 and 73. | | [retail_boot_intel_host.md](retail_boot_intel_host.md) | The retail boot on an Intel host with 16 GB: which stops of the two boot pages hold there with #7111, the commit-limit stop at the 6.1 GiB physical-page request that #7556 clears, the frame loop to the 900 s timeout with stub pipelines, and what the layer refuses at that depth (the console mesh-shader subobject among it). | -| [retail_boot_main_rtx5070.md](retail_boot_main_rtx5070.md) | The retail boot on plain `main` with an RTX 5070: `--dry-run` and `--init` exit 0, and `--run` stops at the title's `int3` right after the first device slot 73 call, with 1 D3D12 call recorded; with `LEONIDA_SKIP_INT3=1` it ends on a read from address 0 in the same function. | +| [retail_boot_main_rtx5070.md](retail_boot_main_rtx5070.md) | The retail boot on `main` with an RTX 5070 and the Vulkan device: `--run` stops at the title's `int3` after the failed `CreateCommandList` at device slot 73 (13 D3D12 calls), and with #601 goes on for 1,639 calls; also how a runtime built without Vulkan headers silently ignores `LEONIDA_D3D12=vulkan`. | | [modding.md](modding.md) | The mod format: a `mods//mod.json` next to `gta6rt.exe` or under `--mods DIR`, swapping a named (or `joaat`) archetype for another; the `tools/leonida_mods.py` manager (`Mods.bat` on Windows, `Mods.sh` on Linux and macOS); load order, the start-up log, and the fact that a swap waits for the executable's archetype lookup address (RT-5). | | [descriptor_lookup_apple.md](descriptor_lookup_apple.md) | M3 Max GPU timings for texture and sampler descriptor lookups at 1k, 10k and 100k live entries. | | [descriptor_lookup_ada.md](descriptor_lookup_ada.md) | RTX 4070 SUPER (Ada, Windows) timings for the same lookups in VRAM, host-visible and ReBAR memory. | diff --git a/docs/retail_boot_main_rtx5070.md b/docs/retail_boot_main_rtx5070.md index 0c7e8cb2b7..9225301acf 100644 --- a/docs/retail_boot_main_rtx5070.md +++ b/docs/retail_boot_main_rtx5070.md @@ -1,65 +1,72 @@ -# The retail boot on plain `main`, RTX 5070: where `gta6rt --run` stops +# The retail boot on `main`, RTX 5070: where `gta6rt --run` stops, with and without #601 -**Status: one run on one machine, 2026-11-24. A measurement, not a claim on any code item.** It continues -[retail_boot_chain.md](retail_boot_chain.md) for a tree with none of the pull requests that page merged locally. -Nothing here quotes the executable: no addresses, offsets or bytes; only slot numbers, call shapes, counts and the -runtime's own log classes. +**Status: one run per tree on one machine, 2026-11-24. A measurement, not a claim on any code item.** It continues +[retail_boot_chain.md](retail_boot_chain.md) for a tree with none of the pull requests that page merged locally, and +then with #601 and #417 merged on top. Nothing here quotes the executable: no addresses, offsets or bytes; only slot +numbers, call shapes, counts and the runtime's own log classes. -Setup: `main` `21625bca8`, nothing merged on top. AMD Ryzen 7 7800X3D, 32 GB, Windows 11 build 26200, NVIDIA -GeForce RTX 5070 (Windows driver version 32.0.16.1714; the machine also has an AMD integrated GPU, and which -Vulkan device the layer picked was not recorded), Vulkan SDK 1.4.363.0, `llvm-mc` 23.1.6 from conda-forge, Visual -Studio 2026 (v18) with CMake 4.4 for `RelWithDebInfo`. Own 1.0.2.1 copy, `LEONIDA_D3D12=vulkan`, `--overlay` -outside the package, no other switches. +Setup: `main` `21625bca8`. AMD Ryzen 7 7800X3D, 32 GB, Windows 11 build 26200, NVIDIA GeForce RTX 5070 (Windows +driver version 32.0.16.1714) and an AMD integrated GPU. `gta6rt` built with Visual Studio 2026 (v18), CMake 4.4, +`RelWithDebInfo`, `VULKAN_SDK` set so that the Vulkan device is built in; `llvm-mc` 23.1.6 from conda-forge. Own +1.0.2.1 copy, `LEONIDA_D3D12=vulkan`, `--overlay` outside the package, no other switches. Every run logs +`[rt] d3d12: Vulkan device: NVIDIA GeForce RTX 5070 (maxPushConstantsSize: 256 bytes)`. + +Without Vulkan headers CMake only warns ("Vulkan headers not found ... `LEONIDA_D3D12=vulkan` is unavailable") and the +build still succeeds; `LEONIDA_D3D12=vulkan` is then ignored and the title runs on the host's D3D12 device. A first +version of this page was written from runs like that and was wrong; the figures below are from the rebuilt binary. ## 1. What holds -| Pass | Result | +| Tree | `--run` result | |---|---| -| `make_game.py --stages check,shaders,runtime` | built; 26,503 shaders translated (2,236 VS, 12,101 PS, 2,689 CS, 9,282 mesh, 195 geometry); the runtime built with Visual Studio 2026 | -| `--dry-run` | exit 0, no exception | -| `--init` | exit 0; 4 `DllMain` ok, 0 failed; the loader reports 53,246 index-0 TLS reads redirected to the module's own TLS (the stop 4 shape of [retail_boot_chain.md](retail_boot_chain.md) does not occur) | -| `--run` | ends on the title's `int3` (the shell reported 3); the 4 minute limit is not reached | -| `--run`, `LEONIDA_SKIP_INT3=1` | the `int3` is stepped over once, then a read from address 0 in the title (the shell reported 139) | - -The `--run` startup trace has 21 events and no bad line: 5 `map`, 2 `tls_callback`, 4 `dllmain`, 5 -`xmem_attributes`, 1 `xmem_physical_pages` (attributes `0x280`, 11,360 pages), 3 `exception`. The log has no -unimplemented import and no `[rt] cpu:` line. - -## 2. The stop - -The D3D12 trace records one call, `D3D12XboxCreateDevice ok`. The runtime then logs the first call of device slots -0, 1, 2, 26 (`GetCustomHeapProperties`), 8 (`CreateCommandQueue`), 36 (`CreateFence`), 48 (routed to -`CreateCommandQueueX`, queue flags `0x1`), 9 (`CreateCommandAllocator`) and 73 (routed to `CreateCommandListX`, -node mask 0, type 0), plus slots 0 and 1 of the first queue and the first fence. Two things belong to the last step: - -- the runtime logs `allocators of this device are not wrapped: its command lists cannot resolve an allocator proxy` - before the first slot 73 call; -- the title's `int3` (`0x80000003`) follows the slot 73 call, with no further D3D12 call. - -The three exceptions in the trace are the `int3` and two C++ throws whose frames are all in the host's `d3d12.dll` -and `D3D12Core.dll`, not in the title. - -This is stop 9 of [retail_boot_chain.md](retail_boot_chain.md). Reading `proxy_create_command_list_x` in -`runtime/shims/d3d12_xs_device.cpp` on this tree, slot 73 hands the title's `riid` to the PC -`ID3D12Device::CreateCommandList`, clears the output pointer first and returns the failure when the PC device does -not know the interface. Open pull requests #601 and #359 describe the title's `riid` as a console command-list IID -the PC device answers with `E_NOINTERFACE`, so the title's output pointer stays null and the `int3` is its check on -it. The allocator warning above is not that cause: it is printed once by device slot 9 and only says that the -allocator is passed on unwrapped. The `riid` and the returned `HRESULT` are not in this run's log, and neither pull -request was applied here, so the link between them and this stop is from the code and their descriptions, not from a -run. - -With `LEONIDA_SKIP_INT3=1` the `int3` is stepped over once (`int3_skipped` 1) and the run then ends on a read from -address 0 a few instructions later in the same function of the title (the shell reported 139). The D3D12 trace is the same -single call and the log ends at the same slot 73 line. That is the "reads through a null list" of stop 9. - -## 3. What this does not show - -One run of each kind, no repeat, no debugger. Neither #601 nor #359 was applied, so whether they take this tree past -stop 9 was not tried. The Vulkan device the layer used was not recorded, so an AMD or NVIDIA difference is not -excluded. - -## 4. Reproduce - -The commands of [boot.md](boot.md) section 2, with `--overlay` and an empty `--trace` name. Keep the traces out of the -repository: they hold addresses of the executable. +| `main` `21625bca8` | 13 D3D12 calls, 12 ok; call #13, `ID3D12Device::CreateCommandList`, failed; then the title's `int3` (`0x80000003`) | +| `main` + #601 (`6fbb08cb8`) | 1,639 calls, 1,619 ok, 20 `called` without an outcome; the last is `CreateUnorderedAccessView` (#1639); then the title's `int3`, at another place than above | +| `main` + #601 + #417 | the same 1,639 calls and the same last call as with #601 alone | + +Passes on `main`: `make_game.py --stages check,shaders,runtime` (26,503 shaders translated: 2,236 VS, 12,101 PS, +2,689 CS, 9,282 mesh, 195 geometry), `--dry-run` and `--init` (exit 0, no exception, 4 `DllMain` ok, no unimplemented +import). The 4 minute limit was not reached in any run (the shell reported 3 each time). + +The startup trace of the `main` run has 25 events and no bad line: 5 `map`, 2 `tls_callback`, 4 `dllmain`, 5 +`xmem_attributes`, 1 `xmem_physical_pages` (attributes `0x280`, 11,360 pages), 6 `debug_string` (text not shown) and 1 +`exception`. With #601 the trace has 2 more `xmem_attributes` events and the same exception count. + +## 2. Stop 9 on `main` + +The runtime logs the first call of device slots 26 (`GetCustomHeapProperties`), 8 (`CreateCommandQueue`), 36 +(`CreateFence`), 48 (routed to `CreateCommandQueueX`), 9 (`CreateCommandAllocator`) and 73 (routed to +`CreateCommandListX`, node mask 0, type 0). The D3D12 trace then holds `ID3D12Device::CreateCommandList` as failed. +This is stop 9 of [retail_boot_chain.md](retail_boot_chain.md). + +`proxy_create_command_list_x` in `runtime/shims/d3d12_xs_device.cpp` hands the title's `riid` to the PC +`ID3D12Device::CreateCommandList`, clears the output pointer first and returns the failure when the device does not +know the interface. #601 and #359 describe the title's `riid` as a console command-list IID the PC device refuses, so +the title's output pointer stays null and the `int3` is its check on it. The trace shows the failed call, and with +#601 the log says that slot 73 was asked for a console command-list IID, that the list is built as +`ID3D12GraphicsCommandList` and that it is answered with the console list proxy. The `allocators of this device are not +wrapped` line printed before slot 73 comes from slot 9 and is not the cause. + +## 3. Past it, with #601 + +With #601 the boot goes on through the console descriptor heap (`CreateDescriptorHeap`, then heap slots 9 and 10), +slot 70 (a shader-resource view from raw words, answered with a null view), slot 127 (`CreateCommittedResource3`) and +a run of descriptor-view calls (`CreateUnorderedAccessView` from call #1192 on). The 185 MiB `XMemVirtualAlloc` +reserve with attribute `0x7` of stop 10 is in the trace and the boot does not stop at it. The last three calls are +`CreateShaderResourceView` (#1637), `CreateRenderTargetView` (#1638) and `CreateUnorderedAccessView` (#1639); the +last has no outcome in the trace, and the title's `int3` is in a different place than at stop 9. Which numbered stop +this is was not worked out here. + +For comparison only: [retail_boot_intel_host.md](retail_boot_intel_host.md) records stop 18 after 1,640 D3D12 calls on +its integration branch (a C++ throw in `XboxBvhBuilder.dll`). This run has one exception in its trace, the `int3`, so it +is not shown to be that stop, and the trees and CPUs differ. + +## 4. What this does not show + +One run per tree, no repeat, no debugger, and `LEONIDA_SKIP_INT3=1` was not run on the Vulkan build. Which instruction +the last `int3` guards is not known. #417 did not change the stop in this run; whether it matters further on is not +shown. + +## 5. Reproduce + +The commands of [boot.md](boot.md) section 2, with `--overlay` and an empty `--trace` name, after checking that the +log carries the `Vulkan device:` line. Keep the traces out of the repository: they hold addresses of the executable. From 81bb5d078a955f0c6166a9b6d83d162eccac04eb Mon Sep 17 00:00:00 2001 From: DesertGamer Date: Tue, 24 Nov 2026 14:49:49 +0400 Subject: [PATCH 4/4] docs: add the shader-enabled boot runs to the RTX 5070 measurement The page stated that 26,503 shaders were translated from a log line that only counted the shaders to translate. It now cites the finished build (exit 0, the merged index of 26,503 entries) and adds two runs with translated shaders and LEONIDA_SKIP_INT3=1: both log the root signature refusal, and the run on the finished folder goes on to 1,655 D3D12 calls before an access violation in the title. The two runs differ and the page says that it did not isolate why. --- docs/retail_boot_main_rtx5070.md | 47 ++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/docs/retail_boot_main_rtx5070.md b/docs/retail_boot_main_rtx5070.md index 9225301acf..178fa99a8c 100644 --- a/docs/retail_boot_main_rtx5070.md +++ b/docs/retail_boot_main_rtx5070.md @@ -23,9 +23,11 @@ version of this page was written from runs like that and was wrong; the figures | `main` + #601 (`6fbb08cb8`) | 1,639 calls, 1,619 ok, 20 `called` without an outcome; the last is `CreateUnorderedAccessView` (#1639); then the title's `int3`, at another place than above | | `main` + #601 + #417 | the same 1,639 calls and the same last call as with #601 alone | -Passes on `main`: `make_game.py --stages check,shaders,runtime` (26,503 shaders translated: 2,236 VS, 12,101 PS, -2,689 CS, 9,282 mesh, 195 geometry), `--dry-run` and `--init` (exit 0, no exception, 4 `DllMain` ok, no unimplemented -import). The 4 minute limit was not reached in any run (the shell reported 3 each time). +Passes on `main`: `make_game.py --stages check,shaders,runtime` (the log ends with `exit=0`, 43 minutes; the merged +`shaders/spirv/index.json` of the main corpus has 26,503 entries), `--dry-run` and `--init` (exit 0, no exception, 4 +`DllMain` ok, no unimplemented import). The three runs above were taken before the `shaders` stage had written its +`index.json`, so they ran without translated shaders; section 4 is the run with them. The 4 minute limit was not +reached in any run (the shell reported 3 for the runs above). The startup trace of the `main` run has 25 events and no bad line: 5 `map`, 2 `tls_callback`, 4 `dllmain`, 5 `xmem_attributes`, 1 `xmem_physical_pages` (attributes `0x280`, 11,360 pages), 6 `debug_string` (text not shown) and 1 @@ -60,13 +62,42 @@ For comparison only: [retail_boot_intel_host.md](retail_boot_intel_host.md) reco its integration branch (a C++ throw in `XboxBvhBuilder.dll`). This run has one exception in its trace, the `int3`, so it is not shown to be that stop, and the trees and CPUs differ. -## 4. What this does not show +## 4. With the translated shaders and `LEONIDA_SKIP_INT3=1` -One run per tree, no repeat, no debugger, and `LEONIDA_SKIP_INT3=1` was not run on the Vulkan build. Which instruction -the last `int3` guards is not known. #417 did not change the stop in this run; whether it matters further on is not -shown. +`main` + #601 + #417, `LEONIDA_SHADERS` pointing at the work folder's `shaders/spirv`, `LEONIDA_SKIP_INT3=1`. Two runs, +the second after the build had finished; the shader folder differed between them. -## 5. Reproduce +| | run A, folder still being completed | run B, finished folder | +|---|---|---| +| `translated shaders` in the log | 26,576 | 29,104 | +| D3D12 calls traced | 1,639, the last `CreateUnorderedAccessView` | 1,655, the last two `CreateShaderResourceView` | +| `int3_skipped` events | 1 | 2 | +| end | write access violation in the title at 32.0 s | read access violation in the title at 9.0 s | + +The shell reported 139 for both. Both are an access violation in the title, not a C++ throw. + +- The same run without `LEONIDA_SHADERS` printed `no translated shaders`, and the title's first compute pipeline then + had nothing to load. +- In both runs the log holds the first call of device slot 16 (`CreateRootSignature`) and slot 62 (`CreateComputePipelineState`), + and right after it `root signature usable for graphics only: root parameter 8 does not fit in the user SGPRs from s4 + (spill array not modelled)`. This is the refusal that the `finding:` in the coordination issue ties to the 52 compute + shaders embedded in `XboxBvhBuilder.dll`; it is the same message, and these runs do not establish more than that. +- Run B does not stop at that refusal. After it the title creates four committed resources, a command allocator and four + command lists (each closed at once), a descriptor heap and two shader-resource views, and the log shows the first + calls of device slots 39, 27, 41 and 61 (the last two forwarded). What the title does with the refused signature is not + shown. + +So with the shaders in place the boot is past the missing-shader stop and the signature refusal does not end the run +by itself. Why run A ended earlier than run B was not isolated: the shader folder differs, and neither run was repeated. + +## 5. What this does not show + +No repeat of any run, no debugger. Which instruction the last `int3` guards is not known, and the two runs of section 4 +disagree with each other. #417 did not change the stop in the runs of section 1; whether it matters further on is not +shown. The `translated shaders` count of section 4 depends on how far the build's last step had got, and was not tied +to the shader groups of the index. + +## 6. Reproduce The commands of [boot.md](boot.md) section 2, with `--overlay` and an empty `--trace` name, after checking that the log carries the `Vulkan device:` line. Keep the traces out of the repository: they hold addresses of the executable.