make_game: the pipelines stage fills the runtime's own journal with gta6rt --precompile-pipelines (MAKE-GAME-PIPELINES-VIA-RUNTIME) #2392
Open
github-bot
wants to merge 2 commits from
github-bot/gh-2392 into main
AGit
pull from: github-bot/gh-2392
merge into: github:main
github:main
github:docs/animation-merge-remnants
github:docs/story-dedup-and-cli
github:docs/restofworld-merge-remnants
github:docs/gamedata-dedup-tables
github:docs/textures-bcpack-tables-and-cli
github:docs/exe-fail-fast-shims-sync
github:fix/address-guard-wraparound-parity
github:fix/cvt-f16-denorm-and-clamp
github:docs/pso-cache-scope-note
github:docs/viewer-readme
github:docs/textures-arrays-dds-preview
github:docs/conformance-readme-status
github:fix/docs-validators-fences-urls
github:claude/loop-total
github:claude/pops-collision-seed
github:claude/dstorage-hold-page-reads
github:claude/host-image-copy-switch
github:feat/gdk-lifecycle-window-hook
github:claude/d16s8-uav-nvidia-fallback
github:feat/mfplat-offline-shim
github:claude/gameinput-slow-reader
github:fix/rt-null-barrier-clear
github:claude/depth-resolve-sample-positions
github:integration/palmetto-parity
github:claude/valu-literal-sext
github:claude/slot74-pool-handle
github:claude/rgb9e5-uint-alias-view
github:claude/fssm-root-layout-tables
github:feat/gdk-speech-display-lifecycle
github:asset-audio-skip-current
github:qemmhd/old-9940-rectangle-quad-lists
github:feat/ws2-offline-shim
github:qemmhd/rt-d16-unorm-uav
github:feat/xs-device-stops-7-9
github:qemmhd/rt-depth-same-base-shapes
github:qemmhd/rt-lazy-attachment-variant
github:feat/acphal-xma2-decoder
github:asset-audio-skip
github:codex/coord-claim-check-20261124-7e48
github:feat/xs-frame-pacing-presentx
github:feat/xs-device-vm-options
github:old-pr/9844
github:old-pr/9978
github:old-pr/9815
github:old-pr/10057
github:old-pr/9874
github:old-pr/9965
github:old-pr/9863
github:old-pr/10068
github:old-pr/10066
github:old-pr/10067
github:old-pr/10007
github:old-pr/10061
github:old-pr/10065
github:old-pr/10059
github:old-pr/10063
github:old-pr/10055
github:old-pr/10062
github:old-pr/10042
github:old-pr/10041
github:old-pr/10049
github:old-pr/10047
github:old-pr/10046
github:old-pr/10045
github:old-pr/10056
github:old-pr/10043
github:old-pr/10036
github:old-pr/10034
github:old-pr/9984
github:old-pr/10052
github:old-pr/10038
github:old-pr/10033
github:old-pr/10028
github:old-pr/10050
github:old-pr/9891
github:old-pr/9889
github:old-pr/10051
github:old-pr/10019
github:old-pr/10027
github:old-pr/10029
github:old-pr/10031
github:old-pr/10026
github:old-pr/9941
github:old-pr/10030
github:old-pr/10040
github:old-pr/9990
github:old-pr/10021
github:old-pr/9962
github:old-pr/10022
github:old-pr/10020
github:old-pr/10015
github:old-pr/10025
github:old-pr/9886
github:old-pr/10048
github:old-pr/10014
github:old-pr/10011
github:old-pr/9861
github:old-pr/10010
github:old-pr/10008
github:old-pr/9860
github:old-pr/10006
github:old-pr/9920
github:old-pr/9995
github:old-pr/10000
github:old-pr/10016
github:old-pr/10004
github:old-pr/10023
github:old-pr/9982
github:old-pr/9981
github:old-pr/9983
github:old-pr/9970
github:old-pr/9969
github:old-pr/9968
github:old-pr/9971
github:old-pr/9972
github:old-pr/9942
github:old-pr/9963
github:old-pr/9960
github:old-pr/9964
github:old-pr/9985
github:old-pr/9973
github:old-pr/9862
github:old-pr/9953
github:old-pr/10017
github:old-pr/9952
github:old-pr/9955
github:old-pr/9946
github:old-pr/9954
github:old-pr/9938
github:old-pr/9956
github:old-pr/9856
github:old-pr/9947
github:old-pr/9924
github:old-pr/9961
github:old-pr/9927
github:old-pr/9979
github:old-pr/10032
github:old-pr/9926
github:old-pr/5237
github:old-pr/9951
github:old-pr/9931
github:old-pr/9902
github:old-pr/9921
github:old-pr/9994
github:old-pr/9775
github:old-pr/9768
github:old-pr/9905
github:old-pr/9936
github:old-pr/9901
github:old-pr/9904
github:old-pr/9906
github:old-pr/9988
github:old-pr/9908
github:old-pr/9909
github:old-pr/9911
github:old-pr/9912
github:old-pr/9913
github:old-pr/9887
github:old-pr/9916
github:old-pr/9919
github:old-pr/9925
github:old-pr/9933
github:old-pr/9935
github:old-pr/9918
github:old-pr/9879
github:old-pr/9880
github:old-pr/9881
github:old-pr/9996
github:old-pr/9876
github:old-pr/9892
github:old-pr/9899
github:old-pr/9915
github:old-pr/9914
github:old-pr/9872
github:old-pr/9869
github:old-pr/9866
github:old-pr/9819
github:old-pr/10012
github:old-pr/9857
github:old-pr/9893
github:old-pr/9897
github:old-pr/9928
github:old-pr/9868
github:old-pr/9917
github:old-pr/9940
github:old-pr/9873
github:old-pr/9816
github:old-pr/10009
github:old-pr/9900
github:old-pr/9966
github:old-pr/9859
github:old-pr/9843
github:old-pr/9991
github:old-pr/10058
github:old-pr/9883
github:old-pr/9838
github:old-pr/9835
github:old-pr/9959
github:old-pr/9895
github:old-pr/9837
github:old-pr/9858
github:old-pr/9865
github:old-pr/9864
github:old-pr/9840
github:old-pr/9820
github:old-pr/4669
github:old-pr/9848
github:old-pr/9850
github:old-pr/9810
github:old-pr/9799
github:old-pr/9853
github:old-pr/9875
github:old-pr/9831
github:old-pr/9796
github:old-pr/9801
github:old-pr/9813
github:old-pr/9794
github:old-pr/7417
github:old-pr/9781
github:old-pr/9806
github:old-pr/9958
github:old-pr/9809
github:old-pr/9791
github:old-pr/9792
github:old-pr/10053
github:old-pr/9784
github:old-pr/9789
github:old-pr/9849
github:old-pr/9846
github:old-pr/9773
github:old-pr/9785
github:old-pr/9803
github:old-pr/9826
github:old-pr/9839
github:old-pr/9922
github:old-pr/9948
github:old-pr/7189
github:old-pr/9957
github:old-pr/9823
github:old-pr/9807
github:old-pr/9851
github:old-pr/9774
github:old-pr/9830
github:old-pr/9836
github:old-pr/9822
github:old-pr/9783
github:old-pr/9833
github:old-pr/9890
github:old-pr/9770
github:old-pr/9769
github:old-pr/9772
github:old-pr/9787
github:old-pr/9852
github:old-pr/9834
github:old-pr/9845
github:old-pr/9871
github:old-pr/9771
github:old-pr/9776
github:old-pr/10005
github:old-pr/9949
github:old-pr/9923
github:old-pr/9805
github:old-pr/9829
github:old-pr/9790
github:old-pr/9827
github:old-pr/9929
github:old-pr/9855
github:old-pr/9934
github:old-pr/9907
github:old-pr/9910
github:old-pr/9779
github:old-pr/9780
github:old-pr/9885
github:old-pr/9882
github:old-pr/9877
github:old-pr/9998
github:old-pr/4251
github:old-pr/9987
github:old-pr/9989
github:old-pr/9950
github:old-pr/9777
github:old-pr/10044
github:old-pr/9884
github:old-pr/2906
github:old-pr/5076
github:old-pr/9937
github:old-pr/9986
github:old-pr/3014
github:old-pr/9943
github:old-pr/9939
github:old-pr/4682
github:old-pr/4765
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
bug
Something isn't working
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
question
Further information is requested
wontfix
This will not be worked on
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2392
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2392"
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?
@qhukz13 on GitHub · 2026-11-26 17:42 UTC · original
qhukz13:cont/pipelines-via-runtime→main· +1100 −1170 · 20 files · 2 commits · openClaimed in the coordination issue as: MAKE-GAME-PIPELINES-VIA-RUNTIME (#1608, corrected in #1608)
Touches the code this replaces in: #2113, #1407, #846, #285, #1319 and #2042 (all on the
vk_pipeline_checkside of the stage). Built on top of RT-PRECOMPILE-SKIP-LIST-EXPLICIT (@aslan2142, now in main): this keeps its entry selection and its summary wording (check_precompile_skip_list.cmakepasses).What and why
make_game.py --stages pipelinesranvk_pipeline_checkover the translated shaders and wrote onepipeline_cache.bin. The runtime never hits that cache, which the maintainers' status lists as "vk_pipeline_check never matches the runtime's cache keys":pipeline_cache.d/cs-<key>.bin.pApplicationName, its own executable name, robustness off, a different extension set, a different bindless set-0 layout,VK_SHADER_STAGE_ALLpush constants for bound compute, and nodecide_subgroup_size/REQUIRE_FULL_SUBGROUPS.docs/running.mdtold players to skip the stage for that reason.Closing those gaps one at a time in the checker would copy the runtime's device and layout code into a second program.
gta6rt --precompile-pipelinesalready is that program: the same device, layouts,build_compute_pipelineand journal names as play. So the stage now runs it.The change
make_game.py(stagepipelines):gta6rt.exe --precompile-pipelines --threads <jobs>, using the one in--out, else--runtime-build, else the default build folder. It runs natively on Windows and under Wine elsewhere, withWINEhonoured.LEONIDA_SHADERSandLEONIDA_PIPELINE_CACHE_DIRpoint at the run'swork/shaders/spirvand--out, converted toZ:\...under Wine, unless the user set them.[precompile] i/nlines drive the stage's progress.PIPELINE_CRASH_RETRIES(5).<out>/pipeline_crashes.jsonas before, with each module's SHA-256.gta6rt.exemust exist; off Windows, Wine must exist. Off Windows without the cross-build or Wine, the default stage list dropspipelinesalong withruntime.vk_pipeline_checkdriving code goes: the exe lookup, staleness check, Linux auto-build, 500-entry batching and the BVH seeding pass. The precompile loadsbvh/,fspx*/,exe/andlibrary/itself.vk_pipeline_check, its tests, docs and the CI step that runs it stay: it remains the driver-acceptance checker.gta6rt --precompile-pipelines: a module that kills the run is skipped next time. Before this, a crashed build left nothing behind: therequests/<name>.buildinglock isDELETE_ON_CLOSE. A rerun built the same module first again and died again.runtime/src/precompile_inflight.h:requests/inflight.txtlists<name> <key>for the entries inside the driver, rewritten before each create and after it. The key is the module file (size and last write, no read of the module) on this device and driver.requests/crashed.txtand skips an entry while its key is the one that crashed. Each gets a line, the summary adds, N crashed a run(only when N is not 0, so main's wording stands), and the exit code is 2.--alltries every recorded one now.requests/precompile.lock), so a leftover list can only be a dead run's. A second one exits 3, which the stage reports as such, not as a device failure.--listtouches nothing.LEONIDA_PRECOMPILE_CRASH_TEST=<entry>ends the run just before that entry's create, so the crash path is tested by a real process death.Graphics pipelines leave the stage. The runtime builds them at the title's draw from the PSO and the bound formats, and the checker's stub-paired pipelines never matched those (docs/d3d12_vulkan.md). Ordering them ahead of play is #2220 / #2260's work.
Docs updated:
README.md,docs/running.md,docs/linux_proton.md,docs/linux.md,docs/pipeline_check.md,docs/d3d12_vulkan.md. Only the lines about the stage changed; the skip-list text and timings are left to RT-PRECOMPILE-SKIP-LIST-EXPLICIT.Tested
Windows 10 Pro 19045, MSVC 14.44 RelWithDebInfo, GTX 1050 Ti (NVIDIA), on main
2d43417d4. No game files: two or three authored compute shaders (OpExecutionMode LocalSize n 1 1) written to a temporary library.precompile_inflight_test(new, standard library only):-fsanitize=address,undefinedand with ThreadSanitizer;crashed.txtremoved, it fails at the dead-run check.gta6rt --precompile-pipelineswith real process deaths (LEONIDA_PRECOMPILE_CRASH_TEST), 17 checks, all pass:0xC0000005and leaves<name> <key>ininflight.txt;crashed.txt, exits 2 with main's summary wording plus, 1 crashed a run, and keeps skipping it while the module file is unchanged;--allbuilds a freshly crashed entry and clears the list;--listwrites nothing.main's
precompile_skip_listpasses alongsideprecompile_inflight.The stage end to end on the same machine, through
make_game.pipelines()with that build as--runtime-build:<out>/pipeline_cache.d, progress3/3;pipeline_crashes.jsonnaming it.make_game.py's CLI asks for a game package before any stage, so the run calls the stage function directly.Python test files, on Windows (Python 3.12) and Linux (Python 3.14.8):
test_make_game_pipelines(rewritten around a fakegta6rt: arguments, environment, Wine paths, progress, exit codes 0/1/2/3, the retry limit,<name> <key>lines →pipeline_crashes.json, one warning);test_make_game_pipeline_preflight(rewritten);test_make_game_dry_run,test_make_game_platform,test_make_game_argparse,test_make_game_preflight,test_leonida_tui;tests/test_make_game_*.py, plustest_ctest_registration,test_text_write_line_endingsandtest_docs_env_vars.test_make_game_pipeline_batches.pyis removed with the batching it tested.Every standalone
tests/test_*.pyon Linux (544 files): no new failure. The one failing file,test_calibrated_texture_extra(test_export_file_replacement_failure_cleans_temporary_file), fails the same way on main935a2cd5b. The pytest-only files were not run here.python -m compileall,make_game.py --help,scripts/check_no_game_data.pyon every changed file, andgit diff --check: clean.Off Windows the stage now needs Wine and a Windows
gta6rt.exe, as playing does; theshaders,assetsandruntimestages do not. On a machine without them the stage says so in preflight.Not tested: a real game library, and the stage under Wine (the Wine command line is covered by the tests, not run against a real Wine).
GPUs tested: NVIDIA GeForce GTX 1050 Ti, Windows 10.
AI-assisted: yes. Antigravity (Gemini 4 Neon) wrote the implementation plan and the
make_game.py, test and docs changes. Claude Code wrote the runtime part, reviewed the rest, and ran the builds, tests and mutant.Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
@lixonik on GitHub · 2026-11-26 18:01 UTC · original · reviewed
Built
gta6rtand the inflight test at this head with MSVC on Windows 11.precompile_inflightpassed and the Python pipeline tests ran 25 passes with one skip. With a synthetic compute shader, I ran the actualmake_game.pipelinesstage twice: the first run created one native journal entry, and the second reported it as already journaled and preserved bytes and mtime. GPU: NVIDIA GeForce RTX 5070, 610.88. This checks stage-to-runtime integration and journal reuse by the stage.AI-assisted.
@wavehs on GitHub · 2026-11-26 18:50 UTC · original · reviewed
macOS arm64 check of #2392 (MAKE-GAME-PIPELINES-VIA-RUNTIME). Python build driving, the dashboard/docs, a new Windows-side precompile journal and the portable header its test covers.
Two commits, head
8a73cb09b. It does not merge ontomainbdbc7e923:git merge-tree --write-treeexits 1 with conflicts indocs/d3d12_vulkan.md,docs/linux_proton.md,docs/running.mdandruntime/shims/d3d12_vulkan_device.cpp. The whole conflict is with one upstream commit,76109561f("--precompile-pipelines builds the skip-listed programs unless --skip-listed"), which is not in the branch's merge base935a2cd5b. I tested the head tree as authored (a cleangit archiveof8a73cb09b) and report the merge separately below.Environment: Apple M3 Pro, arm64, macOS 27.2.1, Apple clang 21.0.0, CMake 4.5.0, CPython 3.15.2.
What ran
runtime/test/precompile_inflight_test.cppis portable (standard library,Threads::Threadsonly, registered atruntime/CMakeLists.txt:892-895outside the WIN32 block). Configured the head tree with CMake on macOS and built the target through CMake: OK. Ran it:precompile_inflight_test: ok. Also built it standalone with-fsanitize=address,undefined: pass, no report.tests/test_make_game_*.pyplustests/test_leonida_tui.pyon the head tree: all OK (skips: argparse 1, paths 2, preflight 2).make_game.pyback to the merge base935a2cd5b. Every changed suite fails -test_make_game_pipelines.py13 errors of 14,test_make_game_pipeline_preflight.py16 of 13 cases (subtests),test_make_game_dry_run.py5 errors,test_make_game_platform.py2 failures + 3 errors,test_make_game_argparse.py1 failure,test_make_game_preflight.py1 error,test_leonida_tui.py1 error.python -m compileall -q make_game.py tools tests: clean.python -I make_game.py --help: OK.tests/test_make_game_pipelines.py:269-344pin exit 2 (warn, stage succeeds), exit 1 (fail, no retry), an NT interrupt status (no retry), one crash then success (retry line,pipeline_crashes.jsonwith the module's SHA-256), the retry limit, and a stale report being dropped.gta6rt.exe(no MSVC/Wine), so the real precompile, the lock, the inflight journal on a device and CTest'sprecompile_skip_listare unexecuted.The macOS/off-Windows path is graceful. Called the stage directly on this machine (
make_game.pipelines(work, out)), three failure modes, all exit 1 with the intended message and no traceback:That includes the macOS-specific
clang-cl + xwinhint. I could not get further: the stage genuinely needs a Windowsgta6rt.exeunder Wine on this platform, and there is no Wine here. If macOS is meant to be able to run--stages pipelines, that is now a Wine + Windows-Vulkan requirement that did not exist before this PR; the preflight says so clearly, but it is worth stating in the PR that macOS users are expected to runshaders/assets/runtimeonly, or to accept Wine.Findings
The rebase is not optional; a naive resolution drops main's skip-list reporting and fails a CTest. Main's
76109561faddedfiltered,listed_left_out, theif (listed && !options.skip_listed)message and theleft out: N of M listed in LEONIDA_SKIP_COMPUTEwording to the same twofprintfblocks this PR rewrites (runtime/shims/d3d12_vulkan_device.cpp:22389-22412and:22514-22529in the conflicted file). Main also addedruntime/test/check_precompile_skip_list.cmake, which asserts that line character for character::96expects[precompile] done: ... 0 failed; left out: 0 of 1 listed in LEONIDA_SKIP_COMPUTE, 0 not buildable, 0 filtered out; in N s:105expects1 compute entries to build (... , 1 left out by --skip-listed, 0 not buildable)The head's replacement lines (
"[precompile] %zu compute entries to build (%.1f MB of SPIR-V; %zu filtered out, %zu not buildable, %zu crashed a run), ..."and"done: %zu compiled, ... %zu not buildable, %zu crashed a run, in %.0f s") match neither: they have no "left out ... listed in LEONIDA_SKIP_COMPUTE" text, andcrashed a runsits where the regex requires)or, 0 not buildable). Taking the PR's side in those two hunks would leaveprecompile_skip_listred after the rebase. The merge must keep main's two sentences and add the crashed count, e.g.... %zu filtered out, %zu crashed a run)and... left out: %zu of %zu listed in LEONIDA_SKIP_COMPUTE%s, %zu not buildable, %zu filtered out, %zu crashed a run; in %.0f s. I verified the regexes against both sides; I did not resolve the merge myself.make_gamemislabels the new "another precompile holds the lock" exit.runtime/shims/d3d12_vulkan_device.cpp:22322-22324returns 1 whenrequests/precompile.lockis held by another process, andmake_game.py:2861maps every exit 1 togta6rt could not open the Vulkan device or shader library. Exit 1 is alsohost.open()failing (:22272), so the code is shared; a user who starts two stages, or a stale window, is told the Vulkan device is broken. Either give the lock its own exit status (2 is taken for "built, some failed"; 3 is free) and a branch inpipelines(), or havepipelines()pass the child's last line through when it matchesanother --precompile-pipelines is using.A crashed entry stays skipped for good, and
make_gamehas no way to retry it.runtime/src/precompile_inflight.hdeliberately keepscrashed.txtacross runs (pinned byruntime/test/precompile_inflight_test.cpp:55-58), and only--all(runtime/src/main.cpp:291, which setsrebuild) clears it.make_game.py's command line is[exe, "--precompile-pipelines", "--threads", N](:2717) and never passes--all; the warning at:2846-2848names the entries andpipeline_crashes.jsonbut not how to retry. So after the cause is fixed - the case that matters most, a translator change to that module - every latermake_game --stages pipelinesleaves it out of the journal again, exits 0, and prints the same warning. The impact is bounded (the title compiles that pipeline at play, as before the PR), but the stage's whole value is filling the journal, and the retry is invisible. A--retry-crashed(or forwarding--allwhen the user deletescrashed.txt) plus one sentence indocs/pipeline_check.md:352-354would close it. I could not test the retry end to end here; the finding is from the flag wiring and the C++ test.Nit: when the first run exits 2, the stage logs the
exit 2warning (:2858) and thencollect_crashes()logs a secondWARNING: N compute entry(ies) crashedfor the same entries, so one failure reads as two.collect_crashes()runs unconditionally after the loop; skipping the repeat whencode == 2already reported it would halve the noise.Not re-run: the shader corpus and GPU fixtures. No translator,
scripts/run_gpu_tests.pyor runtime test-harness change; the same-main baseline stands (195 PASS / 3 FAIL / 70 SKIP MoltenVK, 190 / 5 / 73 KosmicKrisp atbdbc7e923).python -I scripts/check_no_game_data.pyon all changed files: clean.No game files. AI-assisted.
8a73cb09betof445e3f7d5@qhukz13 on GitHub · 2026-11-26 19:28 UTC · original
@wavehs thank you, all four were right. Fixed in the force-pushed head, rebased on main
2d43417d4:precompile_compute_pipelinesis main's version with this PR's part added on top.... left out by --skip-listed, N not buildable).done:line is main's sentence word for word., N crashed a runis added before; inonly when N is not 0, socheck_precompile_skip_list.cmake's exact regexes still match.requests/precompile.locknow exits 3, and the stage reports "another gta6rt --precompile-pipelines is using this pipeline journal" instead of the device message. There is a test for it.inflight.txt/crashed.txtlines are<name> <key>.--allstill forces every one.docs/pipeline_check.md.So that the crash path can be tested for real and not only by planting files,
LEONIDA_PRECOMPILE_CRASH_TEST=<entry>ends the precompile just before that entry's create.Tested again: GTX 1050 Ti, NVIDIA 582.66, Windows 10, MSVC RelWithDebInfo.
precompile_inflightand main'sprecompile_skip_listpass. The latter shows the summary lines kept their exact wording.cs_beta's create ends the run with0xC0000005. The next run namescs_beta, skips it, recordscs_beta <key>and exits 2, and keeps skipping it while the file is unchanged. Rewriting the module makes the next run build it and clear the list.--allretries a fresh crash. A held lock exits 3, and--listwrites nothing.make_game.pipelines()with a crash planted incs_gamma: the first attempt dies, the retry skips it, the stage completes, prints one warning that namescs_gammaand says how it is retried, and writespipeline_crashes.json.precompile_inflight_testunder GCC 14 with ASan/UBSan and TSan, and the 15test_make_game_pipelinescases plus every touched test file.On macOS: yes, off Windows the stage now needs Wine and a Windows
gta6rt.exe, like the game itself. I'll add a sentence to the PR saying that the other stages don't need it.AI-assisted (Claude Code).
@akimfomin on GitHub · 2026-11-26 20:09 UTC · original
The RTX 5070 review already checked that a second stage run preserves the journal bytes and timestamp. To check whether a fresh runtime gets a driver cache hit, Continued has a useful positive control in the #821 test, lines 363–417. For one synthetic compute pipeline, compare the journal written by this PR with a cache the consuming device wrote itself. Check the valid and application-cache-hit bits. If even the control misses, the driver result is inconclusive. The older test used the checker’s seed, so the input to adapt is the new journal.
Would that control change what you test before accepting runtime cache reuse? PortBridge’s one-PR comparison found it on the earlier revision. On the rebased head the search follows the crash code instead. You or your agent can use the linked test directly. If you try it, a one-line result or reason to skip is enough. No installation or private inputs needed.
AI-assisted source review.
@qhukz13 on GitHub · 2026-11-26 20:37 UTC · original
@akimfomin thanks, good control. I ran it rather than adapting the old seed test: #2198's
scripts/check_precompile_verify.py --require-hit(head95267b8c7, built with MSVC on a GTX 1050 Ti, NVIDIA 582.66, Windows 10). It warms the journal withgta6rt --precompile-pipelinesin one process, then--verifyin a fresh one, and requires the driver's application-cache-hit bit. Result:driver reported application-cache hit: True. This PR's stage only runs that same--precompile-pipelines, so the journal it writes is the one that control checks.AI-assisted (Claude Code).
@lixonik on GitHub · 2026-11-26 20:43 UTC · original · reviewed
Retested the rebased head
f445e3f7on Windows 11, MSVC, RTX 5070 and NVIDIA 610.88.precompile_inflightandprecompile_skip_listpassed. The two targeted Python files had 26 passes and 1 skip. Running the actualmake_game.pipelines()twice produced one native journal entry and preserved its bytes and mtime on the second run.I also tested the fresh-process cache question. I used the same synthetic compute module for three runs of the #2198
--verifydiagnostic (95267b8c7). An empty journal gavemissing_or_unusable=1. A journal written by the diagnostic executable itself gaveverified=1. The journal written by this PR's actualmake_game.pipelines()also gaveverified=1in a separate verifier process, with the application-cache-hit bit required. The verifier left both populated journals unchanged.AI-assisted.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.