Skip to content

docs/retail_boot_chain: the render bring-up past stop 17, measured - #8166

Open
Silliana wants to merge 1 commit into
ItsNotRexed:mainfrom
Silliana:docs/boot-chain-render
Open

Silliana wants to merge 1 commit into
ItsNotRexed:mainfrom
Silliana:docs/boot-chain-render

Conversation

@Silliana

Copy link
Copy Markdown

Claimed in #7694: #7694 (comment)

Depends on: #6982 (docs only; section 5 continues from that PR's stop 17). This adds a section at the end of the file and does not edit #6982's rows, so a conflict is limited to the file tail.

What and why

docs/retail_boot_chain.md ends at stop 17 and says nothing has reached a draw or a present. That is still true for a frame, but the chain now goes past stop 17 to the renderer: the title's own (empty) main window, five descriptor heaps, the placed buffer at device slot 133, slots 70/25/127, a root signature and the first compute PSO request. This adds a measured section 5 recording that, the three things that stop it, and what is explicitly not shown (swapchain, present, drawn frame).

Measured on main 9f53c502e with #7524, #6582, #4348, #6964, #6954, #7076, #7021, #6953, #7218, #7066, #7110 and #7052 merged locally, Windows 11 26200, RTX 3070 Ti (driver 32.0.15.9649), Vulkan runtime 1.4.329 / SDK 1.4.357.0, MSVC RelWithDebInfo, own 1.0.2.1 copy.

The three stops recorded:

  • the placed buffer's host import: 74 MiB of the range is PAGE_WRITECOMBINE and this driver imports at most about 64 MiB of host memory in total (64 MiB ok, 128 MiB VK_ERROR_OUT_OF_DEVICE_MEMORY, 16 MiB chunks fail on the fifth), so d3d12_xs: device slot 133 (CreatePlacedResourceX) makes a buffer on the title's own pages (VK_EXT_external_memory_host) #7218 needs a fallback over that budget;
  • a debug-only page check (alignment - size + base <= 2 MiB - 1), soft and stepped over with LEONIDA_SKIP_INT3=1;
  • the shader index: the first PSO returns 0xE06D7363 until LEONIDA_SHADERS names the folder with index.json and the .spv files.

Tested

  • python -I tests/test_docs_repeated_lines.py - OK
  • python -I tests/test_docs_list_items.py - OK
  • python -I tests/test_docs_table_rows.py - OK
  • python -I tests/test_docs_repo_paths.py - OK
  • python -I scripts/check_no_game_data.py docs/retail_boot_chain.md - exit 0
  • python -I tests/test_docs_links.py - 6 pass, 1 fail; the failure is pre-existing on main in untouched pages (docs/dev-tools.md anchor, docs/gpu_test_results.md -> missing gpu-test-results/RX9070GRE.txt).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. No executable addresses, window title, IID values, disassembly or bytes; only method/slot names, counts, sizes, page attributes and HRESULT values.
  • A new translator rule is in the contract table of docs/design.md - not applicable (docs only).

AI-assisted: yes. The measurement comes from this machine's own package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant