Waits for the GPU

W1. The setup of a draw or a dispatch does not submit and does not wait for the GPU.

W2. A read of guest memory under results waits only for the newest submit that holds one of them.

W3. What is recorded goes to the GPU when it holds a millisecond of the work of the GPU thread.

W4. Each submit lands the results of the submissions that the GPU finished.

W5. A wait for work that is already done is not counted as a stall.

W6. A wait for the GPU runs in slices of a second, and the run ends when the GPU is stuck for 15 s (120 s where the GPU is the CPU).

W7. Each vk_finish is counted by its call site, with its time.

W8. A draw that aliases a writable page copies the pending results into its atlas on the GPU.

W9. A draw reads its bytes past the samples-passed reports that are queued over them.

W10. The reads of the mirror take one barrier after the program writes, not one for each binding.

W11. A compute batch is submitted when something needs it and lands when something needs its results.

W12. A constant buffer under a pending in-place write is copied for the dispatch on the GPU, after the write.

W13. A dispatch on the graphics queue binds as a draw does, and its results stay pending.

W14. A dispatch of storage buffers alone keeps them on the GPU where the host traps guest memory.

W15. A range that the CPU made land in the last 1200 presents is not kept on the GPU.

W16. A dispatch whose storage buffer is under a pending result of a draw runs on the graphics queue.

W17. A deferred dispatch is submitted at once, but a dispatch in the mirror is not.

W18. Where the device has a compute queue of its own, a landing copies there and waits only for the writer's submission.

W19. A landing never waits for a submission value past the last submission.

W20. The pending counts of mirror pages stay right when two written ranges overlap.

W21. A mirror page that the CPU touched lately comes back with its bytes at each submit.

W22. The mirror pages that the CPU did not touch stay GPU owned and do not land at each submit.

W23. The run ends of a mirror page mask are found a word at a time.

W24. A dispatch that is not kept on the GPU runs on the graphics queue where it reads GPU-owned or watched pages.

W25. A read over pending mirror pages waits for the submission that wrote them, with vk_lock let go.


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