Files
metal2vulkan/docs
Anees Iqbal f7941289d2 Guest RAM: an object a listed RAM routes outside its chunks imports its dma-bufs alone
The object's own path on a listed plan whose device orders two imports of the same
pages (7536aa8c75) took its pointer first wherever the device takes it, as every own
import does (lavapipe takes a shared mapping's pointer; RADV refuses it, so its imports
there were dma-bufs already). An import of the pointer at the RAM's own addresses holds
the chunk back (one page, one import), so the copies over the chunk could still not
import it. Now pages a guest RAM routes that no chunk binds in, where the RAM's chunks
may be imported beside them (Routed::own_dma_bufs: listed plan, ordered aliases), are
imported as the caller's dma-bufs alone, never by the pointer and the gate not asked,
as pages beside live dma-buf imports are since RV 2134; a failed import of them is a
copy. At the buffer's making and at a rebind.

Found by the new test on lavapipe (m3-max-22946): the object's own import was
ImportedByPointer where the test expects ImportedAsDmaBuf.
2026-11-12 15:22:57 -08:00
..