Files
metal2vulkan/crates
Anees Iqbal 652fbca7f1 metal2vulkan-rt: one global barrier ends each segment, upload and fill
A segment no longer starts with a barrier. Each segment with commands
ends with one global VkMemoryBarrier2 from every write to every later
command and the host (read and write), with no per-buffer barrier; the
upload of zero fills and a block's fill each end with one to every later
command. A barrier's second scope reaches every later submission on the
queue, so the start barrier was redundant.

The segment-end barrier goes on every segment with commands, not only on
one that wrote: a read-only segment still owes the execution dependency
before a later command buffer writes what it read.

Metrics::barriers counts the queues' work only; a block's fill, made
apart from any command buffer, is not counted, so the count stays
deterministic. The states test now expects 2 barriers for 2 segments.

Verified: not yet compiled; the lint and legs follow.
2026-11-17 08:12:45 -08:00
..