Give the pipeline preparation's prebuild report its start time.

In --prepare-pipelines and --prepare-shaders, a pool worker that finishes the last listed job calls prebuild_report,
which logs now_ms() - K.t0; only prewarm_run, which these modes never run, set K.t0, so the line gave the time since
the PC booted. seed_pipelines now sets K.t0 to its own start under P.lock beside K.loading. That start comes before
the shader prewarm, so the figure includes the translation.

Not reproduced before the change (no preparation log here has the line: only a pool worker ending the list writes
it). vk_pipeline.c compiles with no new warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-13 17:16:38 -05:00
parent b04e7c85b2
commit 339f391cf5

View File

@@ -8354,6 +8354,7 @@ static int seed_pipelines(const char *dir) {
uint32_t queued = 0, dropped = 0, known = 0, other = 0, mesh = 0, no_mesh = 0;
plat_mutex_lock(&P.lock);
uint32_t built0 = K.built, failed0 = K.failed;
K.t0 = t0; // prebuild_report's start: this mode never runs prewarm_run, which sets it in play
K.loading = 1;
for (size_t i = 0; i < n; i++) {
const uint8_t (*v)[32] = bsearch(r[i].vs, ids, u, 32, id_cmp);