Repository navigation
Conversation
…BUILD-1842) vk_pipeline_check reads one folder's index.json and does not descend, and the pipelines stage passed it only <work>/shaders/spirv, so the FidelityFX programs the shaders stage translates into spirv/fspx (and, with ProjectLeonida#5680, spirv/bvh) were never created on the driver by the build. The stage now runs its batched check once per module index: shaders/spirv, then each folder directly in it that has an index.json, by name. All folders save to the same pipeline_cache.bin, which the runtime seeds from. A validation failure in one folder no longer hides the next; the stage fails at the end naming each folder, with crashed modules named as the runtime names them (fspx/<name>). With more than one folder the log gives each folder's shader count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
|
|
Independent Windows verification at Real GPU: Windows, NVIDIA RTX 4070 Ti, driver 610.88; native MSVC-built Simulated: Limitation found: for an older checker without |
|
Tested the build stage at
The stage discovered all three folders, exited 0 and left one 9,220,483-byte pipeline cache. The five main modules were a stage-coverage sample. This checks driver pipeline creation for the actual translated subfolder modules. AI-assisted. |
|
Verified on your head at main 561b65a: the new folder-scan suite passes 9/9 (re-run) and the pipelines machinery is intact — test_make_game_pipelines 13, pipeline_batches 15, pipeline_preflight 16, dry_run 24, argparse 36 all green; every referenced helper exists in make_game.py (pipeline_names:2056 etc.). The single-folder failure wording is preserved verbatim for the one-folder case, and README/pipeline_check.md match the code. The branch reports no CI checks — worth a push. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Independent Windows retail test at
The DLL yielded 29 programs. 21 translated and passed spirv-val; the other eight never reached the driver. The first process wrote 20,034 cache bytes. The second explicitly loaded all 20,034 bytes and saved 3,508,098 bytes to the same file. Both processes identified the RTX 4070 Ti SUPER (subgroup 32), and the stage exited successfully. This tests folder discovery, cache reuse and pipeline creation. AI-assisted with Codex. |
|
For the I ran the real pipeline stage with a native checker built from that tree on an RTX 4070 Ti SUPER (617.14, Windows 11 28000.3501). I started with an empty application cache and put one distinct, validated, descriptor-free compute fixture in each of root, Trial merges of #5751 on this main with #7586 ( |
|
✅ Automated security review: CLEAN (commit
Scope: static analysis of added diff lines only; no code was executed. Please review findings manually. |
|
Forge main follow-up for BUILD-1842 (cc @cynbun). On I adapted the per-index pass locally on that Forge base, retaining BVH first and per-folder crash recovery. On Windows 11 / RTX 4070 Ti SUPER, the unmodified stage produced 2/5 application-cache hits on five distinct synthetic compute modules (BVH and root). The adapted stage produced 5/5, with the same checker binary, jobs=1, NVIDIA disk cache off, and a fresh process plus a separate copy of the seeded cache for each readback. Both results reproduced with fresh caches. Focused Python suites: 50 passed, 1 skipped. The same-name regression confirms a crash in one catalogue does not skip the healthy same-named module in another. I have the Forge diff ready for the existing PR author to carry over. Synthetic inputs only. This checks build-time cache coverage. AI-assisted (Codex). |
BUILD-1842 (finding by @zzEmmazz in #5581: #5581 (comment))
Related: #5680 (its
spirv/bvhfolder is picked up by this change with no further edit to the stage; no dependency in either direction).Cause
vk_pipeline_checkreads one folder'sindex.jsonand does not descend (runtime/test/vk_pipeline_check.cpp:884,index_path = dir + "/index.json"). Thepipelinesstage passed it only<work>/shaders/spirv(make_game.py:1871and:1902,base = [exe, spirv, cache, ...]), so the FidelityFX programs the shaders stage translates intospirv/fspx(fspx_shaders,make_game.py:1139), which the runtime's shader library loads beside the game's own (runtime/src/shader_library.h:738), were never created on the driver by the build. A module a driver rejects there was found only at run time. #5680 addsspirv/bvhthe same way.Fix
pipelines()now runs the existing batched check once per module index:shaders/spirv, then each folder directly in it that has anindex.json, by name (pipeline_folders, discovered rather than hard-coded, so make_game, shader library: XboxBvhBuilder.dll's embedded programs are translated and found on the Vulkan device (D3D-557) #5680'sbvhfolder is covered when it lands). The batching and crash recovery body moved unchanged intocheck_pipeline_folder(), which returns the exit code and crashed modules instead of failing.pipeline_cache.binand saves it back with its own pipelines added, as the batches already do, and the runtime seeds from that one file (d3d12_vulkan_device.cpp). The output path is unchanged.fspx/<name>). A setup error (exit 2) or an interruption still stops at once. With one folder the old message and log are kept exactly.pipelines: shaders checked per folder: shaders/spirv N, shaders/spirv/fspx M.docs/pipeline_check.md(Build-stage batches) and the README'svk_pipeline_checkparagraph say the checker does not descend and the stage checks each folder.Tests
Linux, Python 3.14.8.
tests/test_make_game_pipeline_folders.py(9 tests, scripted checker): a work folder withspirv/index.jsonandspirv/fspx/index.jsonpasses both folders to the checker, in order, with one cache and the stage's--jobs; also with an older checker; a subfolder withoutindex.jsonis skipped; abvhfolder is found by name; a failure in the main folder still checks fspx and fails the stage; a rejected fspx module fails it; a crashing fspx module is namedfspx/fsr_1; a setup error stops before the next folder; a single folder keeps today's message and log. 7 of the 9 fail onmain(the other two pin behaviour that is unchanged).tests/test_make_game_pipelines.py,test_make_game_pipeline_batches.py,test_make_game_pipeline_preflight.pyand every othertests/test_make_game*.py,test_text_write_line_endings.py: pass.python -m compileall -q make_game.py tools testsandpython -I make_game.py --help: OK.vk_pipeline_check(-DLEONIDA_VULKAN_HEADERS_FETCH=ON -DLEONIDA_REQUIRE_VULKAN=ON): the 261 GPU-test fixtures fromruntime/test/shaders/build.pylaid out asspirv(232) andspirv/fspx(29 compute shaders). The stage checked both: 79 + 29 cs pipelines, 0 failures; the cache grew from 2,254,923 bytes after the first folder to 2,838,091 after fspx, so the second process seeds from and adds to the same file. With one fspx module replaced by 64 zero bytes, this branch fails withvk_pipeline_check failed for shaders/spirv/fspx: exited with 1(MODULE FAIL), whilemainchecks only the 232 top-level entries and printspipelines: done.No game files were used or committed.
AI-assisted (Claude Code).
🤖 Generated with Claude Code