mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1524
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1495
Author: @ubiquitarianism
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:integration/palmetto-parity📝 Commits (10+)
4b9a891fspx_unpack: code_range takes the 24-byte prologue of some pipeline-library programs1ea2ffbrdna2spirv: s_bitreplicate_b64_b32 into VCC, s_flbit_i32_b64 of a lane maskce98fbefix: rdna2spirv decodes scalar, image and buffer tuples that run into vcc from the blob when llvm-mc rejects themf7a338brdna2spirv: clamp restore_vcc_tuples decode slice to code_endf8d0c75Merge remote-tracking branch 'origin/main' into HEADf605f8ardna2spirv: put back the instructions llvm-mc's junk swallowed after a tuple into vcc6886740test_vcc_tuple_fallback: cover where a resync starts and stopsebcb0actools: decode the pipeline-library compute programs llvm-mc refusesbf0c4d9tests: fspx_unpack takes the decoder listing when llvm-mc reports invalid wordsbec14f2tools: the last pipeline-library compute programs of 1.0.2.1📊 Changes
298 files changed (+37958 additions, -2463 deletions)
View changed files
📝
.gitignore(+4 -0)📝
README.md(+1 -1)📝
docs/README.md(+4 -0)📝
docs/boot.md(+16 -0)📝
docs/buffer_bounds.md(+4 -0)📝
docs/cpu_features.md(+7 -0)📝
docs/d3d12_command_objects.md(+11 -4)📝
docs/d3d12_vulkan.md(+229 -14)➕
docs/d3d12_xs_console_abi.md(+279 -0)📝
docs/design.md(+42 -20)📝
docs/directstorage.md(+75 -30)📝
docs/embedded_shaders.md(+57 -8)📝
docs/fspx.md(+83 -0)➕
docs/linux_proton.md(+120 -0)📝
docs/movies.md(+16 -15)📝
docs/pipeline_check.md(+2 -0)📝
docs/retail_boot_chain.md(+1 -1)📝
docs/runtime_imports.md(+71 -21)📝
docs/shader_library.md(+38 -4)📝
docs/xdxr.md(+34 -0)...and 80 more files
📄 Description
Claimed in the coordination issue as: RT-PALMETTO-PARITY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148001600)
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 ontomainwith 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:
It conflicted with
mainin 41 files, becausemainhas since merged reviewed versions of many slots it carried (#391, #727, #383, #385, #377, #375). In each conflict I keptmain's version and added only what #984 brings on top.Decisions to check in review:
Slots and present routing in
d3d12_xs_device.cpp, kept frommain:GetFrameStatisticsXwith the presenter, and the presenter routing still runs before #984's built-in PresentX.main.main's check on who is calling.ID3D12GraphicsCommandList, so #984'sd3d12_xs_command_list_iid.his dropped.Taken from #984 in
d3d12_xs_device.cpp: the console list proxy, queue layout detection, the slot 9 allocator callback, slots 55, 57, 70, 71, 86 and 133, Vulkan-backed CPU heaps and the frame token source.d3d12_vulkan_device.cpp: #984's staged and deferred title images, insidemain'screate_imageand its NVIDIA host-transfer retry.file_system.cpp/dstorage.cpp: #984'skernel_writesreads, withmain'stouch_pagesretry as the fallback.rdna2_decode.py:main's version is kept, because #984's f32-only DPP block ran first and brokemain's decode.Hard-coded game addresses: three #984 code paths now read the location from an environment variable and are off when it is unset:
LEONIDA_TITLE_WATCHDOG_KICK;LEONIDA_POOL_DIAG_AT;LEONIDA_GAME_STATE_RVAandLEONIDA_SESSION_STATE_RVA.This changes #984's behaviour: on an unconfigured machine the title's hang watchdog stays armed.
Docs and scripts: executable addresses and offsets are removed from #984's doc and script text.
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:
restore_vcc_tuples(#674) is the one restore pass, because it follows only reachable code and protects branch targets. #984'srestore_skipped_instructionsis removed. #984's two extra forms (DPP f32 compares, and the dot4 op_sel 2 / op_sel_hi 5 word) are accepted insiderestore_vcc_tuples.v_dot4_i32_i8that llvm-mc prints with default op_sel now takes op_sel/op_sel_hi from the stored words, but only when those two fields are the whole difference. This replaces #984's single-caserestore_dot4_inline_sel. It has a sentence in the design.md contract table and a hand-built test (test_dot4_printed_op_sel.py). The approach comes from luizwidmer/palmetto (GPL-3.0).s_bitreplicate_b64_b32and fors_flbit_i32_b64of a lane mask, because in wave32vcc_hiholds data. #593's wave32 VCC test now expects a refusal.s_bitreplicate_b64_b32rule now has a semantic test and a contract-table sentence. It is checked by the CPU interpreter only.tests/test_rdna2spirv_decode.pyused the dot4 word as their "undecodable" input. That word now decodes, so they use the same word with clamp set, which is still refused.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.
compileallandmake_game.py --helppass.-DLEONIDA_VULKAN_HEADERS_FETCH=ON.d3d12_texture_tilesandd3d12_clear, and both fail the same way on plainmain.xmem_no_write_watchfailed once under-j 8in an earlier run, then passed when run alone and in a serial run.run_semantic_tests.py): 486 files, 6,292 tests, 0 failed, in 423 s on 12 jobs.test_shader_library.py,test_fspx_unpack.py,test_shader_disasm.pyandtest_rdna2spirv_decode.pypass.python -I scripts/check_no_game_data.pyis clean on every file #984 adds.spirv-valcounts over the corpus, because there is no work folder on the test machine.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.