Skip to content

[integration] RT-PALMETTO-PARITY: #984 story-load boot on current main, plus the pipeline-library translator fixes - #1495

Closed
ubiquitarianism wants to merge 30 commits into
mainfrom
integration/palmetto-parity
Closed

ubiquitarianism wants to merge 30 commits into
mainfrom
integration/palmetto-parity

Conversation

@ubiquitarianism

@ubiquitarianism ubiquitarianism commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Claimed in the coordination issue as: RT-PALMETTO-PARITY (#14 (comment))

Depends on: #984, #674, #593, #583, #1281, #1317, #998

What this is

This is one branch that moves the retail boot forward on current main. It is the furthest-along boot integration open here (#984), merged onto main with its conflicts resolved, plus the open translator decode fixes that the title's pipeline-library compute programs need. Each merged PR keeps its own commits and author.

The claim also named a port of measurement notes and a boot-report tool. Those are left out: they do not move the boot.

1. #984 (RT-PROTON-STORY-LOAD, Moriz82), merged onto current main

#984 boots the package through:

  • the launch movie;
  • the first-run pages;
  • the landing prompt;
  • the story load, to its end.

It conflicted with main in 41 files, because main has since merged reviewed versions of many slots it carried (#391, #727, #383, #385, #377, #375). In each conflict I kept main's version and added only what #984 brings on top.

Decisions to check in review:

2. Translator fixes for the pipeline-library programs

Merged, each with its author kept: #674, #593, #583, #1281 (resolved against #583), #1317 and #998 (resolved against main, #583 and #593).

Not merged:

Where #984 and these PRs implement the same rule, one implementation is kept:

Not included, because they are claimed in #14

Each has a finding: there for its owner:

Tested

Windows 11, VS 2026. There is no retail run with this branch, because no game package is on the test machine.

  • compileall and make_game.py --help pass.
  • Runtime build: builds clean. There is no Vulkan SDK on the machine, so it was configured with -DLEONIDA_VULKAN_HEADERS_FETCH=ON.
  • ctest: 305 passed, 2 failed, the rest skipped (game files, validation layers) or disabled. The failures are d3d12_texture_tiles and d3d12_clear, and both fail the same way on plain main. xmem_no_write_watch failed once under -j 8 in an earlier run, then passed when run alone and in a serial run.
  • Translator suite (run_semantic_tests.py): 486 files, 6,292 tests, 0 failed, in 423 s on 12 jobs.
  • Other tests: test_shader_library.py, test_fspx_unpack.py, test_shader_disasm.py and test_rdna2spirv_decode.py pass.
  • python -I scripts/check_no_game_data.py is clean on every file [integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD) #984 adds.
  • Not measured: translated and spirv-val counts over the corpus, because there is no work folder on the test machine.

Tyrannys and others added 30 commits November 24, 2026 03:08
…ibrary programs

50 of the 2,684 library programs in shaders.rpf (1.0.2.1) start with two VOP3
opcode-0x180 words (words 0 and 3) instead of three, and their code starts at
word 6. code_range only knew the 36-byte form, so it disassembled them from
word 0 and they never decoded: 1 of the 50 translated. With the 24-byte form
all 50 disassemble with 0 invalid words and 49 translate and pass spirv-val.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e mask

- s_bitreplicate_b64_b32 with a VCC destination: lane L gets S0 bit L // 2,
  stored as mov64 stores a mask into VCC (EXEC already took this path).
- s_flbit_i32_b64 of a lane mask reads the wave's whole mask (wave_mask), as
  s_ff1_i32_b64 does; s_flbit_i32_i64 of a mask stays Unsupported.

Both occur in pipeline-library compute programs that the retail boot creates.
Tests: tests/semantic/test_lane_mask_bitreplicate_flbit.py runs both on every
lane of a wave64 (run_workgroup); docs/design.md contract rows updated.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… vcc from the blob when llvm-mc rejects them

llvm-mc skips the first word of s_buffer_load_dwordx8 into s[100:107], an image resource in s[100:107] or a buffer resource in s[104:107] and leaves the second word as junk, so translate() refused those shaders (reachable instruction with normalized encoding) or translated them without the load. restore_vcc_tuples reads the uncovered words of the code range with rdna2_decode and keeps only instructions whose operands hold a VCCTuple list, the form the translator already takes. Other undecodable words are unchanged.
Clamp blob[at:at + 20] to min(at + 20, stop) and check at + nbytes <= stop so multi-dword NSA MIMG instructions starting near code_end cannot read trailing bytes past code_end. Adds synthetic 12-byte NSA1 regression test.
…a tuple into vcc

llvm-mc rejects a scalar tuple that runs into vcc and prints the second word as
junk. That junk is often longer than the word, so it also covers the instruction
after the tuple, which stayed missing and refused the program with
'fall-through into undecodable words'. The words after a restored tuple are now
decoded from the blob until the stream is back at a printed instruction.

Pipeline library of 1.0.2.1, 2,684 compute programs: 1,816 -> 2,567 translate
and pass spirv-val; the 1,816 modules are byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
llvm-mc 21 cannot decode SMEM loads whose SOFFSET is null (0x7D), so whole
pipeline-library compute programs of 1.0.2.1 came out with invalid words
and failed to translate. For compute programs, shader_disasm now falls back
to rdna2_decode when that decodes more of the program, and rdna2_decode
reads VOPC with DPP16/DPP8 as the 8-byte form it is.

rdna2spirv:
- SMEM with vcc as its base reads the vcc_lo/vcc_hi pair.
- s_flbit_i32_b64 of a lane mask reads the wave's 64-bit mask (18 library
  programs), as s_ff1_i32_b64 already does.
- s_bitreplicate_b64_b32 of a lane mask into plain scalar data replicates
  the wave's mask word (6 library programs); into exec/vcc it stays
  Unsupported.

test_salu_flbit_64: the lane-mask case now translates (the subgroup op is
outside the single-invocation interpreter), so the test checks that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…alid words

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The retail boot reached 50 pipeline-library compute programs that had no
translation. Dumped from the running game, they all translate and pass
spirv-val after these changes:

- fspx_unpack.code_range: some programs carry a 24-byte hash prologue
  (two VOP3 words, then s_inst_prefetch) instead of 36 bytes; two or three
  hash words now count (shader_library uses the same range).
- fspx_unpack --last-endpgm: early exits branch past the first s_endpgm,
  and data after the code can hold s_endpgm words, so a program ends at
  the first s_endpgm whose listing keeps every branch inside the code.
- rdna2spirv: v_cmp_*_dpp into vcc (12 compares in reductions), taken when
  every lane writes (full row/bank masks with bound_ctrl:1, or DPP8).
- rdna2spirv: s_bitreplicate_b64_b32 of a constant into vcc (6 programs),
  as the exec form does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ect branch targets

Do not scan unreachable embedded data words skipped by s_branch or after s_endpgm / s_setpc_b64 in restore_vcc_tuples. Walk only offsets reachable from code_start via matched instructions, fall-through, and direct/folded far branches, and discard any restored instruction whose interior dwords are targeted by a reachable branch.

Fixes the synthetic edge case reported on #596 / #674 by @Snooozs where an unreachable data word equal to the first dword of an 8-byte vcc-tuple load right before a branch target caused restore_vcc_tuples to swallow the target instruction and fail with 'branch into data'.

Adds regression tests covering: skipped data word before a matched branch target, skipped data word before a vcc-tuple load at the branch target, data word after s_endpgm before a branch target, and fall-through into a data word directly before a branch target.
…r's wave size

#596 walks only reachable offsets. The resync after a restored tuple now runs inside that walk, follows swallowed
branches, and drops the rest of a run when a branch targets an instruction's interior. decode_bytes gets the
program's wave size, so a swallowed VOP3 compare writes an SGPR pair in wave64 (reported on #674).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hash (TOOLS-LIBRARY-COMPUTE-BY-HASH)

The run time finds a pipeline-library compute program by the SHA-256 of
its code and of its record's state blob. shader_library.py kept one
state per program, the last record's, so when two compute records used
one program with different state blobs only one of the two pairs got an
entry and a .state file.

Each distinct state of a program is now written: the first under the
program's name, each further one as <name>_state_<blob index>, with its
own .code, .json, .state, listing and index entry. library.json names
the entry of each record. A program with one state, the case of every
program in the measured 1.0.2.1 library, is written exactly as before.

--compute-hashes FILE writes only the compute programs whose code has
one of the SHA-256 digests listed in FILE, with every state they are
used with. It cannot be combined with --stages, and a digest no compute
program has is an error before anything is written.

tests/test_shader_library.py gets three tests on a synthetic library;
all three fail on the base. The standard-library tests and the
translator suite add no failing file. No retail library was read for
this change.

AI-assisted (Claude Code).

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rds llvm-mc rejects, so the FSR4 FSPX programs translate

The FidelityFX upscaler programs hold 89 such words in 8 programs (docs/fspx.md); the translator already models the form but the listing could not carry it, so the programs were refused as a fall-through into undecodable words.
…ve64_masks

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…_b64 of a lane mask)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lect by code hash)

Conflict with #583 in tools/shader_library.py: kept #1281's per-state loop and #583's
prologue test (start > 0, so the 24-byte prologue counts too).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c rejects)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fuses)

Conflicts resolved toward what main and #583/#593 already have: the 24-byte prologue
(#583's code_range), VOPC DPP decode and translation (main's 'DPP on a VOPC compare'),
s_bitreplicate_b64_b32 into VCC and s_flbit_i32_b64 of a lane mask (#593). Kept from
#998: code_range_last / branch_targets_inside / --last-endpgm in fspx_unpack, the
compute fallback to tools/rdna2_decode.py in shader_disasm, and s_bitreplicate_b64_b32
of a lane-mask source into scalar data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fer store through a vcc resource

luizwidmer/palmetto repairs these words outside the translator with tools/widen_smem_decode.py
(the console's 112-SGPR file is wider than llvm-mc's 106). Here restore_vcc_tuples (#674)
already decodes them from the blob; these cases pin the two forms its tests did not cover:
s_buffer_load_dwordx8 into s[100:107] with an SGPR soffset and an immediate offset, and
buffer_store_dword with its resource in s[104:107]. Encodings built from the field layout.

Ported from luizwidmer/palmetto (GPL-3.0): the forms, from its docs/boot_frontier.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…red fields

llvm-mc decodes a VOP3P v_dot4_i32_i8 whose op_sel_hi is not [1,1,1] (op_sel bit 1 clear) but
prints and re-encodes it with op_sel 0 / op_sel_hi 7, so translate() refused it as a dropped
field. When those two fields are the only difference between the stored and the printed bytes,
they are now read from the blob, in check_printed_encodings and in both re-anchoring paths, and
the v_dot4_i32_i8 rule applies them as measured on gfx1036 (a non-default S2 half stays
refused). Any other difference is still refused.

Ported from luizwidmer/palmetto (GPL-3.0): its restore_vop3p_dot4. Its console_dot4_word (the
op_sel 2 / op_sel_hi 5 words llvm-mc rejects) is not ported: #1317 prints those in
shader_disasm.py. Test: tests/semantic/test_dot4_printed_op_sel.py, hand-built words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ct-table sentence

#998 added the rule (a 32-bit EXEC/VCC half as S0, read through Gen.wave_mask) without a test
or a design.md entry. test_lane_mask_bitreplicate_flbit.py now runs it on every lane of a
wave64 in the CPU interpreter, from exec_lo/exec_hi and from a compare's vcc_lo/vcc_hi, against
the ISA pseudocode. design.md says it is interpreter-checked only, not measured on hardware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 files conflicted (about 200 hunks). Where main already had a reviewed
version of the same feature, main's was kept and only what #984 adds on
top was re-applied; what #984 adds that main lacks was taken.

- d3d12_xs_device: slot 81 stays main's GetFrameStatisticsX with the
  presentation handler (#984's frame-events slot not taken); the
  presenter routing runs before #984's internal PresentX. Slots 25/26/127
  and route_xbox_device_slot are main's (#984's null-heap check on 127
  re-applied); slots 61/74 keep main's console-caller gating; slot 73 is
  main's (console list IID answered as ID3D12GraphicsCommandList, so
  #984's d3d12_xs_command_list_iid.h is dropped). Taken from #984: the
  console list proxy (slot 12 path, upload arena, tail names), queue
  layout detection, slot 9 allocator callback, slots 55/57/70/71/86/133,
  Vulkan-backed CPU heaps, the frame token source and the lease bias.
  The lease section both sides moved is kept once.
- d3d12_vulkan_device: #984's staged/deferred title images and pool with
  main's create_image lambda and NVIDIA host-transfer retry around the
  final bind; main's B4G4R4A4 and stencil masks.
- vulkan_backend.h / vulkan_replay.h: main's structure (device-lost flag,
  mark_device_lost outside the lock) with #984's observe_result and
  unsupported_at(__LINE__).
- file_system / dstorage: #984's kernel_writes reads, main's touch_pages
  retry kept as the fallback.
- rdna2spirv / shader_disasm / shader_ir: main's DPP compares, s_load VCC
  base and widen_wave64_masks, plus #984's skipped-instruction restore and
  per-line invalid-word offsets. rdna2_decode is main's: #984's f32-only
  DPP-compare block ran before main's general one and broke its decode.
- xgameruntime_offline, d3d12_xs.cpp: main's.
- Tests: main's and #984's checks both kept, adapted to the merged
  behaviour (queue tail S_OK, fence slot 12, slot 127 mask).

Policy: executable-relative addresses that #984 quoted were removed
(docs/fspx.md, docs/movies.md, docs/embedded_shaders.md, d3d12_vulkan.md,
d3d12_xs_alloc_size.h, windows-boot scripts). The hang-watchdog kick in
main.cpp and the transient-pool dump in startup_trace.h now take their
locations from LEONIDA_TITLE_WATCHDOG_KICK / LEONIDA_POOL_DIAG_AT instead
of hard-coded RVAs; the boot script's state peeks come from
LEONIDA_GAME_STATE_RVA / LEONIDA_SESSION_STATE_RVA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dxgi_swapchain_count_test: main's failed-resize case passes the
diagnostics argument #984 added to VulkanSwapchain. xs_proxy_mock_test
follows the merge's choices: slot 81 is GetFrameStatisticsX (no frame
events slot 102 in the env mode), slot 73 refuses an IID it does not know
as main's did, and console queue slots the presenter does not route stay
with the queue proxy (S_OK tail) instead of E_NOTIMPL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge kept main's widen_wave64_masks for wave64 lane masks; #984's
variant had no caller left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
These failed on #984's head as well. The loop guard (spirv_loop_guard.py)
puts OpPhi into every loop, which the branch interpreter of
test_control_flow_branches did not model; it now evaluates a block's phis
together from the predecessor. spirv_mini_interp now models OpSwitch, so
it runs the emulated wave64 scheduler that the ds_swizzle and permlane16
tests expected it to reject: they now compare the 64 lanes with their
reference models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…to's dot4 op_sel fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
#	docs/fspx.md
#	tests/semantic/test_alu_dot4_i8.py
#	tests/semantic/test_salu_flbit_64.py
#	tests/semantic/test_vcc_tuple_fallback.py
#	tools/fspx_unpack.py
#	tools/rdna2spirv.py
#	tools/shader_library.py
@QemmHD

QemmHD commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Real-data check on Windows 11 with an: main 3ff2a2a translates the FidelityFX upscaler DLL's programs 27 of 29. Programs 03 and 18 are refused with "reachable instruction with normalized encoding". The same disassembly through this PR's tools/rdna2spirv.py gives 29 of 29 translated, all 29 passing spirv-val. So this fixes a real gap on main (#984's testers had 29/29 on their branch). Counts only.

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

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
@akimfomin

akimfomin commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

For the #984 staged-image review, PortBridge transferred the dirty-region copy test from VIctory #1135 to Moriz82's warm staged-image case. On an RTX 4070 Ti SUPER, one Vulkan update with two regions submitted 128 KiB versus 1 MiB for a whole-texture update. Both initialized images matched all 1,048,576 bytes, with zero Khronos synchronization-validation errors in either worker.

Source, exact XG header pins and raw results. This is a standalone synthetic follow-up to the staged image path in #1495. A warm, private slot-70 image is the candidate for later integration. It needs a known prior layout and a confirmed authoritative snapshot, with whole uploads for first use or unclear write coverage. The 18-case CPU contract found the integration boundary: the current helper can fail after primary queue acceptance. Keep the image and staging until completion is known and preserve the dirty state until publication. The existing callback cannot report an incomplete publication to the caller. I have no boot or frame-time measurement. AI-assisted PortBridge verification (OpenAI Codex).

A follow-up source-extracted fake-driver test exercised the staging lifetime. If primary submission succeeds but its host wait returns an error while still pending, the pinned helper admits another mapped write and frees the old staging allocation on growth. A localized reference gate denies reuse until that exact timeline value completes. It tracks primary completion separately from visibility on other queues and adds no counter query to the ordinary successful path. Patch and fail-before/pass-after logs. These are simulated error paths. Real device loss and the destination image's own lifetime still need integration coverage.

DadaCap added a commit to DadaCap/leonida that referenced this pull request Nov 25, 2026
…e forms llvm-mc skips

main got restore_skipped_instructions with ubiquitarianism#984: an earlier form of this branch's
restore_vcc_tuples that also takes two more forms from the blob (a VOPC f32 compare
in DPP form, the measured v_dot4_i32_i8). restore_vcc_tuples stays the one function
and takes those two forms through skipped_form(), as ubiquitarianism#1495 resolved the same
conflict (the helper is that pull request's). main's tests that called the earlier
function by name call this one; the hand-built listing entry of the DPP recovery
test gets the fields a printed instruction has.

Translator suite: 487 files, 6297 tests, 0 failed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@QemmHD

QemmHD commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Real-boot evidence that this PR is on the critical path (Windows 11, RTX 4070 SUPER, NVIDIA 621.24; main c7e82e2 + #1558 + LEONIDA_TITLE_WINDOWS_MB=1024 for #1537). On main, the two FSPX programs main can't translate show up as "no translated compute shader for FSPX kind-6 and kind-0" at world start, and about 219 s in the process dies on a null pointer inside the upscaler library. With those two programs present, taken from a translation made with this PR's tools (29/29), both log lines are gone and the null-pointer crash no longer happens; the boot goes on about 30 s further. That's one run each way with the same build and settings.

To be clear, this was a local experiment rather than a clean build of this PR: the two missing modules came from this PR's translator, while the other 27 came from main's (22 of the 27 common modules are byte-identical between the two translations, and 5 differ).

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

@djrolfes

Copy link
Copy Markdown
Contributor

Independent corpus confirmation for the owned packed-dot fixes on Linux / llvm-mc 23.1.5 / SPIRV-Tools: main 42537e7 produces 27/29 FSPX modules (two refusals: reachable instruction with normalized encoding). In a separate local validation tree, applying #1317 (4e1ca11) and this PR’s d4b2afe stored-selector fix restores 29/29 translated modules; all 29 independently pass spirv-val --target-env vulkan1.3. No refusal was skipped and no stale modules copied into the output.

Integration-test caveat: #1317’s test_fspx_dot4_op_sel_disasm.py still expects Unsupported for decoded op_sel=0/op_sel_hi=5. That expectation conflicts with the deliberate stored-selector recovery here. Locally I retained every still-undecodable case and converted that one into a positive asymmetric-value control (recovered output 6 versus the adjacent default-selector output 5), rather than dropping coverage. The four focused files now pass 34 tests with real llvm-mc; full semantic validation is running.

The runtime test branch also includes the separately owned #1558, but it does not affect translation. Runtime assertion/watchdog bypasses remain off. No retail run with the fixed FSPX set yet; no world/frame claim. Raw corpus and diagnostics stay local. AI-assisted.

aslan2142 added a commit that referenced this pull request Nov 26, 2026
…re_dot4_inline_sel

The general rule from #1495 (dot4_op_sel_fields / restore_dot4_op_sel,
ported from luizwidmer/palmetto) took the stored op_sel/op_sel_hi of any
v_dot4_i32_i8 that llvm-mc printed with the defaults. That translated
op_sel 0 / op_sel_hi 5 with a VGPR second source, a word #1317's
test_fspx_dot4_op_sel_disasm.py (case (0, 5)) requires to stay refused:
only op_sel 2 / op_sel_hi 5 was measured on gfx1036. The translator suite
failed there.

Resolve it on the measured side:
- drop dot4_op_sel_fields and restore_dot4_op_sel;
- keep main's restore_dot4_inline_sel (#984) and its three call sites:
  the clean-listing check, the forward re-anchor search, and the exact
  re-anchor window #1662 added today. The general rule does not cover
  only those cases, so it cannot replace them;
- tests/semantic/test_dot4_printed_op_sel.py now checks that the
  inline-integer form is restored in a clean listing and on re-anchoring,
  and that op_sel_hi 5 with a VGPR S1, op_sel 1 / op_sel_hi 6,
  op_sel_hi 4 and a non-default S2 half stay refused;
- docs/design.md "Signed-byte dot products" states how each form was
  confirmed (hardware for op_sel 2 / op_sel_hi 5, a corpus count for the
  inline-integer form, refused otherwise); docs/fspx.md follows.

This also settles the #1662 / #1862 overlap: #1662's call site stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aslan2142

Copy link
Copy Markdown
Collaborator

Closing as superseded by #2138, merged as 0b11d86bc.

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

@aslan2142 aslan2142 closed this Nov 26, 2026
milk4sale pushed a commit to milk4sale/leonida that referenced this pull request Nov 26, 2026
…; read them from the environment

ProjectLeonida#984 (273b3bd) put RVAs and file offsets of the retail executable into code, docs and scripts.
The code paths that need one now read it from an environment variable and are off when it is
unset; the docs and examples say the location is measured locally.

- runtime/src/main.cpp: the hang-watchdog kick takes its trap and kick RVAs from
  LEONIDA_TITLE_WATCHDOG_KICK="<trap RVA>,<kick RVA>" (hex), still only when the trap
  instruction is at the first one. Unset, the watchdog stays armed, as before by default;
  LEONIDA_TITLE_WATCHDOG=1 keeps it armed, and LEONIDA_TITLE_WATCHDOG=0 without the RVAs says
  once that it needs them. The LEONIDA_PEEK example uses placeholders.
- runtime/shims/startup_trace.h: the transient-pool dump fires at the int3 that
  LEONIDA_POOL_DIAG_AT names (`<module>+0x<offset>`, as the trace prints it), off when unset.
- scripts/windows-boot/boot.ps1: LEONIDA_PEEK's default comes from LEONIDA_GAME_STATE_RVA and
  LEONIDA_SESSION_STATE_RVA (no peek when unset), and the RESULT digest matches those values;
  the examples and README use placeholders.
- runtime/README.md documents LEONIDA_TITLE_WATCHDOG_KICK and LEONIDA_POOL_DIAG_AT.
- docs/fspx.md, docs/d3d12_vulkan.md, docs/movies.md, docs/embedded_shaders.md and a comment in
  runtime/shims/d3d12_xs_alloc_size.h drop the addresses and offsets.

This follows the same change on the earlier integration branch (ProjectLeonida#1495).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.