[integration] RT-PALMETTO-PARITY: #984 story-load boot on current main, plus the pipeline-library translator fixes #1495
Closed
github-bot
wants to merge 31 commits from
gh-pr/1495/head into gh-pr/1495/base
pull from: gh-pr/1495/head
merge into: github:gh-pr/1495/base
github:main
github:docs/animation-merge-remnants
github:docs/story-dedup-and-cli
github:docs/restofworld-merge-remnants
github:docs/gamedata-dedup-tables
github:docs/textures-bcpack-tables-and-cli
github:docs/exe-fail-fast-shims-sync
github:fix/address-guard-wraparound-parity
github:fix/cvt-f16-denorm-and-clamp
github:docs/pso-cache-scope-note
github:docs/viewer-readme
github:docs/textures-arrays-dds-preview
github:docs/conformance-readme-status
github:fix/docs-validators-fences-urls
github:claude/loop-total
github:claude/pops-collision-seed
github:claude/dstorage-hold-page-reads
github:claude/host-image-copy-switch
github:feat/gdk-lifecycle-window-hook
github:claude/d16s8-uav-nvidia-fallback
github:feat/mfplat-offline-shim
github:claude/gameinput-slow-reader
github:fix/rt-null-barrier-clear
github:claude/depth-resolve-sample-positions
github:integration/palmetto-parity
github:claude/valu-literal-sext
github:claude/slot74-pool-handle
github:claude/rgb9e5-uint-alias-view
github:claude/fssm-root-layout-tables
github:feat/gdk-speech-display-lifecycle
github:asset-audio-skip-current
github:qemmhd/old-9940-rectangle-quad-lists
github:feat/ws2-offline-shim
github:qemmhd/rt-d16-unorm-uav
github:feat/xs-device-stops-7-9
github:qemmhd/rt-depth-same-base-shapes
github:qemmhd/rt-lazy-attachment-variant
github:feat/acphal-xma2-decoder
github:asset-audio-skip
github:codex/coord-claim-check-20261124-7e48
github:feat/xs-frame-pacing-presentx
github:feat/xs-device-vm-options
github:old-pr/9844
github:old-pr/9978
github:old-pr/9815
github:old-pr/10057
github:old-pr/9874
github:old-pr/9965
github:old-pr/9863
github:old-pr/10068
github:old-pr/10066
github:old-pr/10067
github:old-pr/10007
github:old-pr/10061
github:old-pr/10065
github:old-pr/10059
github:old-pr/10063
github:old-pr/10055
github:old-pr/10062
github:old-pr/10042
github:old-pr/10041
github:old-pr/10049
github:old-pr/10047
github:old-pr/10046
github:old-pr/10045
github:old-pr/10056
github:old-pr/10043
github:old-pr/10036
github:old-pr/10034
github:old-pr/9984
github:old-pr/10052
github:old-pr/10038
github:old-pr/10033
github:old-pr/10028
github:old-pr/10050
github:old-pr/9891
github:old-pr/9889
github:old-pr/10051
github:old-pr/10019
github:old-pr/10027
github:old-pr/10029
github:old-pr/10031
github:old-pr/10026
github:old-pr/9941
github:old-pr/10030
github:old-pr/10040
github:old-pr/9990
github:old-pr/10021
github:old-pr/9962
github:old-pr/10022
github:old-pr/10020
github:old-pr/10015
github:old-pr/10025
github:old-pr/9886
github:old-pr/10048
github:old-pr/10014
github:old-pr/10011
github:old-pr/9861
github:old-pr/10010
github:old-pr/10008
github:old-pr/9860
github:old-pr/10006
github:old-pr/9920
github:old-pr/9995
github:old-pr/10000
github:old-pr/10016
github:old-pr/10004
github:old-pr/10023
github:old-pr/9982
github:old-pr/9981
github:old-pr/9983
github:old-pr/9970
github:old-pr/9969
github:old-pr/9968
github:old-pr/9971
github:old-pr/9972
github:old-pr/9942
github:old-pr/9963
github:old-pr/9960
github:old-pr/9964
github:old-pr/9985
github:old-pr/9973
github:old-pr/9862
github:old-pr/9953
github:old-pr/10017
github:old-pr/9952
github:old-pr/9955
github:old-pr/9946
github:old-pr/9954
github:old-pr/9938
github:old-pr/9956
github:old-pr/9856
github:old-pr/9947
github:old-pr/9924
github:old-pr/9961
github:old-pr/9927
github:old-pr/9979
github:old-pr/10032
github:old-pr/9926
github:old-pr/5237
github:old-pr/9951
github:old-pr/9931
github:old-pr/9902
github:old-pr/9921
github:old-pr/9994
github:old-pr/9775
github:old-pr/9768
github:old-pr/9905
github:old-pr/9936
github:old-pr/9901
github:old-pr/9904
github:old-pr/9906
github:old-pr/9988
github:old-pr/9908
github:old-pr/9909
github:old-pr/9911
github:old-pr/9912
github:old-pr/9913
github:old-pr/9887
github:old-pr/9916
github:old-pr/9919
github:old-pr/9925
github:old-pr/9933
github:old-pr/9935
github:old-pr/9918
github:old-pr/9879
github:old-pr/9880
github:old-pr/9881
github:old-pr/9996
github:old-pr/9876
github:old-pr/9892
github:old-pr/9899
github:old-pr/9915
github:old-pr/9914
github:old-pr/9872
github:old-pr/9869
github:old-pr/9866
github:old-pr/9819
github:old-pr/10012
github:old-pr/9857
github:old-pr/9893
github:old-pr/9897
github:old-pr/9928
github:old-pr/9868
github:old-pr/9917
github:old-pr/9940
github:old-pr/9873
github:old-pr/9816
github:old-pr/10009
github:old-pr/9900
github:old-pr/9966
github:old-pr/9859
github:old-pr/9843
github:old-pr/9991
github:old-pr/10058
github:old-pr/9883
github:old-pr/9838
github:old-pr/9835
github:old-pr/9959
github:old-pr/9895
github:old-pr/9837
github:old-pr/9858
github:old-pr/9865
github:old-pr/9864
github:old-pr/9840
github:old-pr/9820
github:old-pr/4669
github:old-pr/9848
github:old-pr/9850
github:old-pr/9810
github:old-pr/9799
github:old-pr/9853
github:old-pr/9875
github:old-pr/9831
github:old-pr/9796
github:old-pr/9801
github:old-pr/9813
github:old-pr/9794
github:old-pr/7417
github:old-pr/9781
github:old-pr/9806
github:old-pr/9958
github:old-pr/9809
github:old-pr/9791
github:old-pr/9792
github:old-pr/10053
github:old-pr/9784
github:old-pr/9789
github:old-pr/9849
github:old-pr/9846
github:old-pr/9773
github:old-pr/9785
github:old-pr/9803
github:old-pr/9826
github:old-pr/9839
github:old-pr/9922
github:old-pr/9948
github:old-pr/7189
github:old-pr/9957
github:old-pr/9823
github:old-pr/9807
github:old-pr/9851
github:old-pr/9774
github:old-pr/9830
github:old-pr/9836
github:old-pr/9822
github:old-pr/9783
github:old-pr/9833
github:old-pr/9890
github:old-pr/9770
github:old-pr/9769
github:old-pr/9772
github:old-pr/9787
github:old-pr/9852
github:old-pr/9834
github:old-pr/9845
github:old-pr/9871
github:old-pr/9771
github:old-pr/9776
github:old-pr/10005
github:old-pr/9949
github:old-pr/9923
github:old-pr/9805
github:old-pr/9829
github:old-pr/9790
github:old-pr/9827
github:old-pr/9929
github:old-pr/9855
github:old-pr/9934
github:old-pr/9907
github:old-pr/9910
github:old-pr/9779
github:old-pr/9780
github:old-pr/9885
github:old-pr/9882
github:old-pr/9877
github:old-pr/9998
github:old-pr/4251
github:old-pr/9987
github:old-pr/9989
github:old-pr/9950
github:old-pr/9777
github:old-pr/10044
github:old-pr/9884
github:old-pr/2906
github:old-pr/5076
github:old-pr/9937
github:old-pr/9986
github:old-pr/3014
github:old-pr/9943
github:old-pr/9939
github:old-pr/4682
github:old-pr/4765
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
bug
Something isn't working
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
question
Further information is requested
wontfix
This will not be worked on
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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
github/ubiquitarianism--leonida!1495
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1495/head"
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?
@ubiquitarianism on GitHub · 2026-11-25 01:56 UTC · original
ubiquitarianism:integration/palmetto-parity→main· +37958 −2463 · 298 files · 30 commits · closed without mergingClaimed in the coordination issue as: RT-PALMETTO-PARITY (#14)
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.091cd9680); restore_vcc_tuples decodes for the shader's wave size 30450e0e96@QemmHD on GitHub · 2026-11-25 03:21 UTC · original · edited 2026-11-25 04:27 UTC
Real-data check on Windows 11 with an: main
3ff2a2adctranslates 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'stools/rdna2spirv.pygives 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).
@akimfomin on GitHub · 2026-11-25 03:52 UTC · original · edited 2026-11-25 04:19 UTC
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.
@QemmHD on GitHub · 2026-11-25 06:32 UTC · original
Real-boot evidence that this PR is on the critical path (Windows 11, RTX 4070 SUPER, NVIDIA 621.24; main
c7e82e26e+ #1558 +LEONIDA_TITLE_WINDOWS_MB=1024for #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 on GitHub · 2026-11-25 07:00 UTC · original
Independent corpus confirmation for the owned packed-dot fixes on Linux / llvm-mc 23.1.5 / SPIRV-Tools: main
42537e7b6produces 27/29 FSPX modules (two refusals: reachable instruction with normalized encoding). In a separate local validation tree, applying #1317 (4e1ca11a6) and this PR’sd4b2afe0estored-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 on GitHub · 2026-11-26 03:09 UTC · original
Closing as superseded by #2138, merged as
0b11d86bc.op_sel,bitreplicate, the vcc test).design.mdrow says how each was confirmed.main: the older merge of #984 it carries.AI-assisted (Claude Code, Claude Opus 5.5).
Pull request closed