WIP: [integration] RT-PALMETTO-PARITY: #984 story-load boot on current main, plus the pipeline-library translator fixes #1495
Closed
leonida/mandy
ubiquitarianism wants to merge 0 commits from
integration/palmetto-parity into main
pull from: integration/palmetto-parity
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!1495
Loading…
Reference in a new issue
No description provided.
Delete branch "integration/palmetto-parity"
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 closed
This pull request cannot be reopened because the branch was deleted.
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.Real-data check on Windows 11 with an: main 3ff2a2adc 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.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).
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.
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).
Independent corpus confirmation for the owned packed-dot fixes on Linux / llvm-mc 23.1.5 / SPIRV-Tools: main 42537e7b6 produces 27/29 FSPX modules (two refusals: reachable instruction with normalized encoding). In a separate local validation tree, applying #1317 (4e1ca11a6) and this PR’s d4b2afe0e 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.
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).