Files
metal2vulkan/crates
Anees Iqbal 386eaeafd3 RUNTIME_VERSION 2157: a listed chunk is imported beside objects' own dma-bufs
The five commits before this one. Since RUNTIME_VERSION 2144 an object on a listed plan over a chunk not imported
takes its own import at the RAM's addresses, which the aliases registry noted as holding the chunk back, so a copy
that needed the chunk refused with an Invariant ("a guest RAM chunk a live import of an object's own holds pages
of"; a consumer's Iris walk at pins 59/60, absent at pin 58) and objects made before the copies kept the chunks from
being imported (a 780M walk: held_back 4 -> 45). held_back now answers Free, BesideDmaBufs or Back: on a listed plan
whose device orders aliased imports, a chunk whose pages only dma-buf imports hold is imported beside them as one
dma-buf of the RAM's source, with no pointer fallback (RUNTIME_VERSION 2134's dma-buf-beside rule;
dma_buf_imports_beside_live). An object such a RAM routes outside its chunks imports its dma-bufs alone
(Routed::own_dma_bufs), never its pointer. On ANV (aliased imports unordered) objects keep their own path; the CPU
staging of copies over chunks so held follows separately.

Verified (on the branch, at a5c31b269c): the new test fails on the base with the exact Invariant (m3-max-22963) and
passes after; lavapipe (m3-max-22973) 112/112 over host_ram_dma_buf, host_ram_copy_device, host_ram_device,
dma_buf_beside, import_overlap_hazard, host_residency, device_recovery_no_copy, one_import, no_pointer_import,
copied_device; Radeon 780M (m3-max-22976) 63/63 (object ImportedAsDmaBuf, chunk held back 0 times, 1 chunk imported
beside 1 live dma-buf); lint (m3-max-22974): clippy three ways, rustdoc, api tables.
2026-11-12 15:23:35 -08:00
..