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

Merged
ubiquitarianism merged 26 commits from upstream-pr/2138 into main 2026-11-26 03:08:22 +00:00
ubiquitarianism commented 2026-11-25 22:31:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-11-25T22:31:48Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5500308741 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2138). Originally posted by [ubiquitarianism](https://github.com/ubiquitarianism) on 2026-11-25T22:31:48Z. --- 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.
ecox982745 commented 2026-11-25 22:51:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ecox982745 on 2026-11-25T22:51:06Z.


Both null-resource paths preserved a real GPU submission on the RTX 4090. I compared the integration head 6c8a89dea with ae1b48288, its mainline base before the integration merges. Windows 11, NVIDIA 616.64, MSVC 19.44, Release.

Operation inserted before the fixture's compute work Base Integration head
No extra operation Passed Passed
Console list slot 52, clear a null-resource RTV List failed at Close Skipped the clear, submitted the list and matched readback
Console list slot 146, texture barrier with no resource List failed at Close Recorded a global barrier, submitted the list and matched readback

I used the synthetic read-write case from d3d12_title_va_test, with the device proxy's console-list mode enabled. For the RTV case I allocated an RTV heap, created an explicit RGBA8 texture2D view with a null resource, and cleared its handle. For the barrier case I supplied one texture barrier from render-target write to pixel-shader read. Each probe recorded only that additional console call before the existing compute dispatches and copies on the same underlying list. The fenced readback checked 64/64 descriptor reads and 64/64 root-view results on the head, and 0/64 matched the other buffer. Both rows and the control gave the same result with Khronos validation enabled and disabled.

I also ran the four CTests called out in the PR description on both revisions, serially, with glslang available. d3d12_texture_tiles, pipeline_cache_seed, d3d12_clear and vk_null_descriptor passed in both validation modes. In particular the NaN depth clear matched the WARP reference for all 15 texels, and the runtime reported a pipeline-cache hit on the RTX 4090. The separate CPU mock test xs_proxy_mock passed on both revisions.

These results cover the two command-list operations and synthetic readback. The retail boot milestone is still covered by the author's RX 6800 report. AI-assisted with OpenAI Codex (gpt-6.2-astra).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7176860974 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2138#issuecomment-7176860974). Originally posted by [ecox982745](https://github.com/ecox982745) on 2026-11-25T22:51:06Z. --- **Both null-resource paths preserved a real GPU submission on the RTX 4090.** I compared the integration head `6c8a89dea` with `ae1b48288`, its mainline base before the integration merges. Windows 11, NVIDIA 616.64, MSVC 19.44, Release. | Operation inserted before the fixture's compute work | Base | Integration head | |---|---|---| | No extra operation | Passed | Passed | | Console list slot 52, clear a null-resource RTV | List failed at `Close` | Skipped the clear, submitted the list and matched readback | | Console list slot 146, texture barrier with no resource | List failed at `Close` | Recorded a global barrier, submitted the list and matched readback | I used the synthetic read-write case from `d3d12_title_va_test`, with the device proxy's console-list mode enabled. For the RTV case I allocated an RTV heap, created an explicit RGBA8 texture2D view with a null resource, and cleared its handle. For the barrier case I supplied one texture barrier from render-target write to pixel-shader read. Each probe recorded only that additional console call before the existing compute dispatches and copies on the same underlying list. The fenced readback checked 64/64 descriptor reads and 64/64 root-view results on the head, and 0/64 matched the other buffer. Both rows and the control gave the same result with Khronos validation enabled and disabled. I also ran the four CTests called out in the PR description on both revisions, serially, with `glslang` available. `d3d12_texture_tiles`, `pipeline_cache_seed`, `d3d12_clear` and `vk_null_descriptor` passed in both validation modes. In particular the NaN depth clear matched the WARP reference for all 15 texels, and the runtime reported a pipeline-cache hit on the RTX 4090. The separate CPU mock test `xs_proxy_mock` passed on both revisions. These results cover the two command-list operations and synthetic readback. The retail boot milestone is still covered by the author's RX 6800 report. AI-assisted with OpenAI Codex (`gpt-6.2-astra`).
aslan2142 commented 2026-11-26 03:08:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T03:08:25Z.


Merged. We merged today's main in and fixed the review points, still as one PR:

  • shader_disasm: wave32 is passed through the dot4 re-decode, as #1317's head does.
  • fspx_unpack: main's literal-form check for the 24-byte prologue is back, as #583's head has it.
  • dot4: only measured forms translate. restore_dot4_inline_sel and #1662's call site are kept, the general op_sel rule is dropped, and the design.md row says how each form was confirmed.
  • Watchdog: the kick needs LEONIDA_TITLE_WATCHDOG=0 again; LEONIDA_TITLE_WATCHDOG_KICK only names the addresses.
  • boot.ps1: no built-in LEONIDA_PEEK any more. It warns when the addresses are unset, and the READMEs say to set LEONIDA_GAME_STATE_RVA / LEONIDA_SESSION_STATE_RVA.
  • Null-RTV marks: they're dropped when their heap is released (mock test added).
  • Tested: translator suite with 0 failed files; the Python tests pass; Wine suite on the Ryzen 9 7950X3D's integrated GPU (gfx1036, RADV): no new failures.
  • Checked on main 7f3d0095a + b3e541b22: it merges cleanly; the semantic suite passes (498 files, 6,351 tests, 0 files failed); the 15 docs and writer tests pass; check_no_game_data.py is clean on the 31 changed files.

This includes #1281, #998, #1504, #1317 and #583 (closed as included) and supersedes #1495.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7181430994 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2138#issuecomment-7181430994). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-26T03:08:25Z. --- Merged. We merged today's `main` in and fixed the review points, still as one PR: - **`shader_disasm`:** `wave32` is passed through the dot4 re-decode, as #1317's head does. - **`fspx_unpack`:** `main`'s literal-form check for the 24-byte prologue is back, as #583's head has it. - **dot4:** only measured forms translate. `restore_dot4_inline_sel` and #1662's call site are kept, the general op_sel rule is dropped, and the `design.md` row says how each form was confirmed. - **Watchdog:** the kick needs `LEONIDA_TITLE_WATCHDOG=0` again; `LEONIDA_TITLE_WATCHDOG_KICK` only names the addresses. - **`boot.ps1`:** no built-in `LEONIDA_PEEK` any more. It warns when the addresses are unset, and the READMEs say to set `LEONIDA_GAME_STATE_RVA` / `LEONIDA_SESSION_STATE_RVA`. - **Null-RTV marks:** they're dropped when their heap is released (mock test added). - **Tested:** translator suite with 0 failed files; the Python tests pass; Wine suite on the Ryzen 9 7950X3D's integrated GPU (gfx1036, RADV): no new failures. - **Checked on `main` `7f3d0095a` + `b3e541b22`:** it merges cleanly; the semantic suite passes (498 files, 6,351 tests, 0 files failed); the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 31 changed files. This includes #1281, #998, #1504, #1317 and #583 (closed as included) and supersedes #1495. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2138
No description provided.