A no-copy buffer over memory its process maps read-only cannot lie over its
own pages today: the kext refuses the pages block, and the host would lay a
buffer over it that takes the GPU's writes. So the bundle syncs a slab copy
of it at every commit that uses it. macOS 12's WindowServer wraps clients'
Core Animation backing stores, mapped read-only into it (8-30 MB each), that
way, and spent 14.1 s of a 451 s walk syncing them (appwalk14, 12.7.6 on the
Iris Xe). This makes the device and the kext ready to keep them in place; the
bundle takes the route in the next commit.
What changes on the wire:
- A new feature bit, RGFX_FEATURE_READ_ONLY_PAGES (bit 45, FEATURES_HI bit
13), offered wherever PAGES_BUFFERS is, and taken by the kext.
- A new SURFACE_PAGES flag, RGFX_SURFACE_PAGES_READ_ONLY (1 << 5), meaningful
with RGFX_SURFACE_PAGES_PRIVATE alone (else INVALID_ARGUMENT): the pages
block holds pages its process maps read-only.
- BUFFER_OVER_PAGES needs no new field: its options already carry
MTLResourceOptions bit 24 to the host, which hands it to the runtime as
memory whose GPU writes it drops (accuracy-ledger.md,
read-only-pages-written).
The host keeps every object over a read-only block from writing its pages: a
BUFFER_OVER_PAGES without bit 24, a HEAP_OVER_PAGES, an ICB_SLOTS_IN_PAGES
and a MANAGED_BUFFER_CREATE or MANAGED_TEXTURE_CREATE whose CPU copy lies over
one are refused, each logged as the guest error it is. The block's view stays
the writable mapping of guest RAM.
Where the kext took the bit, PagesBlock makes a block of read-only memory too:
it wires the pages with kIODirectionOut, which asks the VM system only for
read access, completes them for that direction at the unwire, and marks the
block read-only (rgfxPagesWiring). Without the bit it refuses read-only
memory as before.
Why a feature bit, though reims-ctl ships the host and the x86 set together:
the mark is where the host holds the line, not a hint. A process can post any
message on its rings, so a forged BUFFER_OVER_PAGES without bit 24 over a
read-only block would let the GPU write pages the process maps read-only, a
file's page cache among them. A host older than the mark ignores it, so the
kext makes such a block only where the host took the bit. The arm64e set also
reaches VMs through Ambrosia's config bundle, apart from the host. Old guest
sets never ask, and change nothing; a new set on an older host gets no block
and keeps its copy.
The header is regenerated, and the option ROM's record takes the header's
new hash (the ROM's bytes are unchanged); both guest sets are rebuilt with
the bundle's change, in the 📦 commit after it. Tests: the
header test, the peer and offer tests, a decoder test of what a read-only
block admits and refuses
(a_read_only_pages_block_holds_only_buffers_that_drop_their_writes), and the
kext's features and pages-block tests.
The host sees a command buffer only once a queue's thread takes it off its
ring, so the app's encode and the buffer's way to the host show as one span
with nothing pending on the host. This adds the guest's stamps that split it,
a diagnostic.
What changes for the guest:
- The device offers a new feature bit, RGFX_FEATURE_GUEST_TIMES (bit 44,
FEATURES_HI bit 12), and DRIVER_FEATURES takes it. The kext carries it.
- Where the device's word holds it, the bundle starts each command buffer's
stream with a new op, RGFX_OP_GUEST_TIMES (0x000e, 32 bytes): the guest's
clock as the buffer was made, as its commit was entered, and as its message
went on its ring. The last is written under the ring's lock, after the copy
and before producer is published; for a buffer in a block, into the block.
- After each VBLANK's reading of HOST_TIME the kext writes ring 0's new header
fields: guest_clock_offset_ns (0x18), then guest_clock_bound_ns (0x20) with
release, split out of reserved bytes. The host zeroes both as it initialises
a ring.
- The decoder walks the op as a no-op, so it changes nothing a buffer does,
and a host that did not offer the bit never sees it. Old guest sets carry
no bit, send no op and leave the fields 0.
The header is regenerated, both guest sets are rebuilt from the same sources,
and the option ROM's record takes the header's new hash; the ROM's bytes are
unchanged. The tests cover the op's and fields' layout (the header test, the
kext's vblank clock test), the bit's negotiation (the kext's features test,
the peer and memory-map tests), the stamps (the bundle's serializer and shell
tests) and the walk (a cmdbuf test, and the fuzz's streams). The host's
reading of the stamps is the next commit.
The kext carries DOORBELL_ASKS and the bundle rings an asking buffer's
doorbell apart, so both sets are rebuilt from the guest's sources, and the
wire header's new constants change the ROM's record of its sources; the
ROM's bytes are unchanged. Built on m3-max (m3-max-25849) with
make -C guest prebuilt, prebuilt-arm64e and make -C firmware prebuilt;
make -C guest test and both prebuilt checks passed there.
The x86-64 and arm64e kext sets are rebuilt from this branch's guest/ on
development 788d82edd (make -C guest prebuilt, prebuilt-arm64e; m3-max job
25263, which also ran make -C guest test), and the option ROM's record from
its wire.h, whose LIBRARY_LOOKUP comment moved with the v2 library key; the
ROM's bytes are the same. prebuilt-check passes on this tree.
The bundle rings a walking queue's doorbell only for a buffer that asks, and
the wire header gained the two consumer_idle values, so guest/prebuilt and
guest/prebuilt-arm64e are built again from their sources, and the option
ROM's record names the header's new hash; the ROM's bytes are unchanged.
The bundle and the kexts take ICB_SLOTS_IN_PAGES, so guest/prebuilt and
guest/prebuilt-arm64e are built again from their sources. The wire header
gained the message's record, so the option ROM's record names its new hash;
the ROM's bytes are unchanged.
The x86 set and the arm64e set carry the kext and the bundle as built from
6e6a80dd9: equal pipeline creates of any process answered from the kext's
kept answers, and functions' AIR read without their bodies until asked (make
-C guest prebuilt and prebuilt-arm64e on the M3 Max, job m3-max-22490). The
option ROM's record follows the wire header, which gained PIPELINE_KEYS; the
ROM's bytes are unchanged (make -C firmware prebuilt, the same job).
RgfxGate's Metal bundle answers each format's own linear alignment, and the
wire header the bundle and the option ROM compile names the format answers'
last two bytes. make -C guest prebuilt and prebuilt-arm64e rewrote RgfxGate in
both sets with their records, and make -C firmware prebuilt the ROM's record:
the ROM's bytes are unchanged.
The x86-64 and arm64e sets carry the kext and bundle with this branch's
commits: rasterization rate maps and their descriptor's mutability, the
residency set create's nil error out, a compute pipeline's function handles
and visible function tables, and its dynamic libraries. The wire header
changed (RATE_MAPS, FUNCTION_POINTERS and DYNAMIC_LIBRARIES, their messages,
and library_count where reserved_5c was), so the option ROM's record names
the new header; the ROM's bytes are unchanged. Built on the Mac with make -C
guest prebuilt and prebuilt-arm64e and make -C firmware prebuilt (job
m3-max-21410); prebuilt-check passes for the sets and the ROM.
Regenerate the prebuilt x86 and arm64e guest sets and their records from the
sources of the commits before, on pin 50's tree with Graft 0.3.0: the kext
has IOSurface align the bytes per row and the plane offsets it works out to the
host GPU's linear alignment, which every host that offers the surfaces' pages
answers now. Only ReimsGraphics changes in each set. The option ROM's bytes
are unchanged; its record moves with the wire header's comments. Built on
m3-max by job m3-max-20375, which also ran make -C guest test and both prebuilt
checks.
Regenerate the prebuilt x86 and arm64e guest sets, their records and the
option ROM's source record from the combined sources of batch 18 (x86
display-sleep, sampler LOD bias + reduction mode, guest-class Mac present).
The ROM bytes are unchanged (749434f8); the C header cbindgen writes was
already the combined one from the cherry-picks.
A Mac's display goes dark when the OS puts it to sleep (Energy Saver's timer,
pmset displaysleepnow) and lights with the desktop at its wake. The device kept
showing the last frame instead, so a sleeping guest looked frozen.
What changes for the guest: the device offers DISPLAY_POWER (FEATURES bit 37)
on every host, and a guest that takes it sends SET_DISPLAY_POWER (command 8,
a 24-byte RgfxSetDisplayPower of display and on, answered COMPLETE), a display
command the control thread carries out. A reset turns the panel on. Nothing
else the guest sees changes: presents are taken and answered, VBLANKs go on,
and modes and the cursor's image stay.
What changes for the host: while the panel is off, the device's window and
rvg_graphics_device_read_display (QEMU's console and screendump) show black,
and cursor_show tells the host the cursor does not show; at the wake both show
what the guest shows again. The display callbacks' order now covers the
display power commands (docs/api.md). QEMU's reims-graphics-pci needs no
change: its console reads the display through read_display.
The tests that pinned the offered feature words and the backlog's display
command range take the new bit and command. The option ROM is built from the
wire header, so its record takes the header's new hash; the ROM's bytes are
unchanged (sha256 749434f8...).
Both kext sets carry the bundle that makes a no-copy Managed buffer over app
pages a Managed buffer over the Shared one over them, and the ROM's record
takes the wire header's new hash after its CB_SUBMITTED comment (the two
commits before; the ROM's bytes are unchanged). Built by make -C guest
prebuilt and prebuilt-arm64e and make -C firmware prebuilt on the M3 Max;
make -C guest test and both prebuilt checks pass.
The guest's x86-64 and arm64e sets, built by make -C guest prebuilt and make
-C guest prebuilt-arm64e from the tree with the feature (bit 36) and the
bundle's messages, beside the no-copy buffers' joined pages blocks, and the
option ROM's record, whose wire header changed; the ROM's bytes are unchanged
(make -C firmware prebuilt). Built on the M3 (m3-max-16888), whose make -C
guest test passed first.
The guest's kexts state the display's density from its native width alone
(220 pixels per inch from 2880 pixels wide, else 110), so a window
narrowed below 2880 pixels on a HiDPI host screen made the arm64 guest's
desktop half size, and a wide window on a 1x screen could start HiDPI.
The host knows the screen: the window's drawable is drawn at the screen's
backing scale.
DISPLAY_SCALE (feature bit 35, FEATURES_HI bit 3) carries it. Where the
guest took it, each display's record in DISPLAYS is followed by an
RgfxDisplayScale: the screen's pixels a point in 120ths, 0 until the
window first draws. The scale is part of the display's mode, so a window
moved to a screen of another scale is told with DISPLAY_CHANGED. A guest
that does not take the bit reads DISPLAYS as before; the option ROM and
Ambrosia's module never take it. The wire header gains the bit and the
record, and the option ROM's record its hash (the ROM's bytes are
unchanged).
What the guest observes changes: FEATURES_HI offers bit 3 on every host,
and DISPLAYS carries the record to a guest that took it. The tests of the
features offered change with it.
The kext forwards the surface's layout with its cached and deferred blocks'
SURFACE_PAGES, so both sets are rebuilt (make -C guest prebuilt, make -C
guest prebuilt-arm64e): ReimsGraphics' binaries, their hashes in set.toml
and the sources' records. The wire header's docs changed with it, so the
option ROM's record takes the header's new hash (make -C firmware
prebuilt); the ROM's bytes are the same.
Built on the M3 Max (Xcode 27.2, 27B52) in potluck job m3-max-14709, which
ran make -C guest test first and both prebuilt checks after.
The arm64e set now carries development's colour matrix and frame times with
the kext naming whole 16 KiB pages of guest RAM (PAGES_16K), so a Mac host
lays an arm64 guest's surfaces in place. The x86 binaries, plists and
set.toml are byte-identical (the x86 kext never takes PAGES_16K), and so is
the option ROM: their records change only by the sources' hashes. Built on
the M3 Max, job m3-max-12485, with the guest's native tests passing.
The x86-64 and arm64e sets' ReimsGraphics and RgfxGate (with the Metal bundle)
are rebuilt from the scheduled ask's sources: the kext takes SCHEDULED_ASK and
the bundle asks from waitUntilScheduled. The option ROM's bytes are unchanged;
its record names the wire header the ask's message joined.
Built on the M3 Max (potluck m3-max-11864, the 25G241 KDK): make -C guest
test, prebuilt, prebuilt-arm64e, prebuilt-check, make -C firmware prebuilt and
prebuilt-check, and set-check of the x86-64 set against the 11.7.11, 12.7.6,
13.7.8, 14.8.9, 15.8.2 and 26.7.2 Boot collections all passed.
VTDecoderXPCService writes page 0 of each new decoder output before its first
decode, the output's other pages not resident (measured on the 780M in a macOS
26 guest: all 208 pool surfaces of a 4K HEVC session in Safari). A deferral
takes only a surface none of whose pages is resident, so each decoder output
had its 12 MiB wired and filled with zeros at its first ask: 5 to 7 ms of the
guest's on the 780M and about 3 ms on the 5080, for each of the seventeen or
more surfaces a 4K60 playback's start makes.
The host now offers SURFACE_DEFERRED_CARRY (FEATURES_HI bit 0, feature bit 32)
where it offers either deferral. A guest that takes it may defer such a
surface carrying its resident pages: the deferral's runs are the surface's
bytes in order, each run of pages not resident RGFX_PAGE_RUN_ZEROS. The host
makes the cache of zeros as for any deferral and owes a first fill of the
carried pages, as a new cache owes one of its pages: copied in through a
staging buffer after the zeros on the transfer queue, before what reads the
cache next, or taken as met where a decode writes the planes whole first. The
carried pages are watched until the block's pages are named.
A deferral with runs is refused as INVALID_ARGUMENT where the guest did not
take the bit, or where its runs are not whole guest pages summing to the
surface's bytes, lie outside the guest's RAM, or carry none.
What the guest reads changes: FEATURES_HI offers bit 32 where either deferral
is offered, and the test that held the feature words changes with it. The
wire header's new constants move the option ROM's and both guest sets' records
of their sources; their bytes stay.
On a GPU that shares the CPU's memory the host keeps a device cache only of
the surfaces whose pages its textures cannot use in place
(SURFACE_CACHE_REFUSED), and it offered no deferral there. So a fresh surface
that needs one had its pages wired and zero-filled by the kext at its first
texture, and copied into the cache once, though the CPU never touched them.
The host now offers SURFACE_DEFERRED_ASK (FEATURES_LO bit 30) beside it,
with the budget a host of a GPU of its own memory gives (DEFERRED_BUDGET, a
quarter of the device-local heap's budget). A deferral then asks with the
surface's layout (DEFERRED with ASK_CACHE and no runs), and the host defers
the block only where the surface would need a cache whatever its pages
(GpuDevice::fresh_surface_never_in_place). Every other is refused with
nothing made and counted, as is one past the budget, so the kext names its
pages asking, as without the feature: a full budget fails safe to today's
wire and ASK_CACHE path.
This is inside the rule that surfaces are used in place, cost and all, only
because these surfaces genuinely cannot be placed in place: their layout
needs a device cache either way (on the Iris, rows ending inside the GPU's
64-byte lines; on the 780M, runs exceeding one udmabuf). So it does not
choose a copy over in place; it only stops eagerly wiring and zero-filling
guest pages the CPU never touches.
What the guest reads changes on a unified-memory host: FEATURES_LO gains
bit 30 and DEFERRED_BUDGET is no longer 0, and the test that held both
changes with them. The wire header's new bit moves the option ROM's and the
guest set's records of their sources; their bytes stay.
The wire header gained RgfxVideoCaps.decode, so the kext's copy of the device
info and caps is larger, and the option ROM's record names the header. The ROM's
bytes are the same; its record's hash of the header changes. Built on the M3 Max
with make -C firmware prebuilt and make -C guest prebuilt.
Under the x86 Macs' feature profile, macOS 26's WindowServer asks Metal's
private newTiledTextureWithDescriptor:offset:bytesPerRow: for 2D textures of
6 and 7 levels over a buffer (54x54 and 64x60 BGRA8Unorm at 256 bytes a row).
The AMD and the Intel GPU make them, level 0 over the buffer's bytes and the
other levels in their own memory. The host could make only one level, so the
bundle answered nil and the device kept the M3's profile.
TEXTURE_FROM_BUFFER already carries the level count in its descriptor. A
descriptor of more than one level now goes to the platform's new tiled form
(Buffer::new_tiled_texture, sel newTiledTextureWithDescriptor:offset:
bytesPerRow:), which the Vulkan platform makes by metal2vulkan's
Buffer::new_tiled_texture: one image of every level, level 0 kept in step
with the buffer's bytes at command boundaries. One level still goes to the
public form, which the tiled form makes alike. Before this, a descriptor of
more levels reached the public form, whose refusal ended the host's process.
The wire's doc says what such a texture is.
Tests: the testkit decoder test holds the routing by levels; three decoder
tests on the Vulkan platform hold WindowServer's 54x54 of 6 levels over a
16 KiB Shared buffer: level 0 reads the rows the CPU wrote after the texture
was made, a blit's write of level 0 reaches the rows and leaves the 40 bytes
of padding a row as they were, and generated mipmaps and a blit into level 3
read back without touching the buffer.
The header's text changed, so the option ROM's record is rewritten; the ROM's
bytes are the same.
The crate that holds the reims-graphics device's wire and transport now
carries the library's prefix, as reims-vgpu-video does: its directory is
crates/reims-vgpu-graphics, its package reims-vgpu-graphics, and its Rust
path and log target reims_vgpu_graphics. The guest's, the option ROM's and
Ambrosia's Makefiles include the wire header from the new directory, and the
prebuilt records name it there.
Nothing changes for the guest or the host. The device keeps its name
(reims-graphics, QEMU's reims-graphics-pci, PCI 1234:5247), and the wire
header keeps its file name and RGFX_ symbols. The C API header is unchanged,
and the prebuilt kexts and option ROM are byte-identical; only the records'
paths and source hashes move. A log filter names the crate's lines by its
new target (REIMS_VGPU_LOG=info,reims_vgpu_graphics=trace), a diagnostic.
What changes for the guest: on a host whose surfaces lie in place in their
pages and whose GPU lays a linear image's rows at more than 64 bytes, the
default IOSurface bytesPerRow becomes aligned to that GPU's alignment: 256
bytes on RADV hosts. The host says it in a new device-info field,
linear_row_alignment (the runtime's
minimum_linear_texture_alignment_for_pixel_format of BGRA8, written where the
GPU shares the CPU's memory, else 0), and the kext has IOSurface align the
bytes per row it works out to it at the accelerator's start
(IOSurfaceRoot::updateLimits, as a GPU's accelerator does), which
IOSurfaceGetPropertyAlignment then answers to the processes too. ANV and
MoltenVK hosts, which answer 64 or less, hosts whose GPU has memory of its
own, and older sets keep today's 64.
It stays inside what Macs answer: an x86 Mac answers 64 for
IOSurfaceGetPropertyAlignment of bytesPerRow and the M3 128, and the x86 GPUs'
own minimumLinearTextureAlignment of BGRA8 is 256 (m2v probe jobs 7349 and
7356).
What it removes: the runtime's Refusal::Pitch shadows on RADV. On the 780M a
3840x2160 surface at 15360-byte rows in place takes 1.02-1.14 ms a frame
against 2.79-3.10 ms shadowed, and the guest's 3662x2039 surface at 14656-byte
rows was shadowed (2.5-2.9 ms): the 256-byte pitch saves about 1.7-2.8 ms a
frame (m2v job 7389, Mesa 26.2.6). Measured on a cold boot of macOS 26.7.2 on
the 780M: IOSurfaceGetPropertyAlignment of bytesPerRow answers 256 (a
3662-pixel surface's rows are 14848 bytes), and the run's refused-pitch shadows
went from 1032 to 14.
guest/prebuilt and the option ROM's record are rebuilt; the ROM's bytes are
unchanged.
On a host whose GPU shares the CPU's memory a surface's textures use its pages
in place, but the runtime makes a texture over pages it cannot place one over
(rows that end inside the line the GPU writes back whole, on Intel; pages that
are more than one dma-buf, on RADV) a shadow, which every command buffer copies
in before its first use and merges back after a write. Such a surface is better
kept in an IOSurface device cache, copied only at CPU locks and unlocks, as on
a GPU of its own memory.
This adds the protocol for that choice, made surface by surface:
- SURFACE_PAGES takes RGFX_SURFACE_PAGES_ASK_CACHE with the surface's planes
(RgfxSurfacePagesLayout). The host answers OK, the block in place, or
RGFX_STATUS_CACHE, after which the kext makes the surface's device cache and
posts the block again cached, taking the view the ask made.
- The platform answers whether textures over the pages lie in place for every
access (GpuDevice::surface_pages_in_place). The Vulkan platform reads the
runtime's in-place verdicts for the pages' class and row ends, and on Linux
whether each plane's pages fit one dma-buf.
- Feature bit 29, SURFACE_CACHE_REFUSED, is what a host offers in place of
SURFACE_CACHE where it answers the ask. The kext asks only where it took the
bit, and the bundle hands the kext each block's planes.
- A host whose GPU shares the CPU's memory keeps device caches too, and makes
their transfer queue at the first cache, so one that makes none makes no
queue.
No host offers bit 29 yet, so nothing changes for the guest or the host.
guest/prebuilt and the option ROM's record are rebuilt for the wire header and
the kext; the ROM's bytes are unchanged.
OpenCL mode's feature bit landed beside the private render state's, and the
header lost the blank line cbindgen writes after RGFX_FEATURE_OPENCL_MODE, so
`cargo xtask header --check` failed. The header is cbindgen's again. The
option ROM's record and the kext set's sources.toml still held the header's
hash from before OpenCL mode, so both prebuilt-checks failed: they are
recorded again from the same header. The ROM's bytes and every kext binary
are unchanged, as no define they use moved.
The reims-graphics device's video decodes on the host's hardware, but a
guest's encoder had no op to send. VIDEO_ENCODE_H264 and _H265 (0x4002,
0x4003) carry a source's two plane textures, the buffer and capacity its
access unit goes in, the buffer its result goes in, a frame index and flags,
and the settings where they change (RgfxVideoEncodeSettings, 96 bytes: size,
format, profile and level, rate control with its bitrates and QPs, frame rate,
keyframe interval, B-frames, entropy coder, quality and colour). The host
writes the access unit as Annex B, with its parameter sets on keyframes, then
an RgfxVideoEncodeResult (32 bytes: OK, OVERFLOW or FAILED, the size, keyframe
and parameter-set flags, the frame's index and picture type), then signals the
session's event.
The video caps gain an RgfxVideoEncodeCaps for each entry, at 0x410: the rate
controls an encode entry takes and its most B-frames, all zero for a decode
entry and from an older host, which a guest reads as no encoder.
cbindgen.toml lists the three records, and the header is cbindgen's again.
Because RgfxVideoCaps grows by 256 bytes, the ROM's record and the guest's
kext set are built again with it on m3-max (26.7.1 KDK, Xcode 27.2): the ROM's
bytes stay the same, and ReimsGraphics and RgfxGate, which read the caps,
change.
apple-gfx-pci loaded ReimsVgpu.rom, its UEFI driver, as its default romfile;
with apple-gfx gone the driver, its sources and its build go, and cargo xtask
dist installs no ROM and names none in reims-vgpu.pc (QEMU stops reading its
optionrom variable). The firmware builds only the reims-graphics device's ROM,
which reims-ctl carries: OptionRom.S keeps the layout ReimsGraphicsRom.S
includes, with no apple-gfx-pci identity to fall back on.
The prebuilt ROM's bytes are unchanged (sha256 749434f8, rebuilt on the Mac):
only its record moves, for the Makefile and the two assembler files it names.
make -C guest prebuilt and make -C firmware prebuilt on the Mac (job
m3-max-5400, KDK 25G241): ReimsGraphics reads the larger video caps and
RgfxGate carries the bundle that lays decode outputs out for the host's
in-place layout. The option ROM's bytes are unchanged; its record names the
wire header it was built from.
286e89cbd added the private render state feature bit, flag and record to
reims_graphics_wire.h after firmware/prebuilt/ReimsGraphics.toml recorded the
header's sha256. That left reims-ctl's test
the_prebuilt_rom_is_built_from_the_trees_sources and make -C firmware
prebuilt-check failing on development.
make -C firmware prebuilt, run again on the Mac with the same Apple clang
21.0.0 and Homebrew LLD 23.1.4, built a ROM with the same bytes
(sha256 749434f8...), since the firmware uses none of what 286e89cbd added.
Only the header's sha256 in the record changes. The guest's firmware sees
nothing different.
QEMU's reims-graphics-pci has no default option ROM, and reims-ctl is to
name one for every x86-64 VM on reims-vgpu's own device, on hosts that
build no firmware. firmware/prebuilt/ReimsGraphics.rom is the ROM `make -C
firmware prebuilt` builds on a Mac (Apple clang 21.0.0, Homebrew lld 23.1.4;
the bytes are the compiler's), and ReimsGraphics.toml records its sha256
and that of every file it was built from, the wire header among them.
`make -C firmware prebuilt-check` (firmware/prebuilt.sh --check) hashes the
ROM and those files against the record on any host, with no compiler, and
`cargo xtask check` runs it: the wire header is the library's, whose checks
would otherwise never see the ROM go stale.