18 Commits

Author SHA1 Message Date
eccc71b324 Fix d3d12_m4_compute_async_small_waits deadlock, vk_presenter_sync wait, and test builds 2026-11-28 16:50:03 -05:00
9f98dcc617 Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY)
Fall back to a dedicated buffer allocation when the shared arena fills.
Update console descriptors and resource backing, preserve pipeline cache
entries, and replay mesh records using bounded indirect arguments. Keep
scripted input available until read and cover the runtime and translator
paths with synthetic tests.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
2026-11-25 14:30:51 -06:00
a09865ce19 test(runtime): check complete frames after held presents (Codex) (#5928)
Squash-merged after review of PR #5928 - test(runtime): check complete frames after held presents (Codex)
2026-11-23 08:08:09 -06:00
71a3b22e11 Merge pull request #4597 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:16 -05:00
8a55e22d6c Merge pull request #3999 from tedin7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:17 -05:00
95b2e2c8bd Merge pull request #2951 from AlxcBTW
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:28 -05:00
8de9ce89df test(runtime): check full presenter synchronization capture 2026-11-23 02:55:52 +00:00
003baa94c1 Merge origin/main into queue-wait-before-signal 2026-11-23 02:15:15 +01:00
b76fb2bf1f test: pace the vk_presenter_sync step 3 worker so present() is not queued behind an unbounded backlog (TEST-875) 2026-11-22 23:49:34 +01:00
865e6e9201 Merge pull request #3551 from pmilewsskiedu-gif 2026-11-22 17:02:39 -05:00
48cee7c2c6 Queue holds: second review fixes (claim after submit, presenter locking and bound, teardown pump, tests)
- A Signal counts as submitted only after vkQueueSubmit succeeded: a failed submit releases no waiter and the retry goes through.
- ~VulkanQueue pumps after dropping held work; fence keep-alives are also drained in wait() and marker().
- VulkanPresenter: counters are atomics, read_back/enable_capture take the presenter mutex, set_abort has its own mutex,
  a deferred present reports not tearing, and at most 8 presents queue up before the caller waits.
- Tests: three presents (blit, blank, composed) queued behind held work run in order, a present behind a destroyed
  queue's held work runs, a failed Signal does not release its waiters; the handover modes also run on the host runtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:20:36 +01:00
3ff15669c2 fix: serialize presenter swapchain destruction with Vulkan queue submissions 2026-11-22 15:53:23 -05:00
f8007dda67 Queue holds: review fixes (Present ordering, pins, timeline monotonicity, fence lifetime, teardown, docs)
- Present is queued behind held work (QueueHolds::after_held) and submitted in order by the releasing thread.
- Held batches keep the pipeline states and root signatures of their lists; fences a queue waits on or signals are
  kept until the submission has completed on the GPU (a D3D12 queue holds them).
- A held Signal released below an unheld one on the same fence leaves the Vulkan signal out (claimed under the submit lock).
- A queue destroyed with held Signals completes the CPU waits on their fences and reports it.
- A failed held batch is reported (take_held_failure, last_execute_result), its waits stay for the next submission,
  and the Signal behind it still signals.
- d3d12_queue_handover_test: pairs, two-thread signalling stress, held Signal of a released fence, shared fence,
  teardown with a CPU waiter; --two-queues and --shared-queue modes on a caller-owned device.
- Tests for each fix in vk_presenter_sync_test, vk_queue_query_sync_test and d3d12_m4_compute_test; docs section 4.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:02:33 +01:00
36343d86b1 test: prevent present and swapchain tests from stealing focus (SW_SHOWNOACTIVATE) 2026-11-22 20:07:03 +01:00
989877d1e0 fix(vulkan): fail capture readback when the fence wait fails
Only copy the mapped capture buffer after a successful fence wait. Inject a failure in the synchronization test and verify that the caller's pixel and metadata outputs are unmodified.
2026-11-22 13:33:33 -03:00
6933e0c99e Tests: synchronize vk_presenter_sync_test reader with condition_variable and join before EXPECT 2026-11-22 17:33:13 +03:00
db9b0904f0 Runtime: O(1) LayoutTracker rollback and unlock tracker_mutex before vkQueuePresentKHR in VulkanPresenter 2026-11-22 16:47:54 +03:00
f376f9f748 Runtime: lock LayoutTracker, roll back failed submits, and serialize capture copies in VulkanPresenter 2026-11-22 15:38:29 +03:00