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-27 18:39:18 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 18:39:18 -0600
commit4d3badfa4e8cf7d299015595109e150ed3351fa1 (patch)
tree096679bd88593f4003f902855ddea0a55d11f0b4 /runtime/src/thread_stacks.cpp
parent431ceba4f4a55c69c26fcf0e36fd83e86e1b9a32 (diff)
vulkan_replay: a dropped indirect dispatch prepares and emits no clamp pass
From kevincommits' finding (item 3) in #1608. prepare() set up the clamp pass (vulkan_indirect_clamp.h) of an ExecuteIndirect(DISPATCH) before it resolved the dispatch's compute pipeline. When that pipeline was dropped (skipped on request, or async_build and still building), the command was left out after its clamp was prepared and linked into the list's shared work budget, and emit() then recorded the clamp pass before skipping the dispatch. The pass claimed scratch and counter slots and counted the dropped call's records against the list budget that every later clamped draw and dispatch of the list shares. The pipeline is now resolved first, so a dropped dispatch leaves prepare() before any clamp exists. A pipeline left to PipelineCompiles is not dropped later: a failed deferred build fails the list. New CPU test replay_dropped_indirect_clamp follows the repro: a dropped dispatch alone, before and between built ones, for skipped and async_build pipelines. 10 checks fail on main; all pass with the change. 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