upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 04:19:53 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 04:19:53 -0600
commit9b8760d32856fa71981fce702e710c77a1874b94 (patch)
tree2eee255c7969b820b03feae159c15fe2d16ac268 /runtime/src/bcpack.cpp
parent2d56b685ac69d0447cb5bb560e132ad354d8779d (diff)
d3d12: one build of a PSO at a time with one worker plus the graphics worker
With LEONIDA_COMPILE_THREADS=1 (the layout of main: one general worker and the graphics-only one) next_locked did not look at the owner, so two variants of one graphics PSO could build at once, one on each worker. A last Release meanwhile hands the PSO's deletion to the running build it finds first (after_running), and that worker deleted the PSO while the other was still in build() on it. The single-worker selection now skips a job whose PSO has a build running, as the pool already did. New test in d3d12_compile_pool_test: two graphics variants of one PSO with one worker plus the graphics worker; the second must not start while the first runs, another PSO's build still uses the free worker, and a last Release runs after the first build with the second dropped. It fails without the fix. Docs: the heavy count also bounds LEONIDA_SERIAL_BIG_COMPILES=0 on the workers; only compute creates pass the compile gate. Found by qhukz13 in review of #2233. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions