Files
metal2vulkan/crates
Anees Iqbal 154d0e2734 RUNTIME_VERSION 1970 and the runtime-sources pin for a device recovery carrying events, Private and fresh-page buffers
exitcrash's MadeBeforeRecovery 1a (16 commits, steelbrain/exitcrash-recovery 158e85f26a). Metal keeps
every object across a GPU recovery; the runtime refused each object made on the lost generation, and
a refused encodeSignalEvent:value: ended the consumer's VM. Now a recovery carries events (at the
value the host saw land, with their listeners), Private buffers (new memory that reads zero,
announced) and fresh-page buffers (imported again: same contents() pointer, same bytes, including
those in exportable blocks never exported). Pooled Shared/Managed buffers, no-copy buffers, buffers
over the caller's VkBuffer and exported memory or events stay refused and are counted in the
recovery's notice. Once the line serves past the lost generation and none of its queues' slots is
held, the lost generation comes to rest: carried objects' parts there, its work objects, recyclers
and kept or ahead blocks are freed, carried objects let go of it, and the lost VkDevice goes through
the single DeviceShared::drop path when nothing refused holds it. A generation never recovered pays
a flag load per command buffer and per buffer made, no lock or read-modify-write. The runtime
changed, so RUNTIME_VERSION 1970.

Verified (exitcrash): lavapipe 11612/11626 runtime recovery/event_timeline/detach_lost 26/26, lane
tests under the layer 6/6, clippy plain/cpuicd/gpucfg and Rustdoc clean, refusal_surface --check 0;
Iris 11620 25/25, 7 recoveries in 478 ms ending at 1 live VkDevice; 780M PHOENIX 11621 25/25 with
CARRY-PRIVATE-BLOCK true (the exportable-block carry ran), 9 lost blocks -> 1, 7 recoveries in 351
ms at 1 live VkDevice; negative controls 11618 (no rest: 7 recoveries leave 8 live; nothing
carried: MadeBeforeRecovery); M3 instructions a draw base -> tip 10k 5373 -> 5363, ws 17857 ->
17817, many 14468 -> 14453, 4 threads 20473 -> 20242. Open: a program thread inside a buffer or
event call begun before the carry can race the release of the lost parts (fix next); first-move
zeros (up to 8 MiB) stay until teardown while a refused object holds the lost generation. Here:
the API-signature check, REFUSALS.md and CONFORMANCE-COVERAGE.md regenerate unchanged, cargo fmt
clean.
2026-11-09 04:26:59 -08:00
..