Files
metal2vulkan/crates
Anees Iqbal 5c62a353ca vk_buffer: settle the first work on the VkBuffer it hands out, reading it apart once
28dcdcaed2's hand-out read the buffer's VkBuffer a second time, through
Buffer::at, to find the fills waiting on it. A no-copy buffer's import
counts each read apart by its reason, so vk_buffer of a no-copy buffer
now counted a Binding read beside its VkBuffer read. In the lavapipe
suite (job 8946), host_import_counts::each_read_apart_counts_for_its_reason_once_and_each_import_for_its_keeping
read [1, 1, 1, 0, 0, 0] where it expects [1, 1, 0, 0, 0, 0].

settle_first_work now takes the VkBuffer from its caller. vk_buffer reads
it once, for VkBuffer, and settles with it. export_memory_fd passes its
own buffer's, which is no import. hand_out only notes the hand-out again.

(cherry picked from commit 3d3ea570b4f1d90263c22a1f7456bb1a94264f9f)
2026-11-08 09:42:34 -08:00
..