Files
reims-vgpu/docs
Anees Iqbal 8f395eacf2 🐛 Answer every block's release after the buffers posted before it
A command buffer its process published before a block's release, and begun
after the release's answer, still reaches an object the process destroyed
before the release: the table keeps the object for it ("After the buffers
posted before it"). For a pages block the release waited for such buffers
already. An IOSurface's block did not, and on a GPU whose memory is the host's
a texture over a shape of the block's device cache lies in place over the
surface's pages, which the buffer reaches through the texture's resource index
in an argument buffer. The kext unwires the pages at the answer, so that
buffer's writes could land in pages macOS had taken back.

Every block's release now waits as a pages block's did, for the buffers its
context's queues published before it to be committed, stood in for or failed,
or for their queue to end, and then to finish. What the guest sees: a surface
block's BLOCK_RELEASE answer can come later than before, by as long as the
buffers its process had published and not yet begun take to be committed and
to finish. No guest thread waits on the answer. The tests that held the
pages-only wait now hold both kinds.
2026-12-04 18:08:04 -08:00
..