What landed, in order. Each commit ran the full ctest. The commits that change a pipeline or a layout also ran the
menus of an Ounce game under --vk-validation=1 against the same run on feat/ounce.
[gpu] Query graphics pipeline libraries and their dynamic state: vk_gpl_choose in pipeline_parts.c, the
device query and enable, the setting pipeline_libraries, and the tests vk_pipeline_parts,
vulkan_headless_libraries and vulkan_headless_libraries_off (every headless check under the layer, with the
setting on and off).[gpu] Set pre-rasterization state as dynamic state with pipeline libraries: the dynamic state table with the
part of each state (vk_pipe_dynamic), and the draws and the clears that set the states. This was step 3 of the
plan. The layouts (step 2) went into the link commit, because they change nothing without a link.[gpu] Split a pipeline key into the keys of its four library parts: vk_pipe_split and its test (step 4).[gpu] Link new pipelines from libraries and optimize them in the background: the layouts with independent
sets, the part table, the fast link, the optimized pipeline on a third queue and the swap (steps 2, 5 and 6). The
pipeline file needed no change for step 7: its pipelines take the same path, so their parts are made at startup.[gpu] Keep the fast link of a pipeline for the run: the first version freed a link once its optimized
pipeline was there. The driver gave the freed handle to the next pipeline, while render.c kept it (g_draw), and
the headless watch of vertex layouts failed one run in three. The watch now fails on any destroyed graphics
pipeline and on any handle given again.[gpu] Let one worker at most make optimized pipelines: the bound PIPE_OPT_WORKERS, the stats of the draws'
waits for a worker, and the setting vk_pipeline_cache for cold runs.[vk] Warm the large shipped programs' parts into the pipeline cache: the pass warms the part of each shipped
vertex or fragment program whose SPIR-V is 256 KiB or larger (step 8, below). One worker warms at a time
(WARM_WORKERS), as the optimized pipelines, and the parts are made into g_pipeline.pcache and dropped, so a draw
that meets the program later hits the cache by the SPIR-V. A warm-up of every shipped program is still not done: the
7,403 programs would cost about 18 minutes of worker time in a first run (see
The warm-up of the shipped programs).Made from docs/layers/gpu/pipeline-libraries.md at 69237645142c. GPL-3.0-or-later.