Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ method, scope and caveats. No game data is included.
|---|---|
| [design.md](design.md) | Overall project design, asset status, translator contract and open blockers. |
| [related_projects.md](related_projects.md) | Prior art we may read and the licence boundaries on it. |
| [boot_leads.md](boot_leads.md) | Open leads that may move the retail boot further (TLS at module index 0, feature level at device creation, command-list replay, descriptor words, shader corpus count, frame pacing), each with where it lands, how to implement it and how to test it. Hypotheses, not measurements. |
| [boot_leads.md](boot_leads.md) | Open leads that may move the retail boot further (TLS at module index 0, feature level at device creation, command-list replay, descriptor words, shader corpus count, frame pacing), each with where it lands, how to implement it and how to test it, and a status table: BL-2, BL-5 and BL-6 are done, BL-3 and BL-4 have open pull requests, BL-1 waits for a retail confirmation. |
| [rpf.md](rpf.md) | RPF9 archive layout, the carve tools and the unreadable encrypted TOC. |
| [linux.md](linux.md) | Linux in one page: what runs natively and what runs under Wine or Proton, the Ubuntu packages, `Build.sh`, the runtime cross-build, and why there is no native Linux `gta6rt`. |
| [running.md](running.md) | Running the game per platform and GPU (Linux/Wine with AMD, Linux/Proton and Windows with NVIDIA, Windows with AMD, Intel, macOS): build, shaders, pipeline pre-compile, driver settings, environment, what to expect; each value measured by us, reported by others (linked) or TBD. |
Expand Down
39 changes: 35 additions & 4 deletions docs/boot_leads.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# Boot leads: open findings and how to implement them

Open leads that may move the retail boot further, each with where it lands in this repository and how to check it.
Every item is a **hypothesis**: it has not been measured against this package or run in this runtime. Confirm it on
your own copy or with a synthetic test before you build on it, and record the result in the document named under
**Record it in**.
Leads that may move the retail boot further, each with where it lands in this repository and how to check it.
Every lead started as a **hypothesis**. Its **Status** line says whether a merged pull request has answered it, an
open one is working on it, or nothing has yet. What is not marked done there has not been measured against this
package or run in this runtime: confirm it on your own copy or with a synthetic test before you build on it, and
record the result in the document named under **Record it in**.

| Lead | Status |
|---|---|
| BL-1 TLS from module index 0 | Done on `main` with a synthetic test; the retail confirmation is pending |
| BL-2 Feature level at device creation | Done: #913 |
| BL-3 Replay the console command list | In progress: #1050 (open) |
| BL-4 Descriptor words as 32-bit addresses | Done: #1166 (no bare 32-bit addresses in the census) |
| BL-5 Shader corpus count | Done: #882 (a counting difference; the carve misses nothing) |
| BL-6 Frame pacing drift reporting | Done: #891; real numbers still need a retail run |

## Rules

Expand Down Expand Up @@ -52,6 +62,12 @@ your own copy or with a synthetic test before you build on it, and record the re
succeed when asked for 12.0.
- **Where:** `CheckFeatureSupport` reports levels up to 12_1 (`runtime/shims/d3d12_vulkan_device.cpp`, the
`D3D12_FEATURE_FEATURE_LEVELS` case); the Xbox entry point is in `runtime/shims/d3d12_xs_device.cpp`.
- **Status:** done by #913 (merged in `531aa4f5`). The minimum was the problem, not the reported level: the host path
of `D3D12XboxCreateDevice` asked the PC `D3D12CreateDevice` for 12_0 as its minimum, which refuses every adapter
below it. `rt::d3d12_xs::create_host_device` now asks for `kHostDeviceFloor` = 11_0, and the device reports its
own highest level. `xs_proxy_mock_test` covers mock hosts that top out at 11_0 through 12_2. The write-up is in
[d3d12_xs_surface.md](d3d12_xs_surface.md) ("Feature level at device creation (BL-2)"). Still open: reproducing the
original failure on the Wine or Proton host it came from.
- **Implement:** read the level the title passes at creation and make the layer accept the full range it can
satisfy, returning the highest supported level through the feature-level query rather than failing creation on a
lower request. Report 12_2 only where mesh shaders and ray tracing are present
Expand All @@ -67,6 +83,8 @@ your own copy or with a synthetic test before you build on it, and record the re
list is closed or executed than by translating each call as it is made.
- **Where:** the "console list tail" listed as open in the README's D3D12 → Vulkan row and in
[d3d12_vulkan.md](d3d12_vulkan.md); call orders are in [d3d12_command_objects.md](d3d12_command_objects.md).
- **Status:** in progress in #1050 (open: "replay the console list's inline records as their vtable calls"). Read it
and its review before starting work of your own here.
- **Implement:** record the console-only calls into a per-list buffer, then translate them to Vulkan in order at
`Close`/`Execute`. Keep calls that must take effect immediately (those whose results the title reads back) out of
the buffer.
Expand All @@ -86,6 +104,8 @@ your own copy or with a synthetic test before you build on it, and record the re
1,296 slots of interleaved constant data; and **0 slots that are bare 32-bit GPU addresses**.
- **Conclusion:** BL-4 hypothesis is not supported on this stack. Descriptors pack 48-bit addresses into V# / T# fields rather
than exposing bare 32-bit pointer words. Characterized by model-level reference contract suite `tests/test_descriptor_address_translation.py` (53 tests modeling the documented arena bitfield partitioning and address extraction contracts).
- **Status:** done by #1166 (merged in `95eacfa7c`): the census found no bare 32-bit addresses, so the
hypothesis is not supported on this stack.
- **Record it in:** [d3d12_vulkan.md](d3d12_vulkan.md) §3.4 with the census breakdown.
- **Needs:** none (census completed and verified).

Expand All @@ -96,6 +116,12 @@ your own copy or with a synthetic test before you build on it, and record the re
misses.
- **Where:** the carve and library tools (`make_game.py`, `tools/shader_carve.py`, `tools/shader_library.py`) and
[shader_library.md](shader_library.md).
- **Status:** done by #882 (merged in `71f99e22`): a counting difference, not a gap. 26,503 counts carved `DXBC`
containers and 26,698 counts the `FSSM` payloads in them; the 195 extra are vertex-shader containers that also hold
the export-shader build of the same shader for a legacy geometry-shader pipeline. `tools/fssm_unpack.py` prints
both counts and a line per stage; the table is in [shader_library.md](shader_library.md) ("Containers and
programs"). Still open: which payload a geometry-shader pipeline selects ([fssm_crosscheck.md](fssm_crosscheck.md)
§6); the 195 export-stage variants are not translated yet.
- **Implement:** list how programs are enumerated (per file, per container, per variant) and print a breakdown by
stage. If the 195 are a counting difference, document it. If they are real, find where the carve skips them and fix
that, not the count.
Expand All @@ -110,6 +136,11 @@ your own copy or with a synthetic test before you build on it, and record the re
figures make that visible.
- **Where:** the frame pacer in `runtime/src/frame_pacer.h` and its `PresentX` wiring in
`runtime/shims/xbox_present.cpp`.
- **Status:** done by #891 (merged in `3ba069eb`). `FramePacer` keeps ring buffers of frame times and
origin-to-present latencies (`frame_pacing_window` = 1024), `XboxPresentation` logs a pacing summary at teardown,
and `tools/boot_trace.py` reports it (p50/p95/p99, mean and drift against target);
`runtime/test/frame_pacer_test.cpp` checks it with a fake clock. Recorded in [d3d12_vulkan.md](d3d12_vulkan.md)
("Pacing drift reporting (BL-6)") and [boot.md](boot.md). Still open: numbers from a retail run.
- **Implement:** record frame times in a ring buffer and report p50, p95 and p99 plus the drift of the mean against
the target interval, in the run summary beside the existing D3D12 counts ([boot.md](boot.md)).
- **Test:** extend `runtime/test/frame_pacer_test.cpp` with a fake clock feeding known intervals, asserting the
Expand Down
Loading