Files
metal2vulkan/crates
Anees Iqbal 58305fb9cd Runtime tests: a serial dispatch that writes after a read through an address outside every resource takes a barrier
A serial compute encoder records no barrier between a dispatch that reads through an address
outside its resources and a later dispatch that writes a resource through its slot or a
use_resource declaration: the read marks nothing in the hazard sets (Hazards::mark_wild_read sets
touched alone), and the unbound test in Building::dispatch_hazards looks at earlier writes for an
unbound read and at any earlier access for an unbound write, never at an earlier unbound read for
a write. Metal runs a serial encoder's dispatches in dispatched order (MTLCommandBuffer.h), so the
read sees the bytes from before the write; on Vulkan the two may overlap.

every_device_orders_a_write_after_an_unbound_read: the wild step kernel (reads_unbound) over y,
then step over x, in one serial encoder; it asserts one barrier in the unbound source and two
barriers with the segment's end. It fails before the fix (no source, one barrier).

Verified: not run yet; the lavapipe run follows.
2026-12-02 05:39:47 -08:00
..