Commit Graph

4 Commits

Author SHA1 Message Date
ace35e632b tests: d3d12_bindless_churn and its --validated run each get their own temp folder (TEST-CHURN-TEMP-DIR)
Both ctest entries run d3d12_bindless_churn_test with one fixed
%TEMP%\leonida_bindless_churn_test folder. Under ctest -j the first to finish
removes the folder and the other fails creating its pipeline ("cannot open
...\index.json"). The folder now carries the process id, as
d3d12_execute_indirect_validation_test does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:01:49 -08:00
342d5672cc Churn test on distinct VkQueues, vk_bindless_test in ctest with its flush ticket (review of #2740)
The churn test gives the two D3D12 queues distinct VkQueues where the family has two and runs the async-compute case with and without the old idle wait; with the cross-queue wait removed it fails on the RTX 5070 (reported by duudiis). vk_bindless_test flushes with ticket 1 so release_retired(0) keeps the generation (reported by duudiis and ricarmandoagent), and is registered with ctest as vk_bindless_ps_tex and vk_bindless_ps_imgatomic (it only ran from run_gpu_tests.py and check.py before). Docs: the one-VkQueue caveat is corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:10:57 +01:00
a8fae90809 Order the bindless table upload across queues, bound retired generations, keep the in-use set on failure (review of #2740)
Other queues' next submission waits on the timeline value of the submission that carries a new generation's table upload; the submit result is committed under tracker_mutex_; at most 8 retired generations are kept before the flush waits for the oldest one's ticket (queue timelines, not the device); a failed new generation leaves the in-use set and the pending writes alone. The churn test gains an async-compute case (no D3D12 fence from compute to the direct queue), a check that a retired generation is pending right after its submit, and a --validated ctest. Docs: only public sources.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:46:53 +01:00
e8a23c1afc Retire bindless table generations by timeline instead of waiting for the device (D3D-314)
A flush that grows the table or changes live keys now makes a new generation (table buffers, descriptor set, descriptors rewritten from a CPU shadow) that replay binds, and frees the old one once every submission up to its ticket has completed. No vkDeviceWaitIdle. Adds d3d12_bindless_churn_test and the LEONIDA_BINDLESS_IDLE_WAIT=1 comparison knob.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:05:06 +01:00