mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #2350] [MERGED] [integration] RT-LINUX-AMD-WORLD: what drew the world on Linux/AMD, with eleven runtime PRs, docs for running per GPU #2354
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#2354
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/2350
Author: @aslan2142
Created: 11/26/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142
Base:
main← Head:linux-amd-world📝 Commits (10+)
9c6cbbcruntime: xapu.dll as a command queue with the console's layouts, audio silent370e52bMerge branch 'main' of https://github.com/ubiquitarianism/leonida into xapu-connect-layouts19559fescripts: build xapu.cpp in the cl.exe fallback (review of #1144)6ee7ef8Merge branch 'main' of https://github.com/ubiquitarianism/leonida into xapu-connect-layouts9f1f5bfd3d12: a pipeline cache for the offline cache's misses, written while the game runs (RT-HEAVY-PIPELINE-CACHE)e4c413aheavy pipeline cache: a write covers what was noted before it started, counted, not timed; teardown keeps fast builds tooec95c3cruntime: pause list value wait timeouts while submitted or held work can still satisfy themca00cc0xmem: a slot-31 copy leaves the title's own mappings at the paired CPU range9520db5runtime: cap all list-value wait pauses, scale demoted caps, and test Pump28fc026d3d12_xs, test: say which route slot 31 remaps through; cover the retail route📊 Changes
80 files changed (+7421 additions, -391 deletions)
View changed files
📝
docs/README.md(+1 -0)📝
docs/audio_hal_exe_calls.md(+20 -0)📝
docs/d3d12_vulkan.md(+220 -1)📝
docs/design.md(+2 -0)📝
docs/directstorage.md(+26 -3)📝
docs/gameinput.md(+7 -2)📝
docs/linux_proton.md(+61 -0)➕
docs/running.md(+142 -0)📝
docs/runtime_imports.md(+14 -12)📝
make_game.py(+50 -17)📝
runtime/CMakeLists.txt(+113 -1)📝
runtime/README.md(+5 -1)➕
runtime/cmake/opus_decoder.cmake(+23 -0)➕
runtime/opus_decoder/Cargo.lock(+16 -0)➕
runtime/opus_decoder/Cargo.toml(+16 -0)➕
runtime/opus_decoder/README.md(+33 -0)➕
runtime/opus_decoder/leonida_opus_decoder.h(+44 -0)➕
runtime/opus_decoder/src/lib.rs(+244 -0)📝
runtime/shims/d3d12_com.h(+7 -0)📝
runtime/shims/d3d12_compute_input_probe.h(+3 -3)...and 60 more files
📄 Description
Claimed in the coordination issue as: RT-LINUX-AMD-WORLD
Everything that got the title's 3D world drawn on Linux with an AMD GPU (RX 7900 XTX, RADV, Wine) on 2026-11-26, as one integration PR, plus a page on how to run the game per platform and GPU.
make_game.py's wave64 choice, the address guard, night diagnostics, the BCPack fit fix and docs.aslan2142:linux-amd-world, onmain73516a290.What we measured
docs/linux_proton.mdsection and indocs/running.md:lockup_timeoutdefaults to 2000 ms. World frames take seconds, so runs ended inring gfx timeoutwith no page fault. It has to be raised (root, reboot).--wave64-emulate off). Emulated single-wave compute in the round-loop form hung the GPU and drove RADV's compiler past 12 GiB (53 GB uncapped).gta6rt --precompile-pipelines. The pipelines stage'spipeline_cache.binshared 0 of 5,526 pipeline keys with the game, for three reasons:LEONIDA_RT_AS=offplusLEONIDA_SKIP_COMPUTE, for the 724 library programs of 2 MiB or more (89-167 s each in the driver).LEONIDA_TITLE_WATCHDOG=0+LEONIDA_TITLE_WATCHDOG_KICK). The RVAs are measured locally and are not in the repository.int3after 12 minutes.Our commits
rdna2spirv: no round-loop fallback for single-wave emulated programs9f98dcc61's fallback no longer applies toinline_allplans: a single wave can't split at a barrier.spirv-valcounts are unchanged.docs/design.mdcontract row.make_game: a CPU Vulkan device does not decide the wave64 emulationautotook the smallestmaxSubgroupSizeover all devices, so llvmpipe (8) turned emulation on beside native-wave64 GPUs (all 23,841 wave64 shaders).tests/test_make_game_wave64.py.rdna2spirv.py --address-guardchecks everyheap_baseaccess against a GPU page table.LEONIDA_ADDRESS_GUARD=1keeps that table current.address_guard_testand a semantic test.console_heap_copyandd3d12_console_heap_mirror.LEONIDA_GEOMETRY_HOST), retired when the title remaps their pages; tests ingeometry_views_testandxmem_test.LEONIDA_UNKNOWN_TSHARP,LEONIDA_UNBACKED_VSHARP,LEONIDA_UPLOAD_LOG;LEONIDA_UPLOAD_ALIAS(an experiment, changes behaviour);LEONIDA_INPUT_FILE(button presses from a file, for headless runs).dstorage history: fit packed tails against decoded BCPack siblings: refused BC7 streams in the package drop from 60 to 8 of 5,167. Test intests/test_dstorage_history.py.docs/linux_proton.md: the AMD section.docs/running.md: new, linked fromdocs/README.md. One section per platform and GPU (build, shaders, pre-compile, driver settings, environment with reasons, command, what to expect, known problems). Every value is marked measured by us, reported by others (linked) or TBD.docs/d3d12_vulkan.mdanddocs/gameinput.md.#1914×#1886indocs/d3d12_vulkan.md;#2162× the heap mirror (heap.copy.zero);#2129× the geometry-copy members ind3d12_vulkan_device.cpp.Includes
Each PR is merged at the head below, which hadn't moved since we tested it. The open ones will be closed in favour of this one, with credit to their authors.
a42bffdc3eaf0b8d0cExecuteCommandListsserial stack kept out of TLS callbacks (the startup0xC0000409)d088ea79bTitleTexturereadability synced withtitle_memory_mapbetween passes (draft PR)4cfbdfc0b6ee7ef89bxapu.dllas a command queue with the console's layouts (inside #2044)9520db518b986d274b2769c5a735fa864e536b09de493Submit7bd4cec02button@seconds:holdin input scripts28fc0262dTests
Linux 7.3.6, RX 7900 XTX and Ryzen 9 7950X3D iGPU (RDNA2, gfx1036), RADV Mesa 26.3.1, Wine 11.22 (Staging).
scripts/run_semantic_tests.py).tests/test_*.pywithpython -Ipass, includingtest_ci_registration,test_text_write_line_endings,test_docs_env_varsandtest_tool_stdout_encoding.compileallis clean.check_no_game_data.pyon every added or changed file (80): clean.cteston the iGPU: 112 of 112 passed.main73516a290built the same way: no test went from pass to fail.address_guard,console_heap_copy,d3d12_console_heap_mirror,d3d12_console_heap_mirror_off,heavy_pipeline_cache,list_value_wait_budget,d3d12_placed_write_back,d3d12_title_window_write_back,xapu_opus.d3d12_mesh_heavy_cache(#1914). It runsd3d12_mesh_test, which fails the same way onmainunder Wine on this iGPU (d3d12_mesh).mainare the headless presentation tests and others known under Wine.maina73a57e13, on the RX 7900 XTX.--wave64-emulate off), so the translator fix, which concerns emulated programs only, was not exercised there. Its own measurements are above.Depends on: none (the included PRs are merged here, not depended on).
AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.