Files
reims-vgpu/docs
Anees Iqbal f73865a7d8 🐛 Give a destroyed object's ids back after the buffers before it
The host's runtime keeps a destroyed object for the command buffers
committed before its destroy, but a new object made with the old one's
resource id or at its GPU address takes them at once. A buffer still running
there then read the new object in place of the old one.

What a destroy gives back now waits until the host has completed every
command buffer the process committed before the object was let go, a failed
buffer included: its resource id and GPU address, its heap's bytes, its
region and pool blocks, its pages and its ICB slots
(RgfxRetireGate in RgfxSerializer.hpp). Every RgfxSerializer::destroy
`after` goes through the gate, stamped at the call. A command buffer takes a
serial at its commit and gives it back at its completion, or at its dealloc
where no completion came. makeAliasable still gives a heap range back at
once.

What the guest sees: ids and ranges are reused later than before. A texture
made while a buffer committed before another texture's release is in flight
takes a different resource id. A new buffer's address and a heap's usedSize
can differ the same way. With nothing in flight, everything goes back at once
as before. Under the game step's -r, no id is reused before frame f+3.

The serialiser's end, the context's, runs whatever still waits and logs once
the most that waited at once. A guest context ends only with its process, so
a new peak is also logged at each power of two from 64.

guest/prebuilt and guest/prebuilt-arm64e are rebuilt from these sources.
2026-11-21 04:19:18 -08:00
..