The day's journal on the RX 550's host names the processes behind every UVD
fault and ring timeout: each was one decoding jpeg-check.sh's grey cases,
development's engine or a diagnostic build. 10 faults, and 3 ring hangs the
kernel ended by resetting the GPU with VRAM lost, so a guest's grey JPEG on
development could reset the host's GPU. The engine that refuses grey made
none in 792 starts, each decoding the trial's 32x32 grey image. The module
doc and U25 say so.
The JPEG engine made every decode's vaEndPicture on the decoding thread.
Each decode is its context's first picture, in which radeonsi may wait for
the GPU (U24): on an RX 550 (Polaris 12's UVD, Mesa 26.2.6), with the
compute rings that take the process's work held by the tests' spins, the
call waited 1.22 s in drmSyncobjWait, until the GPU was done, and the
decode then returned as decoded, past its 50 ms deadline, with the
driver's lock held all along (jobs 4555, 4562). So the held tests of the
compute rings failed there (job 4534).
The decode now ends its picture through render_decode, as a new H.264
decoder's first picture is: on the display's call thread, by the decode's
deadline. Past it the decode fails as stalled, and the engine stalls with
its context and surface kept until the GPU is done, as for its other waits.
The conversion's held test takes the display's other calls as the decode
stalled: they fail by their deadline while its first picture holds the
call thread, and go on where it waits on the memory's dma-buf.
For the guest: where the driver waits for the GPU in a JPEG decode's
vaEndPicture, as on Polaris's UVD with the GPU busy, the decode fails by
its deadline (kIOReturnDeviceError) instead of blocking past it, and the
display's other calls each fail by their own deadline meanwhile instead of
waiting inside the driver. Elsewhere nothing changes but that the call is
made on the display's call thread.
The JPEG engine took every sampling its VA driver lists as decoded right.
On an RX 550 (radeonsi on Polaris 12's UVD, Mesa 26.2.6) the driver lists
grey, and its decode of grey into a Y800 surface writes a luma none of
whose samples are the stream's, so the guest got a wrong picture for every
grey JPEG: the 14 grey cases of jpeg-check.sh failed (job 4315), and
ffmpeg's VA-API decode of grey on that GPU is wrong too (job 4318).
At start the engine now decodes a flat 32x32 JPEG of each listed sampling,
as a guest's decode would be made, and checks its samples. A sampling
whose trial decodes wrong is refused as unsupported, as one the driver
does not list, and left out of the backend's answer of what it decodes.
No other route decodes grey right there. Into NV12 surfaces of the
driver's, copied out by a run, grey decoded right for some streams and
wrong for others (jobs 4470, 4496): 3 of jpeg-check.sh's 14 grey cases
wrong, 15 more grey streams of cjpeg's and jpegtran's all wrong, and the
trial's luma not written at all. So that route is not taken.
For the guest: on a driver whose trial decodes a sampling wrong, its
JPEGs are refused as unsupported streams (kIOReturnBadMedia), where they
decoded wrong before. Where every trial passes, as on the RX 7900 XTX and
the Radeon 780M, nothing changes.
Core's JpegDecoder now answers what its backend decodes at all
(JpegDecodes: the samplings and the largest picture): VA-API's the
samplings its driver lists and its largest size, NVIDIA's the four it
measures at any size. The guest hears of it only through the refusals it
already got, so nothing it sees changes.
The conformance suite's jpeg-check reads it. A stream outside the answer
that a case asked to decode now passes when refused as UnsupportedStream
("refused as answered"), and fails when it decodes; inside the answer every
refusal fails, as before. jpeg-check.sh's last line counts the passes, the
refused as answered among them, and the failures.
On an RX 550 (radeonsi, Polaris 12) the driver lists 4:2:0, 4:2:2 and grey
up to 4096x4096, so 19 cases failed on development (job 4315): every 4:4:4
one, and the 16384-wide 4:2:2 case. Each was the engine refusing a stream
by the driver's own answer.
B90's fix named vaGetImage of bands, small enough that each hold of the
display's lock would be short. Measured on the Radeon 780M and the RX 7900
XTX (jobs 4279, 4284), the bands held the lock longer than the derived map,
in all and at most. The engine keeps the derived map, and the fix left is
Mesa's (U22).
The kernels' cut to one place a pixel is worked out ran a 4:2:0 window's
both planes through write_word's loop over the word's block, inside
scaler_transform. On the Radeon 780M that made 720p BGRA to 720p 420v
slower (docs/video/scaler.md recorded 0.26 to 0.31 ms). The old
both_planes, whose loop over a chroma row's two luma rows has a constant
count, is unrolled by the driver into two copies of a pixel's work that
run side by side. Put back inside scaler_transform, it was as fast as
before, but it grew that kernel from 21,524 to 31,216 bytes of code,
which every transform's making would pay for.
So both_planes gets a kernel of its own, scaler_transform_both_planes,
which non-adaptive dispatches of both planes take (Biplanar8,
Biplanar16). scaler_transform keeps its code. The making ahead
dispatches eight kernels, and the probe of first transforms has a 4:2:0
destination.
On the 780M, six alternated processes of each build: GPU time 0.230 to
0.206 ms at the median, the other benches within their spread. The
making ahead went from 274 ms to 298 cold, and the new kernel's own
making takes 27 ms. Its outputs are the same arithmetic in the same
order; the whole suite passes (113 of 113).
On the RTX 5080 the decode engine sat idle 10-24% of each stream's time
(measured: 104-280 us p50 between decodes against 406-1680 us of decode):
every decode waited for the copy out of the picture before it, on the
reserved queue, and so did the event's signal batch on the decode queue,
since a copy without unified layouts moves a DPB picture's layout that the
next decode reads.
Where the device has VK_KHR_unified_image_layouts' unifiedImageLayoutsVideo
(now an optional extension of the platform's device; the 5080's 615.71
driver has it) and the copies run on the reserved queue, a decode now waits
only for the last copy out of the image it writes, sets up the free slot
copied out of longest ago, in a session of one more slot where the device
has it, and the event's signal goes on the reserved queue behind the copy.
A decode's value is signalled by a batch of no work after it that also
waits for the copy before it, so the shared timeline is still signalled in
order when a decode ends before the copy before it.
Devices without the feature, or with copies on the decode queue or a lent
queue, keep the old order. Unit tests run the order on a fake GPU: overlap
leaves the decode queue no idle tick, and a decode signalling its own value
would put the timeline out of order.
A decode the driver could not send (no output surface, refused parameter
sets, no command buffer) was answered done at its status query, and
VideoToolbox took the untouched surface for a decoded frame. AppleGVA
reports a decode error only when the schedule fails: a schedule answering 5
reaches the client as kVTVideoDecoderMalfunctionErr (-12911), and it ignores
every failure a status query can answer, a detail word, a failed query and
the statuses 0 and 3 alike (measured on the guest with the RTX 5080).
So the schedule of a command the driver cannot send now fails, for H.264 as
for HEVC, and logs one line. A failure the host reports for a picture it was
sent shows only at the query: the driver marks the picture's session, and
the session's next schedule fails, one picture late. A context's deletion
clears it from the tokens, so a later context at its address is never
failed for it.
On a GPU of its own memory a decoded picture is copied into the runtime's
buffer that holds the surface's device cache, which only a queue of the
runtime's families reaches. Until now that was a runtime command queue's
VkQueue, lent per submission, which logical queues share with the guest's
work: a copy that waited for its decode on the GPU would hold that work
behind it, so a thread waited for each decode on the host and only then
submitted its copy.
metal2vulkan now reserves queues of its own families for the caller, which
none of its work ever runs on. The platform asks every device for one, and
the hardware video copies on it as on a queue of its own: each copy is
submitted with its decode and waits for it on the GPU, with no host
round trip between them. A device with no queue to spare (MoltenVK,
lavapipe, a Radeon's single graphics queue) reserves none, says so once at
info level, and keeps the lent queue and its host wait.
The options are one set for every device the process makes, so a device
with a queue to spare and no video-decode family reserves one it never
uses; on an RTX 5080's 16 graphics queues the round robin goes from 14 to
13.
The encoders need their contract written where the decoders' is: how a
device gets its encode queue, the RTX 5080's encode capabilities, where
sources and bitstreams lie and what is copied, how pictures, references
and rate control are planned, the NVIDIA 615.71.09 bugs worked around
and why, what the encode check checks, its results and GPU time a
picture at 1080p and 4K on the 5080, and what is not done.
The video crate's doc names lent.rs and from_raw_copying_on, says why a
copy on a lent queue is submitted from a thread once the host sees its
decode done (a GPU wait there would hold the owner's work behind the
decode), and counts the H.264 check's two lent runs: all 68 of its
verdicts pass on the RTX 5080 Laptop GPU.
docs/video/vulkan.md now covers H.265 beside H.264: the 5080's H.265
answers, P010 pictures and buffer landings, each decode's plan (references
and their slots, the current sets, the 8-picture limit, IsReference), the
parameter sets as std structures, in-place reads, the GPU-less tests and the
check's 191 verdicts on the 5080.
What the crate is and is not yet, the device it takes, its own DPB
pictures and the outputs it lands pictures in (images and buffer
planes), how the bitstream, parameters and frame numbers reach the driver,
including the shift past a frame number wrap that NVIDIA's initial lists
need, the timeline it signals, and what the H.264 check measured on the
RTX 5080.
Move the runtime from f6a96b7da8 to a759d0e88f, the tip of metal2vulkan's
development (runtime version 1643 to 1648; its runtime sources pinned as
abac6049).
metal2vulkan's gate on a759d0e88f was still running when this was committed;
the owner chose not to wait for it.
What changes for the guest:
- A 2D texture over host pages whose usage only samples or reads it is a linear
image over the pages, with no shadow and no copy in at each command buffer's
first use, on a device whose startup check passes: on that device, an image's
first move keeps every byte while the CPU writes beside it, checked for
pointer imports, fresh pages and dma-bufs each, and kept in the shader cache
by driver and runtime version. Vulkan does not promise that move (an image
over imported memory starts UNDEFINED), so this relies on the driver, by the
owner's ruling of 2026-10-26. REIMS_VGPU_EXACT gains `host_page_textures`,
which keeps every such texture a shadow, as before, and `all` names it; the
accuracy ledger and docs/api.md say so. Render targets, written textures and
two-plane YCbCr surfaces keep their shadows.
- A memoryless texture bound at a texture slot is taken, as plain Metal takes
it, where the runtime refused the setter and this platform died there (an RX
580 user's guest, at setFragmentTextures:withRange:). A command whose function
uses the slot, a useResource of it or a blit of it fails the command buffer
with MTLCommandBufferErrorInvalidResource (9) from the Metal submission that
holds it, as Metal's GPU does (measured by metal2vulkan on the M3 Max). This
platform passes the new CommandBufferError::InvalidResource to core as one of
Metal's failures: the fourteenth it lists. A memoryless texture's CPU reads
and writes move nothing, and its views are nil, as on Metal.
- new_texture_with_vk_image takes IdPlacement::Outside; nothing here passes it
yet, so the window's swapchain images still take texture IDs.
- Nothing else in the span moves what a guest computes or observes: the
in-place check's dma-buf pages come from cached memory, and the rest is
counts, docs, tests and the sources pins.
The public surface gains CommandBufferError::InvalidResource,
DevicePolicy::host_page_textures and its HostPageTexturePolicy, and WorkCounts'
in-place and shadow-cause counts. No Degradation, RuntimeGap, refusal or notice
kind moved, so DIES and the relayed kinds stand. Device info, GPU families and
feature queries answer as before. The Vulkan platform ends the process at one
site fewer: the memoryless binding.
docs/video/bugs.md says what the pin carries for B73: the in-place textures and
the counts that tell them from the shadows that stay.
New tests, of the memoryless binding, on every platform:
a_memoryless_texture_at_a_fragment_slot_fails_only_a_draw_that_uses_it; and on
the Mac, memoryless_slots_fail_as_metals, which measured Metal's lines
(macOS 27.0.1): a draw whose function ignores the slot completes; one that
samples it fails the command buffer with code 9, the blit before its pass run
and neither its clear nor the blit after it, the signal after them not firing.
Checked, every test passing in its full run:
- on the M3 Max (macOS 27.0.1): rustfmt, the three clippy passes cargo xtask
check makes (the Mac's, its tested features', and x86_64-unknown-linux-gnu's),
and the 900 tests of reims-vgpu-vulkan and reims-vgpu on MoltenVK;
- the Vulkan crate's 434 tests and reims-vgpu's and the C API's 50 video and
scaler tests on gem10's RX 7900 XTX and Radeon 780M, with no amdgpu reset.
The RTX 5080 Laptop GPU's run was skipped at the owner's word: the GPU was busy
with the owner's VM.
Only those crates link the runtime, so the rest of cargo xtask check (core's
tests, under Rosetta too, the Metal, window and video crates, and the header)
and the suite, which drives the C API on the Metal platform, do not
reach the change and were not run.
QEMU has had apple-videotoolbox-pci and apple-m2scaler-pci since the video
devices landed, but reims-ctl never put them on a VM's command line, so no VM
it starts had them, and the drivers reims-util 381f913 puts in x86-64 images
had nothing to drive.
Every VM on reims-vgpu now gets both. An x86-64 VM has them at slots 8 and 9,
after the IOSurface mapper their ported drivers link; one on vmware-svga, which
has no mapper, gets neither. A vmapple VM gets them too: arm64 macOS ships the
drivers, which link the mapper vmapple builds in. A guest without the drivers
leaves the devices without one. docs/video/bugs.md's D6, the images without
the kexts, goes.
Both devices realize on the installed QEMU (paused, on an arm64 machine's
PCIe bus). No guest has booted with them from reims-ctl's command yet, and no
arm64 guest has run against them at all (bugs.md T9).
scripts/ mixed the one script a person installing reims-ctl runs,
install-ctl.sh, with eight that only developing the project runs: the worktree
and build environment, the GPU locks, the VM boot and tour drivers, the window
walk and the IOSurface qtest. Those move to scripts/internal, so scripts/ holds
what users run. run_vmapple.sh, walk_window_macos.sh and vm_drive.py find the
repository from their own path, one level deeper now; every reference in the
docs, the Makefile, the video crates' tools and the code's comments follows.
Move the runtime from 6c9cad047a to f6a96b7da8, the tip of metal2vulkan's
development once it was cut into one commit a work packet (artifact format 450
to 451; semantics 1867 and runtime version 1643 unchanged), whose runtime
sources metal2vulkan pins as d2bdbfea. 6c9cad047a is no longer an ancestor of
that development: it resolves on metal2vulkan's
archive/development-linear-2026-10-26, which keeps the line as it was.
metal2vulkan's gate ran at 2c7b5dc395, that line's last commit, whose tree is
f6a96b7da8's (0b981bbfc3), with --no-fail-fast on every leg:
land-check 0
suite 0 5,667 of 5,667 (its four crates, --cfg m2v_gpu)
validation 0 1,364 of 1,364
conformance 0 1,003 of 1,003
cost 0 the whole set's 1,122 cases, alone: no bound moved
What changes for the guest:
- A command buffer carries a shadowed texture's image across its encoders: a
later encoder copies in nothing of a texture an earlier one of the same
command buffer left holding the bytes, unless a write of the bytes another
way, an event, semaphore or fence wait, or another encoder ending with the
texture came between, where Metal would show it another writer's bytes. Metal
shows an encoder the bytes as of its command buffer's commit (measured by
metal2vulkan on the M3 Max), so the same texels are read. A later command
buffer still copies in.
- A YCbCr texture's conversion module is built for its layout, range and
matrix, where one module read them at run time: the same codes, from 288
instructions where there were 465 for a 10-bit 4:2:0 surface.
- On a driver that takes it, a set-0 buffer binding that a stage uses through
several variables is a dynamic descriptor, as far as the driver's count of
dynamic storage buffers reaches in binding order, where it stayed static on
every device: the same bytes, through one set a command buffer binds at each
command's offset rather than a set a command. MoltenVK fails the runtime's
self-check of that shape, so the Mac is unchanged; a device that pushes set 0
never asks.
- Nothing else in the span moves what a guest computes or observes.
- A command buffer's upload chunk is made without a clear, and each region
zeroes the part of itself its data does not cover: every reader of a region
reads the same bytes, for fewer bytes written.
- A library's module is decoded once for every entry a creation compiles, a
compiled function keeps its last relocation and its words' digest, and the
verifier hands canonicalization its dominator tree: the same words, digests
and artifacts.
- The shader cache's directory is asked about a stage's function once, not
once a pipeline state, and a render pipeline's artifact and variant record
go there only where it lacks a stage's function: what is on disk, not what
is made.
- The rest counts (holds from commit to submission, a large surface's first
copies in, the driver's pipeline makings and the directory's time and round
trips), or is docs, tests, probes, the cost ledger and the sources pins.
The public surface gains 66 items and loses none. Four rows change in place:
YCbCrConvertModule's SHAPE_WORDS is 6 (22), ycbcr_convert_module and
ycbcr_convert_floats_module take a YCbCrConversion for a YCbCrOutput, and
CompiledFunction's Debug and equality are written by hand. Nothing here names
any of them. shadow_texels_first_copied_in_again keeps its name and type and
now counts only the copies in the carry could not leave out; nothing here reads
it.
No Degradation, RuntimeGap, refusal or notice kind moved, so DIES and the
relayed kinds stand. The span's device modules move only to time the driver's
pipeline makings and keep the self-check's answer: device info, GPU families and
feature queries answer as before, and the Vulkan platform ends the process at no
new site, so the pin owes no guest a cold boot. The accuracy ledger's table of
the runtime's answers passed on stays empty.
docs/video/bugs.md says what the pin carries for B73 (the carry, the counts that
divide its copies in, the YCbCr module) and B26 (the hold counts).
Checked, every test passing in its full run:
- on the M3 Max (macOS 27.0.1): the three clippy passes cargo xtask check
makes (the Mac's, its tested features', and x86_64-unknown-linux-gnu's), and
the 889 tests of reims-vgpu-vulkan and reims-vgpu on MoltenVK;
- the Vulkan crate's 432 tests and reims-vgpu's and the C API's 50 video and
scaler tests on gem10's RX 7900 XTX and Radeon 780M and on msi's RTX 5080
Laptop GPU, with no amdgpu reset and no NVRM or Xid line.
Only those crates link the runtime, so the rest of cargo xtask check (core's
tests, under Rosetta too, the Metal, window and video crates, rustfmt and the
header) and the suite, which drives the C API on the Metal platform, do not
reach the change and were not run.
The scaler device computes core's reference transform on the GPU the
library draws with: Metal on macOS, the Vulkan platform's runtime
elsewhere, on the device the GPU device runs on, reading and writing the
guest's surfaces in place where the host lends their memory. The kernel
answers Apple's scaler's conversions, windows, taps and linear-light
scaling, filters in two passes, down then across, decodes an RGB source
into linear light through a table, and makes its pipelines ahead of the
guest's first transform. scaler.metal lands with the Vulkan platform's
scaler.metallib, and docs/video/scaler.md records what Apple's scaler was
measured to do and the kernel's residuals and costs.
Source: c5b409362 1148ce260 fe105edcb 36a6a82c6 d7d5cfede a07ffd70b 76acbacc7
1ccde0ef6 e2d698a82 6ed3d12a4 2dbca9dcd af2b396b2 55aaee020 16f8ee77b
b6ac2bb54 943f091af 950a7e024 601c23067 9857b1fc8 cbd6b7573 675e1cf8d
d02148033 da8b42c4c e7cb403a2 46120bbf7 a624db1e7 61f352989 c9ca72c83
25e4ae539 1b783baca ab8b08aca 829e36603 ac7a50dd6 8b915bb9e 89e863767
A macOS guest hands its VideoToolbox sessions, and its
IOSurfaceAccelerator's scaling and conversion, to the host through two
virtio-PCI devices, 106b:1a03 and 106b:1a0b, as Virtualization.framework
gives them. The library gains their host side, VideoDevice and
ScalerDevice over core's host session and scaler, and QEMU their
transports, apple-videotoolbox-pci and apple-m2scaler-pci, with no
properties of their own.
The library picks each device's backend itself and logs why, on the GPU
apple-gfx-pci's device runs on, taken from the runtime's identity of it:
NVDEC and NVENC on an NVIDIA GPU, else VA-API on its render node, and
VideoToolbox on macOS. The scaler device exists on every host and refuses
its features where it cannot transform; a guest message over 16 MiB is
answered -12904 unread.
For the host: the C API gains rvg_video_device_* and rvg_scaler_device_*,
additively. For the guest: a VM given the devices has the host's video
decode, encode and scaling.
Source: c5b409362 375acb462 8be7593eb fbbeebfb2 e3d5616a4 60d08c4f4 c4c476643
fe105edcb 36a6a82c6 ee2b1ca71 d7d5cfede b15f40717 a07ffd70b bfe6b8338
7433026a9 0030b24a7 64497f931 76acbacc7 3bf366e81 6d3b97a59 fa5b4aafc
401e0b727 1af53ce1a 0fa52d070 ce6eab571 33b40ae4a 82beaf64a ef26f02e1
08bb763c4 5ff2dd73f 62e19c8ef ce406ddb2 fd92f66c4 52fba93c9 e179dc0bd
b5f40ad74 d01bbdc9e 950a7e024 601c23067 9857b1fc8 b427bebfb 55a1d96e7
a0243edfc ef54c395f c23c83073 bc6fcdaa7 1b783baca
reims-vgpu-video-videotoolbox is the host's decoders, encoders, motion
estimation and pixel transfers on macOS through VideoToolbox, with no codec
layer between and no JPEG decoder. It reads CoreFoundation objects only
through live borrows, writes a pixel buffer only through an exclusive one,
holds every session in one type that invalidates it, and exports only what
its users take. It is unit-tested on the M3 Max and has not met a guest yet
(docs/video/videotoolbox.md).
Source: c5b409362 eb70a2030 8be7593eb 773de8c18 1148ce260 1614711a3 60d08c4f4
31bad2301 76a839611 5373fb435 d7c76ee17 51bad7d67 dbf1eeed0 463eb0734
bfe6b8338 2640f712c df227a1f9 05fe09972 c907d3d87 a4b17476c ac3219799
76acbacc7 9e050f933 1b47472f9 6ad617e7a d01bbdc9e 601c23067 4cb711b73
eef22173d
reims-vgpu-video-nvidia is the host's codecs on an NVIDIA GPU on Linux:
NVDEC and NVENC over the CUDA driver API, loaded at run time, with nothing
above them, and JPEG on nvJPEG's hardware decoder where libnvjpeg is
installed. Its handles are released once on every path, NVDEC takes each
picture's bitstream by borrow, NVENC's buffers live in their session, an
answer comes within one deadline of its first wait, and the frames after a
failed decode fail as Apple's AVD does. docs/video/nvidia.md records what an
RTX 5080 Laptop GPU answers.
Source: c5b409362 eb70a2030 f4e6e4bd4 773de8c18 e3d5616a4 60d08c4f4 c4c476643
31bad2301 fe105edcb 0cf450ef9 cf4c40cff 95032e033 e772d3352 dc8d5f453
c21cff4fb 17d62b909 ef26f02e1 d27a5f48a 7bbfdf888 203585632 8cbf706bb
31ffd8de7 5ff2dd73f b4fc832ed 52fba93c9 b5f40ad74 73d7e9c85 d01bbdc9e
541d46a0e 0dcca7ff7 601c23067 eef22173d bc6fcdaa7
reims-vgpu-video-vaapi is the host's codecs on Linux through libva, with no
codec layer between: H.264, HEVC, VP9 and AV1 decoders through one generic
session, H.264 and HEVC encoders, and a JPEG engine whose outputs are read
into host memory of its own, in strips past 64 MiB. Its waits on the GPU
are bounded at 5 s, inside the driver too, processing runs wait outside
the driver's lock, and every picture begun is ended. hevc-craft and
vp9-craft make streams no encoder here writes, and docs/video/vaapi.md
records what radeonsi and NVIDIA's VA-API driver answer.
Source: c5b409362 eb70a2030 db99192cc e3d5616a4 7cef9973a 1148ce260 60d08c4f4
efbcf2dbb c4c476643 31bad2301 a07ffd70b b7455918b 3ff9083c6 3bf366e81
6d3b97a59 a10ff547d 1ccde0ef6 d763ddffd 30c2cef88 41235220c 319bc132e
1a0d1c3da d9b09f352 dc672b5cc 33b40ae4a 77609a028 8ac416039 118f49023
76951e3ea 939f635ee 505569531 9400f48cb 9e050f933 62e19c8ef 0c2d725b3
c8c7b3400 95ce68182 b5f40ad74 d01bbdc9e 601c23067 a0243edfc 96f459104
8c58f98c4 eef22173d ab8fc3c4d 745cef197 7d74266f5 22625b578 73e48ad5a
986872956 b63299e88 096878653
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