[integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD) #984
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!984
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/984/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?
@Moriz82 on GitHub · 2026-11-24 16:24 UTC · original
integration/proton-story-load→main· +37997 −2599 · 301 files · 39 commits · merged 2026-11-25 01:37 UTCClaimed in the coordination issue as: RT-PROTON-STORY-LOAD (claim).
Depends on: none. Conflicts with / overlaps: #968 (queue slot 31, which this branch does not implement and needs), #974 (graphics root arguments and mesh user data), #976 (runtime BCPack decoder), #969 (DirectStorage destination pages), #939 (Windows first-run integration), #980 (device-loss log). Where they overlap, theirs take precedence; this branch will be rebased onto them.
Draft. It is one squashed commit on
ece4ba5b3(2026-11-23) and conflicts withmainin 21 files. It is opened now so the Linux support and the test results are visible and so pieces can be claimed and split out; see "How this can land" below.What and why
A fork of this project was developed on a Linux machine under Proton/Wine and tested on native Windows by a second contributor. On both, the retail 1.0.2.1 package now:
A first world frame is not verified yet on any machine.
docs/linux_proton.md(new) has the Linux setup, the timeline of a healthy boot, the machines and where it stops.Every item below was a stop on at least one machine:
tools/build_dstorage_history.py; bounded staging.LEONIDA_TITLE_IMAGE_POOL).LAYOUT_UNDEFINEDis accepted; it failedClose, which the title treats as fatal.fnv1a_fmix32descriptor hash (runtime and translator halves, off until a library carries the marker), because the table had clustered to 8.4 M slots for 42 k keys.LEONIDA_SKIP_COMPUTEandLEONIDA_STUB_PIPELINES. The last two are for finding a stop, not for shipping around one: every program they were used on has a fix in this branch or an open item below.Where it stops now, on both platforms: the title's ~300 calls per boot to queue slot 31 are ignored here (#968 addresses that), so streamed pages never reach their destinations and the culling compute at world start reads outside mapped memory; mesh stages do not get the heap offset.
Tested
Linux: CachyOS (kernel 7.3), Proton Experimental (Wine 11), Ryzen 5 5600X, 16 GB RAM, RTX 4070 12 GB, NVIDIA 620.73. Cross-built with clang-cl 23 and an xwin SDK. About 80 boots of the retail package on 2026-11-24; the last ones run the story load to its end in 540-630 s with ~14,000-26,000 presents and no refused submission, then lose the device in the world phase's first compute work.
Windows A (second contributor,
Plaaasma): Windows 11, Core i9-13900K, 64 GB RAM, RTX 4070 Ti 12 GB, NVIDIA 630.20, MSVC 2022. Same stages at ~70 s (initialisation), ~110 s (story load) and the same stop at ~120-190 s. Each fix in the table was confirmed there or found there.ctest -R d3d12_: 126 of 127 pass with 5 skipped on that machine.Windows B: Windows 11, Ryzen 7 9800X3D, RTX 5070. Joining; no results to report yet.
Unit tests run under Wine on the Linux machine against this tree:
d3d12_existing_heap_test,d3d12_compute_test,d3d12_graphics_direct_heaps_test,xg_xs_test(88 checks),vk_bindless_grow_test,bindless_sizing_test,descriptor_table_test,shader_library_test,title_write_watch_test(18),command_list_test,replay_texture_barrier_test,d3d12_close_parity_test(117 cases),startup_trace_test(27),vulkan_title_image_pool_test. Known red there: three checks ofxmem_teston physical-page views under Wine, and one stress test skipped under Wine (a heap-lock deadlock in the fault path that is fixed natively and still open under Wine). Translator: the suites for loop bounds, buffer bounds, the descriptor hash (eight shared vectors, interpreter and GPU) and the recovered FidelityFX forms pass; all 2,680 paired compute programs and 29 of 29 FidelityFX programs translate.GPUs tested: NVIDIA RTX 4070 (620.73, Linux/Proton); NVIDIA RTX 4070 Ti (630.20, Windows 11). No AMD or Intel GPU was available: RADV and the Intel paths are untested by us.
AI-assisted: yes (Claude Code and Codex agents wrote most of it; every result above comes from boots and test runs on the machines named, not from the agents' say-so).
How this can land
I do not expect this to merge as one pull request. Suggested order, each as its own claimed ID and small PR on current
main, and I am glad to hand any of them to whoever wants it:docs/linux_proton.mdandscripts/linux-boot/(no code).LAYOUT_UNDEFINEDbarrier and the bindless flush (each with its test).Checklist
mainand merges cleanly: no, see above.scripts/check_no_game_data.pypasses on the tree; the text above has counts, timings and settings only.docs/design.md, with how they were confirmed.🤖 Generated with Claude Code
Follow-up to the LEONIDA_LOCAL_DIAGNOSTICS commit: the desc-probe still registered every console descriptor heap and printed a line for each of the first 48 view creations ('... outside the console heaps'), switch or not. A heap probe is only created when LEONIDA_LOCAL_DIAGNOSTICS or the compute probe is on, and the per-view line is behind the switch like the rest. Co-Authored-By: Claude Fable 5.2 <[email protected]>github-bot referenced this pull request2026-11-26 09:32:36 +00:00