Files
reims-vgpu/docs/graphics-kext
Anees Iqbal 1bc7c63a85 🐎 Let go of a closed context's objects off its lane
A CONTEXT_CLOSE let go of every object of the context's on its lane, and
the jobs of other lanes that wait for a close waited out every release: a
compositor's BLOCK_RELEASE of a block an app shared with it, behind the app's
close, and every later message of the compositor's. On an RTX 5080 Laptop
GPU an event's release takes 0.4 ms (close_cost), and a car 8 boot showed a
130 ms close WindowServer waited for.

The close now takes the objects out of the tables on its lane, as before,
and lets go of them, their CPU copies and its pages views on the decoder's
closes' worker (reims-vgpu.graphics-closes-<n>), keyed by the context, so
other processes' closes go beside it. Its answer still comes once they are
let go of and its command buffers have finished, since the kext gives the
context's texture resource ids and GPU addresses out again at the answer,
and a reset waits for the closes before it: the keyed worker's flush, which
waits until no job of any key waits or runs, is no longer test-only, and
its signal with it. What the guest sees: the messages that wait for a close
are answered before its releases end; the close's own answer comes as
before. The shared-block test's expectation flips accordingly, and a reset
test guards the wait. Also rustfmt on the earlier pages-view test, and the
lanes doc no longer says the kext frees a close's holdings when it gives up
waiting: it keeps them until the answer.
2026-11-05 21:59:29 -08:00
..