Files
reims-vgpu/docs
Anees Iqbal f95b7ee14f 🆕 Answer equal pipeline creates of any process from the kext
A process's first create of a pipeline another process already made waited
about 0.28 ms for the device's answer (26.7.2 guest, RTX 3090: MPS kernels in
Vision's second process), of which the host's compile from its caches is 0.1
to 0.2 ms; a real Mac answers it in 0.05 ms. The known creates only spared a
process its own repeats.

The device now offers PIPELINE_KEYS (feature bit 41). A render or compute
create may ask for its pipeline key (RGFX_*_PIPELINE_ANSWER_KEY), and where
the device made the pipeline and holds every library it names under a content
key it checked, its reflection carries the key after it
(RGFX_PIPELINE_REFLECT_KEYED): the SHA-256 of the create with its seqno,
object id and library ids zeroed, and its libraries' content keys. The kext
keeps the answers it waited for that carry a key, 2,048 at most (256 sets of
8, the oldest in a full set replaced), and Submit's shared flag posts a create
by its key without waiting where an answer of that key is kept and a deferred
slot is free.

What the guest observes: a create whose equal create any process made before
is posted without waiting, its reflection the kept one at once and its own
gpuResourceID at the first read, as a process's own repeat was; a refusal at
the create only where no process's equal create was accepted, the residual
reason the known creates already have (design.md, "Known pipeline creates").
The kext's feature word gains SharedPipelines (1 << 9) and the device's
feature word PIPELINE_KEYS; the tests that held the feature words change with
them.
2026-11-12 13:28:15 -08:00
..