upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-26 06:00:01 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-26 06:00:01 -0600
commit6f2b52e5635c070f3f9d0d12710b3ff2e90f71ee (patch)
treeadcf593e45f75ba7e4549af167d0342a89f7e5b0 /runtime/src/thread_stacks.cpp
parentd864cab47e3d0e5a6f9dabab4c71a8feae106a72 (diff)
d3d12: prewarm console streams kept for their first bind (on-demand)
With LEONIDA_PIPELINE_COMPILE=on-demand a console stream (device slot 86) is only parsed when it is first bound, and create_graphics queued the prewarm from there, so a planned pipeline got no lead at all. ecox982745 measured 0 of 8 planned builds before the first bind in that mode, 8 of 8 otherwise. When the plan has the stream's pipeline, the parse is now queued as its first prewarm job (at the rank of its first recorded variant, on a compile worker); create_graphics then queues the variants as for any other PSO. A bind that comes first waits for the parse through resolve_type's call_once, as it would have parsed it itself. d3d12_pipeline_workers_test gets a device case: a first device records the order, then console-stream PSOs with an eight-entry plan must build those eight before any command is recorded, with the ordinary stream and with on-demand, and nothing without a plan. Without the fix the on-demand case fails with 0 of 8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions