diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 19:52:14 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 19:52:14 -0500 |
| commit | 1db0f673e4f06f12fd08b1f998e337b0306b94b4 (patch) | |
| tree | 141ce34e5be39c960d81c7940ff2a327650b1a24 /runtime/src/bcpack.cpp | |
| parent | d125b369fd798ca2408a3832354e0a8be4b42d18 (diff) | |
d3d12: the proxy's reference count waits for the background pipeline builds
#984 builds compute pipelines lazily and queues every one for a warm-up on a worker thread; a queued job holds its PipelineState, and through it the device, until the worker has run it. A test that releases everything and then reads rt::d3d12_xs::device_proxy_ref_count races with that worker: d3d12_fspx_compute fails at 'device_proxy_ref_count == 1' on #984's head, and on the merge d3d12_compute fails the same way on llvmpipe (main's case there creates pipelines it never dispatches, which only the warm-up ever builds). Both pass on main.
The warm-up stays as it is. device_proxy_ref_count, a helper only the tests call, now lets the layer under the proxy finish such work first: the Vulkan device registers PipelineCompiler::wait_idle through set_reference_settler, and the pool reports itself idle when no job is queued or running. The tests are unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions