Files
metal2vulkan/crates/metal2vulkan-runtime/src
Anees Iqbal 14eb0642f7 Host RAM window test: wait for the thread's own count, not a sum it passes through
a_copy_takes_its_chunks_as_an_object_does_and_the_window_ahead_moves_past_them
failed on lavapipe under load (job m3-max-14819, msi-laptop, five jobs
there): 'the device's thread went on past the window', 6 against 5.

The thread's import of a chunk counts host_ram_chunks_imported inside
import_chunk (host_ram.rs, Imported::Chunk) and host_ram_chunks_imported_ahead
only after the import ends. The scatter's settle waited for
by_copies + ahead == 2 + WINDOW, a sum that reaches its mark between the
two increments (by_copies 1, ahead 5), so it stopped there and the
thread's later ahead count read as the thread going past the window.

It now waits for ahead == 2 + WINDOW (and no run import live); the
assertion after it still checks by_copies is 0, so a copy that imported
its own chunk still fails it, after the wait.
2026-11-11 04:09:01 -08:00
..
…
…
…
…
…