[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
@Poussistar on GitHub · 2026-11-24 16:52 UTC · original
Rebase needed: on main (
3ed8e50b7)git applyfails on 26 files of this diff, starting atdocs/README.md:73, thendocs/d3d12_vulkan.md:2118,docs/design.md:181,make_game.py:1807,runtime/CMakeLists.txt:106,runtime/cmake/translator_deps.cmake:15,runtime/shims/d3d12_vulkan_device.cpp:5120...tools/rdna2spirv.py:12436,tools/shader_library.py:257.Nothing in it can be checked on this host (Linux, no Wine, no MSVC) until it is rebased, and the runtime tests it touches need Windows anyway, so this is only the conflict report. AI-assisted. No game files.
@Moriz82 on GitHub · 2026-11-24 17:35 UTC · original · edited 2026-11-24 22:33 UTC
Splitting this up, as asked. This pull request stays open as the tracking branch and is not meant to merge as one piece. Each topic is being cut onto current
mainas its own small pull request, with its own claim in #14, its own tests, and a text that says what was run. This comment is the index; I edit it as children open (26 so far).RT-DIRECT-HEAP-COMPUTESHADER-MUBUF-OFFSET-WRAPbuffer_addressformedoff + soffset + index * stridein 32 bits, so index −1 passedOOB_SELECT2 and 3 as base − stride; now 64-bit, with a semantic test that fails on mainSHADER-COMPACT-SPIRV--compact-spirv: optional SPIRV-Tools passes on the assembled module before validation, interfaces and bindings preserved; off by defaultRT-INPUT-SCRIPT-LENGTHLEONIDA_INPUT_SCRIPT: scripts of any length (a 64-byte buffer made longer ones read as unset) and the timed button presses they schedule on the keyboard pad; regression testRT-TITLE-TEXTURE-VIEWSRT-BINDLESS-TABLE-DEGRADERT-STARTUP-TRACESHADER-BUFFER-BOUNDSTEST-CRT-ARGV-WINERT-STREAM-TRANSFER-BARRIERRT-PLACED-IMAGE-DEFERSHADER-LOOP-GUARD--loop-limit: each translated loop takes its structured exit after a bounded number of header visits per entry (default 65,536, 0 disables); semantic tests with an unreachable exitLINUX-PROTON-DOCS-SCRIPTSscripts/linux-boot: cross-build configure, a launcher that boots the loader under Wine or Proton with the network off, and asystemd --userunit with memory samples and a digest of how the boot ended;docs/linux_proton.md; a test of the scripts' refusals that needs no WineTEST-ATOMIC-SOFFSET-BOUNDSbuffer_atomic_*addressed throughsoffsetalone, on both sides of the bound, for the 32-bit, float min/max and_x2lowerings; no test passed a non-zerosoffsetto an atomic beforeSHADER-TYPED-RESERVED-FORMATSbuffer_load_format_*whose run-time FORMAT has no decoder (INVALIDor reserved) no longer reads the V#'s memory; values unchanged for all 128 codes; CPU read-log test, not GPU-verifiedSHADER-LEGACY-MUL-SUBNORMALv_mul_legacy_f32: one magnitude test per operand serves as input flush and zero override, and the result is flushed again only after output scaling; same words in 3,703 swept cases, 22 assembly lines instead of 37 per multiplyTOOLS-PE-SHADER-CONTAINERSpe_shader_containers.py: a console program stored as a raw deflate record is found, listed after the plain containers and extracted inflated (strict checks on sizes, stream end and content); hand-built tests, 3 fail on mainTOOLS-LIBRARY-COMPUTE-BY-HASHshader_library.py: a compute program used with different state blobs gets an entry per state (only the last was kept), and--compute-hashes FILEunpacks programs by code SHA-256; synthetic library tests, 3 fail on mainTOOLS-DISASM-WAVE-SIZEshader_disasm.pytells llvm-mc the wave size, so a wave64 program's lane masks are listed as register pairs;fspx_unpack.pyandshader_library.pypass the dispatch state's wave size; hand-written tests, 5 fail on main; corpus not re-disassembledTOOLS-DISASM-BOUNDED-LISTINGshader_ir.parse_filereads a listing a line at a time and counts llvm-mc's messages without holding them (peak 0.17 MB instead of 9.2 MB on a 4.5 MB synthetic listing); same result on 20,000 random listings; theshader_disasm.pyhalf is left to #623RT-MEMORY-PROBELEONIDA_MEM_PROBE=<seconds>(opt-in): live pipelines, shader modules,VkDeviceMemoryper type, arena use and process memory on stderr, plus an smaps summary under Wine; unset, nothing is wrapped; stand-in table test in both formsRT-PRESENT-PROBELEONIDA_PRESENT_PROBE=1andLEONIDA_CAPTURE_SOURCE=1(opt-in): where a presented frame was lost (clears, draws,PresentXcalls and refusals, blit/compose/blank) and a read-back of the presented texture; unset, no line and no file; test in both formsSHADER-FFX-PACKED-DOTrdna2spirv.pytakes the storedop_sel_hi5 of av_dot4_i32_i8with an inline integer S1 from the bytes (llvm-mc prints none) instead of refusing the listing; every other dropped selector stays refused. The rule for an inline source is not measured on hardware; the text names the one oracle kernel that settles it.SHADER-WATERFALL-FULL-WORDwave64_halves.py: the tier B waterfall proof takes only an unmodified whole-word integer equality; a float, 16-bit, SDWA or DPP compare (which the old check accepted, with 64 lanes and two waves of 32 giving different results) is tier C. Metadata only; corpus census not re-run.RT-SKIP-COMPUTE-DIAGNOSTICLEONIDA_SKIP_COMPUTE=<part>[,...](opt-in, unset by default): a named compute program is not built and its direct and indirect dispatches are dropped while the rest of the list runs, to isolate a program that hangs the GPU or loses the device; unset, nothing changes.RT-TRACE-SUCCESSFUL-OPENS--tracealso records the first 600 successful guest file opens (file_open: path, access mask, caller), on a budget of their own, so a stalled boot shows which files it had reached; the open's last error is kept. Trace off: nothing changes.Merged so far: #1074 (input scripts of any length).
The whole diff is mapped (312 paths, every hunk assigned to one topic), so nothing is left behind in this branch at the end. Still being cut, built and tested on
mainalone: the remaining translator and tool topics, the opt-in diagnostics, pooled and device-local image memory, title buffer windows, DirectStorage pinned reads, and the native Windows write-fault fixes. A topic that turns out to be carried by an open pull request already is dropped and named here.Held until the pull request they build on merges: the graphics-stage heap offsets (on #974).
Dropped, because
mainor an open pull request already has it: the enhanced barrier intoLAYOUT_UNDEFINED(#1055, #600), the typed-store format switch (#829), the cube-storeLLVM_MCargument fix (#837), the short FSPX prologue (#583), the thread stack dump (#576), the f32 DPP lane compares (#957, merged), the full-waves_flbit_i32_b64/s_bitreplicate_b64_b32masks (#593; three lines of mask tracking follow once it merges) and the slot-67 operand-form tests (onmainalready, or the behaviour of #1043), and the bulk inflate (#1081). The DirectStorage trace census waits for the trace it reads, and the draw-input and descriptor-heap probes for the descriptor tables they probe. Queue slot 31 will be reduced to what #968 does not already cover; the same check is made for every topic before it is cut.@Poussistar: thank you for the conflict report. Rather than rebasing 300 files in one commit, every child is based on current
mainand checked there on its own.AI-assisted (Claude Code and Codex agents); each child states what was built and run, and on which machine.
🤖 Generated with Claude Code
@oscarlosu-lab on GitHub · 2026-11-24 17:47 UTC · original
Tested
ac7c3449don an additional native Windows 11 machine usingscripts/windows-boot/boot.ps1(MSVC 19.52 x64RelWithDebInfo,-DLEONIDA_SDL3_FETCH=ON, localhistory.bcphbuilt viatools/build_dstorage_history.py,28352translated shaders):10.0.26300.0), NVIDIA GeForce RTX 3060 12 GB (driver621.35, Vulkan1.4.357), 32 GB RAMac7c3449dboot.ps1defaults:-Seconds 360 -InputScript "a@45,a@60,a@75,a@90,a@120,a@150,a@180"t=0s game=0 session=0 | t=5s game=1 session=0 | t=10s game=2 session=0 | t=40s game=2 session=1 | t=75s game=3 session=3 | t=125s game=3 session=d(story load reached)PresentX ok 8909, failed 040 captured, 40 non-black; last mean rgb 103.97 64.45 107.77; brightest 188.84 149.63 149.90LEONIDA_DEVICE_FAULT=1logged normal submitted-dispatch breadcrumbs)ID3D12Device2::CreatePipelineState: failed 2, unsupported 224(0PresentXfailures)@oscarlosu-lab on GitHub · 2026-11-24 18:14 UTC · original
Follow-up on native Windows 11 + RTX 3060 (driver
621.35, 32 GB RAM) with #984 (ac7c3449d) + #968 (f2268abea,CopyPageMappingsBatchX):xmem_test.exe:OK (316 checks)queue slot 31 (CopyPageMappingsBatchX): 46 calls (pool of 63632 pages), 0 refusal /not mappederrorst=0s game=0 session=0 | t=5s game=1 session=0 | t=10s game=2 session=0 | t=40s game=2 session=1 | t=80s game=3 session=3 | t=95s game=3 session=d(remained atsession=dthrought=415sin a421 srun)PresentX ok 9000, failed 0,40/40non-black (last mean rgb 103.00 63.15 106.83,brightest 168.77 144.08 126.01),0device loss.@Plaaasma on GitHub · 2026-11-24 18:15 UTC · original
Native Windows side of this work, from the second contributor (Plaaasma). AI-assisted: written and run with Claude Code agents, checked by me.
Machine: Windows 11, Intel i9-13900K, 64 GB RAM, NVIDIA RTX 4070 Ti (12 GB, driver 630.20), MSVC 2022, Vulkan backend, no Wine.
What runs natively: init reaches the running state in about 70 s, the landing prompt and first-run setup pages render and take pad input, and the story load starts at about 110 s with its slideshow art (BCPack via the locally built predictor). With the streamed-geometry copies enabled, every streamed buffer view was backed and the load ran to about 220 s. After that a compute program writes through an address that isn't mapped yet. That's the open wall, shared with the Linux/Proton machine.
What I wrote or found, now part of this branch:
MEM_WRITE_WATCH+GetWriteWatch) cuts write faults 2–2.5×, with no throughput cost in a 3+3 boot comparison. A second review found a stale-copy race and a process-heap deadlock, and both are fixed with tests. On by default on Windows, opt-in under Wine.LAYOUT_UNDEFINEDno longer poisons a command list; the layer's behaviour matches WARP.ctest -R d3d12_passes 126 of 127 natively, and the remaining failure is the subgroup case fixed here.Happy to run native Windows checks on any of the split-out PRs.
@Tyrannys on GitHub · 2026-11-24 18:17 UTC · original
Native Windows result with #968 added, and a crash past the load that #984 alone does not reach. Counts and shapes only, no game addresses.
Setup: Windows 11, RTX 4070 SUPER (64 GB RAM), own 1.0.2.1 copy.
ac7c3449d+ #968 cherry-picked (conflicts resolved by keeping both; one fix:copy_page_mappingsreadsg_mapped's value directly, since this branch stores the page number there). RelWithDebInfo, SDL3, localhistory.bcph,LEONIDA_SKIP_INT3=1, input script[email protected]@500every 10 s.Works: package splash, launch movie, first-run pages, loading slideshow with its artwork. With #968 the story load finishes; without it (#968 answered E_NOTIMPL) the title stays on the landing screen for 9 min, as your notes predict.
Then a crash, every run: an access violation in title code at a random time after the load: 36, 197, 242, 287 and 477 s in five runs. Each time the last new runtime event before it is the title's first
ExecuteIndirect(list slot 61, the DISPATCH/105 signature), i.e. world start. The faults look like corrupted title objects, not a bad pointer from the layer: a vtable pointer into unrelated data, an object field holding two floats (0x44000000,0x41800000), reads at-1and at small offsets from an unrelated base. A different object each run.Ruled out, one run each:
g_mapped);int3reached in these runs;LEONIDA_SKIP_COMPUTEon the three programs built right before the crash, still crashes (242 s);rejected a callline in any run.So something writes into the title's memory after the load, and it is not one of the obvious paths. The page-watch / shadow copies (
kernel_writes, the slot-133 shadows: ~360 MiB in ~3,700 copies, ~200 trackers at the end of the load) are the writers into title memory I have not been able to rule out; with #968 remapping pages under them for the first time, that is where I would look first. Happy to run any build or switch you want on this machine.AI-assisted (Claude Code).
@CLHelper on GitHub · 2026-11-24 18:23 UTC · original
Tested on a smaller Windows machine: Windows 11, RTX 4060 Laptop (8 GB VRAM, NVIDIA 576.80), MSVC 19.44 / Ninja / RelWithDebInfo, own 1.0.2.1 copy, head
ac7c3449dbuilt unchanged except for #968's queue slot 31 (CopyPageMappingsBatchX, which the description says this branch needs) ported onto it by hand. Shaders translated by this branch'smake_game.py --stages shaders(every shard: all translated, all pass spirv-val; the 12 executable programs too); BCPack predictor file fromtools/build_dstorage_history.pywith the native trainer (57 pools, 5,435 BPTC chunks). Your Windows settings:LEONIDA_DEVICE_TYPE=6(ConsoleMode answered0x60),LEONIDA_ARENA_MB=2048,LEONIDA_DEVICE_FAULT=1, keyboard pad with an input script pressing A every 15 s from 30 s, pipeline cache with startup checkpoints. One run of 480 s allowed.What it reaches here (seen in captures of the window, none posted):
0x74465102 then 3 from 60 s;0x98f828clow dword 0, 1, 3, then0xdfrom 120 s to the end.Where it stops: at 293 s the device is removed. The last batch is refused (
queue replay refused a batch at vulkan_backend.h:2900),present failed (VkResult -4),PresentX ... hr 0x887a0005, and the title takes its device-removed exit (int3atgame_scarlett_master.exe+0x2474606,rsi = 0x887a0005). The window shows a page with only SCROLL/BACK prompts and a spinner by then.LEONIDA_DEVICE_FAULTgives no vendor data and an empty description, 0 checkpoints on every queue; the last submitted dispatches in its log arelibrary/lib_cs_01726(5x5x33) on the direct queue, which is only what ran last, not a cause. 10,766PresentXbefore that. I have not looked further (VRAM headroom at 8 GB is my first suspect, not measured).AI-assisted.
@CLHelper on GitHub · 2026-11-24 18:33 UTC · original
Follow-up, second run on the same machine and build (warm pipeline cache, same settings, 420 s allowed), with GPU memory sampled every 2 s:
nvidia-smi), gta6rt's private memory about 11.6 GB; VRAM headroom was not the cause.0x7446510=3,0x98f828clow dword0xd, the GPU is mostly idle, and the window shows first-run pages whose button prompts draw (SETTINGS / CONTINUE / BACK) but whose content area stays empty with a spinner. The A presses (every 15 s) keep arriving.slot-70 views awaiting readable memory: 86,title textures (refresh): ... 64 over memory not readable yet,title textures null views by reason: no address 43. So it looks like the page content waits for streamed memory that never becomes readable on this machine; I have not traced which requests those are.AI-assisted.
@hubeton on GitHub · 2026-11-24 18:51 UTC · original · edited 2026-11-24 19:50 UTC
Native Windows retest on an RTX 3060 Ti (8 GB, NVIDIA 621.24), Windows 11 build 26300. Both runs used Xbox 1.0.2.1, the Vulkan backend, the same 29,276 translated shaders and local BCPack profile, and fresh overlays. Built with clang-cl in RelWithDebInfo.
Test system: Intel Core i9-13900K (24 cores, 32 threads), 64 GB RAM, RTX 3060 Ti 8 GB, NVIDIA driver 621.24, Windows 11 build 26300.9974.
273b3bdf9rendered the first-run pages and reached 5,381 successfulPresentXcalls. The process exited after 153 s with0x80000003.f2268abe, locally adapted to #984's xmem page table, passedxmem_testandxs_proxy_mock_test. The game reached 355 calls to queue slot 31 and 6,204 successfulPresentXcalls. The last capture showed a loading spinner. At about 243 s,vkWaitSemaphoresreportedVK_ERROR_DEVICE_LOSTand the process exited with0xc0000005in the FidelityFX upscaler module. No world frame was verified.One run per configuration, with a shared pipeline cache. AI-assisted testing and report.
@moffington on GitHub · 2026-11-24 18:53 UTC · original
Independent Linux reproduction on
273b3bdf9: Omarchy, Ryzen 5 5600X3D, RTX 3060 12 GB, NVIDIA 615.78.08, 32 GB RAM, Proton Experimental (Wine 11.0).Reproduced the package splash, launch movie, interactive first-run menus and story load through completion.
No first world frame. The stopping point matches the documented Linux failure on a different NVIDIA architecture and driver version.
Seven of eight synthetic smoke-test suites passed cleanly; XMem had six Wine placeholder metadata failures.
AI-assisted. Counts and diagnostics only; no game data shared.
@oscarlosu-lab on GitHub · 2026-11-24 19:04 UTC · original
Follow-up on native Windows 11 + RTX 3060 12 GB (driver
621.35, 32 GB RAM) with #984 (ac7c3449d) + #968 (f2268abea) (+ #513) in a601 srun ([email protected]@580every 10 s,53 presses logged,LEONIDA_SKIP_INT3=1,LEONIDA_DEVICE_TYPE=6,LEONIDA_ARENA_MB=2048):t=0s (0,0) -> t=5s (1,0) -> t=10s (2,0) -> t=40s (2,1) -> t=75s (3,3) -> t=85s (3,d)— stayed atsession=0xdthrought=595s(matches CLHelper's observation on 32 GB Windows).PresentX ok 13370, failed 0,0device loss,40/40non-black (last mean rgb 100.51 64.55 103.71,brightest 163.26 141.70 130.99).Slot31called50times (0refusals),ExecuteIndirect: 0,slot-70 views awaiting readable memory: 86,64 over memory not readable yet,registry 1532 images (529 made, 1003 slot 133 of 1223 registered, 17 mapped, 526 filled).@oscarlosu-lab on GitHub · 2026-11-24 19:31 UTC · original
Follow-up on the unreadable slot-70 views reported above when testing #984 + #968 on Windows 11 (RTX 3060 12 GB):
copy_page_mappingsonto the paired CPU alias (title_gpu_views::to_cpu) reducesslot-70 views awaiting readable memoryfrom 86 → 40 andover memory not readable yetfrom 64 → 26 (2,309 fills / 6,618.6 MiB, 0 failed,xmem_test325/325 OK).26unreadable views remain and the title still stays insession=dwithin420 s(noExecuteIndirectyet).@oscarlosu-lab on GitHub · 2026-11-24 20:00 UTC · original
@Tyrannys Quick question on your 64 GB run in #984: how long does it take to leave
session=d, and what doslot-70 views awaiting readable memoryandover memory not readable yetshow right around when it leaves0xd? (Trying to tell whether 64 GB lets the title finish mapping/streaming all of those views, or whether it advances even with non-zero counts.)@ImLele69 on GitHub · 2026-11-24 21:53 UTC · original
Linux result on Turing (first one here on a 32-lane card older than Ampere), #984 (
273b3bdf9) + #968 (f2268abea), shaders re-translated with this branch's translator (--wave64-emulate).Machine: Fedora 44, kernel 7.3.4, RTX 2070 SUPER 8 GB (Turing), NVIDIA 620.70.06, 16 GB RAM with 15.5 GB zram (no swap file), clang-cl 20 + xwin, Release.
Settings: this branch's
boot.shdefaults (LEONIDA_ARENA_MB=2048, NVIDIA disk cache 20 GB,unshare -rn), local BCPack predictor fromtools/build_dstorage_history.py,LEONIDA_KEYBOARD_PAD=always,LEONIDA_INPUT_SCRIPT= A every 15 s from 60 s. Cold NVIDIA cache.Run, 660 s limit (Wine 11.21 Staging, Fedora package):
CreatePipelineStaterefused, all on depth-bounds (stream subobject 21), the known gap.MemAvailable3.8 GB, zram swap peak 2.4 GB, VRAM peak 5.5 of 8 GB. So 16 GB + zram held up to that point; I have not seen the end of the load yet.Wine build matters on this machine. With Proton Experimental (its
files/bin/wine, wine-11.0) and a fresh prefix, both #984 alone and #984 + #968 stop at 9-11 s, every run, before the first present:0xc0000005atexe+0xb5a5f8(read+0x68), stack throughexe+0x19f51fc, the same null read otaviosza traced on another stack. The same build with Fedora's Wine 11.21 Staging and its own prefix runs past it as above. I have not found which difference it is (Wine version, prefix, or something the Proton wine binary does outside Steam); noting it becausedocs/linux_proton.mdnames Proton Experimental as the Wine to use.Next here: a longer run to the end of the story load and the world-phase stop, then the same with a warm cache.
AI-assisted: yes (Claude Code)
@towade on GitHub · 2026-11-24 21:56 UTC · original
checked:
273b3bdf9+ #968 (f2268abea) on the two GPU kinds this branch says it could not test: an AMD Radeon RX 9070 XT (RDNA4, 32.0.32029.2010) and an Intel UHD 770 (Xe-LP, 32.0.101.7092, no mesh shaders). Windows 11 26300, MSVC 19.44 (CMake + Ninja,RelWithDebInfo,-DLEONIDA_REQUIRE_VULKAN=ON, SDL3 3.4.20 from a local copy of the pinned release), own 1.0.2.1 copy, a fresh work folder from this tree (make_game.py --stages check,shaders,runtime --runtime-build, 34 min, exit 0: 26,503 main, 1,844 pipeline library, 24 FSPX, 52 BVH, 12 executable programs, every translated module passesspirv-val; the runtime reports 28,435 translated shaders). Booted withscripts/windows-boot/boot.ps1and its defaults, plusLEONIDA_VK_DEVICEto pick the GPU; the executable's network blocked. Counts, states and timings only.The #968 merge. Cherry-picking #968 onto this branch conflicts in four files (
xs_proxy_mock_test.cppresolved by keeping both, not built). Keeping both sides compiles inxmem.cpp/xmem.h(plus the one-line change incopy_page_mappingsthat the comment above describes:g_mappedholds the page number here), but not ind3d12_xs_device.cpp: the hunks land insidePresentStateand inside the allocator branch of the slot dispatch. I took this branch's file unchanged and added #968's four pieces by hand: thexmem.hinclude, the slot constant, the slot-31 section before the PresentX section, and oneif constexpr (K == queue && Slot == 31)next to theExecuteCommandListsXcase.xmem_test: OK (336 checks).[email protected]@180)a@45, then every 10 s to 580)int3after 11 sgame/session)session=1at 25 s, 3/3 at 45 s,dat 65 s, low dword back to 0 at 155 sdat 55 s, 0 at 70 sgame=1at 5 s, nothing afterPresentXok / faileddevice-faultlines are the last-dispatches list written at exit, no device loss)CreatePipelineState(depth-bounds test not supported yet)What the RX 9070 XT shows (described, no captures attached): the package splash, the launch movie with sound, then the first-run pages in the system language (German here). Boot 1 stayed on the first of those pages to the end, although the scripted presses kept arriving. Boot 2 went further: the loading slideshow with its artwork, the stage your notes call the story load, and it crashed there. Both crashes are at the same title instruction with the same call chain, about 45-50 s after the session dword's low part drops back to 0. That looks like the random-time access violation reported above with #968 on an RTX 4070 SUPER, except that here it comes during the load, not after it.
Near the end of both boots the runtime reports
slot-70 views awaiting readable memoryat ~37,300 and ~32,400 imagesover memory not readable yet. That is the unreadable-slot-70 state that the #968 follow-up describes, and its fix (mirroringcopy_page_mappingsonto the paired CPU alias) is not inf2268abea, so these boots don't have it. I didn't count the slot-31 calls (the runtime logs only the first), so I can't compare with the 46 calls in the RTX 3060 run.Input. The keyboard pad works: the scripted presses and a person's key presses move through the pages. A person also tried an Xbox Wireless Controller (Bluetooth). The shim connects it as player 1 and logs its stick movement and one press, but the person saw no effect from the pad's buttons in the window, while the keyboard worked. The harness sets
LEONIDA_KEYBOARD_PAD=always. I didn't take this further. The same person saw the launch movie play with sound but stutter.UHD 770. It stops at the title's
int3after 11 s with noPresentX, at the same place as #939 on this GPU (it reports noVK_EXT_mesh_shader). It looks like the same title stop as in Daolyap's watchdog finding in #14 (a cold pipeline build on the graphics-init thread), so on this GPU the next step is probably the init-time pipeline build, not anything in this branch.Not checked: a run with the slot-70 fix from the #968 thread, the work folder translated with
--mesh-computefor the Intel GPU,LEONIDA_SKIP_INT3, anything past 205 s, and Linux.AI-assisted (Claude Code).
@oscarlosu-lab on GitHub · 2026-11-24 23:46 UTC · original
Update on Windows 11 + RTX 3060 12 GB (#984 + #968 + CPU-alias fix,
LEONIDA_SKIP_INT3=1,LEONIDA_DEVICE_TYPE=6):Turns out our earlier
420 s–600 sruns were not stalled in0xdat all — they were waiting on pages 3–4 of the 4-screen first-run setup (A-only presses don't advance them). Withdown, down, aon page 3 andup, up, a, down, a, down, aon page 4:t=0s (0,0)→t=40s (2,1)→t=100s (3,3)→t=115s (3,d)→t=285s (3,0)(story load!)PresentX ok 6,860, failed 0(35/35non-black captures)76,001slot-70 views (52,774made,65,885fills /14,414.1 MiB/0failed),20,343awaiting readable memory,15,824over memory not readable yet (11,277ordered title host copies,17GPU waits)439 s:int3skipped atexe+0x2474606(LEONIDA_SKIP_INT3=1), then0xc0000005(write0x18644848038) atexe+0x52716ec(exe+0x43ba85←exe+0x25a58d5←exe+0x25a5764←exe+0x2215eca),ExecuteIndirect: 0.@aslan2142 on GitHub · 2026-11-25 00:16 UTC · original
@ubiquitarianism @Moriz82 a heads-up so nobody does this twice: we are merging current
maininto this branch right now.maintook in nine pull requests of the boot ladder tonight, one at a time, each with the full Windows suite run before it (#375, #377, #383, #385, #727, #391, #395, #396, #403). This branch has the same changes in its own form, so it now conflicts withmainin 42 files, most of them ind3d12_xs_device.cppandxs_proxy_mock_test.cpp.mainis pinned at1154976d4and the 42 files are being resolved in five groups in parallel (the Xbox proxy code, its tests, the D3D12/Vulkan layer, the other shims, and build/tools/docs). Then one integration step: build with clang-cl, the full runtime suite under Wine on llvmpipe and on an RDNA2 iGPU against a baseline ofmain, and the translator suite.mainand this branch both carry a change,main's reviewed form stays; everything only this branch has is kept (the title-memory windows and write-watch, the image pool, the pinned reads, queueSignal/Wait, the fence mirror, list handle translation, the A8 formats, the presentation window and the shared token source). Every dropped duplicate and every judgement call is being written down and will be posted here.mainon top of273b3bdf9, pushed to this branch through the maintainer edit, with Moriz82's commit untouched and no force-push. Expect it in two to three hours.@ubiquitarianism: this is the first bullet of your
RT-PALMETTO-PARITYclaim. If you have already started on it, or want it done differently, say so here and we stop and hand over what is resolved. The other parts of your claim (the translator decode PRs and the palmetto ports) are untouched.@Moriz82: if there is work on this branch newer than
273b3bdf9that isn't pushed, please push it now or tell us; and please don't force-push while this is in progress.AI-assisted (Claude Code, Claude Fable 5.2).
@djrolfes on GitHub · 2026-11-25 00:16 UTC · original
Independent RTX 3070 Ti 8 GiB result (RT-PROTON-3070TI-VALIDATION): Linux, Wine 11.22, NVIDIA 620.73.04, 32 GiB RAM; runtime ac7c3449d (runtime code identical to current
273b3bdf9), clang-cl/xwin RelWithDebInfo + SDL3.Prerequisites rebuilt with this branch: 26,503 main + 29 FSPX + 52 BVH + 2,683 library + 12 executable entries, no missing modules/error-only metadata; wave64 emulation on. Local BCPack profile built from all 57 pools / 5,435 BPTC chunks. Loader dry-run succeeds; 25 targeted Wine and 7 portable synthetic tests pass.
Bounded network-isolated run, package and shader inputs read-only, separate prefix/overlay. Series S identity, 2 GiB arena, 4 GiB pipeline cache, keyboard pad, first scripted A at 180 s. LEONIDA_SKIP_INT3 unset; no compute skips or stub pipelines. 4,041 successful PresentX, no failed PresentX recorded. State reaches game=3/session=3 around 30 s, then an unhandled title breakpoint at 40.735 s, before the scripted input. This is NOT the older physical-pool fill assertion: local inspection identifies a bounded buffer append with only 80 bytes remaining for a 1,728-byte request. Its producer/drain semantics are not established yet; I am not treating stepping over it as a fix.
The wrapper hit its 720 s limit because Wine entered its debugger after the breakpoint; actual title progress stopped near 41 s. Peak sampled total GPU memory 1,532 MiB, minimum available system RAM 12.47 GiB, so this run does not support a memory-exhaustion diagnosis. No story-load completion or world frame established. I am tightening the local wrapper to stop promptly on this fatal breakpoint and will retest/reduce it. Does this bounded-buffer stop match a known item on your machines? Raw logs, registers, disassembly and captures stay local. AI-assisted.
@djrolfes on GitHub · 2026-11-25 00:23 UTC · original
Reduction follow-up on the RTX 3070 Ti / Wine 11.22 bounded-append stop: reproduced 3/3 without LEONIDA_SKIP_INT3. Warm repeat: 33.576 s, 4,257 successful presents; changing only ordinary pad input timing delivered A at 20 and 30 s, then hit the identical append assertion at 35.039 s after 2,615 successful presents. The same 80 remaining / 1,728 requested values recur. Earlier menu input therefore does not avoid it here.
Capture caveat: first run 7/7 exactly black; warm repeat 3/8 non-black. Successful PresentX is not being used as proof that the menus render correctly. No story/world-frame claim. I fixed the local monitor so Wine entering its debugger is detected before discarding a large new output chunk; the third sandbox stopped promptly at 38.5 s rather than waiting out its limit. That is only a harness fix, not a runtime fix.
The buffer producer/drain contract remains unidentified; calling it a profiler buffer or a command stream would be speculation. The 224 depth-bounds PSO refusals are also present, but #815 already owns that implementation and I have not established a causal link. I see the current-main integration is underway; preserving this baseline for an isolated retest of that head rather than creating a competing merge. Counts only, raw data stays local. AI-assisted.
@ThomasHFWright on GitHub · 2026-11-25 01:14 UTC · original · edited 2026-11-25 07:43 UTC
Independent RTX 5090 Linux validation of exact head
273b3bdf9d6e736442ad584ad464df6e86ee928b(no source patches). Real interactive first-run UI now renders here under distro Wine 11.22. No world/gameplay frame established.Environment: Ryzen 7 9800X3D, RTX 5090, NVIDIA 620.73.04, Linux 7.3.6 CachyOS, approximately 30 GiB physical RAM and 62 GiB swap; clang-cl 23.1.5/xwin SDK 26100, SDL 3.4.20. Offline network namespaces, read-only package input, separate candidate prefixes/caches/overlay. GPU suites finished before title tests. No assertion skips, compute skips or stub pipelines requested. This head's default title-watchdog keepalive remains enabled, so longer runtime alone is not stability evidence.
Full validation:
pso_stream_testregistration (runtime/CMakeLists.txt); building all 84 portable executables explicitly passes. Native CTest: 77 pass / 2 skip / 1 NotRun of 80. The Windowspso_streamtest passes.test_control_flow_branches: four errors because the fixture interpreter does not implement emittedOpPhi;test_ds_swizzle_b32andtest_valu_permlane16: expectedUnsupportedConstructis no longer raised (five and one subcases respectively).s_sethalt; rejection left intact. Runtime corpus lookup passes with zero lookup failures. Local BCPack profile generated from all 57 pools / 5,435 BPTC chunks and stamp verified.Title observations (Series S identity, 2 GiB arena, 4 GiB pipeline-cache budget, keyboard pad, explicit BCPack profile, fresh matching shaders):
Cold Wine 11.22, no scripted input: legible Account Picker / Screen Narration / Player prompt row in 5/12 captures; 7,045 PresentX, 55,790 indexed draws, 5,243 dispatches. Title breakpoint at 28.288 s, same site and initial stack frames as my PR #939 run. Stalled Wine debugger scope explicitly stopped at 87.75 s; that cleanup is not the failure cause. Cgroup peak RAM 5.227 GB, swap 0.230 GB; no memory-high/max/OOM events.
Raw Proton Experimental
files/bin/wine(wine-11.0), separate fresh prefix/cache/overlay: loader dry-run and init pass, but title access violation at 3.827 s, exit 5 at 4.87 s, zero presents. This is the raw Wine binary, not a complete Steam Proton launch.Warm Wine 11.22 plus virtual A at 15/20/25 s: full Navigation Experience, UI Text Size, and Subtitles pages visually verified. Targeted window Enter inputs advanced pages. 6,589 presents / 57,855 indexed draws / 4,974 dispatches, no title breakpoint observed before the 300 s harness limit (exit 124). Warm cache and input both changed versus run 1, so this does not establish that input timing fixes the earlier assertion. Peak cgroup RAM 6.322 GB / swap 2.973 GB; no memory-high/max/OOM events. Total GPU-memory peak 11,213 MiB includes desktop/other applications, not isolated process VRAM.
A second warm run reproduced the illustrated splash and interactive setup. Ordinary window-targeted input advanced Navigation → Text Size → Subtitles → Brightness → Finish Setup → Legal Notices → Privacy Policy/Terms of Service. This run ended at the 600 s harness bound (exit 124), with input left at the consent page. It produced 13,287 presents and no observed fatal title exception; no memory-high/max/OOM events. Peak cgroup RAM 5.872 GB / swap 4.505 GB. The user subsequently authorized acceptance; see run 5. No story-load completion or world frame claimed.
Follow-up warm Wine 11.22, same old
273b3bdf9build: accepted both legal checkboxes and confirmed setup through ordinary targeted input. The screen changed to a loading spinner and stayed there until the 600 s harness bound (exit 124). 11,695 presents / 99,243 indexed draws / 9,940 dispatches; 81,489 pipeline-creation calls. No fatal title exception or device-lost diagnostic observed; the two early RPC first-chance exceptions continued. 100 queue-slot-31 calls remained console-only. Peak cgroup RAM 7.333 GB, swap 5.449 GB; all memory-high/max/OOM counters zero. Minimum sampled host MemAvailable 9,042,692 KiB; total GPU-memory peak 11,634 MiB includes other desktop processes. No story artwork, story-load completion, or world frame verified. The timeout is test cleanup, not an application crash.The current exact-head traces still record queue slot 31 as console-only (20 calls cold, 48 in the first warm run, 51 by the follow-up legal page). This confirms the known missing implementation is exercised, but does not establish it caused the earlier breakpoint. The subsequently merged #968 and #974 fixes are absent from this historical build; neither was mixed into this baseline.
Windows test failures:
loader_tls,gameinput_host,device_proxy,device_proxy_trace,root_sig,xmem,xmem_no_write_watch,xmem_write_watch,file_system,bcrypt_rng,bcrypt_rng_seeded,run_tiny_tls_ga,d3d12_xs_root_signature,d3d12_noop_copy,d3d12_indirect_dispatch_count,d3d12_clear,d3d12_typeless_depth,d3d12_residency,d3d12_heap_properties,dxgi_swapchain,dxgi_host_parity(timeout),dxgi_waitable_latency(timeout),d3d12_fspx_compute,d3d12_clear_formats.Update after the merge: this is a historical baseline of the original
273b3bdf9, not validation of merged main. #984, #968, #939 and #974 are now merged. Prepared a separate checkout ofmainat3f81d46ac01021bd7517f0cce153f4283bc8dd17, verified to contain all four merges; it is not built or tested locally yet. The old baseline retained its default watchdog keepalive; merged main now arms the title watchdog by default, so this must be reported explicitly in the next comparison. Prior #939 comparison: #939 . Raw title traces, shader data, disassembly and captures stay local; aggregate results only. AI-assisted.@madhyn on GitHub · 2026-11-25 01:14 UTC · original
Independent Arch Linux + Wine 11.22 + RTX 3060 Ti 8 GiB validation report (with
#968+ CPU-alias +#404/#877XMA2 audio + monitor-fitted window), reaching rendered first-run UI, 4K launch movie playback and live audio with zero device faults.Setup & branch
7.3.5-arch1-1), NVIDIA GeForce RTX 3060 Ti 8 GiB (driver615.78.08), 16 GiB RAM, Wine11.22 (Staging), network isolated viaunshare -rn.madhyn/leonida@exp/proton-ui(6e3369c40), built on Linux withclang-cl23 +xwinSDK + SDL33.4.20(Release):#984(273b3bdf9)#968(CopyPageMappingsBatchXon queue slot 31) + the CPU-alias mirror fix inxmem.cpp#404+#877(Rust XMA2 decoder cross-compiled tox86_64-pc-windows-msvcwith Rust1.100.0,acphal_test: 170/170 checks passed, including non-silent PCM decode)1568x88216:9 client area centered on a1920x1080display)12/12exeand29/29fspxshaders with this branch's translator (wave64 emulation on; resolved the missingexepixel shader during startup) and built the local BCPack sidecar (57pools,5,435BPTC chunks,0malformed).LEONIDA_DEVICE_TYPE=6(Series S),LEONIDA_SKIP_INT3=1,LEONIDA_COMPUTE_WARMUP=0,LEONIDA_ARENA_MB=2048,LEONIDA_PIPELINE_CACHE_BYTES=4294967296,LEONIDA_STARTUP_CACHE_CHECKPOINTS=1,LEONIDA_KEYBOARD_PAD=always, NVMeLEONIDA_PIPELINE_CACHE_DIR&__GL_SHADER_DISK_CACHE_PATH(package itself sits on a SATA HDD).Measured 300 s run (counts & timings only)
LEONIDA_PEEK):t=0s (0,0)→t=5s (1,0)→t=15s (2,0)→t=50s (2,1)→t=200s (3,3)(first-run UI open) →t=265s (3,d)(4K Bink movie + post-landing transition); ran cleanly to the 300 s stop with no crash / no device loss.4,741PresentXok /0failed;80captures taken (27package splash frames during init, then53/53non-black rendered UI frames at1568x882, mean RGB32.34 32.34 44.30), followed by 4K Y/U/V video plane updates (67fills per plane).543slot-70 views (469made,0over memory not readable yet,0awaiting readable memory),1,455registry images,1,284fills (2,598.8 MiB,0failed).48 kHzstereo float32 PipeWire stream on the default sink + Rust XMA2 decoder linked; SDL3 detected both physical gamepads (DS4 + Xbox 360) alongside the keyboard pad.2,200,069bytes topipeline_cache.session.binon NVMe.Practical note for 8 GiB / Linux boots
Setting
LEONIDA_COMPUTE_WARMUP=0made a large difference during startup here: with warmup enabled, background compilation of unused ~300 KiB compute modules (2–3 s each) kept the boot ingame=2 / session=1past 200 s; disabling warmup let the run cross cleanly intogame=3 / session=3andsession=dwith zero device faults.All logs, traces and captures stay local.
AI-assisted: yes
@aslan2142 on GitHub · 2026-11-25 01:37 UTC · original
Merged. Thank you, @Moriz82: this is the largest step
mainhas taken towards the story load. @ubiquitarianism, this was the first part of yourRT-PALMETTO-PARITYclaim, done as announced above.How it was brought up to date:
mainwas merged into this branch, not rebased, so your commit273b3bdf9is untouched and nothing was force-pushed. 42 files conflicted. They were resolved in five groups by one rule: wheremainand this branch carried the same change,main's reviewed form stays and what this branch did beyond it is carried into it; everything only this branch had is kept. That covers the title-memory windows and write-watch, the image pool, pinned reads, queueSignal/Wait, the fence mirror, the list proxy, the presenter with its sharedFrameTokenSource, and the translator and tool work.Where the measured boot wins over
main's reading:S_OKwith a zero count.PresentXis queue slot 30, or 32 on a queue detected as the newer layout;LEONIDA_XS_PRESENT_X_SLOTpins it.Changed for the title, please check these first in a run: device slots 61 and 74 and queue slot 18 now follow
main's caller rule (set_console_caller, installed inD3D12XboxCreateDevice), instead of this branch's own heuristics.Maintainer decisions in this merge:
LEONIDA_TITLE_WATCHDOG=0turns on the thread that keeps it from firing, for example on a first boot after a driver update.LEONIDA_LOCAL_DIAGNOSTICS=1, off by default.docs/embedded_shaders.mdstay.Fixed on the way, each in its own commit:
VK_KHR_maintenance5sat inside another extension's guard;pso_stream_testbreaking the Linux build;d3d12_compute,d3d12_fspx_compute);Tests (clang-cl with the xwin SDK; the full runtime suite under Wine on llvmpipe and an RDNA2 iGPU, RADV):
main: no test went from pass to fail on either device. 46 tests are new and pass;dstorage,run_startup_cmdlineandxmemwent from fail to pass on both, andd3d12_xmem_placedon the iGPU.ctest: 81 pass, 2 skipped. Translator suite: 483 files, 6,254 tests, 0 failed. All 497 standalone Python test files pass.check_no_game_data.pyis clean on the 301 changed files.Open:
d3d12_geometry_views(LEONIDA_GEOMETRY_MB=16, off by default) fails on the RDNA2 iGPU: the kernel rejects the first submission, as it did on this branch's head. It fits the known RADV problem with write-protected pages under a live host import.docs/re/...notes that are not in the repository; they can be removed or the notes added.Next: #968 (queue slot 31), which this branch needs to reach the story load, goes in right after this, with oscarlosu-lab's CPU-view fix. Then #939 on top. Runs of
mainafter both, on any card, would be the real check.AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).
@3L1A5-1 on GitHub · 2026-11-25 02:50 UTC · original
Native Windows + MSVC + NVIDIA result for
mainafter this and #968 (3ff2a2adc, built unchanged;scripts/build_runtime.ps1, RelWithDebInfo, MSVC 19.44).gameinputdisabled, no SDL3). This includesxmem,dstorage,run_startup_cmdline,queue_proxy,device_proxyand everyxs_proxy_mockvariant.scripts/run_gpu_tests.py: 208 passed, 0 failed, 50 skipped. In the first of two full runs,cs_dpp_fiandcs_w32_misc_extfailed with only their device line; they pass alone 3/3 and in the second full run, so I count them as transient here.LEONIDA_W64_EMULATE=1: 241 passed, 0 failed, 17 skipped.Hardware: RTX 2060 SUPER 8 GB (Turing), driver 617.14, Windows 11 26300, 16 GB RAM. Not run yet: the game on
main; a guarded run on this 16 GB machine will follow once a shader library frommain's translator is built.AI-assisted: yes