The Metal host now offers ICB_SLOTS (bit 17) beside the bits the trace read,
so FEATURES_LO reads 0x33804, not 0x13804. The test's stand-in for the kext
writes no DRIVER_FEATURES, so the bundle takes no slots and nothing past
that read changed: the traffic matches the recorded trace in three runs.
Recorded with RGFX_PEER_RECORD=1 from this tree's Metal dist.
The bundle's peer test failed at its fifth line: the trace still read
FEATURES_LO 0x4, while the Metal host now offers CB_SUBMITTED,
SURFACE_ORDER, INDIRECT_COMMAND_BUFFERS, UNSHARED_QUEUES and SUBMIT_ROOM
(0x13804). The test's stand-in for the kext writes no DRIVER_FEATURES, so
nothing past that read changed: the traffic matches the recorded trace in
three runs. Recorded with RGFX_PEER_RECORD=1 from this tree's Metal dist.
Phase 1 must show that the bundle of today, under a host that negotiates
features, still speaks wire 2. The Rust FakeGuest covers the device's side of
that against fake host code; nothing ran the bundle's own C++ ring code
against the real library.
peer_tests drives the bundle's serialiser, a queue made as the device makes
one (RgfxRegion's ring pair, RgfxRingWriter, RgfxReplyReader), the
completion thread and command-buffer commits against libreims_vgpu.a through
the C API, as QEMU links it, on this Mac's GPU with no window. A stand-in
does the kext's part: the start, lifecycle posts and their answers, block
grants and releases, queue opens with the one vector, doorbells and the
completion thread's wake. It records register traffic, every record each
side publishes and the settled ring headers against tests/peer_wire2.trace.
Interrupts are counted, not traced: a buffer's CB_SCHEDULED and CB_COMPLETE
raise once or twice depending on when the GPU finishes (7 or 8 in three
runs). `make peer-test-build`, then `make peer-test` under the GPU lock;
never in `make test`.