runtime: --precompile-pipelines builds the skip-listed programs unless --skip-listed (RT-PRECOMPILE-SKIP-LIST-EXPLICIT) #2393
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!2393
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2393"
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?
@aslan2142 on GitHub · 2026-11-26 17:44 UTC · original
aslan2142:precompile-skip-list-explicit→main· +238 −31 · 8 files · 1 commits · merged 2026-11-26 17:55 UTCgta6rt --precompile-pipelinesnow builds the compute programsLEONIDA_SKIP_COMPUTEnames. It leaves them out only when given--skip-listed, and its last line counts what it built and what it left out.Claim: #1608
Credit: the method is @MoonEyes's finding. They showed first, on an RTX 4060, that the large library programs build offline with the skip list unset and that the journal then serves them in the game. This PR makes the precompile do that by default; the measurements below repeat their test on an AMD card.
What changes
precompile_compute_pipelinesbuilds every compute entry, whetherLEONIDA_SKIP_COMPUTEnames it or not. When the list names some, one line says how many and that they are built anyway.--skip-listed, next to--filter: it leaves the listed entries out, onenot built (LEONIDA_SKIP_COMPUTE, --skip-listed)line each.[precompile] done: 1 built (1 compiled, 0 from a cache), 0 journaled already, 0 being built by another process, 0 failed; left out: 1 of 1 listed in LEONIDA_SKIP_COMPUTE (--skip-listed), 0 not buildable, 0 filtered out; in 0 s--limitnow count as filtered out.BuildHost::unbuildableno longer checks the list.--compile-serverstill leaves listed programs out, as before: it runs for a game that drops their dispatches.docs/running.md,docs/linux_proton.mdanddocs/d3d12_vulkan.mddescribe the new behaviour and no longer give compile time as the reason for the skip list. The lines about thepipelinesstage are untouched (MAKE-GAME-PIPELINES-VIA-RUNTIME).Why
LEONIDA_SKIP_COMPUTEis a play-time setting: the game drops the listed programs' dispatches.docs/running.mdtells them. So their skip list kept those programs out of the journal for good, and a later run without the list had to compile them in the game.pipelinesstage that calls this precompile would have inherited the same behaviour.Measurements
RX 7900 XTX, RADV (Mesa 26.3.1), Wine, native wave64 pack (
--wave64-emulate off):library/programs of 2 MiB or more built.LEONIDA_RT_AS=offand no skip list (one run per condition):main56bdd7e88plus four then-open PRs) reached the world with no GPU fault for 404 s, then the game stopped submitting with the GPU idle (a lock in the runtime is suspected; cause not found);mainbd6ba97ab) hit a read page fault at about 214 s, then a graphics-ring timeout 30 s later and a lost device, with every queue idle in the dispatch markers.LEONIDA_RT_AS=offas the setting our longest runs used. The RTX 3090 Linux/Proton report stays as its author's.Tests
The branch is one commit on
mainbd6ba97ab. The rebase from935a2cd5bhad no conflicts. The full Wine suite ran before the rebase; the other checks below were run again onbd6ba97ab.precompile_skip_list(runtime/test/check_precompile_skip_list.cmake). It uses two synthetic compute modules, one of them listed, and runs the precompile three times:--skip-listed, only the unlisted one is built and the listed one is named;main(a56bdd7e88build): main leaves the listed entry out, writes 1 journal file instead of 2, and rejects--skip-listed. It passes on this branch, before and after the rebase ontobd6ba97ab(under Wine, iGPU).mainat56bdd7e88the only changes are the new test andxmem_write_watch(a known flake) going from fail to pass. No test went from pass to fail.ctestonbd6ba97ab(iGPU): 112 of 112 passed, 2 skipped.tests/test_docs_*.py,tests/test_ci_registration.py,tests/test_ctest_registration.py,tests/test_text_write_line_endings.py: pass.scripts/check_no_game_data.pyon the changed files: clean.Not tested
/W4 /permissive-) and native Windows: left to CI.--big-threadsand--skip-listedthere.--filterruns of the same code path.--verify): it touches the same selection loop, the usage line andPrecompileOptions. Expect a small textual conflict but none in behaviour: its check runs with everyLEONIDA_*variable cleared and looks for0 failed, which the new last line keeps.AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
@aslan2142 on GitHub · 2026-11-26 17:55 UTC · original
Merging. This is a self-merge.
pipelinesstage is about to call this precompile (MAKE-GAME-PIPELINES-VIA-RUNTIME). Without this change it would inherit the skip list of every player who has one, and the large programs would stay out of the journal. The docs from #2350 also still gave compile time as the reason to skip them.mainbd6ba97ab+ this PR (76109561f):cteston the integrated RDNA2 GPU (RADV, Mesa 26.3.1): 112/112 pass.precompile_skip_listpasses under Wine and fails onmain.test_ci_registration.py,test_ctest_registration.py, the line-ending test andcheck_no_game_data.pypass.935a2cd5b: the Windows suite under Wine, with no test going from pass to fail. The rebase had no conflicts and touched no code beyond this PR's own.The method is @MoonEyes's finding; see the description.
AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)