test(agc): share the pipeline journal test's replayed compute programs #15730
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15730"
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?
Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-11-04T10:07:35Z.
What
On GitHub's hosted Linux runner,
agc_driver_pipeline_journal's first run takes about 120 s and the later runs about 8 s. EagleBearerYS measured it on #15423 (runs 41752529697 and 41743726570): 119.7 s then 8.3–8.4 s with #15423, and 135.9 s then about 50 s onmain. CI's limit is--timeout 120.Cause. The difference between the first run and the later ones is Mesa's shader cache, not anything in the test's temporary directory (each run makes a new one).
recorded batch still running on the GPU after 5 s … 25 swhile the race case's recording device dispatches its 32 programs. That is 28 s of the 43 s run.MESA_SHADER_CACHE_DIR=/var/cache/anyps5/mesa, so it usually starts warm. It starts cold on a hosted runner, which is where fork runs go, and after any recompiler change that alters these modules.Change. The race case and the held-module case now dispatch the same 16 programs (salts 8–23), through
ReplayedCodes().ComputePipelinesCreated() == replayedCompute + replayPresent.The race case still catches the bug #12657 fixed. With the
computePipelinesBuildingregistration that307f2202e7added toReplayComputePipelineremoved, it fails every run:25–26 built for 17 replayed24,28,25 built for 17 replayed28–31 built for 17 replayedTested
Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release,
BUILD_TESTING=ON. Linux: Arch Linux WSL2 on the same machine, lavapipe (Mesa 26.1.2, LLVM 22.1.6) withGALLIUM_OVERRIDE_CPU_CAPS=avxandANYPS5_REQUIRE_VULKAN=1, as CI sets them.Timings are for the test binary. Cold means a new empty
MESA_SHADER_CACHE_DIR, or on NVIDIA a new empty__GL_SHADER_DISK_CACHE_PATH. Warm means the next two runs with the same directory.mainisb8efa6292a, and #15423 is its heade9ac2db947merged onto thatmain.mainmainmain's warm time (27 s on lavapipe, 23 s on the RTX 5080) is the undecodable-module allocation that #15423 fixes. This PR removes the cold-cache part, so the two are independent.agc_driver_pipeline_journal_undecodable_module(#15423) passes with this PR on top: 0.68–0.76 s on the RTX 5080.ctest -R "pipeline_journal|pipeline_store|patched_libraries" --parallel 2: 10/10 pass on Windows.patched_librariespasses.cmake --buildand--target libssucceed, with no warnings in the changed file.tools/check_test_registration.pyandtools/check_conventions.py --base origin/mainpass.ctest -V -R "^agc_driver_pipeline_journal$|^agc_pipeline_journal"onmainand on this PR.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1, and the Khronos layer throughVK_ADD_LAYER_PATH.was not found but was requested by env var VK_INSTANCE_LAYERS. Each has 20Insert instance layer "VK_LAYER_KHRONOS_validation"lines and noVUID-line.agc_driver_pipeline_journaltook 21.9 s in both runs.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)