Results that the GPU writes

R1. A result byte lands only where the shader changed it and guest memory still holds what the shader read.

R2. A landing compares two host copies and reads guest memory only where the shader changed a byte.

R3. A logged result lands the bytes that its write logs give, and no others.

R4. A logged result is written in place only by a writer that also logs.

R5. The pending results are indexed by the guest pages that they cover.

R6. A set of the pages that pending results cover answers most reads and writes with no walk.

R7. The block of a result is not zeroed when it is made.

R8. Two ranges that are each one run of guest memory meet in one span, with no walk by page.

R9. The guest pages of a range are translated one time for a walk of the pending results.

R10. A range meets a result only where the two share bytes, not where they share a page.

R11. When a result lands, each later composed result takes the changed bytes as its own original bytes.

R12. A rebase uses the changed runs that the landing found.

R13. A rebase copies the changed bytes eight at a time.

R14. The GPU copies of pending results run in the order of the results, with a barrier where two copies overlap.

R15. A composition takes each byte from the newest result over it and skips the older results there.

R16. A composition writes on the CPU only the gaps that no result gives.

R17. A draw can write a result of an earlier submit of the frame again in place.

R18. A result that is kept in its owner can be taken into a submit of a later frame.

R19. When several results cover a binding inside one of them, the later ones merge into that one.

R20. A read takes the newest result in place when that result covers the whole range.

R21. A range inside the last result is found with no translation and no search.

R22. A result of the frame before is read where it is, and the rings of that frame are held for the reader.

R23. Maxwell bindings keep the automatic read and write order, and NVN bindings take their order from explicit barriers.

R24. A setup that is abandoned can add a barrier, but it cannot remove one or count a write.

R25. Repeated bindings of one writable range in one draw name the same storage.

R26. A writable binding stays on the GPU in an owner, and the trap lands it when the CPU touches the bytes.


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