Commit Graph
487 Commits
Author SHA1 Message Date
Anees Iqbal 246ab4403a 📝 Record that a present path can miss a refresh at a low frame rate [ci skip]
The answer of a present waited for the window's draw of it, and on an RTX 5080
Laptop GPU every frame of a 30-frames-a-second probe came a refresh late while
its uncapped run did not: the GPU clocks down between frames, and the
composite and the draw each took about ten times their time under load. The
lesson says how to spot the next one: measure at a capped low rate too, and
read the per-present timing lines for the step that grows as the rate falls.
2026-11-08 07:36:01 -08:00
Anees Iqbal 302544df87 🐛 Answer a present at the refresh after its show, not its draw
A display pipe transaction completed at the first refresh after the host's
window had finished copying its surface. On an RTX 5080 Laptop GPU at 30
frames a second the copy ended 5.2 ms after the show, which itself came 6.0
ms after the 120 Hz refresh WindowServer composited at, so nearly every
present was answered at the second refresh after its take: present_probe -f
30 saw 2.67 to 2.79 refreshes from commit to presentedTime, one more than on
a 780M host.

The guest now gets each answer at the first refresh after the present is
shown (its writers finished), whether or not the window has drawn it yet, as
a Mac's display completes a flip at the vblank that latches it. A present the
window never draws (a hidden window) is answered at the first refresh too,
not the second.

What an answer frees is the surface of every present before it, never its
own, so the host still holds an answer while a window draw still running may
read the surface of a present before it: each draw now holds the answers of
the presents shown after the latest one when it began, until it finishes. The
window's frames, their pixels and their order are unchanged; only when the
guest hears of them moves. The tests that held the old timing now hold the
new one, and a new one checks that a guest drawing into a surface only once a
later answer freed it never draws into one a window draw reads, with draws
of up to four refreshes.
2026-11-08 07:36:01 -08:00
Anees Iqbal 24fa54079b 🐎 Copy VA-API pictures into the guest's planes on the GPU
On VA-API every picture the reims-graphics device decoded was read back and
copied into the guest's output planes by the CPU (B93): CoreVideo lays each
plane 32 bytes into its page, and neither radeonsi's nor iHD's video
processing writes that layout, so the in-place write declined every picture.

Where the in-place write declines, the arm now exports the decode surface as
dma-bufs (vaExportSurfaceHandle, each plane a layer of its own, kept with the
surface's pool), imports each plane once into the runtime device as an image
of its DRM format modifier, and copies it with vkCmdCopyImageToBuffer into the
buffer the output plane lies in, the surface's pages or its device cache, at
the plane's offset and rows: the Vulkan platform's PlaneCopier, one a session
on a runtime queue of its own, which waits for the copy on a fence. The copy
writes the crop the CPU's copy writes and nothing past it, after the decode is
done, and the session signals the decode once the copy is done on the GPU.

Which way each host's pictures take, in order, each where those before it
refuse:
- radeonsi (Radeon 780M, Mesa 26.2.6): the in-place write declines
  CoreVideo's planes (it imports planes 256 bytes apart alone); every picture
  lands by the GPU's copy: radeonsi exports one object of modifier
  0x200000010401b04, and RADV imports each plane.
- iHD (Iris Xe, intel-media-driver 26.3.5): the in-place write declines them
  (iHD writes a plane only at its dma-buf's first byte, U26); every picture
  lands by the GPU's copy: iHD exports one Y-tiled object (0x100000000000002),
  and ANV imports each plane.
- A host whose driver exports a surface other than as a layer a plane, whose
  runtime device lists none of the dma-buf image extensions or refuses the
  modifier for the plane's format, or whose plane lies in a buffer the GPU's
  writes do not reach (pages the runtime copies, a detached buffer): the CPU's
  copy, as before. The session logs each reason once at that point, as `a
  picture copied by the CPU: <the in-place write's refusal>; and the GPU's
  copy: <its refusal>`, or `; and no GPU copy: <why>` where the device made
  the session no copier.
The in-place write stays first wherever the import check passes for the
planes' layout.

For the guest nothing changes: the planes hold the same bytes, padding
included, and the decode's event and completion come as before. For the
host, the pictures land by the hardware instead of the CPU, the session's
counts say so, and each session logs its GPU copies and their GPU time at its
end.

Checked on the Radeon 780M and the Iris Xe: the conformance suites
(h264-check.sh 62 and hevc-check.sh 156 checks pass on each), the video
crate's ignored VA tests (15 on each), and a new ignored test,
a_picture_copied_by_the_gpu_is_the_cpus_copy_byte_for_byte, which lands every
picture of the suites' Annex B streams by the GPU's copy and by the CPU's into
the same CoreVideo-like layout at two pitches and compares every byte: 4849
pictures of 79 streams equal on the 780M, 4951 on the Iris (the latter going
on past the leading pictures random access skips). The workspace's Linux
tests pass on the radeonsi host (1862).

In cold boots of a macOS 26.7.2 guest playing 4K 60 fps HEVC in Safari,
against the arm before it on the same GPU: on the 780M no picture was copied
by the CPU (9979 before), 10000 by the GPU at 1.01 ms of GPU time each, and
three clips at once played at 53.2, 53.7 and 52.5 fps with 3, 2 and 0 frames
dropped (50.0, 50.3, 52.0 and 10, 11, 5 before); on the Iris none (9899
before), 10040 at 0.52 ms each, 53.8, 54.2 and 56.4 fps with 4, 3 and 0
dropped (52.3, 51.7, 53.5 and 71, 74, 1 before).
2026-11-08 06:52:46 -08:00
Anees Iqbal 164cd44c33 🐛 Search an HEVC frame record from +0x60, below 11's description
The driver searched AppleGVA's HEVC frame record for its surface's
description from +0x70 to +0xa0, and macOS 11.7.10 and 11.7.11 keep it at
+0x70, the window's first start: an 11 release whose record began one field
lower would have had every HEVC picture refused. Measured since: 4-byte
fields from +0x70 on 11.7.10 and 11.7.11, from +0x78 on 12.7.6 and from
+0x80 on 13.7.8; 8-byte fields from +0x80 on 14.8.9 and from +0x88 on 15.8.2
and 26.7.2. The description moves 8 bytes a release from 11 to 13.

The window now starts at +0x60, two 8-byte steps below 11's start, for the
11 releases before 11.7.10, which no base boots. In the frame words read on
11.7.11, 12.7.6, 13.7.8, 14.8.9, 15.8.2 and 26.7.2 (from +0x60 to +0xdc), no
start and width in the wider window but each release's own reads the
surface's width, height and pixel format, so no measured record becomes
ambiguous. The tests now cover every measured layout and the window's new
ends.

What changes for the guest: an HEVC frame record whose description starts
from +0x60 to +0x6c lands its picture instead of being refused; on every
release measured the surface found is the one it was.
2026-11-08 06:06:32 -08:00
Anees Iqbal 0b41f2472a 🐛 Send each pipe client the completion word count its release reads
WindowServer's display pipe callback asserts that a transaction's completion
has exactly the word count its IOAccelerator expects, and aborts on any
other. The kext always sent 11, the count from macOS 13 on, so WindowServer
aborted at its first completion on macOS 11 and 12. Booting the kext with
each count measured them: 8 on 11.7.11, 9 on 12.7.6, 11 on 13.7.8 and later.

The count follows what the client and the system show, never the release:
- macOS 11's WindowServer submits 0x108-byte transactions, the 0x118 layout
  without its last 16 bytes (zeros on 12 and 26). Selector 8 now takes either
  size, reads a short one as 0x118 with zeros past its end, and a client
  whose first transaction is 0x108 bytes gets 8 words.
- A client of 0x118-byte transactions gets 11 where IOAcceleratorFamily2
  exports IOAccelMemoryMap::getAssignedGPUVirtualAddressLength() const
  (13.7.8 to 26.7.2's kernel collections do; 11.7.10 to 12.7.6's do not),
  else 9. ReimsGraphics names the family in OSBundleLibraries and its Graft
  declaration (anchored by IOAccelMemoryMap, a class every release from 11
  to 26 defines there), references the symbol weakly without calling it, and
  reads at start whether its binder resolved it (OSKextSymbolIsResolved, or
  a null address).

What changes for the guest: on macOS 11 and 12 WindowServer's transactions
complete instead of aborting it; from macOS 13 on the completions are
unchanged.
2026-11-08 05:15:44 -08:00
Anees Iqbal a656ba31d1 ⬆️ Take Graft 1.0.0 from its release tag
Graft 1.0.0 is its first release. It reorganizes the repository: the built
kext moves from dist/ to built/, and the header, start glue and build rules
move under sdk/. It also binds an absent weak import to the pointer
gOSKextUnresolved holds, and verifies an imports-only provider through an
anchor class, which kextvers needs for macOS 11 and 12.

Point the guest build, the OpenCore link check, the lane gate and the
design doc at the new paths, and rebuild guest/prebuilt from them.
2026-11-08 05:15:44 -08:00
Anees Iqbal 331c53b27b 🐎 Map only the file-backed RAM ranges for the GPU
Bump vendor/qemu to the reims-graphics-pci change that gives the library the
map of the RAM ranges with a shared file and leaves out those without one.
On vmapple the main RAM is a shared memfd but the 1 MiB firmware and 64 KiB
config regions are not, so the device copied every IOSurface; now it maps
the main RAM in place and copies only a surface that falls in an unbacked
region, of which there are none, so every surface is used in place. A q35
guest whose RAM is all a shared memfd is unchanged.

Update docs/qemu.md and check-boot.sh to say the device maps the file-backed
ranges and copies a surface outside them, in place of the old all-or-nothing
rule.
2026-11-08 05:02:15 -08:00
Anees Iqbal 821b4755a1 🐛 Find an HEVC picture's output wherever AppleGVA's record keeps it
An HEVC decode names its output surface only in AppleGVA's own frame
record, and the driver read the surface's id at the frame's +0x88, where
macOS 26 keeps it. Every release measured describes the surface with the
same fields, its id, a size, its width, its height, a pitch, 8 bytes and its
pixel format, but where they start and how wide each is differ: macOS
26.7.2's are 8 bytes each from +0x88, 14.8.9's 8 bytes each from +0x80 and
13.7.8's 4 bytes each from +0x80. On 13 and 14 every HEVC picture went to
the host with no output and was refused: VideoToolbox answered -12911 for
each, the HEIC desktop picture stayed black on 13, 14's video wallpaper
logged "VideoPlayerLayer failed to create decoded pixel buffer", and our
decode tool decoded no HEVC frame (its H.264 frames, whose output comes on
the command, matched).

The driver now searches for the layout instead of listing the releases':
every start from +0x70 to +0xa0 in steps of 4, with fields of 4 or 8
bytes, where the id names a live surface whose width, height and pixel
format the description itself gives. The first picture of a session whose
frame describes its surface in exactly one layout shows the session's
layout, which the session keeps, so the search runs once a session. A
picture whose frame describes no surface, one in more than one layout, or
none in its session's layout, is refused before it reaches the host,
logging which.

What changes for the guest: on macOS 13 and 14 HEVC decodes, HEIC images
and the desktop picture and video wallpaper among them, land in their
surfaces instead of failing; on 26 the surface is the one it was.
2026-11-08 04:53:23 -08:00
Anees Iqbal e2ff908aed 🐛 Give a copy of another VM's disk a Mac of its own
A create that keeps the Mac of the image beside an existing disk would give a
copy of the disk of a VM reims-ctl has that VM's Mac: its serial number, MLB,
UUID and ROM, and its network card's address. The copy can run beside the VM,
and Apple's services know a Mac by those, so two VMs running as one Mac would
be one Mac to them. reims-ctl's network is QEMU's user mode alone, so the two
cards' one address clashes nowhere.

The create now gives such a copy a Mac of its own, as before, and says why;
its macOS opens Setup Assistant once, as on a new Mac. A disk given in place
keeps its Mac: the VM runs that VM's own macOS, and never beside it, since a
start on a disk another VM runs on is refused. A disk from a VM reims-ctl does
not have, whose image is beside it, keeps its Mac as before.

The lesson says what remains: a stop still powers off at its timeout while
Setup Assistant is up, since nothing the host sends without the guest's
password ends it.
2026-11-08 04:43:51 -08:00
Anees Iqbal e9e4712713 🐛 Keep the Mac an existing disk ran on in a VM made from it
A create given an existing disk of macOS and no OpenCore image made the VM an
image presenting a Mac of its own: a new serial number, MLB and UUID. The
disk's macOS then opened Setup Assistant at its first boot. While that is up,
macOS ignores Control-Option-Command-Power and the power button, so every
reims-ctl stop waited out its whole timeout and powered the VM off, which
risks the guest's disk.

A disk taken from another VM's directory sits beside the image it booted from,
as reims-ctl and reims-util leave them (opencore.qcow2, or opencore.img). The
create now reads the Mac that image presents and makes the VM's new image
present it too, with OVMF beside it. The VM's network card gets that Mac's ROM
unless a MAC is given, as a made image's ROM is its card's address. macOS then
sees no new Mac, opens no Setup Assistant and shuts down when asked. Where no
image sits beside the disk, the create makes a new Mac as before and says what
that does.

Measured with a macOS 26.7.2 disk on a Radeon 780M host. The create without
this change gave the VM UUID 95D24845, against the disk's own D507F3EA.
Setup Assistant (-MiniBuddyYes) was up, MiniBuddyLaunch was 1 for any host
and for the new host, and reims-ctl stop --timeout 180 powered the VM off at
181 s. With this change the VM presented D507F3EA and the disk's MAC, no Setup
Assistant came up, and the stop shut the guest down in 9 s. The disk's ByHost
preferences for D507F3EA hold MiniBuddyLaunch 0, and a new UUID has no ByHost
file, so loginwindow took the any-host 1 (docs/lessons.md).
2026-11-08 04:43:51 -08:00
Anees Iqbal 5a570abdad 📝 Say why a TCG guest's IOSurfaces stay copied on vmapple [ci skip]
8e2ff5bfa gave a TCG guest's RAM a shared memfd so the device would map it
for the library and the GPU would use an IOSurface's own pages. A boot of
27.0.1 with it on homelab-um870-1 shows the memfd behind the guest's RAM and
RAM at 4 GiB as before, but QEMU still warns that IOSurfaces are copied: the
device maps the guest's RAM only where every RAM range of the address space
has a file, and vmapple's firmware (1 MiB at 0x100000) and VMApple Config
(64 KiB at 0x400000) regions are memory_region_init_ram with none. No
command-line option reaches them, so ending the copies needs a change to the
device or to vmapple; the memfd stays, since either change needs it.

The script's comment and docs/qemu.md now say so, and the docs record the
three TCG boots of the module's bundle: the six checks HVF gives passed in
each, SSH at 101 to 115 s, peaks of 11.5 to 11.8 GiB.
2026-11-08 04:24:14 -08:00
Anees Iqbal 8e2ff5bfa1 🐎 Back a TCG guest's RAM with a shared memfd in check-boot.sh
Under TCG on a Linux member, check-boot.sh gave the guest plain RAM, so the
device found no file behind it, warned that IOSurfaces are copied for the GPU,
and would have run the Metal checks on copies of each surface instead of its
own pages, unlike reims-ctl's VMs on Linux. The script now gives the guest the
flags reims-ctl gives them, sized from its 8 GiB: memory-backend=ram and
dump-guest-core=off on the machine, and a shared memory-backend-memfd behind
it. Under HVF the RAM stays as it was.

docs/qemu.md's TCG subsection now says what the first runs on homelab-um870-1
settled: the node has every tool the script needs, the library and our QEMU
with the device build there, and a boot takes --ram 18.
2026-11-08 04:00:57 -08:00
Anees Iqbal a5988ff35e ✨ Answer the x86 Macs' feature profile, 10002, from macOS 13 on
What changes for the guest: the device's featureProfile is 10002 where it was
the host's, 10 on every host so far, wherever the guest's Metal has the
MTLArchitecture class (macOS 13 and later), on every host. Where it lacks the
class (macOS 11 and 12) the device still answers 10001. Both x86 Macs of the
oracle answer 10002 under macOS 26.7.1 (the Radeon Pro 5300M and the UHD 630),
and the guest's Metal keys its limits, families and feature queries on the
profile. 10 was the M3 Max's, kept only because macOS 26's WindowServer, under
10002, asks for tiled textures of 6 and 7 levels over a buffer, which the
device answered nil; the host makes those now (the two commits before), and
26.7.2 composes its desktop under 10002 with them.

The answer is made in one place, RgfxFeatureProfile.hpp, which no longer takes
the host's profile: the bundle stops reading it from the device info, whose
field the host still fills with its Metal device's or the M3 Max's.

The profile's unit test, which held the host's answer from macOS 13 on, holds
10002 there and 10001 below; the guest's kext set is built again with it.
2026-11-08 03:29:59 -08:00
Anees Iqbal 50982ff795 🆕 Make the bundle's tiled textures of more than one level
WindowServer on macOS 26 asks newTiledTextureWithDescriptor:offset:
bytesPerRow: for textures of 6 and 7 levels over a buffer under the x86 Macs'
feature profile. The AMD and the Intel GPU make them, level 0 over the
buffer's bytes; the bundle answered nil, logged once, as the host made only
one level. The host makes them now, so the bundle sends the descriptor's
levels in TEXTURE_FROM_BUFFER and answers the texture, logging the first of
each process with its levels, size, format, offset and pitch.

A CPU copy of such a texture's level 0 still goes through the buffer's bytes;
one of a level past 0, which only these textures have, goes through a blit,
as any texture's of the device's own memory, where it was refused before.

The public form keeps ending the process at more than one level, as Metal
does on all three Macs. The shell test that held the nil now holds the
message's levels and level 0's bytes. The oracle doc's Q11 says what the
stack does. The prebuilt set is rebuilt with make -C guest prebuilt (KDK
25G241): RgfxGate carries the new bundle.
2026-11-08 03:29:02 -08:00
Anees Iqbal e59230b2f0 📝 Tell the timeout(1) trap apart from the first sudo's wait [ci skip]
The lesson read as if the harness's sudo wait had been this same trap. The
original harness's wait was real and measured; only a copy of it ran
timeout(1) in the guest, and its failures were waived as that known fault.
2026-11-08 03:04:51 -08:00
Anees Iqbal 189aca633f 📝 Say macOS guests have no timeout(1) for a harness's commands [ci skip]
A boot harness bounded kmutil in the guest with timeout(1), which macOS lacks,
so every release's kext check failed as a timeout and was waived as a harness
fault for a day of boots. Record how it looks and how to bound a guest-side
command instead.
2026-11-08 03:04:29 -08:00
Anees Iqbal 370933b618 🎨 Inject the Graft set from macOS 14, where its matrix rows pass
On 11 to 13 the set would load where nothing of ours loads today, and those
releases are not ready: 12 crash-loops WindowServer on the display pipe's
completion layout, 13.7.8 draws a black wallpaper, and on 11 the host refuses
Metal libraries. OpenCore now injects Graft, ReimsGraphics and RgfxGate from
Darwin 23 on, so 11 to 13 boot plain, as they do today.

MIN_KERNEL in guest/tools/prebuilt.py is the one place that decides it, and
each older release joins in its own commit once its row passes. Graft itself
still checks no version.
2026-11-08 03:00:32 -08:00
Anees Iqbal f924cae539 🐛 Run git on the named checkout, whatever the environment says
A git hook and `git rebase -x` export GIT_DIR and its kin to what they run,
and `git -C` does not override them. reims-ctl's update and installer tests,
run under `git rebase -x` in a linked worktree, made their throwaway
repositories in the enclosing one: its shared config became core.bare=true
with the tests' identity, which stopped the main checkout and gave another
worktree's commit the tests' author. reims-ctl update itself ran git and
install-ctl.sh the same way. Each git and script reims-ctl runs on a checkout,
its tests' included, now drops those variables. docs/lessons.md says how to
check commits without it.
2026-11-08 02:58:39 -08:00
Anees Iqbal ca0170bd78 📝 Describe the guest set on Graft
AGENTS.md listed the loader and its shims in guest/prebuilt and said the set
needs a KDK; design.md's loading item described the loader's per-build tables
and what breaks them. Both now describe the set on Graft: its three kexts, the
vendored guest/graft and its record, how Graft binds ReimsGraphics by name and
declines it safely, and the set check. RgfxGate's six hooks are Graft routes,
and with no kernel range their prototypes are checked per matrix release.
2026-11-08 02:58:39 -08:00
Anees Iqbal 8b0acb7671 📝 Document our configuration's boot check and a TCG run's needs [ci skip]
docs/qemu.md now says how to build our configuration's bundle and check a
boot of it, what each check reads, what the first partial run on the M3 Max
showed (the early console, SSH, SIP and boot-args passing; the kext and Metal
checks failing as they must without kexts; KextsNotPlaced reported at once),
what a pass still needs, and what a TCG run on a Linux member needs: the node
holding the guests, its GPU, the library and our QEMU built there with the
device, the copies from the Mac, and RAM. README.md and architecture.md 11.5
list the new target and files.
2026-11-08 02:56:41 -08:00
Anees Iqbal fb6ba18ba7 📝 Say the window opens at a guest pixel per host point [ci skip]
docs/qemu.md said a guest point per host point; the window code
(geometry::initial_content_size) opens it at one guest pixel per host point,
as reims_vgpu.h's mode_width now says.
2026-11-08 02:09:27 -08:00
Anees Iqbal afbbf7b996 🐛 Link the C API's dylib as @rpath/libreims_vgpu_c.dylib on macOS
Without an -install_name the linker names the cdylib by its output path, an
absolute path in the target directory, and a host linked to it records that
path and loads it whatever its own rpaths. kache restores a cached link with
the bytes first linked, so the C harness of a new worktree linked to a dylib
naming the worktree it was first linked in, and c_harness_passes failed on a
Mac once that worktree was removed.

A build script now gives the cdylib the install name
@rpath/libreims_vgpu_c.dylib on macOS, which the harness, linked with an rpath
to the library's directory, finds wherever the build ran. the_dylib_is_found_by_rpath
holds the install name and the harness's link. cargo xtask dist still renames
the dylib it installs to @rpath/libreims_vgpu.dylib, and QEMU links the archive.
2026-11-08 02:08:46 -08:00
Anees Iqbal 98a1295d81 📝 Record that @available imports fopen in the bundle [ci skip]
The guest bundle must import none of open(2)'s family: every Metal process
loads it, sandboxed ones included, where a file write outside the process's
own paths is refused and logged (guest/bundle/tests/bundle_files_check.sh).
@available lowers to __isPlatformVersionAtLeast, which links compiler-rt's
os_version_check fallback that reads SystemVersion.plist through fopen, so a
guard written with @available fails that check. The trap, and the presence
check that replaces @available, go in lessons.md next to the LTO one on the
same symbol.
2026-11-08 01:57:20 -08:00
Anees Iqbal d507d7f650 🐛 Answer a feature profile macOS 12's Metal has limits for
macOS 12's Metal keys every limit of a device on its feature profile and has
none for the M3 Max's 10, which the device answered on every guest: it left
the limits 0 and ended WindowServer at device creation, so 12.x guests never
reached a desktop (launchd gave up after 14 runs).

The device now answers the host's profile only where the guest's Metal knows
it, told by what that Metal has: the MTLArchitecture class, which macOS 13
and later have (13.7.8, 14.8.9 and 26.7.2 boot with 10). Elsewhere (macOS 11
and 12) it answers 10001, as 12's drivers for the 5300M and the UHD 630 do.
26 keeps 10 rather than the x86 Macs' 10002: under 10002 its WindowServer
still asks for a mipmapped tiled texture over a buffer, which the device
refuses (dgpu-oracle.md, Q11, rechecked).

What changes for the guest: featureProfile on macOS 11 and 12 is 10001; on
13 to 26 it is unchanged.
2026-11-08 01:57:20 -08:00
Anees Iqbal 5a4418c894 📝 Say that core is the Vulkan crate's module [ci skip]
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.
2026-11-08 01:55:07 -08:00
Anees Iqbal fd591f5039 🎨 Fold reims-vgpu-core into reims-vgpu-vulkan as its core module
The Vulkan crate is the library's only platform since the Metal platform
went, and every crate that links core links the Vulkan crate too, so core
needs no crate of its own. Its files move unchanged under
reims_vgpu_vulkan::core (crate::core in the Vulkan crate), the module the
video crate's layout already uses; its #[macro_export] macros stay at the
crate's root, so reims_vgpu_core::metal_check! is reims_vgpu_vulkan's now.
core's lint set is the module's inner attributes, as it was the crate's.
Nothing the guest or the host observes changes, and reims_vgpu.h is the
same. Core's log lines name reims_vgpu_vulkan::core:: as their target in
place of reims_vgpu_core::, so reims-ctl's example filter says so.

The testkit feature is the Vulkan crate's, reims-vgpu-vulkan/testkit, and
the crate's integration tests turn it on through a dev-dependency on the
crate itself, as core's dependents turned core's on. core's tests keep
their paths below core:: in the Vulkan crate's unit tests, and cargo xtask
check's x86_64-apple-darwin leg runs those alone: -p reims-vgpu-vulkan
--lib -E 'test(/^core::/)'. The tests that run themselves again in a child
name themselves below core:: too (a child given a name that matches no
test runs nothing and passes), and the memory map's tests take the lines
of the targets below reims_vgpu_vulkan::core::memory.

The macOS test that declares _exit now declares it safe, as the testkit
does: rustc's clashing_extern_declarations compares the declarations
within one crate.
2026-11-08 01:55:07 -08:00
Anees Iqbal 249d87da0c 📝 Record that a kext rebuild's bytes depend on locale and date [ci skip]
The crate rename's lane found that guest/prebuilt rebuilt from unchanged sources
differs from the committed set unless the build runs with LC_ALL=C (the bundle
links src/*.mm in shell sort order) and SOURCE_DATE_EPOCH at the committed
kexts' date (Lilu's plugin_start writes the build date). lessons.md now says how
to show a change leaves the kexts byte-identical.
2026-11-08 01:39:17 -08:00
Anees Iqbal 6fb33ecd27 🎨 Rename the reims-graphics crate to reims-vgpu-graphics
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.
2026-11-08 01:37:50 -08:00
Anees Iqbal 2d81f67e1e 📝 Move vendor/qemu to vmapple's corrected comments and guide
vendor/qemu's two new commits change no code. One gives hw/vmapple/cfg.c's
VMAppleCfg the real offsets of its fields after cpu_ids (scratch at 0x300,
serial at 0x500 through soc_name at 0x584, checked with offsetof); the other
drops the DoNotUseSEP step from vmapple.rst, which Ambrosia no longer takes,
since APFS mounts its unencrypted data volume without it on every tested build.
Comments and docs only, in hw/vmapple, which only an aarch64-softmmu build
compiles.
2026-11-08 01:32:56 -08:00
Anees Iqbal d48b1fe76e 🎨 Copy a laid-out device cache's texels alone into its pages
What changes for the guest: a device cache made for a surface the host answered
RGFX_STATUS_CACHE with its layout (on a host whose GPU shares the CPU's memory)
is copied into the surface's pages, at a download, a release or an early copy,
plane by plane and row by row: each row's texel bytes alone. The bytes between
rows and outside the planes stay as the guest's CPU wrote them. Before, every
byte of the surface was copied, so a CPU write between rows made while the GPU
held the cache was overwritten by the cache's copy of those bytes. A fill still
copies every byte in, and caches with no layout (a GPU of its own memory) are
copied whole as before.

Nothing on the GPU writes those bytes: no texture's texel lies there, and the
device makes no buffer over an IOSurface. With them left to the CPU, a render
over a cache whose rows hold bytes between them can lie in place where only
those bytes would be rewritten, which metal2vulkan is asked for. Today the
runtime shadows such a texture. On the 780M, WindowServer's 3662x2038 surface
at 14848-byte rows is cached because its pages are more than one dma-buf, and
its shadow copies about 1 G texels a second out of the cache during a window
drag.

The ask's layout reaches the cache through the views (SurfaceViews::laid_out,
taken by the block's cached SURFACE_PAGES). New tests: a download of a laid-out
cache leaves the bytes between rows and past the last row as the CPU wrote them
whatever the cache holds there, and the spans and run cuts the copies use.
2026-11-08 01:02:13 -08:00
Anees Iqbal 5be90e8d78 🆕 Align IOSurface rows to the host GPU's linear row alignment
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.
2026-11-08 01:02:13 -08:00
Anees Iqbal d51c49a56b 🎨 Keep device caches on shared memory for the surfaces that need one
What changes for the guest: a host whose GPU shares the CPU's memory now
offers SURFACE_CACHE_REFUSED with SURFACE_PAGES. The kext then asks at each new
cacheable block in place, and a surface whose pages the host's GPU cannot hold
a texture over in place (Intel's rows that end inside a line, RADV's pages of
more than one dma-buf) gets an IOSurface device cache, filled from its pages
and copied back at CPU locks: the copies IOSurface's own protocol makes on a
Mac with a discrete GPU. Every other surface stays in place, and a host whose
GPU has memory of its own is unchanged.

What it removes: the runtime's shadows of such surfaces, which every command
buffer copied in before its first use and merged back after a write.

The test of the features a memory map gives now expects bit 29 on a 4 KiB
page, and the design says how the choice is made.

Measured on cold boots of macOS 26.7.2 (a local page in Safari, a Finder window
dragged for 36 s, TextEdit resized to an odd width and typed in), against the
tree before: a window drag draws 36 frames a second on the Radeon 780M against
13.4, its 22 caches all surfaces whose pages are more than one dma-buf (the
desktop's and windows' of 4 to 66 MiB), and 36 against 16.5 on the Iris Xe,
whose 428 caches are surfaces whose rows end inside a line. Every ask had the
device's verdict; none was answered while it was pending.
2026-11-08 01:02:13 -08:00
Anees Iqbal debf26e116 ⬆️ Build on metal2vulkan 0e420a1834's runtime
Pin move 20: metal2vulkan development eac9da30c7..0e420a1834 (94 commits),
RUNTIME_VERSION 1866, SEMANTICS_VERSION 1992.
What changes for the guest and the host:
- The in-place check gives its verdicts apart for texels that share a line of
  the device's memory (nonCoherentAtomSize) with bytes beside them and for
  texels that share none: on the Iris Xe a texture over the guest's pages that
  renders or is written goes in place where its rows start and end on a line,
  a 3840x2160 BGRA8Unorm surface's among them (it was a shadow). The accuracy
  ledger's in-place row says what the default takes now.
- The Iris Xe's private self-reads cost 1.70 ms a frame (12.8 before), by
  metal2vulkan's measure; a usage shadow no longer names a destroyed VkImage
  after a storage-form swap (a crash); heap sets copy their arrays and are
  made outside the heaps lock; a moved shadow's image is freed once its move
  completes; rebound draws cut more per draw; a new Shared or Managed texture
  starts in memory the driver zeroed where the device can.
- A lost VkDevice is recovered, as Metal's device survives its GPU's
  recovery: the command buffers in flight fail as the hang (GpuHang) and its
  victims (GpuRecoveryVictim), which core already reports as Metal's, and
  each recovery is announced (device-recovered, a performance kind the
  placement test relays by its statement). An object made before the
  recovery is refused (MadeBeforeRecovery): a creator that meets one answers
  nil, any other call dies at its selector, where the run died at the first
  call after the loss before. Nothing makes the guest's objects again on the
  new VkDevice: the accuracy ledger lists it among our gaps.
- minimumLinearTextureAlignmentForPixelFormat: moved from DeviceProperties to
  Device, which answers the alignment its images hold a texture over a buffer
  in place at (256 for most formats on RADV, 128 on the RTX 5080, 64 on
  lavapipe, 16 on ANV and MoltenVK). The guest's frameworks lay out linear
  textures and texture buffers by it, and an answer stays as it was until the
  guests boot with the new one, so this platform answers Metal's 16 there as
  a stand-in (caps' table), the runtime's refusals of the other formats kept.
  The private linear alignments are the device's now; the graphics lane
  answers the guest at least 256, which every measured device's answer
  leaves as it was. The private-properties test holds those two at least
  Metal's 16, where it held every count at most Metal's.
- A pool reservation's device (AddressPool::device) is now the handle of the
  generation it was made on, whose properties are a copy at another address:
  the space names a reservation by the properties of the platform's handle it
  was made through, so a second small buffer of a pool takes the live
  reservation, where it reserved the pool again and died (PlacementConflict
  Held) in 45 tests on the Radeon 780M and the Iris Xe.
Checks: over development ae6f0ec65, linux-fast (fmt, header, the prebuilt
records, clippy with both feature sets, the workspace's test build); over
7638d2ea0, Mac header, fmt and clippy (plain and all features),
and the Radeon 780M's linux-fast and Vulkan crate and reims-vgpu tests
(980/980); over 8fff0c960, the MoltenVK tests (1243/1243) and the RTX 5080's
(978 passed; the one that died at exit in the driver's SPIR-V compiler and the
one that hung pass alone, 3 of 3 each); over a0dc2e80f, the Iris Xe's
(977/977).
2026-11-08 00:59:58 -08:00
Anees Iqbal 2c88544508 📝 Say why vmapple's SME default skips HVF's CPU
vendor/qemu's new commit corrects the comment on the vmapple SME default: HVF's
max CPU does have an sme property, but adds it only as its vCPU starts, after
the machine's global defaults apply, so the optional default skips it and HVF's
CPU keeps what the host gives (an M4's SME included). Behaviour is unchanged;
docs/qemu.md's carries row said the same wrong reason and is corrected with it.
Comment only, in hw/vmapple, which only an aarch64-softmmu build compiles.
2026-11-08 00:56:48 -08:00
Anees Iqbal 39768aeff8 ⬆️ Move vendor/qemu to vmapple without SME under TCG
vendor/qemu's new commit gives the vmapple machine's max CPU no SME by default
under TCG. TCG offers streaming vectors of up to 2048 bits, and a macOS 14.6.1
kernel sizes each thread's SME state zone from the longest (74328 bytes) and
panics as it starts with "zone_create: element size too large". The default
is optional, since HVF's max CPU has no sme property, and -cpu max,sme=on turns
it back on. With it, 14.6.1 boots under TCG (SSH at 62 s, SIP on, no boot-args)
and under HVF on the M3 (7 s); 15.6.1, 26.6.2 and 27.0.1 boot either way.

Only hw/vmapple and its doc change, which only an aarch64-softmmu build
compiles: make qemu and install-ctl.sh build x86_64-softmmu alone, so the
x86-64 build and its paused realize are skipped as unreachable.
2026-11-08 00:55:18 -08:00
Anees Iqbal ae6f0ec656 📝 Say how the Ambrosia module is built and boots [ci skip]
The module is a new piece of the repository, so the layout, the
architecture and the checks a change to it needs name it: architecture
11.5 says what it does and how it is linked, and AGENTS.md gives a change
to it a build and an arm64 guest's boot on Ambrosia.

docs/qemu.md says how a qemu-system-aarch64 with the device is configured,
which make qemu does not build, how a guest boots with the module, and what
the boots measured on the M3 Max: the console on the device, SSH with SIP
enabled and no boot arguments, the BARs where the module put them, and the
HVF assertion that the device's scanout dirty log, before 7aee20f4, hits.
2026-11-08 00:28:39 -08:00
Anees Iqbal 7638d2ea0e 🐎 Offer the guest modes a multiple of 16 pixels wide
The owner's ruling of 2026-11-07: remove the cause of the desktop's copy, so
there is no copy at all. On Intel's Vulkan driver (ANV) a render pass writes
back whole 64-byte lines, so a guest surface over the guest's RAM is drawn in
place only where each row starts and ends on a line. The guest's desktop
surfaces are its mode's width in BGRA8: the 3662-pixel desktop of a window
3662 pixels wide ends each 14648-byte row 56 bytes into a line, and stayed a
copy of the guest's pages, 2.54 ms of GPU time a plain frame and 3.94 ms a
frame that reads its own pixels on homelab-ms01's Iris Xe (measured by
metal2vulkan's lane). Padding the row's bytes alone cannot help: its last line
still holds bytes past its last pixel.

What the guest sees: the one mode the reims-graphics display offers, the
window's size in pixels, now has its width rounded down to a multiple of 16
(64 bytes) and its height to even, where it was rounded to even each way
(geometry::offered_mode); HiDPI modes still halve exactly. The device, the
option ROM and the kext take their modes from it, so they agree.

What the host sees (features.md, changed on purpose):
- a window of other pixels shows the mode unscaled at its top left beside up
  to 15 columns and a row of black, where it was at most one of each;
- a new window opens on whole pixels a multiple of 16 wide and even high
  (AppKit's sizing and SDL's first size), so it shows no black;
- AppKit's windowed window resizes in steps of 16 by 2 pixels (its content
  resize increments at the scale of the screen it opened on). SDL takes no
  increments, so on Linux a resized window can show the black columns.

The tests that held the even rounding change with it:
geometry::a_drawable_offers_a_mode_a_multiple_of_16_wide_drawn_unscaled,
sdl::units::a_window_opens_a_multiple_of_16_pixels_wide_at_fractional_scales,
and the macOS shell's sizing tests, with a new guard for the increments.
2026-11-08 00:03:13 -08:00
Anees Iqbal 61b1aac9ec 🎨 Make the window's FrameSink one trait
macOS's FrameSink and Linux's were two copies of one trait since the drawable
path went: a presenter over the window's Vulkan surface, and the guest's cursor
position. It is now one, in present.rs beside the Presenter it makes, and each
OS's render thread asks it the same way. The window crate's public FrameSink
is that one, so reims-vgpu's sink is unchanged.

Nothing changes for the guest or the host.
2026-11-07 23:59:51 -08:00
Anees Iqbal abceb0a528 ⬆️ Move vendor/qemu to vmapple's guest clock for Ambrosia
vendor/qemu's new commit gives the vmapple machine Virtualization.framework's
second clock, avp-rtc: a 64-bit microsecond count from the Unix epoch at
0x30240000 that follows -rtc, beside the PL031. macOS 14 and later keep their
RTC offset in it; without it each boot logged "RTC reset likely" and stepped
the clock back to the disk's last write until a time server answered. On
Ambrosia under HVF, 14.6.1, 15.6.1, 26.6.2 and 27.0.1 kept calendar time
within 0.3 s of the host; 12.6 and 13.6, which have no driver for it, boot
as before.

Only hw/vmapple and its header change, which only an aarch64-softmmu build
compiles: make qemu and install-ctl.sh build x86_64-softmmu alone, so the
x86-64 build and its paused realize are skipped as unreachable.
2026-11-07 23:58:59 -08:00
Anees Iqbal 5c61412d0a 🔥 Delete core's unused containers, StagedMutex and ProcessOnce
BucketOrderMap (the task table), ListOrderMap (the resource caches), FirstFitVa
(the root task's address space), StagedMutex and ProcessOnce served the
paravirt device's tasks, and nothing in the workspace uses them since it went:
a grep finds no user outside their own files, and the workspace builds and
lints without them. They go with their tests. LookupMap and KeyHasher stay:
the display's pipeline cache and the decoder's tables use them.

Nothing changes for the guest or the host.
2026-11-07 23:52:11 -08:00
Anees Iqbal baf2f76a8b 🔥 Name core's threads and the walk hints without the FIFO
The paravirt device's FIFO thread went with it, but its name stayed in core's
docs and tests, in the scheduling hint (give_fifo_hints, hint_fifo_thread) and
in the Linux platform's Threads, whose spawn still gave every named thread the
FIFO thread's utilization floor unless it was made without_hints. Every
product thread that spawn starts now is a display window's, made
without_hints, so that hinted path ran for nothing but its tests.

- The hint is give_walk_hints / hint_walk_thread: the thread that takes it is a
  lane's walk thread, as before.
- LinuxThreads::spawn drops inherited hints always; without_hints is gone and
  the window threads use LinuxThreads::new(). No product thread changes.
- Docs and test labels name named threads, walk threads and test queues
  instead of the FIFO; the log filter tests use a graphics target.
2026-11-07 23:52:00 -08:00
Anees Iqbal f2d65f5e3b 🔥 Delete the window's drawable path
On macOS a FrameSink could draw into each drawable the render thread took of
the layer (`draw`, with `device` and `render_target_only` to set the layer up),
or present through a presenter of its own (`presents`, `presenter`). Only the
Metal platform's sink drew into drawables, and it is gone: the one sink left,
the Vulkan platform's, presents through its swapchain, answering no device, a
draw that drew nothing, and drawables that take transfers. So macOS's FrameSink
is now Linux's, `presenter` and `guest_cursor_position`; the render thread
always draws through the presenter; and the layer is set up as it was for that
sink: no device (the swapchain sets it), not framebuffer-only. The sink's two
per-OS impls become one, and reims-vgpu no longer links objc2-quartz-core, its
objc2 and objc2-metal only in its macOS tests.

Nothing changes for the guest or the host. The view's layer test now checks
the one setup there is (`a_layer_is_bgra8_opaque_and_takes_transfers`); a
window whose display ended before it opened, which draws nothing, no longer
sets its layer framebuffer-only. features.md keeps every entry and guard.
2026-11-07 23:42:06 -08:00
Anees Iqbal 8fff0c9606 📝 Drop the rule that core changes as little as it can [ci skip]
The rule kept reims-vgpu-core still for the Metal product, which is deleted.
With the Vulkan platform the library's only one, core changes as the work
needs, under the same checks as the rest; the owner dropped the rule.
2026-11-07 23:23:40 -08:00
Anees Iqbal acd9919a93 📝 Say the library runs on the Vulkan platform alone [ci skip]
The Metal platform is gone (the commit before): AGENTS.md, README.md and the
docs now say the library carries out the guest's calls on the Vulkan
platform, on Linux and on a Mac over MoltenVK for development and tests;
that the display's shaders live in the Vulkan crate; that `cargo xtask
dist` writes target/dist-vulkan on every OS; and that the tests of the
Vulkan platform compare with Metal's recorded answers. architecture.md's
section 4.6 describes the answer layer and the macOS message layer in
place of the metal crate's. conventions.md keeps "core changes as little as
the Vulkan and Linux work allows" without its reason, the Metal product.
2026-11-07 23:22:28 -08:00
Anees Iqbal a0dc2e80ff 🔥 Draw the scanout at each refresh, without the host's dirty log
The display showed the guest's scanout again at a refresh only where the
host's dirty log said the guest wrote it (scanout_written, QEMU's log over
BAR 2's allocations). The scanout shows only at boot and in recovery, and
the owner takes its full cost for the simplicity (2026-11-07): the
callback, RvgGraphicsScanoutWrittenFn and RvgGraphicsCallbacks'
scanout_written, are gone from the C API, with reims-vgpu's
ScanoutWrittenFn and reims-graphics' Host::scanout_written.

Each refresh while the guest has a scanout now asks the screen to show it
again (Screen::present). The window draws it only while it shows the
scanout: while a presented surface shows, a refresh draws nothing, and the
guest's presents alone draw, as before, so an accelerated desktop's
refreshes cost no frame (a 4K window at 120 Hz would otherwise copy about
4 GB/s for nothing).

For the host: RvgGraphicsCallbacks loses its scanout_written field, so the
cursor callbacks after it move up one pointer; QEMU's reims-graphics-pci
no longer sets it (the commit before). For the guest: the boot and
recovery screens show what the guest wrote by the next refresh, as before.

Window::frames_asked counts the frames a window is asked for, which the
new tests read: a refresh draws the scanout while no surface shows, and
nothing while one does.
2026-11-07 22:15:20 -08:00
Anees Iqbal 2925e0dd1d 🔥 Move QEMU to its tree without the scanout's dirty log
vendor/qemu's 7aee20f4 makes reims-graphics-pci's BAR 2 one RAM region over
the library's mapping, with no dirty logging, in place of the rings and the
allocations split only so that the log covered the allocations, and drops
the scanout_written callback, which took the BQL to snapshot and clear that
log. The library without that callback already draws the scanout again at
every refresh; the next commit removes the callback from the C API, and
draws only while the window shows no presented surface.

The scanout shows only at boot and in recovery: the owner takes its full
cost for the simpler device (2026-11-07).
2026-11-07 22:15:20 -08:00
Anees Iqbal a851db6a77 ⬆️ Move vendor/qemu to vmapple for Ambrosia
vendor/qemu's six new commits bring QEMU's vmapple machine back without the
Apple paravirtualized GPU it lost with apple-gfx, for Ambrosia, our own arm64
firmware: the machine has no display, leaves kernel entry to its firmware,
puts RAM at 4 GiB with a PCIe window below it for 1 GiB BARs, runs under TCG
as well as HVF, ignores the guest's DMA config doorbell write that panicked a
macOS 27.0.1 kernel under TCG, and offers virtio-net without its control
queue, whose first completion one macOS boot in four to six missed.

All of it is in the aarch64 machine. make qemu and install-ctl.sh build only
x86_64-softmmu, whose binary and config-devices.h are byte-identical to
eb36a099's build (Ambrosia's check), so nothing changes for x86-64 guests or
reims-ctl. vmapple and q35 with reims-graphics-pci realize paused on the tip,
and 27.0.1 guests boot on Ambrosia under HVF and TCG. docs/qemu.md lists the
commits and says vmapple builds again.
2026-11-07 22:14:16 -08:00
Anees Iqbal 45b8db55de 🆕 Name the GL renderer in the accelerator's personality
OpenGL finds a GPU's renderer by the accelerator's IOGLBundleName, and the
accelerator named none, so OpenGL apps found no accelerated renderer and
fell back to software. The personality now names
AppleMetalOpenGLRenderer, the system's GL over Metal, which runs on the
bundle's device. With the kext's GL drawables, window-backed and
layer-backed views draw on screen (gl_window on a macOS 26.6.1 guest, RTX
5080 host: legacy and 4.1 core contexts, and a resize mid-run). OpenCL
lists a GPU by the same key, so the GPU becomes an OpenCL device too.
2026-11-07 21:36:20 -08:00
Anees Iqbal f3b120ad16 🎨 Collapse the video crates into reims-vgpu-video
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.
2026-11-07 21:32:05 -08:00
Anees Iqbal 8c0895c403 📝 Describe the graphics device's encode [ci skip]
devices.md and backends.md described decode alone. They now say what an
encode entry answers (its rate controls and B pictures, and a zero layout,
since both arms read every source by a copy), what an encode op does from its
check to its result and event, how each arm encodes, and the host encode
session's traits and thread. The guest's video driver sends no encode op yet.
2026-11-07 21:32:05 -08:00