Staging and rings

S1. The rings, the descriptor pools and the dead list of a frame are not used again before its last submission finished.

S2. The rings take chunks of one size from a pool, and the pool keeps what the last frames used.

S3. Of the pooled chunks, the ring takes first the one that the CPU wrote most.

S4. A ring with no pooled chunk left hands out of its smallest pooled big buffer.

S5. Streamed uploads and buffer snapshots go to host memory, not to the mapped window of device memory.

S6. The room in the window comes from the budget in the way that the driver counts it.

S7. A ring takes at most 32 MiB of the window, and the process at most a quarter of it.

S8. Guest input that a copy or a conversion reads one time stays near the GPU when the GPU owns it.

S9. The storage results of a frame are copied on the GPU into host-cached memory before the CPU reads them.

S10. What the GPU makes for itself to read goes in the device ring of the frame.

S11. A read of guest memory into device memory copies the owned bytes on the GPU and takes staging only from the first CPU byte.

S12. The span of a published storage image is staged straight into the buffer that becomes its owner.

S13. The original bytes of an atlas page are read from guest memory, not from staging.

S14. Each submit makes the host writes to the rings visible to the GPU.

S15. The upload command buffer runs first in its submission, so its copies do not end a rendering pass.

S16. A resource that is deferred for destroy waits for the frame that is recorded from now on.

S17. A compute arena that draws read waits for the frame of those draws, and the arena grows only between batches.


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