[PR #2138] [MERGED] [integration] RT-BOOT-COMBINED: translator fixes + null-barrier fix on main; scripted pad past legal terms to the story load #2143

Closed
opened 2026-11-26 21:20:11 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2138
Author: @ubiquitarianism
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142

Base: main ← Head: integration/boot-combined


📝 Commits (10+)

  • 4b9a891 fspx_unpack: code_range takes the 24-byte prologue of some pipeline-library programs
  • ebcb0ac tools: decode the pipeline-library compute programs llvm-mc refuses
  • bf0c4d9 tests: fspx_unpack takes the decoder listing when llvm-mc reports invalid words
  • bec14f2 tools: the last pipeline-library compute programs of 1.0.2.1
  • 4e1ca11 fix: shader_disasm prints the v_dot4_i32_i8 op_sel 2 / op_sel_hi 5 words llvm-mc rejects, so the FSR4 FSPX programs translate
  • 570db1d shader_library: keep each state of a compute program, select by code hash (TOOLS-LIBRARY-COMPUTE-BY-HASH)
  • 0cb367c Merge #674 (vcc-tuple-resync): restore_vcc_tuples, the one restore pass
  • 156a056 Merge #583 (FSPX short prologue)
  • 79cf7e7 Merge #1281 (shader library keeps each compute state, select by code hash)
  • f7b4aa7 Merge #1317 (print the v_dot4_i32_i8 op_sel words llvm-mc rejects)

📊 Changes

31 files changed (+1378 additions, -79 deletions)

View changed files

📝 README.md (+4 -1)
📝 docs/README.md (+1 -1)
📝 docs/d3d12_vulkan.md (+5 -1)
📝 docs/design.md (+2 -2)
📝 docs/embedded_shaders.md (+2 -2)
📝 docs/first_run_ui.md (+13 -0)
📝 docs/fspx.md (+27 -6)
📝 docs/movies.md (+2 -2)
📝 docs/shader_library.md (+7 -2)
📝 runtime/README.md (+4 -1)
📝 runtime/shims/d3d12_xs_alloc_size.h (+1 -1)
📝 runtime/shims/d3d12_xs_device.cpp (+228 -1)
📝 runtime/shims/startup_trace.h (+11 -4)
📝 runtime/src/main.cpp (+40 -13)
📝 runtime/test/xs_proxy_mock_test.cpp (+315 -5)
📝 scripts/windows-boot/README.md (+11 -4)
📝 scripts/windows-boot/boot.ps1 (+14 -5)
📝 tests/semantic/test_alu_dot4_i8.py (+3 -1)
➕ tests/semantic/test_dot4_printed_op_sel.py (+130 -0)
➕ tests/semantic/test_fspx_dot4_op_sel_disasm.py (+157 -0)

...and 11 more files

📄 Description

Claimed in the coordination issue as: RT-BOOT-COMBINED (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7175978134)

Depends on: #1495, #1504, #674, #583, #1281, #1317, #998

What this is

One integration branch on current main (ae1b48288):

  • Translator: the pipeline-library translator fixes from #1495 (#674, #583, #1281, #1317, #998 and the dot4 op_sel, s_bitreplicate and vcc-tuple follow-ups), without the #984 merge, since main already has #984. Each merged PR keeps its own commits.
  • Runtime: the null-resource texture barrier and null-view RTV clear fix from #1504, rebased onto current main. The only conflict was the list-values block in runtime/shims/d3d12_xs_device.cpp, and both sides were kept.
  • Hygiene: the title's executable addresses that #984 left in runtime/src/main.cpp, scripts/windows-boot/ and docs/ are removed. The peeks read them from the environment (LEONIDA_GAME_STATE_RVA, LEONIDA_SESSION_STATE_RVA, LEONIDA_PEEK).
  • Docs: docs/first_run_ui.md gets the scripted-pad route through the first-run pages, and the README status paragraph gets one sentence linking to it. The status rows from DOC-README-BOOT-STATUS (#1643) are unchanged.

How far it boots

Native Windows 11, retail 1.0.2.1, scripts/windows-boot/boot.ps1, the same translated shader set for every run, no device faults in any run:

  • main alone, default input: reaches the first-run "navigation experience" page.
  • This branch, default input: reaches the same page at the same time. Neither the null-barrier nor the null-RTV path fired on this route, so the runtime fix is not what moves it.
  • This branch, scripted pad: gets through navigation experience, brightness, legal notices and legal terms. Confirm then shows the story-load loading screen, whose spinner was still turning when the 400 s run ended, about 100 s after Confirm.

Getting through needed no code change, only input. The legal-terms page keeps Confirm greyed out until both boxes are ticked, and down stops at Confirm, so an a/down-only script sits there looking stuck. The doc records the page order and the up / a / down / a retry that confirmed.

Tested

  • GPU: AMD Radeon RX 6800, driver 32.0.21030.2001, Windows 11 Pro 26200.
  • Python: python -m compileall -q make_game.py tools tests and python -I make_game.py --help pass. tests/test_fspx_unpack.py, tests/test_rdna2spirv_decode.py, tests/test_shader_library.py and tests/test_text_write_line_endings.py pass.
  • Translator suite: python -I scripts/run_semantic_tests.py tests/semantic reports 493 files, 6328 tests, 0 files failed.
  • Runtime: configured with -DLEONIDA_VULKAN_HEADERS_FETCH=ON -DLEONIDA_REQUIRE_VULKAN=ON, built RelWithDebInfo with MSVC 19.50. CTest passes except four tests that fail the same way on main on this machine:
    • d3d12_texture_tiles, pipeline_cache_seed and d3d12_clear fail on both. d3d12_clear fails because a NaN depth clear reads back 1, apparently an AMD driver behaviour.
    • vk_null_descriptor does not compile without glslangValidator.
    • Under ctest -j 8 about 30 loader and file tests collide on shared temp folders; they pass when run one at a time.
  • No game data: python -I scripts/check_no_game_data.py over every changed file passes. No captures, logs or addresses are in the branch or this description.

Not done

  • No world frame. The loading screen was still up at the end of the run, so whether the load finishes on this machine is the next thing to measure.
  • tools/stage_timeline.py on main still carries title addresses. It is not touched here and is left for its own finding.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2138 **Author:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Created:** 11/25/2026 **Status:** ✅ Merged **Merged:** 11/26/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `integration/boot-combined` --- ### 📝 Commits (10+) - [`4b9a891`](https://github.com/ubiquitarianism/leonida/commit/4b9a89124a470d266f0ed314db17a79fc45957be) fspx_unpack: code_range takes the 24-byte prologue of some pipeline-library programs - [`ebcb0ac`](https://github.com/ubiquitarianism/leonida/commit/ebcb0acad599f0199b827a7ebc8008585aaa5dd6) tools: decode the pipeline-library compute programs llvm-mc refuses - [`bf0c4d9`](https://github.com/ubiquitarianism/leonida/commit/bf0c4d99ce4fca375a89538d200efdd7cb70f84d) tests: fspx_unpack takes the decoder listing when llvm-mc reports invalid words - [`bec14f2`](https://github.com/ubiquitarianism/leonida/commit/bec14f22599924c9d6d98b76714e00b6e0cc798a) tools: the last pipeline-library compute programs of 1.0.2.1 - [`4e1ca11`](https://github.com/ubiquitarianism/leonida/commit/4e1ca11a650afd3f187adba55a7938a74b32f009) fix: shader_disasm prints the v_dot4_i32_i8 op_sel 2 / op_sel_hi 5 words llvm-mc rejects, so the FSR4 FSPX programs translate - [`570db1d`](https://github.com/ubiquitarianism/leonida/commit/570db1d58f67a3b899cc60f53055eeb86fc8ac3d) shader_library: keep each state of a compute program, select by code hash (TOOLS-LIBRARY-COMPUTE-BY-HASH) - [`0cb367c`](https://github.com/ubiquitarianism/leonida/commit/0cb367cadd3b70b368a093742d4e9d35ee37f3e6) Merge #674 (vcc-tuple-resync): restore_vcc_tuples, the one restore pass - [`156a056`](https://github.com/ubiquitarianism/leonida/commit/156a056b85289eece6878fe2ba12c7c17c44ca96) Merge #583 (FSPX short prologue) - [`79cf7e7`](https://github.com/ubiquitarianism/leonida/commit/79cf7e78cfa1eedcdbf69dcdf0a4f7d5ee7b7b00) Merge #1281 (shader library keeps each compute state, select by code hash) - [`f7b4aa7`](https://github.com/ubiquitarianism/leonida/commit/f7b4aa7ee28ed991fa71cb702ac3525166ae5cd5) Merge #1317 (print the v_dot4_i32_i8 op_sel words llvm-mc rejects) ### 📊 Changes **31 files changed** (+1378 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+4 -1) 📝 `docs/README.md` (+1 -1) 📝 `docs/d3d12_vulkan.md` (+5 -1) 📝 `docs/design.md` (+2 -2) 📝 `docs/embedded_shaders.md` (+2 -2) 📝 `docs/first_run_ui.md` (+13 -0) 📝 `docs/fspx.md` (+27 -6) 📝 `docs/movies.md` (+2 -2) 📝 `docs/shader_library.md` (+7 -2) 📝 `runtime/README.md` (+4 -1) 📝 `runtime/shims/d3d12_xs_alloc_size.h` (+1 -1) 📝 `runtime/shims/d3d12_xs_device.cpp` (+228 -1) 📝 `runtime/shims/startup_trace.h` (+11 -4) 📝 `runtime/src/main.cpp` (+40 -13) 📝 `runtime/test/xs_proxy_mock_test.cpp` (+315 -5) 📝 `scripts/windows-boot/README.md` (+11 -4) 📝 `scripts/windows-boot/boot.ps1` (+14 -5) 📝 `tests/semantic/test_alu_dot4_i8.py` (+3 -1) ➕ `tests/semantic/test_dot4_printed_op_sel.py` (+130 -0) ➕ `tests/semantic/test_fspx_dot4_op_sel_disasm.py` (+157 -0) _...and 11 more files_ </details> ### 📄 Description Claimed in the coordination issue as: RT-BOOT-COMBINED (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7175978134) Depends on: #1495, #1504, #674, #583, #1281, #1317, #998 ## What this is One integration branch on current `main` (`ae1b48288`): - **Translator:** the pipeline-library translator fixes from #1495 (#674, #583, #1281, #1317, #998 and the dot4 `op_sel`, `s_bitreplicate` and vcc-tuple follow-ups), without the #984 merge, since `main` already has #984. Each merged PR keeps its own commits. - **Runtime:** the null-resource texture barrier and null-view RTV clear fix from #1504, rebased onto current `main`. The only conflict was the list-values block in `runtime/shims/d3d12_xs_device.cpp`, and both sides were kept. - **Hygiene:** the title's executable addresses that #984 left in `runtime/src/main.cpp`, `scripts/windows-boot/` and `docs/` are removed. The peeks read them from the environment (`LEONIDA_GAME_STATE_RVA`, `LEONIDA_SESSION_STATE_RVA`, `LEONIDA_PEEK`). - **Docs:** `docs/first_run_ui.md` gets the scripted-pad route through the first-run pages, and the README status paragraph gets one sentence linking to it. The status rows from DOC-README-BOOT-STATUS (#1643) are unchanged. ## How far it boots Native Windows 11, retail 1.0.2.1, `scripts/windows-boot/boot.ps1`, the same translated shader set for every run, no device faults in any run: - **`main` alone, default input:** reaches the first-run "navigation experience" page. - **This branch, default input:** reaches the same page at the same time. Neither the null-barrier nor the null-RTV path fired on this route, so the runtime fix is not what moves it. - **This branch, scripted pad:** gets through navigation experience, brightness, legal notices and legal terms. Confirm then shows the story-load loading screen, whose spinner was still turning when the 400 s run ended, about 100 s after Confirm. Getting through needed no code change, only input. The legal-terms page keeps Confirm greyed out until both boxes are ticked, and `down` stops at Confirm, so an `a`/`down`-only script sits there looking stuck. The doc records the page order and the `up` / `a` / `down` / `a` retry that confirmed. ## Tested - **GPU:** AMD Radeon RX 6800, driver 32.0.21030.2001, Windows 11 Pro 26200. - **Python:** `python -m compileall -q make_game.py tools tests` and `python -I make_game.py --help` pass. `tests/test_fspx_unpack.py`, `tests/test_rdna2spirv_decode.py`, `tests/test_shader_library.py` and `tests/test_text_write_line_endings.py` pass. - **Translator suite:** `python -I scripts/run_semantic_tests.py tests/semantic` reports 493 files, 6328 tests, 0 files failed. - **Runtime:** configured with `-DLEONIDA_VULKAN_HEADERS_FETCH=ON -DLEONIDA_REQUIRE_VULKAN=ON`, built `RelWithDebInfo` with MSVC 19.50. CTest passes except four tests that fail the same way on `main` on this machine: - `d3d12_texture_tiles`, `pipeline_cache_seed` and `d3d12_clear` fail on both. `d3d12_clear` fails because a NaN depth clear reads back 1, apparently an AMD driver behaviour. - `vk_null_descriptor` does not compile without `glslangValidator`. - Under `ctest -j 8` about 30 loader and file tests collide on shared temp folders; they pass when run one at a time. - **No game data:** `python -I scripts/check_no_game_data.py` over every changed file passes. No captures, logs or addresses are in the branch or this description. ## Not done - No world frame. The loading screen was still up at the end of the run, so whether the load finishes on this machine is the next thing to measure. - `tools/stage_timeline.py` on `main` still carries title addresses. It is not touched here and is left for its own finding. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:20:11 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2143
No description provided.