Mappings and locks

L1. A change of the GPU mappings lands the pending results first, under vk_lock, with the mappings that they were made with.

L2. A change of guest memory that the renderer holds nothing of does not wait for vk_lock.

L3. The question "is a result pending here" is asked first with no lock.

L4. The thread that lands passes the lookups, and other readers wait under vk_lock for the landing.

L5. A landing does not start inside another landing.

L6. A result can flush a render target that overlaps it while it lands.

L7. Nothing records into the frame's command buffer inside a landing, a recycle or a submission.

L8. The mirror takes a batch out of its list before it takes the batch in.

L9. The GPU thread waits for its next frame slot with no lock held.

L10. A landing waits for the GPU with no lock held, and then takes vk_lock.

L11. A landing uses a command pool and a host buffer of its own, apart from the pools and rings of the frames.

L12. The hooks of the ownership layer call vk_lock and vk_unlock, not the lock object.

L13. The submission stamp of an owner is atomic.

L14. The host address of an entry is kept with the generation of the GPU mappings.

L15. The marks at the other addresses of a page are made after the scan locks are released.

L16. The pending targets at the aliases of a range are collected under the alias lock and flushed after it.


Made from docs/layers/gpu/buffer-rewrite-inventory.md at 69237645142c. GPL-3.0-or-later.