Files
metal2vulkan/crates
Anees Iqbal 8d0e5fdbce Queue sharing test: on a device that does not share, expect the round robin's wrap onto the unshared queue's VkQueue
no_queue_joins_an_unshared_queue_s_vk_queue_and_one_placed_there_leaves
asserted under both policies that no queue made after an unshared one
lands on its VkQueue. Where the device does not share (PerQueue, or
one VkQueue per family: lavapipe's single queue), an unshared queue is
documented to be the round robin's next VkQueue, shared past the round
robin's VkQueues as every queue's is (Device::new_command_queue_unshared;
Device::next_queue is made % round_robin), so on lavapipe each of the
three later queues is on VkQueue 0 and the test failed at its first
look (queue_share_device.rs:286, left 0, right 0).

The test now expects a later queue on the unshared queue's VkQueue
exactly where the round robin wraps onto it, and nowhere where the
device shares, read from the device's round robin. Verified on
lavapipe in the job named in the tip's report.

(cherry picked from commit 0dbef8b89b3da410821fed63b92e8cbcfb09e7c5)
2026-11-07 06:15:53 -08:00
..