Commit Graph

13 Commits

Author SHA1 Message Date
947c54abac Merge pull request #1164 from lixonik/d3d-sparse-image-queue-family
d3d12: choose sparse-capable queues for sparse textures (D3D-SPARSE-IMAGE-QUEUE-FAMILY)
2026-11-29 20:00:18 +01:00
fb50e0b14f Select sparse-capable queues for image-only residency 2026-11-24 22:24:59 +03:00
be010a409c d3d12: check the copy timestamp fallback family explicitly 2026-11-25 00:23:37 +05:00
6e81b92199 Every submission starts with a full memory barrier (ExecuteCommandLists boundary)
D3D12 ends every ExecuteCommandLists with its work done and its writes
visible to the next one on the queue (implicit state decay relies on it), so
a list may touch memory an earlier submission wrote without any barrier: two
submissions copying into one buffer, say. Vulkan orders submissions on a
queue only by what their barriers say, and nothing in a VulkanQueue's command
buffer ordered it after the previous one. Synchronization validation
reported it on leonida/work: vk_queue_test's back-to-back copies into one
buffer, WRITE_AFTER_WRITE between submissions (10 errors, the test failed
under LEONIDA_VK_VALIDATION=1).

execute_now now records an ALL_COMMANDS -> ALL_COMMANDS memory barrier
(MEMORY_WRITE -> MEMORY_READ | MEMORY_WRITE) right after
vkBeginCommandBuffer.

Test: vk_queue_test 4b counts the command buffers begun and those whose first
barrier is that one, over two submissions each on the direct and the copy
queue: 4 of 4 (0 before). Under LEONIDA_VK_VALIDATION=1 the whole test now
has 0 validation errors (RTX 3080 Laptop).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 21:50:58 -08:00
14b6deeb58 test(runtime): make vk_queue_test cap/timeout backlog check deterministic (#6281)
Squash-merged after diff review of PR #6281 - test(runtime): make vk_queue_test cap/timeout backlog check deterministic
2026-11-23 08:23:27 -06:00
e76cb47fb5 Runtime: D3D12 queues share a VkQueue when the GPU has no free one (Intel UHD 770 queueCount 1), plus a CPU-signal hang fix (#5110)
Squash-merged after review of PR #5110 - Runtime: D3D12 queues share a VkQueue when the GPU has no free one (Intel UHD 770 queueCount 1), plus a CPU-signal hang fix
2026-11-23 08:11:02 -06:00
26ae80f6a5 Merge pull request #4443 from sds-228
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:14:46 -05:00
c143c207b4 Merge pull request #4191 from tedin7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:09 -05:00
7d71e8328a vulkan: retain prepared-list storage across smaller submissions
resize() down destroyed the per-list vectors that prepare refills, so a queue alternating 8 lists and 1 list rebuilt them every frame. Grow the vector only, and iterate the current list count in the query and emit loops so retained entries are never replayed. Registers the existing vk_queue_test with CTest and adds an 8-then-1 GPU regression with a negative control.

AI-assisted (OpenCode)
2026-11-23 04:28:47 +03:00
a3481c0a18 runtime: keep the command-buffer cap when the wait for room times out (review)
A timeout retries the wait in kQueuedWaitNs slices instead of allocating past the cap; a device lost while waiting makes execute() submit nothing. vk_queue_test makes the first three waits time out and checks the cap still holds.
2026-11-23 01:10:49 +01:00
cc068baf86 runtime: cap the command buffers a Vulkan queue keeps in flight 2026-11-23 00:46:05 +01:00
389f949bc9 fix: share sparse D3D12 buffers across queue families and require sparse-capable queues 2026-11-22 16:13:00 -05:00
8ceb79d07a Runtime: D3D12 copy and compute queues on dedicated Vulkan queue families (D3D-21), on top of D3D-97's leases 2026-11-22 16:04:46 +01:00