diff options
| author | ubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com> | 2026-11-24 11:38:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-24 11:38:39 -0500 |
| commit | 4fddbd0a1d519dcffe64ae293409bf9f2d32b8c6 (patch) | |
| tree | 0f523185d06b23166efae1ed2c2a87c30ecc8ed3 /docs | |
| parent | 3ed8e50b754eb9dcf9e3819eddbbbccd52fc1177 (diff) | |
| parent | c868b1ccfd49fc8244de16f848622125bf248831 (diff) | |
Merge pull request #741 from aslan2142/proc408-gameinput-stop
OLD-7383: restore old upstream PR 7383 - retail_boot_chain: the Wine-only gameinput.dll ordinal 1 stop after the TLS stop (PROC-408)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/retail_boot_chain.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/retail_boot_chain.md b/docs/retail_boot_chain.md index fd07905be..7fd5eef65 100644 --- a/docs/retail_boot_chain.md +++ b/docs/retail_boot_chain.md | |||
| @@ -18,6 +18,7 @@ stand-ins named below (not pull requests yet). Own 1.0.2.1 copy, Windows 11, RTX | |||
| 18 | | 2 | The 2 MiB reserve+commit calls carry attribute words the shim refuses, and `PAGE_GRAPHICS_*` bits (0x800..0x40000) on top of `PAGE_READWRITE` | Local: accept the attribute word, drop the graphics bits and keep the CPU protection. All seven startup allocations then succeed. #6843 measures the attribute words; no PR changes the check yet | | 18 | | 2 | The 2 MiB reserve+commit calls carry attribute words the shim refuses, and `PAGE_GRAPHICS_*` bits (0x800..0x40000) on top of `PAGE_READWRITE` | Local: accept the attribute word, drop the graphics bits and keep the CPU protection. All seven startup allocations then succeed. #6843 measures the attribute words; no PR changes the check yet | |
| 19 | | 3 | `xgameruntime.lib`'s thunk treats a missing `XErrorReport` as fatal | #6582 | | 19 | | 3 | `xgameruntime.lib`'s thunk treats a missing `XErrorReport` as fatal | #6582 | |
| 20 | | 4 | Access violation in the title's allocator: its `/GA` code reads its TLS from module index 0 | #4313 | | 20 | | 4 | Access violation in the title's allocator: its `/GA` code reads its TLS from module index 0 | #4313 | |
| 21 | | 4a | Wine only, not reached on Windows: `GameInput.dll` ordinal 1, the executable's `GameInputCreate` import (by ordinal, not by name), which the loader looks up as `gameinput.dll!#1`. When `gta6rt` doesn't serve that name, the import binds to the host's `GameInput.dll`. On Windows the installed one answers; under Wine it is Wine's builtin stub, and the title reads through a null pointer right after the call. Measured by hcristosm after stop 4 with stop 5's fix (old upstream PR 4348) merged, so its order against stop 5 is not measured. #127 reproduced it on Wine 11.21 staging: the title's own `int3` 0.65 s after start, before any D3D12 call | #127 (the `#1` alias in the shim table, `runtime/shims/gameinput.cpp`), but only in a `gta6rt` built with the GameInput shim, that is with SDL3: an installed SDL3 3.2 or newer that CMake finds, `-DLEONIDA_SDL3_FETCH=ON` (`scripts/build_runtime.ps1 -FetchSdl3`) or `-DFETCHCONTENT_SOURCE_DIR_SDL3`. A build without SDL3, one with `-DLEONIDA_SDL3=OFF`, and `build_runtime.ps1`'s `cl.exe` fallback have no `GameInputCreate` at all ([gameinput.md](gameinput.md#building)), so they still stop here under Wine. With the shim and the alias, the Wine run went on to stop 6 in hcristosm's measurement | | ||
| 21 | | 5 | Fatal assert when `DStorageGetFactory` returns null | #4348 | | 22 | | 5 | Fatal assert when `DStorageGetFactory` returns null | #4348 | |
| 22 | | 6 | `XMemAllocatePhysicalPages` unimplemented; the title asserts on FALSE | Local stand-in, §2 | | 23 | | 6 | `XMemAllocatePhysicalPages` unimplemented; the title asserts on FALSE | Local stand-in, §2 | |
| 23 | | 7 | `D3D12XboxCreateDevice` succeeds; device slot 26 is called with its arguments swapped | Local, §3.1 | | 24 | | 7 | `D3D12XboxCreateDevice` succeeds; device slot 26 is called with its arguments swapped | Local, §3.1 | |
| @@ -28,6 +29,9 @@ stand-ins named below (not pull requests yet). Own 1.0.2.1 copy, Windows 11, RTX | |||
| 28 | | 12 | Device slot 133 is called; the proxy table had 128 slots, so the call went through a null pointer | Local: a 192-slot table, and a slot 133 stand-in, §3.4 | | 29 | | 12 | Device slot 133 is called; the proxy table had 128 slots, so the call went through a null pointer | Local: a 192-slot table, and a slot 133 stand-in, §3.4 | |
| 29 | | 13 | **Current stop**: right after the first `CreateDescriptorHeap`, the title calls the heap's slot 9 (`GetCPUDescriptorHandleForHeapStart` on the PC), takes the handle from `rax` and asserts that it equals a value it already holds. Hypothesis: a console descriptor heap starts at an address the title chose or can predict, which the PC handle doesn't match | Open: a question for the descriptor model ([boot.md](boot.md) Q4) | | 30 | | 13 | **Current stop**: right after the first `CreateDescriptorHeap`, the title calls the heap's slot 9 (`GetCPUDescriptorHandleForHeapStart` on the PC), takes the handle from `rax` and asserts that it equals a value it already holds. Hypothesis: a console descriptor heap starts at an address the title chose or can predict, which the PC handle doesn't match | Open: a question for the descriptor model ([boot.md](boot.md) Q4) | |
| 30 | 31 | ||
| 32 | Row 4a is the one row measured under Wine (by hcristosm on Wine 9.0, also reproduced on Proton Experimental; by | ||
| 33 | #127 on Wine 11.21 staging), not on the setup above. It is numbered 4a so that the Windows stops keep their numbers. | ||
| 34 | |||
| 31 | At stop 13 the D3D12 trace holds 1,185 calls: the device, 5 command queues, 5 fences, 7 command allocators, | 35 | At stop 13 the D3D12 trace holds 1,185 calls: the device, 5 command queues, 5 fences, 7 command allocators, |
| 32 | 581 command lists created and closed, a shader cache session, `XboxIDXGIDevice::GetAdapter`, one failed | 36 | 581 command lists created and closed, a shader cache session, `XboxIDXGIDevice::GetAdapter`, one failed |
| 33 | `ID3D12Device10::CreateReservedResource2`, the first `CreateSampler2`, one committed resource (the slot 133 | 37 | `ID3D12Device10::CreateReservedResource2`, the first `CreateSampler2`, one committed resource (the slot 133 |