mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #984] [MERGED] [integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD) #1024
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#1024
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/984
Author: @Moriz82
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:integration/proton-story-load📝 Commits (10+)
273b3bd[integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD)39879ceMerge main into RT-PROTON-STORY-LOAD (#984)424a605dxgi_swapchain_count_test: pass the diagnostics argument in the failed-resize casee011e10CMake: build pso_stream_test only with the Windows runtime432dae1test_control_flow_branches: model OpPhi in the structured interpreter4902178test_ds_swizzle_b32: run the emulated wave64 swizzles instead of expecting a rejectiona713b30test_valu_permlane16: run the emulated wave64 permlanes instead of expecting a rejectiona0d90b7CMake: one target owns the translated vs_m15/ps_m15 files48ba269d3d12_xs: device slot 81 with no presenter answers as the measured boot didc334e0adocs: name the 32 environment variables #984's code reads📊 Changes
301 files changed (+37997 additions, -2599 deletions)
View changed files
📝
.github/workflows/runtime.yml(+12 -0)📝
.gitignore(+4 -0)📝
README.md(+1 -1)📝
docs/README.md(+2 -0)📝
docs/boot.md(+17 -1)📝
docs/buffer_bounds.md(+4 -0)📝
docs/cpu_features.md(+7 -0)📝
docs/d3d12_command_objects.md(+11 -4)📝
docs/d3d12_vulkan.md(+233 -18)➕
docs/d3d12_xs_console_abi.md(+279 -0)📝
docs/design.md(+40 -19)📝
docs/directstorage.md(+75 -30)📝
docs/embedded_shaders.md(+57 -8)📝
docs/fspx.md(+68 -1)➕
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(+23 -0)...and 80 more files
📄 Description
Claimed 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.