VA-API's zero copy kept a guest buffer's import by the mapping's identity
and the frame's size and format alone. One mapping can hold several buffers
of one size: macOS 26.7.2's HEIC decodes (Preview opening a desktop picture,
Freeform's welcome) write each tile of a grid image into one surface at the
tile's own offset. Every tile after the first found the first tile's import,
so its frame was written over the first tile's planes, the check that
declines a luma plane off a page's start on iHD was skipped, and the guest
showed the other tiles as zero YUV (green) on the Iris Xe.
The import is now kept by the place and pitch of the buffer's planes as well:
core's DeviceImports takes a variant of the backend's own type, compared
whole. What changes for the guest: each tile's frame lands in its own planes,
or is copied by the CPU where the driver takes no import of them. The new
VA-API test writes two buffers of one memory, stacked and side by side, and
failed with the old key on the Iris Xe.
reims-vgpu-core is folded into reims-vgpu-vulkan, so the docs, the
manifests' comments and the crate descriptions that named the crate name
its module now: the crate lists and graph, seven crates, core's files under
crates/reims-vgpu-vulkan/src/core, the testkit feature, and what the x86-64
leg runs. The design note that put the decoder in core says where it is,
reims-vgpu's graphics::decode, and the path of a deleted file goes. The
kache measurement keeps the crate's name, as it was measured then.
The host's video was five crates: core, codec, conformance, and the VA-API
and NVIDIA backends, with the examples and tools split between two of them.
One device uses them, from one library. They become one crate,
crates/reims-vgpu-video, with the modules core, codec, vaapi and nvidia, the
last two built on Linux alone. The conformance readers and writers, which only
the examples use, stay a crate of their own beside it, at
crates/reims-vgpu-video/conformance (reims-vgpu-video-conformance). The files
move with git mv, their paths rewritten, with no re-exports left behind. The
NVIDIA examples build on every host, as a stub off Linux.
Dead code goes with them: NVDEC's VP9 path and the codecs nothing asks it for
(NvdecCodec is H.264 and HEVC), and the Vulkan platform's listing of the
host's GPUs (host_gpus::hardware_gpus and gpu_device_gpu), which nothing
called, with its serde_json dependency.
AGENTS.md, development.md, docs/video and the nextest filter name the one
crate.
The paravirt video devices, their JPEG engine and scaler, and Vulkan Video
are gone, so docs/video says only what is left: the reims-graphics device's
video on NVDEC or VA-API, and the crates under it.
- devices.md: what the device answers the guest (the caps, the layouts,
OUTPUT_CACHED where NVDEC lands pictures in device caches) and what a
decode does, on each arm.
- backends.md: the two arms, their crates and traits, and the conformance
suite, which is VA-API's h264-check.sh and hevc-check.sh.
- core.md, vaapi.md and nvidia.md: the crates as they stand; vaapi.md adds
the 2026-11-07 runs of both scripts on the Iris Xe and a Radeon 780M.
- bugs.md keeps the entries the code and the other docs cite that still
hold, rewritten without the deleted devices; B26 is condensed.
- scaler.md, videotoolbox.md, hardening.md and vulkan.md go.
- AGENTS.md's video rows name the arms, the docs and the two scripts.
reims-vgpu-video-core is the host side of the VideoToolbox device's
protocol (106b:1a03) and the M2 scaler device's requests (106b:1a0b),
generic over the host's backends: the vtpv wire format, the host session
and its decoder, encoder and motion sessions, the JPEG engine, the
scaler's requests and its CPU reference, the surfaces a message names, and
the bounds on guest input.
It came from paravirt-video-accel at 156c78a and lands as its review left
it: on the library's runtime, locks and lint set, with checked arithmetic,
bounded waits and plist reads, Apple's scaler's conversions and filters,
and no environment switch. docs/video/core.md says how it meets the
guest's contract. Nothing reaches a guest until the library's devices use
it.
Source: c5b409362 eb70a2030 375acb462 02a08988c 773de8c18 fd6bfbf4c fbbeebfb2
f7076e013 e3d5616a4 efbcf2dbb c4c476643 31bad2301 958524e64 cc8cbfd2d
8f9e68b8b aba73491a 233801b96 2ae4acf64 7433026a9 0030b24a7 64497f931
7db506a43 5a1a5b42d 87101c63a c3d805cf3 aa97b977f 5b4856a56 587484f65
c21cff4fb 1ccde0ef6 6fed1752b 4151f4de8 d491894e8 fb24ae860 76951e3ea
7cac4970f b3cc5ec29 bb13e69f0 e4426f263 82beaf64a 8651a8402 e2d698a82
6ed3d12a4 2dbca9dcd af2b396b2 55aaee020 b6ac2bb54 943f091af d27a5f48a
4aa89d356 795d58c06 5f40ebd57 82fd5c7d9 a2ed98a13 ce406ddb2 fd92f66c4
d01bbdc9e 950a7e024 601c23067 675e1cf8d b427bebfb 310383e7f 96f459104
d02148033 da8b42c4c e7cb403a2 46120bbf7