Files
metal2vulkan/crates
Anees Iqbal ba0d7625b4 Wait the outrun test's late turn without holding the slot's lock
d1ff24ed49's test-only delay of the lowering thread's first turn slept inside `if let Some(late)
= lock(&self.state).late.take()`, whose guard lives through the block: the slot's state lock was
held for the whole 100 ms, so the program's thread, and the test's own reads of the slot, waited
for it, and the thread then took the first batch before the program reached the cap. The delay
made no late turn, and the negative control (the old read at the cap alone) passed 3 of 3 on
lavapipe at 2ce15a2092.

`LoweringSlot::wait_late` takes the delay under the lock and sleeps without it.

Test: on lavapipe (msi-laptop, --cfg m2v_cpu_icd) and MoltenVK (M3 Max, --cfg m2v_gpu), the test
and its negative control.

(cherry picked from commit ec37c03abb0ed8ca81ac89703c39c6989950a1f9)
2026-11-05 11:25:48 -08:00
..