Repository navigation
RT-191: README: say what the pipelines stage does today - #2815
Conversation
The README said the pipelines stage saves a pipeline cache "so the first boot doesn't compile them". Nothing in runtime/src or runtime/shims reads pipeline_cache.bin yet (only vk_pipeline_check in runtime/test writes it; D3D-34 / ProjectLeonida#367 is meant to load it), so the sentence promised something the runtime does not do. Reword it to what make_game.py does: create every translated shader on the GPU driver, check that they compile, and save the cache to pipeline_cache.bin in --out, and say the runtime does not load it yet. Claimed in ProjectLeonida#2716. Written with AI assistance (Claude, via OpenBot). Tested: python -I tests/test_docs_{design_rows,links,list_items,repo_paths}.py, tests/test_i18n_index.py and tests/test_text_write_line_endings.py pass (Windows 11, docs only; no GPU involved). Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
|
Verified against the tree on Windows 11 Pro 10.0.26200: the new sentence is accurate.
Docs-only, no test runs needed; the line numbers in the body ( AI-assisted (ZCode agent): the verification was executed by a coding agent on this machine. |
|
Code read of ac028aa: confirmed. One nit on README.md:137, "checks that they compile": the stage's own log line ( AI-assisted code read (Claude Code). |
|
Thanks for the read. I checked the nit: AI-assisted (Claude, via OpenBot). |
Kam471
left a comment
There was a problem hiding this comment.
Verified on the PR head: docs checks test_docs_links.py 5, test_docs_repo_paths.py 2, test_docs_list_items.py 2, test_docs_design_rows.py 2; git diff --check clean.
Fact-check: make_game.py:1397 writes <out>/pipeline_cache.bin, and nothing in runtime/src or runtime/shims reads it; the only reference is the future-work note in runtime/src/cached_pso.h. The new README wording is accurate.
Non-blocking: make_game.py:26-27 still says the cache is saved "so the first boot doesn't compile", which now contradicts the README. Approve.
|
Docs tests pass on the merged tree (design rows 2, links 5, list items 2, repo paths 2, i18n 5, line endings 2). The core correction matches One wording nit: "creates every translated shader ... checks that they compile" overstates it - unsupported shaders are reported skipped rather than failed ( AI-assisted review, docs only. |
… claim Review follow-ups on ProjectLeonida#2815 (RT-191): - vk_pipeline_check reports shaders whose features or partner stubs are unavailable as skipped rather than failed (vk_pipeline_check.cpp:8-9), so the README now says the stage reports any it has to skip. - make_game.py's module docstring still said the cache is saved "so the first boot doesn't compile", which contradicts the README; it now says the stage builds pipelines for every shader (not only compute), reports rejected and skipped ones, and that the runtime doesn't load the cache yet. Written with AI assistance (Claude, via OpenBot). Tested: python -I tests/test_docs_*.py, test_i18n_index.py, test_text_write_line_endings.py and every tests/test_make_game_*.py pass; compileall clean (Windows 11, Python 3.14; no GPU involved). Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
|
Thanks @Kam471 and @tupacfan04. Pushed 3a52b21 with both follow-ups:
Tested on this head: AI-assisted (Claude, via OpenBot). |
The stage runs vk_pipeline_check without a --stage filter and the checker's default is all: cs become compute pipelines, ps/vs/ms/gs become graphics pipelines with partner stubs (runtime/test/vk_pipeline_check.cpp), so the announce line claiming compute only misled a review of #2815 (RT-191) into thinking graphics shaders are only turned into modules. The line now says compute and graphics; a regression test pins the announce line and fails on the old wording. Found by @iurysf. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
RT-191. Claimed in #2716 (#2716 (comment)), from @gkissel's finding (#2716 (comment)).
The README said the
pipelinesstage saves a pipeline cache "so the first boot doesn't compile them". Nothing inruntime/srcorruntime/shimsreadspipeline_cache.binyet:make_game.pyrunsvk_pipeline_check(fromruntime/test), which writes it to--out(make_game.py:1395-1438), and the only runtime mention is the D3D-34 note inruntime/src/cached_pso.h:3.The sentence now says what the stage does: create every translated shader on the GPU driver, check that they compile, save
pipeline_cache.binin--out, and that the runtime doesn't load it yet.When D3D-34 (#367) lands, this sentence should change back to the first-boot benefit; #367 doesn't touch this line today (it edits README around line 55), so there is no textual conflict.
Docs only, 1 file, +3/-2.
Tested on
ec8ec4c9(Windows 11, Python 3.14):python -I tests/test_docs_design_rows.py,test_docs_links.py,test_docs_list_items.py,test_docs_repo_paths.py,test_i18n_index.py,test_text_write_line_endings.py: all pass, same counts asmain. No GPU involved.AI-assisted: written and checked with Claude (via OpenBot); reviewed before submitting.