An arm64 macOS 27.0.1 guest's boot on the M3 (m3-max-80121) decoded seven H.264 and HEVC streams to ffmpeg's MD5s on the arm and played and recorded a movie of each codec with no bad frame, so formats.md's H.264 and HEVC Main and Main 10 cells name it, and D29 gives its count of GPU-copied pictures and KiB. formats.md also names the arm's caps_of among the arms' caps.
76 KiB
Bugs and deferred work
Everything known to be wrong, untested or put off in the reims-graphics device's video on the host, so it can be picked up later without being rediscovered.
Each entry says:
- what is wrong;
- the evidence: a run, a test or a source line, tagged measured or read as testing.md, "Tags", says;
- why it waits;
- what would fix it;
- who has it, where anyone does.
Keeping it current:
- An entry is added in the commit that defers the work.
- It is deleted in the commit that fixes it. An ID is not used again, since other docs and the code cite entries by it.
Open bugs
B14. A guest's video sessions have no VRAM budget
- What: each decode session holds surfaces at its stream's coded size, as many as its pictures use at once (on VA-API its DPB's references, the picture it decodes and those not landed yet; on NVDEC its DPB plus a few), and the host bounds neither how many sessions a guest opens nor the bytes their surfaces take: about 480 MB for one 4096x4096 H.264 session with 16 reference frames, so a few sessions of large streams can take a shared GPU's memory.
- Evidence: read: the VA-API decoders' pools (
crates/reims-vgpu-video/src/vaapi/va/surface.rs) make a surface at the SPS's size for each picture decoded into one of their own while none is free, up to 48. Measured on an RTX 5080 Laptop GPU (16,303 MiB, driver 615.71.09), 2026-10-24: one decoder of a 7680x4320 HEVC Main 10 stream held 1,020 MiB of VRAM, with the DPB its SPS asks for; one process with one held 1,216 MiB, with two 2,236 MiB. NVDEC's surfaces are the DPB plus 3 at the stream's size. - Why it waits: the host puts no limit of its own on how much of its hardware one VM holds, as a native GPU's driver puts none on its apps.
- Fix, if that changes: a budget of surface bytes per process's sessions, or a bound on its sessions.
B26. Some guest command buffers ran for seconds on an RTX 5080 Laptop GPU, over guest memory
- What: in boots of an x86_64 guest on an RTX 5080 Laptop GPU, a few of the guest's command buffers ran on the GPU for seconds, and the command buffers committed behind them waited: a VideoToolbox pixel transfer kernel, one dispatch, 2.4 to 2.7 s, and, in the boots where mediaanalysisd ran its analysis, one command buffer of 452 dispatches 2.4 to 3.0 s and one of 794 dispatches 23.1 to 29.2 s. 31 boots on a Radeon 780M showed none.
- Evidence: measured, driver 615.71.09, 2026-10-25 and 26. The seconds were metal2vulkan's runtime's stores into the guest's pages, in shapes that leave gaps, which the RTX 5080 Laptop GPU stores into host memory hundreds of times slower than the same bytes without them: 609 ms per 8 MiB with an invocation's four words consecutive, 0.85 ms with them a workgroup apart. At metal2vulkan 27935d575e, which lays the stores so, the three took 9 to 10 ms, 309 to 359 ms and 565 to 591 ms, as the two Radeon GPUs take them (0.23 to 0.69 s). Not measured since on the reims-graphics device.
- Device copies, tried and dropped (2026-10-25): the guest resources those command buffers use, copied into the GPU's own memory and back. In the first boot with them, the guest's WindowServer aborted 26 s after it started, on a corrupted malloc free list, and the session never logged in (measured): the guest reaches those pages itself. Guest memory stays in place (conventions.md).
- Why it waits: what is left is metal2vulkan's: a vector stored through a pointer as one store where the pointer's type's alignment holds, and a command queue that does not wait behind another queue's long command buffer, as Metal's does not. It is not the video code's, and is here for B37.
B37. NVDEC fails valid decodes in every process while one of our VMs boots on its GPU
- What: while a VM boots through reims-vgpu on an RTX 5080 Laptop GPU, NVDEC reports valid pictures' decodes failed (
cuvidDecodeStatus_Error, status 8) in other processes, and gives other pictures wrong with no failed status, H.264's and HEVC's alike; every picture predicted from such a picture is wrong too. - Evidence: measured on that GPU (driver 615.71.09), 2026-10-24 and 25, with workers decoding through the
nvidiamodule beside boots of a VM:- beside the boots, 8 to 12 of 432 runs failed, in bursts that fell in the seconds a guest command buffer of 200 ms or more was in flight (B26); with no VM of ours on the GPU, 4,968 runs passed, and none failed;
- NVDEC's own status, read by
cuvidGetDecodeStatus(check_status,crates/reims-vgpu-video/src/nvidia/nvdec/decoder.rs), failed the runs; the kernel logged no Xid; - most wrong pictures came with no failed status, and a picture's two copies never differed, so the samples are wrong in NVDEC's surface; a failed picture decoded again at once answered status 2 and stayed wrong, so the crate makes no retry;
- a load that does it without a guest: 16 workgroups of 64 invocations adding to one 32-bit word with
atomicAdd, in host memory imported withVK_EXT_external_memory_host(U21). The same atomics in device-local memory, spread over words, or in one workgroup failed none. Whether the guest's own work contends on atomics in its memory is not known. - Not seen beside a boot at metal2vulkan 6c9cad047a (2026-10-26): 432 of 432 runs passed in two boots.
- Not ours to change. The load is a guest's own work on its own memory, which the Vulkan platform keeps in place, in host memory (conventions.md). Moving that memory to the device to avoid this would copy guest memory.
- Why it waits: NVIDIA's driver: U21. A failed picture fails its decode's command buffer (devices.md, "A decode").
- Fix: NVIDIA's. Once a driver fixes U21, run the workers beside a boot again.
B61. The first decode after an RX 7900 XTX has idled 5 s takes 0.88 s
- What: on an RX 7900 XTX, a decode that comes after 5 s or more with none took 880 to 890 ms on the host, where the same decode a second later took 1 to 5 ms. It is the slowest frame measured on any of the hosts' GPUs, and what sets the crates' bound on a frame's waits,
DEVICE_WAIT, 5 s (core.md, "Bounded waits"). - Evidence: measured, 2026-10-24. In an x86_64 guest, a guest's first H.264 frame took 0.88 s. The RX 7900 XTX's PCI device has runtime power management on,
power/controlautowithautosuspend_delay_ms5000, so the GPU sleeps 5 s after its last use; the Radeon 780M beside it has iton. A process's decode started 7 s after the last, withruntime_statussuspended, took 915 and 918 ms in all; at once after,active, 34 and 37 ms; the decode itself 1.6 to 2.8 ms in all four. So the wake is the cost; thatpower/controlonremoves it is not measured. - Why it waits: every frame fits within the bound, and the fix is a setting of the host's.
- Fix: keep the GPU awake while a VM uses it:
power/controlonfor the render node's device while QEMU runs, a host setting; or a cheap GPU call every few seconds while a session is open, at some power.
B78. On a driver other than radeonsi, a VA-API call measured not to wait can hold its caller's thread
- What: the
vaapimodule's driver calls that wait for the GPU inside radeonsi (vaGetImage,vaMapBufferof a derived image,vaSyncSurfacewhere a driver has novaSyncSurface2, and a decoder's firstvaEndPicture) are made on the display's call thread by the frame's deadline, and every other call waits for them by its own (vaapi.md, "The display's calls"). The rest are made on the caller's thread with no bound of their own: the submissions (vaBeginPicture,vaRenderPicture, andvaEndPicturebut a decoder's first),vaPutImage,vaDeriveImage, the map of an imagevaCreateImagemade, exports, creates and destroys. A driver whose call among them waits for a GPU that never finishes holds the caller's thread there, a decoding thread of the graphics device's session. Themappedway back, for comparison only, waits inDMA_BUF_IOCTL_SYNCwith no bound. - Evidence: measured on radeonsi (Mesa 26.2.4, libva 2.24.1, an RX 7900 XTX and a Radeon 780M, 2026-10-26), each call timed with the graphics ring or 16 compute queues held by a spin of the tests' own (
crates/reims-vgpu-video/src/vaapi/va/spin.rs): none of those calls waited, and each that did is bounded now, its frame failing by its deadline while the GPU was still held (src/va/wait/held.rs). A decoder's firstvaEndPicturewas not timed so then: it waits for the job that begins the decoder's session (U24), which after an unmap waits for the held ring (B92), and is bounded so too now. iHD and the other drivers the arm opens on were not timed so. - Why it waits: no run has shown such a call waiting.
- Fix: time each call so, with a ring held, on the driver that shows one, and make that call through
Display::wait_call(crates/reims-vgpu-video/src/vaapi/va/display.rs).
B92. After memory of the process's GPU is freed, its next VA-API work waits for every job then on the GPU
- What: a surface or buffer destroyed unmaps its memory from the process's GPU VM, and amdgpu has every later submission of the VM, on any ring, wait for every job the VM had in flight at the unmap (U23). RADV's jobs in the process are of that VM, a guest's command buffers among them, so a VA-API frame submitted after an unmap waits for the work the GPU had then, and fails by its deadline as stalled where that work runs past it. Every unmap of the process, another session's or metal2vulkan's runtime's, has the next VA-API work wait.
- A new decoder's first picture waits on the CPU. radeonsi submits the job that begins a decoder's session in the decoder's first
vaEndPicture, and waits there for it, with the display's lock held (U24). After an unmap that job waits for every job then on the GPU, and the call waits as long. The crate makes a decoder's firstvaEndPictureon the display's call thread, by the frame's deadline (render_decode,crates/reims-vgpu-video/src/vaapi/va/buffer.rs), so past it the frame fails as stalled, and the display's other calls wait behind it for the gate, each by its own deadline.
- A new decoder's first picture waits on the CPU. radeonsi submits the job that begins a decoder's session in the decoder's first
- Evidence: measured on the RX 7900 XTX and the Radeon 780M (Linux 7.2.9, Mesa 26.2.4, 2026-10-26), with the graphics ring held by a spin of the tests' own (
crates/reims-vgpu-video/src/vaapi/va/spin.rs) and the GPU scheduler's tracepoints of a job's dependencies (gpu_scheduler:drm_sched_job_add_dep,drm_sched_job_unschedulable):- destroying a 256x256 host surface the GPU was done with queued a page-table update on an SDMA ring that depended on the spin's job; the next decode's job depended on that update and ran only once the spin ended, 59 and 60 ms on, and the decode failed by its deadline. With nothing destroyed, each decode ran beside the spin. The spin's jobs and radeonsi's were of one DRM client.
- A macOS guest booting on the Radeon 780M unmapped 36 and 586 buffers in traces of 3.5 and 4.1 s, 21 and 515 of them on metal2vulkan's threads; in boots at metal2vulkan 6c9cad047a the process made 9,984
vkFreeMemorycalls on the Radeon 780M and 9,778 on the RX 7900 XTX, about four in five of them dma-buf chunks no longer live, outside the runtime's own allocator. - A program on libva alone (U24): a new 128x128 H.264 context's first
vaEndPicture, beside 40 queued processing runs of 7680x4320, took 1.31 ms at the median on the RX 7900 XTX and 5.91 ms on the Radeon 780M, and 14.34 and 142.66 ms with an idle 256x256 surface destroyed just before it; on a context used before, 0.03 to 0.11 ms at the median either way. Another thread'svaSyncSurface2of an idle surface, timeout 0, made meanwhile, took as long. - 30 of the
vaapimodule's H.264 decoders made and let go in turn, 10 frames of 4K each, each frame waited for: beside a session decoding the same stream over and over on a thread of its own, 5 of their firstvaEndPictures took over 5 ms on the RX 7900 XTX, 9.0 ms at most, and 16 on the Radeon 780M, 21.8 ms at most. Beside the graphics ring held 8 ms in every 16 by the tests' spin, as a display's work holds it, and alone, none took over 5 ms on either GPU. a_new_decoders_first_picture_after_a_free_on_a_held_gpu_fails_by_its_deadline(src/va/wait/held.rs), with the graphics ring held and a decoder let go: made on the call thread, the new decoder's first decode fails by its deadline, 57 and 58 ms on (50 ms in the test), and the display's other calls by theirs.
- Why it waits: the waits are amdgpu's (U23), and a process cannot keep its VA-API jobs out of RADV's VM. The ring is busy that long only under a guest command buffer that runs for seconds (B26). A new decoder's first picture would wait no longer than the job that begins its session, on an idle VCN 1.3 ms on the RX 7900 XTX and 5.9 ms on the Radeon 780M, if radeonsi did not wait for that job on the CPU (U24). Keeping decoders for later sessions of the same shape would spare only a session of a shape seen before, at the VRAM of each kept decoder's pool and context; beside a playing session the wait measured 9 and 22 ms at most, once a session, so it is not done. With no unmap before it, a new decoder's first
vaEndPicturetook 1.0 to 3.0 ms on a Radeon 780M (Hawk Point, Mesa 26.2.6), against 0.1 to 0.4 ms for a later picture's, and 1.95 to 2.9 ms beside two other sessions decoding; the session's first picture was decoded 2.9 to 7.0 ms after its decode call began, a 4K picture's own decode about 4.5 ms of it (measured, 2026-11-14, H.264 at 1080p and 2160p and HEVC Main and Main 10 at 2160p, three sessions in each of three processes, the session-start probe,src/probes/session_starts.rs). - Fix: amdgpu's (U23), and for a decoder's first picture radeonsi's (U24). Short of it, nothing of the process unmaps while a guest's work runs, metal2vulkan's runtime's frees among it.
B94. On the rt platform on Windows, every VA-API picture lands by the CPU's copy
- What: the rt platform's VA-API arm on Windows has no GPU copy. A picture is decoded into a shared Direct3D 12 texture of the VA crate's pool (
Frame::texture), which rt imports no image of, so the session's copier declines each picture, counted asrt-video-gpu-copy-declined(crates/reims-vgpu/src/graphics/vaapi/rt_windows.rs). Each is then read back byvaGetImageand copied by the CPU into the session's staging, which is copied into its output's device cache (vaapi.md, "The reims-graphics device"). - Evidence: measured on an Intel UHD 630 (Vulkan driver 101.2145, Mesa 26.2.7's
vaon12), 2026-11-19, on the Vulkan platform, which has both copies: the CPU's copy of a 1080p NV12 picture took 18.77 ms at the mean, a 4K NV12 picture's 68.35 ms and a 4K P010 picture's 79.28 ms, the read back 15.09, 57.00 and 60.49 ms of it, against 1.47, 4.18 and 10.36 ms for the GPU's copy. The driver binds no two-plane image imported from the texture's D3D11 handle (VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT:vkBindImageMemoryfaults aftervkAllocateMemorysucceeds), and answersVK_ERROR_FORMAT_NOT_SUPPORTEDfor single-plane images imported from a Direct3D 12 resource. It binds single-plane images imported from D3D11 handles, and reads them back byte for byte. - Why it waits: rt makes no surface over two such textures yet. A probe that drew each picture's planes into two shared single-plane D3D11 textures (luma as R8_UNORM or R16_UNORM, chroma packed into R16_UINT or R32_UINT), imported into Vulkan from their D3D11 handles, matched
vaGetImage's pictures byte for byte, 600 of 600, and took 1.48, 3.74 and 3.87 ms a picture at the mean to draw and wait for (measured, the same GPU and streams, 2026-11-19). - Fix: that draw, into a surface of rt's over the two textures' handles, as the GPU's copy.
B97. An Intel Mac guest's 10-bit HEVC on an RTX 3090 comes to 106% of the asked bit rate
- What: a macOS 26.7.2 guest's Main 10 session on its hardware HEVC encoder (
hevc.gva, docs/graphics-kext/design.md, "HEVC encode takes the plug-in's Intel route"), 1080p, 300 frames at 8 Mbit/s, came to 8.49 Mbit/s on an RTX 3090: 106.1% of the asked, 0.1 point past the 6% every other row lands in (Main on the 3090 100.7%; Main 10 on an RX 7900 XTX 104.8%, on an Iris Xe 98.1%). - Evidence: measured, driver 620.70.06, 2026-11-27, m3-max-77477. NVENC's own Main 10 encode of the same frames (ffmpeg, P4, VBR at 8 Mbit/s) came to 104.6%.
- Why it waits: the bit rate is the macOS plug-in's: the host codes each frame at the QP the plug-in's rate control chose, and that rate control reads a measure of each picture's complexity which no host encoder reports (the frame statistics the driver does not supply), so it chooses from the bits the frames before came to. 1.5 points over NVENC's own rate at the same ask.
- Fix, if one is wanted: a complexity on the plug-in's scale, which neither VA-API nor NVENC gives.
B98. An Intel Mac guest's 8K HEVC encodes at about 10 frames a second on an Iris Xe
- What: 8192x4320 sessions on the guest's hardware HEVC encoder made 10.3 and 10.8 frames a second on an Iris Xe (RPL-P), where the guest's software encoder made 0.5; at 1080p the hardware made 94 to 118.
- Evidence: measured, iHD 26.3.5, 2026-11-27, m3-max-77497 (the host's whole machine, hardware and software alternated, 30 frames each). Per frame, of 93 to 97 ms, the host's GPU wrote the encoder's input in 12.4 to 12.7 ms and the app's own copy into its buffers took 8.5 to 10.9 ms; the other 70 to 75 ms are the host's encode and the guest's round trip, which no log line separates.
- Why it waits: the hardware is 20 times the software's speed at that size, so it is offered.
- Fix: first split those 70 ms between the host's VA-API encode and the round trip.
B99. An Intel Mac guest's short 8K HEVC sessions come to 118% of the asked rate, under software's quality
- What: in the sessions of B98, 30 frames at 60 Mbit/s, the hardware's stream came to 71.0 Mbit/s (118%) and 44.87 dB of luma against its source, its last frame 39.17 dB; the guest's software encoder's came to 54.7 Mbit/s (91%) and 48.12 dB.
- Evidence: measured, m3-max-77497, as B98.
- Why it waits: above 1080p the rate is reported, not held to a band; the bit rate and the QPs are the plug-in's rate control's (B97). A longer session has not been measured at that size.
- Fix: a longer 8K session's row first, to see whether the plug-in's rate control settles.
B100. An Intel Mac guest's HEVC under a hard data rate limit goes up to 3% over it in a second
- What: with
kVTCompressionPropertyKey_DataRateLimitsat 1,000,000 bytes in one second, 1080p, 300 frames at 8 Mbit/s and a keyframe interval of 60 (6 keyframes in 300 frames, 60 frames apart or closer), the most bytes in one second of the guest's stream came to 1.7% to 3.0% over the limit: Main 1,021,534 and Main 10 1,027,996 on an RX 7900 XTX, 1,017,335 and 1,021,809 on an RTX 3090, 1,029,488 and 1,029,273 on an Iris Xe, the whole streams at 79% to 91% of the asked rate. The plug-in coded 2 to 30 frames of each session again at a higher QP, each in place of the last, and every frame decodes back. - Evidence: measured, 2026-11-27, m3-max-77611, m3-max-77609, m3-max-77627. A real Intel Mac's
hevc.gva(a 2019 MacBook Pro, macOS 26.7.1) under the same limit and keyframe interval kept it: none of 271 one-second windows over, the most 951,996 bytes (Main) and 965,808 (Main 10), 86.1% and 86.7% of the asked rate (measured, m3-max-77623); at a keyframe interval of 30, 957,229 bytes and 86.6% (m3-max-77635). The guest's HEVC encoder is driven by the same path of macOS's encoder as that Mac's, its Intel path, which codes a frame that breaks the limit over again: the guest's frames coded in place are those. - Why it waits: the retries and their QPs are the plug-in's. The guest's busiest seconds lie later in its streams (frames 31 to 60, 91 to 120, 178 to 207, 181 to 210, 257 to 286), most of them holding a keyframe, where the Mac's is its first; and over its first frames the guest's QP holds at its first frame's for 8 frames or more (8 on the XTX, 8 to 9 on the 3090, past 14 on the Iris Xe) and then climbs one step a frame, where the Mac's climbs from the second frame (20, 23, 26, 28, 30). Neither has been read. It is to be read when a user reports an HEVC stream breaking its hard data rate limit.
- Fix: first why the guest's seconds that run over do, and what holds its QP over its first frames; then whatever else separates it from the Mac.
B101. An Intel Mac guest's H.264 under a hard data rate limit is not held: up to 19.4% over it in a second
- What: with
kVTCompressionPropertyKey_DataRateLimitsat 1,000,000 bytes in one second, the same as the asked 8 Mbit/s, 1080p, 300 frames and a keyframe interval of 60, the most bytes in one second of the guest's H.264 stream (h264.gva) came to 1,184,706 (18.5% over) on an RX 7900 XTX, 1,183,347 (18.3%) on an RTX 3090 and 1,193,675 (19.4%) on an Iris Xe, with 150, 150 and 156 of 271 one-second windows over; the whole streams came to 101.8% to 102.1% of the asked rate. On the XTX the stream is byte for byte the one without the limit: the limit is not acted on, and no frame was coded again. - Evidence: measured, 2026-11-27: m3-max-77530 (XTX), m3-max-77609 (3090), m3-max-77627 (Iris Xe); the same session without the limit, m3-max-77615 (XTX). A 2019 MacBook Pro (macOS 26.7.1), whose
h264.gvais driven by macOS's Intel path, came to 1,023,426 bytes in its busiest second (2.3% over), 1 window of 271 over, at 97.2% of the asked rate (m3-max-77623). - What macOS's encoder does (macOS 26.7.1): it runs the rate control itself and hands the driver a QP for each frame, on one path for an Intel GPU and another for an AMD GPU's driver; the guest's H.264 encoder on our device is driven by the AMD path (its HEVC encoder by the Intel path, B100). Both paths count the bytes each frame reports against each one-second window of the limit. The Intel path codes a frame that breaks the limit over again at a higher QP; the AMD path plans each frame against the room left and codes none over. On our device that planning changed no frame. The AMD path also reads back one more word of each frame's length record, which our driver leaves at 0: a lead for why its planning changes nothing here, and nothing more. No meaning is known for it, and it is not filled.
- Why it waits: the path is the one macOS takes for an AMD GPU, and no Mac with only an AMD GPU has been measured, so whether macOS holds the limit there is not known. Driving H.264 by the Intel path instead would change every H.264 session (that path's own parameter sets, and a quality for each macroblock), which is the owner's call.
- Trigger: a user report of H.264 breaking its hard data rate limit.
- Fix, once triggered: first a real AMD-only Mac's row under the same limit, if one is reachable; else the sizing of the Intel-path route, to the owner.
Upstream bugs
Bugs in drivers, libraries and tools that our code or our checks work around.
-
U1. ffmpeg's native HEVC decoder is wrong on
--ctu 16streams with SAO and deblocking. Our HEVC check uses x265's reconstruction as a second reference because of it (vaapi.md, "Testing HEVC"). -
U2. libva's header.
VAIQMatrixBufferHEVC's documentation gives two orders for the scaling lists; radeonsi needs raster, which ours sends (crates/reims-vgpu-video/src/vaapi/va/hevc.rs). -
U3. radeonsi rewrites the packed parameter sets an encoder gives it. With packed SPS, PPS (and VPS) and slice headers, the coded buffer holds parameter sets of the driver's own: H.264 High's
transform_8x8_mode_flaggoes from 1 to 0 and its VUI restriction fields change; HEVC's height goes from 1080 to 1088 with a conformance window, its transform depths from 0 to 4 against the 0..0 the driver reports, and its bitstream restriction is dropped. The VPS and HEVC PPS come out as packed. With no packed slice header the coded buffer holds no parameter set at all. So our configuration record is read from what the hardware emits (vaapi.md, "The encoders"). Measured with a libva program of our own, which encodes one frame and compares, on an RX 7900 XTX and a Radeon 780M alike (Mesa 26.2.4, libva 2.24.1, 2026-10-24). -
U5. libva-nvidia-driver 0.0.18 answers
VAConfigAttribMaxPictureWidthandHeightwith 0 on any thread but the one that opened the display (measured with a libva program of our own, 2026-10-24: 8192x8192 on the opening thread, 0x0 on a second one, and 8192x8192 again on the first; radeonsi the same on both). Thevaapimodule asks every query on the opening thread and keeps the answers (crates/reims-vgpu-video/src/vaapi/va/caps.rs), so it does not depend on it. -
U6. NVENC with lookahead. In synchronous mode with lookahead on (P6 and P7 at high quality), after
NV_ENC_SUCCESSonly the oldest pending output locks, though the header says all of them do, and frames are lost. Thenvidiamodule's encoder turns lookahead off (D12). -
U8. ffmpeg's H.264 decoder leaves frames out after a frame number gap that wraps. On a stream whose SPS allows gaps, with order count type 2 and an I picture just after a gap of 5, ffmpeg n9.0.2 output 50 of 60 frames, missing 30 to 39; with a gap of 9 and four references, 54, missing 30 to 35 (measured, 2026-10-24). Apple's AVD, our VA-API decoder and the source's own decode agree on all 60. Streams written from scratch found the condition: the skipped frame numbers wrap past MaxFrameNum (16 here, from frame_num 13), and 15 - G frames are lost for a gap of G, while the same gaps from frame_num 0 lose none. The cause, read in ffmpeg's
h264_slice.c, is that the gap code movesprev_frame_numpast the wrap without adding MaxFrameNum toprev_frame_num_offset, so the pictures after the gap get order counts one MaxFrameNum low and are dropped as out of order; with it added, all 52 of the streams' decodes gave 60 frames. The gap streams' reference is therefore their source's (crates/reims-vgpu-video/tools/h264-check.sh). -
U13. kvazaar writes no first access unit when it codes fields with a GOP of 8 or 16. With
--source-scan-type tfforbffand--gop 8(--preset fast's) or--gop 16(the default), kvazaar 2.3.2 (CachyOS's 2.3.2-2.1) wrote 59 field pictures for 30 frames and no VPS, SPS, PPS or IDR picture: the stream starts with a TRAIL_R picture, and ffmpeg and our parser cannot open it ("PPS 0 has not been received"). With--gop 0or a low-delay GOP it wrote all 60, starting with the parameter sets and an IDR picture, and those decode.--debugwith fields aborted onrecon_buffer_size == 0(encmain.c:747) with--gop 8, crashed with--gop 0on a plaintestsrc2, and withlp-g4d3t1wrote pictures that are not the decoded fields (10.8 dB against the decode, which is 36.8 dB against the source).hevc-check.sh's kvz-720p-fields useslp-g4d3t1, and checks it against ffmpeg's decode with kvazaar's MD5 SEI instead of--debug. -
U14. radeonsi's VBR and CBR pass the HRD buffer they are given. With an HRD buffer of 0.5 Mbit and VBR or CBR at 1 Mbit/s, the key frames of a picture whose key frames cost most came out 2.09 to 2.44 times the buffer (measured with a libva program of our own on an RX 7900 XTX and a Radeon 780M, Mesa 26.2.4, libva 2.24.1, 2026-10-24). Mesa sends the firmware the buffer and
enforce_hrd1, andVAEncMiscParameterTypeMaxFrameSizeat the buffer left the first key frame where it was. Our VA-API streams under a hard limit do not depend on it: the driver runs a constant QP, and ours picks each picture's (vaapi.md, "Rate control under a hard limit"). -
U16. libva-nvidia-driver lists video processing and does nothing for it. Its README says "Hardware decoding only", yet it lists
VAEntrypointVideoProcforVAProfileNone, and every call of a processing run answersVA_STATUS_SUCCESSwith nothing written: into a linear NV12 surface imported from a dma-buf, every byte stayed as it was, where radeonsi wrote the source's samples (measured with a libva program of our own, libva-nvidia-driver 0.0.18, libva 2.24.1, an RTX 5080 Laptop GPU with driver 615.71.09; radeonsi on the Radeon GPUs; 2026-10-25). Ours does not depend on it: a driver gets such writes only where its display's import check passed (Display::writes_imports,crates/reims-vgpu-video/src/vaapi/va/display.rs; vaapi.md, "The import check"). The driver answersvaQueryVideoProcPipelineCapswithVA_STATUS_ERROR_UNIMPLEMENTED(measured, same driver and GPU, 2026-10-25). VA-API is the graphics device's arm on an NVIDIA GPU only where NVDEC's does not open. -
U17. Mesa's VA frontend holds its display's lock while
vaSyncSurfacewaits for a processing run._vlVaSyncSurfacewaits for the output surface'spipe_fence, which a video-processing run leaves, withdrv->mutexheld, where it waits for a decode's fence under the context's lock alone;vaBeginPicture,vaRenderPictureandvaEndPicturetakedrv->mutextoo, so while one thread waits for a run, every other thread's calls on the display wait behind it (read in Mesa 26.2.4,src/gallium/frontends/va/surface.candpicture.c). Measured on an RX 7900 XTX and a Radeon 780M, 2026-10-25: with the copy of one frame on a thread of its own, the next frame's decode calls took 0.9 to 5.0 ms at 4K, against 0.3 to 1.0 ms with nothing beside them. Ours waits for a run bypollon the dma-bufs it writes beforevaSyncSurface(crates/reims-vgpu-video/src/vaapi/va/fence.rs), and the decode calls then took 0.3 to 0.9 ms. Not reported upstream yet. -
U18. metal2vulkan's runtime lists only the GPUs of its own loader environment. Its instance loads the drivers the loader's environment names (
VK_DRIVER_FILES, as reims-ctl pins a VM to lavapipe), and it lists and identifies the physical devices of that instance alone (Device::system_default_identity_with,Device::registry_ids_with; read in the runtime's source at the pinned commit, 2026-10-25). The graphics device's video arms open on the runtime device's own GPU, which it identifies with its PCI address and DRM render node, so a VM pinned to lavapipe has no video arm. -
U19. NVENC's
doNotWaitlock waits in synchronous mode and gives an IDR picture wrongly, and a second lock of a buffer never returns. Synchronous mode is the only one on Linux. Measured on an RTX 5080 Laptop GPU, driver 615.71.09, NVENC API 13.1, 2026-10-25, 4K HEVC Main with no B pictures and IDR pictures forced,nvEncLockBitstreammade as soon asnvEncEncodePicturereturned, with thenvidiamodule's probe (nvenc::encoder::tests::what_each_lock_returns) and a program of our own written from scratch, which compared each picture's lock with the same picture of a second, identical session locked 40 ms later:- A lock with
NV_ENC_LOCK_BITSTREAM::doNotWaitreturned only once its picture was encoded, 6.0 to 16.4 ms later, as a waiting lock does, and never answeredNV_ENC_ERR_LOCK_BUSY, which the header says it may in synchronous mode. - Without split-frame encoding (P4 with the high-quality tuning at 4K, or
splitEncodeModedisabled), it answeredNV_ENC_SUCCESSwith an IDR picture'sbitstreamSizeInBytes200 to 400 times the picture's: 391,140,259 to 398,125,977 where a later lock answered 1,031,535 to 1,032,383, and 408,745,268 and 521,579,237 for pictures of 1,031,228 and 2,347,367 bytes. The bytes were right. Reading that size crashed a probe. - With split-frame encoding (P4 with the low-latency tuning at 4K, which turns it on, or two strips forced), the size was right and about half the bytes were not: after the picture's VPS, SPS and PPS came a second VPS, SPS and PPS and 165 zero bytes, then the first strip's slice, 1,518,722 of an IDR picture's 3,039,958 bytes differing from byte 94. ffmpeg decoded it, with no error, to another picture. In some runs a P picture's second strip differed too. The bytes were the same 40 ms later with the buffer still locked, so they were not bytes still being written.
- A waiting lock made at the same moment, or either lock made once the picture was encoded, gave the right size and bytes.
- A second lock of a buffer already locked and unlocked, with no picture submitted into it since, never returned, with
doNotWaitor without it: one left running spun a CPU core insidenvEncLockBitstreamfor 14 minutes. The header does not say whether a buffer may be locked twice.
Ours does not depend on any of it: the
nvidiamodule's encoder makes only waiting locks, on a thread of each session's own, and waits for the answer until the deadline (crates/reims-vgpu-video/src/nvidia/nvenc/locks.rs), and a session locks a buffer only while a picture submitted into it waits for its lock, once, and submits a picture into a buffer only once the last one's lock is made (Submitted,crates/reims-vgpu-video/src/nvidia/nvenc.rs). - A lock with
-
U21. NVDEC decodes wrongly in one process while another process's Vulkan compute contends on an atomic in imported host memory.
- The load: 16 workgroups of 64 invocations
atomicAddone 32-bit word of host memory imported withVK_EXT_external_memory_host, in dispatches of 190 to 280 ms. - Beside it, NVDEC answers
cuvidDecodeStatus_Errorfor some pictures of valid H.264 and HEVC streams in other processes, and gives many more wrong with status 2. The kernel logs no Xid, and every call succeeds. - The same atomics in device-local memory, spread over words, or in one workgroup leave the decodes right.
- Measured on an RTX 5080 Laptop GPU, driver 615.71.09, 2026-10-25 (B37).
- The decoding process gets no sign of which frames are wrong, so nothing of ours works around it.
- Seen too beside Vulkan transfer copies into imported host memory, in the decoding process itself. In an x86-64 guest's VideoToolbox decode-back of a 2160p H.264 stream on an RTX 3090 behind a Thunderbolt 3 link, the device copied device caches of 12.4 MB into the guest's RAM back to back, 61 of them in 400 ms with the GPU 79 to 100% busy, and 3 of 1,797 decodes made meanwhile answered
cuvidDecodeStatus_Errorafter 210 to 298 ms, against a median of 14 ms. With those copies dropped, 6 sessions of 300 decodes failed none, where 8 of 14 passes had failed; CUDA copies of the same size and rate into registered host memory, from another process, failed none of 12 passes; with the copies paced, 1,802 decodes failed none and took 39 ms at most (measured 2026-11-16, jobs m3-max-38712, 38963, 39155, 39112 and 39236). The device paces its copies of caches at releases (crates/reims-vgpu/src/graphics/decode/surface_cache.rs, "Releases' pace"); its other copies into the guest's RAM are not paced. - A report, with a program written from scratch, is written and not filed yet.
- The load: 16 workgroups of 64 invocations
-
U22. Mesa's VA frontend holds its display's lock while
vaGetImageandvaMapBufferof a derived image wait for the GPU.vlVaGetImagemaps each plane of the surface withtexture_map(PIPE_MAP_READ)and copies it out, andvlVaMapBuffer2maps a derived image's surface withtexture_map, both withdrv->mutexheld (read in Mesa 26.2.4,src/gallium/frontends/va/image.candbuffer.c). For a tiled surface radeonsi's map copies it on the GPU and waits for the copy, so while the GPU is busy, every other thread's calls on the display wait behind the map. Measured on an RX 7900 XTX and a Radeon 780M, 2026-10-26: with the graphics ring held, another thread'svaSyncSurface2of an idle surface, with a timeout of 0, returned only oncevaGetImagehad, 380 ms on; Ours makes those calls on the display's call thread and bounds the others by their deadlines (vaapi.md, "The display's calls"). Not reported upstream yet. -
U23. amdgpu has every submission after an unmap wait for every job its VM had in flight at the unmap. The page-table update of an unmap waits for every job of the VM (
amdgpu_vm_clear_freedsyncs to the VM's root reservation,AMDGPU_SYNC_EQ_OWNER),amdgpu_gem_va_update_vmleaves that update's fence asvm->last_update, andamdgpu_cs_vm_handlinghas each submission wait forvm->last_update, so a job that uses none of the memory unmapped waits for every job then queued or running, on any ring (read in Linux 7.2.9,drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c,amdgpu_gem.candamdgpu_cs.c, and the same onmasterat 21a7f44fd076, 2026-10-25). libdrm_amdgpu opens a GPU once a process (amdgpu_device_initializegives each caller with a descriptor of the same GPU the device the first made, which submits through a duplicate of the first descriptor), and Mesa 26.2.4's RADV and radeonsi both open it so, so a process using both has one DRM client and one VM on each GPU. Measured with a program on libva alone, 2026-10-26: a small decode submitted beside 40 queued processing runs of 7680x4320 was done in 0.46 ms at the median on the RX 7900 XTX and 4.47 ms on the Radeon 780M, and in 12.98 and 140.66 ms, as the runs ended 13.37 and 144.97 ms on, when an idle 256x256 surface was destroyed just before it (B92). A report, with that program, is written and not filed yet. -
U24. radeonsi's decoders wait on the CPU in their first
vaEndPicturefor the job that begins their session, with the display's lock held. radeonsi begins a VCN decoder's session in its firstend_frame:si_dec_init_decoderwrites the create command's message into the embedded buffer of the decoder's current slot (emb_buffers[cur_buffer], one of four) and submits it, anddecode_cmd_buildthen maps the same slot's buffer for write, withoutPIPE_MAP_UNSYNCHRONIZED, soamdgpu_bo_mapwaits with no timeout until the create job is done;vlVaEndPictureholdsdrv->mutexthroughout. Every VCN video decoder has a create command, H.264's and HEVC's among them (read in Mesa 26.2.4,src/gallium/drivers/radeonsi/mm/si_video_dec.c,src/gallium/winsys/amdgpu/drm/amdgpu_bo.c,src/amd/common/ac_vcn_dec.candsrc/gallium/frontends/va/picture.c, and the same onmainat ab1502fd, read 2026-10-26). Measured with a program on libva alone, 2026-10-26: a new 128x128 H.264 context's firstvaEndPicturetook 1.31 ms at the median on the RX 7900 XTX and 5.91 ms on the Radeon 780M with VCN idle, against 0.03 and 0.08 ms on a context used before; with an unmap just before it, behind 40 queued processing runs (U23), 14.34 and 142.66 ms, until the runs were done, where a used context's took 0.03 and 0.11 ms at the median and its decode waited on the GPU instead. Another thread'svaSyncSurface2of an idle surface, timeout 0, took as long as each (B92). Ours makes a decoder's firstvaEndPictureon the display's call thread (crates/reims-vgpu-video/src/vaapi/va/buffer.rs). A report, with that program, is written and not filed yet. -
U26. iHD's video processing writes an imported surface's planes where the descriptor does not put them. Into an NV12 or P010 surface imported from a dma-buf (
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2, one object, one layer of two planes, linear), a processing run answers success and writes the luma plane at the dma-buf's first byte whatever its offset, and the chroma plane(chroma - luma) / pitchwhole rows after it, the rest of the offset dropped (measured, an Iris Xe of an i9-13900H, intel-media-driver 26.3.5, libva 2.24.1, Linux 7.3.1, 2026-11-07, with the import check's sweep and a libva program written from scratch: a luma plane given 256 bytes or two whole rows in landed at the first byte; a chroma plane given at the page past the luma's 360 rows of 640 bytes landed at row 364, 512 bytes before it). A luma plane 64 or 128 bytes in fails the run (VA_STATUS_ERROR_OPERATION_FAILED), an object a plane is refused or written wrong, and rows of samples not a multiple of 64 bytes are written out to the next 64, the padding zeroed. Ours: the import check's second trial is of that shape, rows of whole alignments, the luma plane at the dma-buf's first byte and the chroma whole rows after it, which iHD passes at 64 bytes (ImportWrite::whole_rows,crates/reims-vgpu-video/src/vaapi/va/import_check.rs), for an XYUV import's one plane as for NV12 and P010 (measured 2026-11-23), so the graphics arm's 4:4:4 route takes on iHD only a picture whose row of pixels is whole 64 bytes (vaapi.md, "Surfaces, formats and readback" of HEVC); the staged copy back lays its planes so on every driver (HostFormat's layout,readback.rs), and zero copy lends such a driver only a buffer whose luma plane starts a page and whose chroma plane is whole rows after it (zero_copy.rs). The reims-graphics device's decode outputs in the guest's pages and in its device caches' buffers, the luma plane off the dma-buf's first byte (32 bytes into its page, as CoreVideo lays them out), are therefore not written so on iHD; its device caches' surfaces, their luma plane at their memory's first byte and their chroma plane whole rows after it, are (vaapi.md, "The reims-graphics device", and U30). A report, with that program, is written (the upstream folder's 105) and not filed yet. -
U27. radeonsi hangs the VCN at the first picture of an encode session begun after the last one closed. An H.264 or HEVC encode session begun on the VCN after the process's last one was closed (
vaDestroyContext), with none open between, never finishes its first picture: the VCN faults on a write to an address not mapped, the kernel times out the VCN ring and resets it, or the whole GPU where the ring's reset fails, and the process's later calls fail with its context lost. It happens within 2 to 4 sessions made one after another, after a pause of 3 s as without one, and with a display of each session's own while the process holds another display of the GPU, whose address space they share. Sessions never closed, or each closed once the next has coded its first picture, do not hang; neither do sessions one a process (ffmpeg's encoders) or a display each with no other display open (measured with a libva program of our own,va-enc-sessions.c, and with the VA crate's encoder, on a Radeon 780M of Phoenix and one of Hawk Point, Mesa 26.2.6, libva 2.24.1, Linux 7.3.1, linux-firmware 20261019, 2026-11-07; iHD on an Iris Xe codes 90 sessions in a row, each closed before the next). So a dropped encoder's session is kept open until a later session on the render node is about to code its second picture (crates/reims-vgpu-video/src/vaapi/va/encoder/accelerator.rs). -
U28. iHD and radeonsi decode nothing of an H.264 picture of 4096x4096, and answer success. Both take 4096x4096 as their largest H.264 decode (radeonsi's
VAConfigAttribMaxPictureWidthandHeight, iHD's surface bounds), and every frame of a 4096x4096 stream comes back all zeros, luma and chroma, from ffmpeg's VA-API decode as from ours, every call succeeding, while ffmpeg's software decode of it is right. 4096x4080, 4080x4096, 4000x4000, 4096x2304 and 12 other sizes up to 4096x4096 decode right on iHD, and 4096x2304 on radeonsi (measured, 2026-11-08, libva 2.24.1, streams of x264: ffmpeg 9.0.2's decode on an Iris Xe of an i9-13900H, intel-media-driver 26.3.5, and on an RX 7900 XTX, Mesa 26.2.6; ours on the Iris Xe and on a Radeon 780M of Hawk Point, Mesa 26.2.6). 4096x4096 is the one size within 4096x4096 of 65,536 macroblocks. NVDEC decodes the same streams right, and 8192x4320 (RTX 5080 Laptop GPU, driver 615.71.09). Ours refuses an H.264 picture of more than 65,535 macroblocks before it reaches the driver (H264_MAX_MACROBLOCKS,crates/reims-vgpu-video/src/vaapi/va/h264.rs), and the graphics device answers H.264's largest size under that bound, at most 4096 wide: radeonsi's 4096x4096 and iHD's 8192x8192 (itsVAConfigAttribMaxPictureWidth; its surfaces' bound is 4096x4096) as 4096x4080, so the guest's video driver refuses a 4096x4096 stream at its create and VideoToolbox decodes it in software (devices.md, "The caps"). Not reported upstream yet. -
U29. radeonsi's decodes write an imported surface only within the bytes its planes as declared span from the luma plane's first byte. Into an NV12 surface imported from a dma-buf (
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2, one object, one layer of two planes, linear) whose chroma plane lies past the end of the luma's rows, a decode answers success and writes nothing past the luma's pitch times the import's height and the chroma's times half of it, from the luma plane's first byte: the chroma plane's last rows are never written, and the luma plane's first row is overwritten (measured, a Radeon 780M of Hawk Point and an RX 7900 XTX, Mesa 26.2.6, libva 2.24.1, Linux 7.3.1, 2026-11-08, with the target check's streams and a libva program written from scratch: a 240x144 picture at 256-byte rows lost the chroma's last row at a 256-byte gap, its last two at 512 and its last 16 at 4096, and every byte outside the planes' rows was left as it was; the same with HEVC Main into NV12 and Main 10 into P010). The same surfaces imported taller, so that the declared planes span the chroma plane's rows, the luma plane declared over the gap and into the chroma plane, were written whole; the driver refuses an import whose declared planes run past the dma-buf. Its video processing writes such surfaces at their offsets (the upstream folder's 105). Ours: a target is imported as tall as its planes need to be declared to span its chroma plane's rows (declared_rows,crates/reims-vgpu-video/src/vaapi/va/target.rs), and the target check's layout has a gap before the chroma plane, as CoreVideo's outputs do. A report, with that program, is written (the upstream folder's 109) and not filed yet. -
U30. iHD's decodes write their render target Y-tiled, whatever its import says. Into an NV12 or P010 surface imported from a dma-buf (
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2, one object, one layer of two planes,DRM_FORMAT_MOD_LINEAR), an H.264 or HEVC decode answers success and writes each plane in Y tiles (tiles of 4 KiB, 128 bytes by 32 rows, laid in columns of 16 bytes): H.264's from each plane's offset, and HEVC's from each plane's offset where it is a whole tile in, else the luma plane from the dma-buf's first byte (measured on an Iris Xe of an i9-13900H, intel-media-driver 26.3.5, 2026-11-20, with the target check's streams: every luma and chroma byte of the check's first picture at its Y-tile place, the luma plane at 0, 256 and 4096 bytes of the dma-buf; the driver's own surfaces decode the same pictures to every sample). Its decode configs' surfaces takeVA_SURFACE_ATTRIB_MEM_TYPE_VA,DRM_PRIME_2andDRM_PRIME_3, its video processing's but forUSER_PTR,KERNEL_DRMandDRM_PRIME(0x48000001 against 0x78000005). So the target check fails every kind at its first picture on iHD, and no picture is decoded into memory of ours there. Ours: the arm makes the device's caches dma-bufs where the import check passed a format as well as where the target check passed a kind (cache_writes,crates/reims-vgpu/src/graphics/vaapi.rs), and iHD's video processing writes each picture, decoded into a surface of the driver's own, into its output's cache's surface (U26). Not reported upstream yet. -
U31. vaon12 keeps one Direct3D 12 object of every decode session past
vaTerminate. A VA decode context that decoded at least one picture leaves one object holding a reference on the adapter's Direct3D 12 device once the context, its surfaces and its config are destroyed and the display is terminated (vaDestroyContext,vaDestroySurfaces,vaDestroyConfig,vaTerminate): one for each session, whether it decoded 1, 2, 4, 8 or 16 pictures, each holding about 6.7 to 13 MiB of the adapter's local memory at 3840x2160. A context that decoded nothing, a pool of surfaces alone and a config alone leave none, and the surfaces' kind does not change it: the driver's own, our textures imported by NT handle, or our textures handed over as their resources (2026-11-26, where the object holds a reference of one of them) (measured on an Intel UHD Graphics 630, Mesa 26.2.7's vaon12, H.264 High at 3840x2160, 2026-11-20, with the VA crate's tests and probes of our own, the device's references counted by itsAddRefandReleasebeside ours). The device answered decode tier 2 with no configuration flags for H.264 and HEVC Main and Main 10 at 1920x1080 and 3840x2160 (measured, same host and day), so vaon12 keeps its reference pictures as an array of textures and decodes into the target itself; which object stays is not plain from the driver's source (read, Mesa 26.2.7'ssrc/gallium/drivers/d3d12/d3d12_video_dec.cppandsrc/gallium/frontends/va/). The device is one an adapter and process, so it and those objects live until the process ends. Nothing in our order of calls reaches it: destroying a session's surfaces before its context instead left the device hung (the nextD3D12CreateDeviceansweredDXGI_ERROR_DEVICE_HUNG), so ours keeps the context first. The VA crate'sa_display_let_go_after_its_decodes_leaves_no_reference_on_the_adapters_deviceanda_video_let_go_leaves_no_reference_on_the_adapters_devicehold what a driver without it does, and are ignored until one passes them. A report is written (the upstream folder's 126) and not filed yet. -
U32. iHD codes a frame from a linear encoder input otherwise than from its own surface. Into an NV12 or P010 surface imported from a dma-buf (
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2, one object, one layer of two planes,DRM_FORMAT_MOD_LINEAR) as an encode's input, the same frame as uploaded into a surface of the driver's own codes to other bytes: H.264's P pictures at 640x360 and smaller, in Constrained Baseline, Main and High, at rows of the coded row's bytes rounded up to 64, 128 or 256 and the chroma plane right after the coded rows; every H.264 picture at 1280x720 and smaller at the driver's own pitch and offsets; every HEVC Main 10 picture, intra ones too; and at a pitch not a multiple of 64, even intra pictures. The driver's own inputs are Y-tiled (I915_FORMAT_MOD_Y_TILED), and an import declared Y-tiled in their layout, its bytes in Y tiles, coded as the upload did, byte for byte, at 320x192, 336x208, 640x360, 1280x720 and 1920x1080 in every profile, wherever two uploads coded the same bytes; HEVC Main at 640x360 and 1920x1080 differs from one upload to the next (measured with the VA crate's encoder and tests of our own, 6 frames of a moving ramp at a constant QP with no B pictures, an Iris Xe of an i9-13900H, intel-media-driver 26.3.5, libva 2.24.1, 2026-11-20). Ours: an encoder's imported input is laid out as the driver lays out its own where it lays them out in Y tiles (VideoEncoder::input_layout,crates/reims-vgpu-video/src/vaapi/va/encoder.rs, "Imported inputs"), and the rt platform's fill writes the frame there in Y tiles (crates/reims-vgpu/src/graphics/vaapi/fill.rs). A report is drafted (the upstream folder's 127) and not filed: it needs a program of its own first. -
U33. Intel's Direct3D 12 video driver decodes wrong pictures on a device's later video decode queue. On a Direct3D 12 device where a video decode queue (
D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE) lives, a decode on a queue made after it answers success and writes wrong pictures. vaon12 makes a video decode queue for each decoder, one a VA context (d3d12_video_decoder_create_command_objects, Mesa 26.2.7'sd3d12_video_dec.cpp), all on the process's one device on the adapter, so of two sessions decoding at once on one display, one decoded wrong pictures, and so did the churn test's short decoders beside its long one (measured on an Intel UHD Graphics 630,igd12dxva64.dll31.0.101.2145, Windows 10.0.26300, 2026-11-20). What makes a lone VA decoder's 8 pictures of a 4K H.264 stream wrong, made on the device before it (potluck job m3-max-62074, twice): an idle video decode queue, 8 of 8 wrong; that queue, anID3D12VideoDecoderand anID3D12VideoDecoderHeap, 8 of 8; the decoder, the heap, or both, without the queue, none; nothing, none. FFmpeg 9.0.2's D3D12 decoders (-hwaccel d3d12va), each on a queue of its own, show it without Mesa: of two or three decoding at once in one process, one decoded the software decode's frames and the others none, at 3840x2160 and 1920x1080, in H.264 and HEVC; its D3D11 decoders two at once in one process, and two processes at once, decoded every frame right. Ours: while a display's device lives, the device answers every ask for a video decode queue with one queue (crates/reims-vgpu-video/src/vaapi/va/decode_queue.rs, vaapi.md, "On Windows a device makes one video decode queue"), andtwo_decoders_at_once_on_one_display_decode_what_one_alone_doesholds it. Not reported upstream yet: a report, with a program of our own on Direct3D 12 alone, is written (the upstream folder's 128). -
U34. An open of a Direct3D 12 texture's NT handle on the device that made it adds a charge to the process that never comes down.
ID3D12Device::OpenSharedHandleof a shared texture's NT handle (D3D12_HEAP_FLAG_SHARED,CreateSharedHandle) on its own device adds the texture's size to the process's Shared Usage in the "GPU Process Memory" counters (Task Manager's): a charge in those counters that never comes down, even past the device's last release; available physical memory, the commit charge and DXGI's usage (QueryVideoMemoryInfo) did not move with it (over 20 rounds and 1440 MiB of charge, measured on the lab's UHD 630 and on WARP, potluck job m3-max-75692). It stays once the open, the texture and the handle are released (eachReleaseanswers 0, and the process's handles stay as many), past the display'svaTerminateand past the device's last release. A pool of six 3840x2160 NV12 textures was charged 72 MiB at each such open, again at each open of the same texture. vaon12's import of an NT handle (VA_SURFACE_ATTRIB_MEM_TYPE_NTHANDLE) is such an open: a pool imported and destroyed, with no config, context or decode, left the same 72 MiB, and so did the plane draws' open of each texture; on the software adapter (WARP) the opens alone left 71.2 MiB a pool, so it is not the card's driver's. Handed to vaon12 as the resource (VA_SURFACE_ATTRIB_MEM_TYPE_D3D12_RESOURCE, which its decode surfaces list besideNTHANDLE, 0x00030001) and wrapped as the resource by D3D11On12, a session left only U31's 12.7 MiB (measured with a program of our own on Direct3D 12, Direct3D 11 and libva alone, decoding a stream it writes itself, on an Intel UHD Graphics 630, driver 31.0.101.2145, Mesa 26.2.7, 2026-11-26, potluck jobs m3-max-75614, m3-max-75629, m3-max-75646 and m3-max-75648). Ours: no pool texture is shared by an NT handle, and a driver whose decode surfaces take no resource is refused at the display's open (vaapi.md, "What is here";crates/reims-vgpu-video/src/vaapi/va/d3d12.rs). Not reported upstream yet. -
U35. iHD's AV1 film grain is its own synthesis, not the specification's. Of an AV1 stream of ours with film grain (aomenc's
--film-grain-test=1,aom-grain, 9 frames), iHD's frames with grain match none of libdav1d's, while its frames decoded without the grain match libdav1d's every one, and ffmpeg n9.0.2's own VA-API decode on iHD gives the same frames as ours (measured on the Iris Xe, 2026-11-27, m3-max-77363 and m3-max-77364). radeonsi's match libdav1d's (the RX 7900 XTX). So an arm64 guest on an Intel GPU sees grain of iHD's making, a frame of different noise from a Mac's. The card tests take it as the driver's own grain (codec::av1::tests::judge, backends.md, "Tests"): against the specification's grain, iHD's, frame less frame before grain, is within 0.07 of its mean, 4.9% of its standard deviation, and correlated 0.87 or more in its 32x32 blocks' variances, each plane of each frame (m3-max-77438), the same in each run. Nothing of ours waits on it: the parameters are the ones radeonsi follows the specification with. -
U36. NVDEC decodes an AV1 superres stream's inter frames wrongly on an Ampere GPU. Of an AV1 stream of ours that uses superres (aomenc's
--superres-mode=1 --superres-denominator=12, each frame coded at 8/12 of its width,aom-superres, 6 frames at 352x288), NVDEC decoded the key frame to libdav1d's frame and each of the 5 inter frames to another, reporting each withcuvidDecodeStatus_Error_Concealed. OurCUVIDAV1PICPARAMSequalled ffmpeg n9.0.2's byte for byte, call by call, and ffmpeg's own NVDEC decode (-hwaccel nvdec) gave the same 5 wrong frames (measured on the RTX 3090, driver 620.70.06, 2026-11-27, m3-max-77377 and m3-max-77392). Ours: VideoToolbox's decoders copy no failed picture, so each such frame fails to the guest as a decode error, where it fails, and no picture is delivered wrong; the card test holds each frame to its reference or to a failure NVDEC reported (nvidia::annex_b::av1_tests). A report is written (the upstream folder's 149) and not filed. Not checked on other NVIDIA generations or drivers. -
U37. iHD 26.3.5's HEVC encoder answers success for a render whose quality level it refused. On its Gen12 path the encoder keeps the level a
VAEncMiscParameterBufferQualityLevelsends as the context's target usage, then refuses any but 1, 4 and 7 of the 7 its config lists (VA_STATUS_ERROR_INVALID_PARAMETER, answered asVA_STATUS_ERROR_INVALID_BUFFER). The refusal only sets the render's status and goes on to the render's next buffer, and a packed header's parse later in the same render sets the status again, so the render answers success and the next sequence codes at the refused level (read in its source,media_ddi_encode_hevc.cpp:ParseMiscParams,RenderPicture, andEncodeInCodecHal, whichEndPicturecalls). Its H.264 encoder takes every level, raising levels 1 to 3 to 4 on this GPU (media_ddi_encode_avc.cpp). Ours: the VA crate renders the level alone, first, so the refusal is the render's answer, and codes at the nearest level the driver takes (vaapi.md, "Shape"); reims-vgpu counts and logs each session that does.
Untested, or tested by unit tests only
-
T1. HEVC. kvazaar 2.3.2's streams cover what x265 does not write, each checked with
hevc-infofor what it holds (vaapi.md, "Testing HEVC"): tiles uniform (3x3) and explicit (4x3), tiles in slices of their own at 1080p, at 1366x766 and at 4K (4x4), WPP rows in dependent slice segments, with an open GOP's CRA and RASL pictures, cut and spliced there too, slice headers that code their own short-term sets, 8 current references, low-delay B, and field pictures (field_seq_flag), which ours decodes as pictures of half the frame's height. Every frame equalled kvazaar's reconstruction and ffmpeg's decode, whose MD5 of every picture kvazaar's own SEI confirmed (measured, 2026-10-24): on an RX 7900 XTX and a Radeon 780M, 108 of 108hevc-check.shchecks each, and on an RTX 5080 Laptop GPU's NVDEC, 62 of 62.What neither encoder writes,
hevc-craftwrites into copies of their streams, every picture decoding as the source's (vaapi.md, "Crafted HEVC streams"): list modification in P and B slices, identities and, where long-term pictures moved to the end ofRefPicListTemp0, list 0 put back in another order; short-term sets predicted from one another in the SPS, named by the headers or predicting the headers' own (delta_idx_minus1); and long-term pictures, predicted from and not, in P and in B slices, naming the SPS'slt_ref_pic_poc_lsb_spsand coding their own LSBs, with an MSB cycle and without. Fourteen such streams from x265's and kvazaar's, at 720p and 1080p, Main and Main 10, with B-frames and open GOPs and without, decoded with every frame their source's, as ffmpeg's and libde265's decodes of them did (measured, 2026-10-25): on an RX 7900 XTX and a Radeon 780M, 42 of 42hevc-check.shchecks each, and on an RTX 5080 Laptop GPU's NVDEC, 28 of 28. Not reached by them, so unit tests only:- a long-term picture's MSB cycle other than 0: every stream is shorter than its
MaxPicOrderCntLsbof 256; - a long-term picture in a list beside other pictures, which no rewrite can make without changing the decode (the motion vectors' prediction between a long-term and a short-term reference, 8.5.3.2.7 to 8.5.3.2.9), and so a modification that reorders list 1;
- PCM: its SPS fields are parsed and passed on, but no stream with PCM blocks reached a decoder;
- Main 10 from kvazaar, which CachyOS builds for 8 bits alone, and tiles with WPP, which kvazaar says no profile allows.
Field-coded HEVC with kvazaar needs
--gop 0or a low-delay GOP, since its GOPs of 8 and 16 write no first access unit then (U13).kvz-720p-ref15, kvz-720p-tiles-narrow, kvz-720p-tiles-short and kvz-720p-tiles-col64 break Main's limits. kvz-720p-tiles-narrow's tile column of 192 samples and kvz-720p-tiles-short's row of 16 decode on every frame; columns of 64 samples, one CTB, decode wrongly on radeonsi with no error, so the decoder refuses kvz-720p-tiles-col64 at its PPS (
MIN_TILE_COLUMN_WIDTH, 128,codec/hevc/decoder.rs). The VA-API decoder refuses kvz-720p-ref15 at its tenth picture, which names more than the 8 current references VA-API takes, after its first 9 pictures match (hevc-check.sh). The guest's video driver fails the schedule of both before they reach the host (devices.md, "The caps"). - a long-term picture's MSB cycle other than 0: every stream is shorter than its
-
T3. H.264.
- Interlaced video, any SPS with
frame_mbs_only_flag0, does not reach the host from the guest. AppleGVA's AMD flow, which the guest's video driver is under (docs/graphics-kext/design.md, "Routing"), refuses every such stream at its session's create (-12913), as on a MacBook Pro 16 2019's Radeon Pro 5300M, and VideoToolbox then decodes it in software where its client allows. The Intel flow of the same Mac's UHD 630 decodes them all in hardware, every frame right. Measured 2026-11-08, on that Mac on macOS 26.7.1 and in the guest on 26.7.2 on a Radeon 780M, with streams of JM 19.0 (fields of P, B and High pictures, PAFF, fields then frames, MBAFF, PAFF with MBAFF) and of x264 (MBAFF, top and bottom field first, and--fake-interlaced). VideoToolbox's software decoder then decodes JM's streams right, and x264's MBAFF streams wrongly after their first two frames, on that Mac and an M3 as in the guest, and x264's--fake-interlacedstreams wrongly in the guest. The host still refuses interlaced streams (h264::Error::Interlaced), so fields and MBAFF on VA-API and NVDEC are untested. - Long-term references, MMCO 2 to 6 and frame number gaps are covered on an RX 7900 XTX and a Radeon 780M by
h264-craft's streams (vaapi.md, "Crafted streams"). Only one shape of each was written. Fields' marking is untested, since fields are refused. - Damage: a truncated slice is found on NVIDIA by NVDEC's status, and not on VA-API (D27); a lost frame is concealed on both.
- Interlaced video, any SPS with
-
T4. Encode on VA-API.
- HEVC has no B-frames, since radeonsi reports no second list.
- The hardware's slice headers have not been compared with ours.
-
T16. The NVIDIA decoder. HEVC as T1: tiles, dependent slice segments, slice headers' own short-term sets and field pictures reached NVDEC in kvazaar's streams, every frame bit-exact (measured, RTX 5080 Laptop GPU, driver 615.71.09, 2026-10-24), and long-term pictures, list modification and predicted short-term sets in hevc-craft's, 28 of 28 runs (driver 615.71.09, 2026-10-25). Left as T1: PCM, which no encoder here writes. In the guest, one stream of each codec and size was decoded: the guest's other paths onto NVDEC, Safari and the wallpaper's playback, were not looked at.
-
T17. The checks' shell scripts are not run through shellcheck: it is on none of the hosts the checks run on.
-
T18. HEVC 4:2:2 from an arm64 guest on an NVIDIA card. NVDEC's 4:2:2 decode has run on an RTX 5080 Laptop GPU from the host alone: the arm's VideoToolbox decoder, its sessions taken on the card's own caps, decoded our 4:2:2 streams at 8, 10 and 12 bits into
422v,x422andtv22surfaces laid out as a pool's IOSurface, every picture byte for byte as the software decode (devices.md, "HEVC's range extensions on arm64 guests"). No arm64 guest has run on that card, so the guest's side of that route and its speed there are untested. It is to run when a user reports HEVC 4:2:2 on an NVIDIA 50-series host, or when an arm64 guest's disk reaches such a card for another reason.
Put off on purpose
- D10. No tool copies a test VM between hosts. The first VM on the NVIDIA host was made from a Radeon host's VM by hand: a snapshot, its free space zeroed in a scratch VM,
qemu-img convert, and a copy over the network. A tool that crosses hosts waits until a second cross-host VM is wanted, since the next VM on that host is better copied from the one there. - D12. NVENC runs without lookahead. The
nvidiamodule's encoder turns it off in every preset's configuration (crates/reims-vgpu-video/src/nvidia/nvenc/encoder.rs), since with it on frames are lost (U6). P6 and P7 lose the quality lookahead brings, unmeasured. - D14. NVIDIA's smallest frames. NVDEC decodes HEVC from 144x144 and H.264 from 48x64; NVENC encodes H.264 from 145x49 and HEVC from 129x33. Each is the driver's answer (measured with
nvidia-probe, RTX 5080 Laptop GPU, 2026-10-24), and the graphics device's caps give the guest the decoder's. An arm64 guest's VideoToolbox session of a stream smaller than the decoder's is refused at its start, and the guest decodes it in software (devices.md, "A stream outside the host decoder's sizes"). - D25. The graphics device's video driver cannot report a host's H.264 decode failure. The guest lane's video driver (
guest/bundle/src/RgfxVideoDriver.cpp, docs/graphics-kext/design.md, "A decode the driver cannot complete is a decode error") fails the schedule of an HEVC picture the host failed, as the schedule waits for the host's verdict on it, and VideoToolbox reportskVTVideoDecoderMalfunctionErr(-12911) from that picture on (waitsForHost,guest/bundle/src/RgfxVideoStatus.hpp). AppleGVA's H.264 decoder reports no failure at all: a failed schedule (5, 1 or 7, once or for every schedule after), the query's status 0, 3 or 4, its field_08 or field_14 set, and a failed query call each leave every frame decoded, and a picture whose schedule failed is not decoded (measured on the guest with the RTX 5080, 2026-11-07, every picture failed on the host). AppleGVA's code on macOS 26.7.1 holds no other way (read 2026-11-08): its decode flow takes every query for the command's completion, reading neither the status nor the error word, and reports a failure only through a failed batch schedule, while the H.264 pipelines schedule their commands one at a time and keep no decode's result. So an H.264 schedule waits for no verdict, and an H.264 picture the host fails after it was sent reaches the guest as decoded. What the driver can tell before a picture it refuses at its context's create instead: a coded size outside the host's H.264 decode entry (sizeTaken,CreateContexts), and VideoToolbox decodes the stream in software (measured in the guest on a Radeon 780M, 2026-11-08: a 4096x4096 stream, past the entry's 4096x4080 (U28), failed its hardware session's create and decoded right in software; answered 4096x4096, it was taken, and its frames reached the client undecoded). The session's create also fails, in the guest as on the real Macs, for 4:2:2, 4:4:4, monochrome and lossless streams, for 8192x4320, and for interlaced ones (T3); VideoToolbox's software decoder then decodes 8192x4320 and JM's interlaced streams right, x264's interlaced ones wrongly, and fails on the rest. AppleGVA hands the driver no SPS or PPS before the first picture, so what the host refuses from them or from the slices still reaches the guest undecoded: High 10, slice groups (FMO), data partitioning, and SP and SI slices. The guest's frames of them are the real Macs': their hardware decodes those wrongly too, on the Radeon Pro 5300M and the UHD 630 alike, and mostly with no error: every frame of High 10 wrong, FMO's wrong (a box-out stream's with errors), a data-partitioned stream's first frame and then none, and an Extended stream with SP slices wrong from its first SP picture (measured on macOS 26.7.1, and in the guest with the 5300M's counts, 2026-11-08, streams of JM 19.0 and x264). Left are those, a host's refusal of the picture once it has it (its planes refused), and a decode the hardware failed once it ran, which on NVDEC lands as NVDEC left it, the pictures after it decoded from it, as a Mac's hardware decoder hands such a picture on with no error (measured on a MacBook Pro of 2019, macOS 26.7.1, 2026-11-16: an H.264 P picture cut to half its slice, or with 64 bytes of it changed, and those after it came back with status 0, 26.5 to 29.7 dB from the undamaged stream's luma and none all zeros, until the next IDR picture; nvidia.md, "A picture NVDEC failed lands as NVDEC left it"). Put off: AppleGVA leaves no answer. To lift it: an H.264 path in AppleGVA that reads a driver's failure, on a release that has one. - D26. On the rt platform on Windows, a guest texture over a video plane in another format is a copy of the plane. A video cache's planes lie over Direct3D 11 textures the host's video draws its pictures into, which rt imports with the uses their bind flags give (
RENDER_TARGET | SHADER_RESOURCE) and no view format but the texture's element format, the plane image's (R8Unorm,RG8Unorm,R16UnormorRG16Unorm) and that one's sRGB sibling (read, metal2vulkan-runtime at ec9e2771d0,d3d11_plane_form). A guest texture over such a plane in the image's format or its sRGB sibling is a view of the plane. One in any other format of the texel's size, anR8Uintover the luma plane say, which Metal makes over a plane of an IOSurface and rt would refuse (Gap::TextureView,SurfacePixelFormat), takes the storage shape of its extent instead, an image of its own that copies keep current with the plane (rule 1 at the end of each encoder that writes either, and a fill after each picture), and later textures of that extent view that shape too, so the cache's later pictures reach them through its buffer (crates/reims-vgpu/src/graphics/decode/surface_cache/shapes.rs, "Plane shapes"). The guest reads the same pixels, at the copies' cost. Counted asrt-shape-drawn-format-storage-<plane's format>-as-<texture's format>, the first of each pair logged;a_texture_over_a_drawn_plane_in_another_format_takes_the_storage_shapeholds it. No boot has counted one yet. Put off: the planner's ruling of 2026-11-23 keeps rt's import exactly the textures' Direct3D 11 description, and the copy costs nothing until a guest asks such a view. To lift it: where boots count such textures, textures whose Direct3D 11 format allows the views guests ask, and rt's import listing them. - D27. A truncated H.264 or HEVC slice decodes on VA-API with no error, as a Mac's hardware H.264 decoder decodes one. On VA-API a slice whose data ends early goes to the GPU, and its picture lands with whatever the GPU made, with no error, and the pictures after it too: our parsers stop at the slice header, and radeonsi reports nothing. On NVIDIA, NVDEC's status of the decode, read at the picture's copy, fails the picture, and, in an HEVC stream, sets the codec module's damaged state (
mark_failed,hevc/decoder.rs) before the next sample (Failures,crates/reims-vgpu-video/src/nvidia/decode.rs), so the pictures after it are refused until an IRAP picture; an H.264 stream's decode on from it (h264/decoder.rs). The status is read only by a picture's copy, so an HEVC picture withpic_output_flag0, which is not output, starts nothing.- Measured, 2026-10-25, on main-gapsrc-720p with frame 20's slice cut to 10, 50 and 95% (
h264-craft --truncate), and x265'sidr,radl,cra,cra7andblawith frame 20 cut to half its slice (hevc-cut truncate): on radeonsi, an RX 7900 XTX and a Radeon 780M (Mesa 26.2.4, libva 2.24.1), with a scratch build that asked the driver after each wait for a decode, for each of the 5,396 waits on each GPU,vaSyncSurface2andvaSyncSurfaceansweredVA_STATUS_SUCCESS,vaQuerySurfaceStatusVASurfaceReady, andvaQuerySurfaceErrorVA_STATUS_ERROR_UNIMPLEMENTED; novaEndPicturefailed. H.264's frames 20 to 29 came out unlike the undamaged stream's, HEVC's frame 20 alone (a TRAIL_N picture). On an RTX 5080 Laptop GPU (driver 615.71.09), NVDEC reported each truncated frame failed with status 9 (cuvidDecodeStatus_Error_Concealed); with the damaged state set from it, every frame that came out equalled the undamaged stream's. - A Mac's hardware H.264 decoder hands a picture whose slice was cut to half on with no error, decoded as it could, and decodes the pictures after it from it, until the next IDR picture (measured, D25), as VA-API's pictures land here; on NVDEC the device's H.264 sessions land such a picture as NVDEC left it and decode on (nvidia.md), and HEVC's are refused as above. A Mac's answer to an HEVC slice cut short is not measured.
- Put off on 2026-12-02, as a Mac's H.264 decoder does the same: on VA-API only a walk of the slice data on the CPU finds where it ends early, H.264's CAVLC and CABAC macroblock layers and HEVC's CABAC coding trees, as a software decoder's entropy decoding without its reconstruction. By our estimate that is a parser of guest data about as large as the codec module's H.264 and HEVC parsing together (about 8,500 lines beside their tests), and a share of a CPU core for every stream, neither measured. To lift it: that walk beside the GPU's decode, setting the damaged state where the data ends before
end_of_slice_flag(H.264) orend_of_slice_segment_flag(HEVC).
- Measured, 2026-10-25, on main-gapsrc-720p with frame 20's slice cut to 10, 50 and 95% (
- D28. An HEVC picture whose current reference sets hold more than 8 pictures together is refused on NVIDIA, as on VA-API, though NVDEC takes 8 a set. An HEVC decode entry's
max_referencesis 8 on both arms (devices.md, "The caps"), and the guest's video driver fails the schedule of a picture whose sets name more (hevcTaken,guest/bundle/src/RgfxVideoDriver.cpp). NVDEC's parameters hold 8 pictures in each of the three sets (CUVIDHEVCPICPARAMS;current_set,src/nvidia/nvdec/hevc.rs), so a picture of 5 before and 4 after would decode there. Such a picture is outside the streams the host lists: libva's va.h saysNumPocTotalCurr"should be equal to or smaller than 8", and kvazaar's--ref 15stream, the one stream here that names more, does what Main does not allow (vaapi.md, "Testing HEVC"); the entries list Main, Main 10 and the range extensions, and no screen content coding, whose current picture may add one. Put off: lifting it takes a field for each set on the wire, the kexts and both prebuilt sets, for pictures no listed profile allows. To lift it: a listed profile whose pictures may name more than 8 current references. - D29. On a Mac host, each picture VideoToolbox decodes is one GPU copy more than a Mac makes. VideoToolbox decodes into IOSurfaces of its own pool and takes no memory of the caller's for its pictures (
VTDecompressionSession.handVTDecompressionProperties.h, macOS 27.0 SDK: no call takes an output buffer, and the session's pixel buffer pool is read-only; read), and rt imports no IOSurface, only host memory (KosmicKrisp'sVK_EXT_external_memory_host). So the host's arm lands each picture in the guest's lent surface by one copy on the device's GPU, from a buffer over the IOSurface's pages into the Shared buffer over the surface's pages (crates/reims-vgpu/src/graphics/videotoolbox.rs), where a real Mac's decoder writes the guest's surface itself. Its bytes are the planes' rows: 3,110,400 a 1080p picture at 8 bits, 6,220,800 at 10, and 12,441,600 a 4K picture at 8 bits, 4:2:0. Each picture so copied is counted asvideo-vt-pictures-gpu-copied, with its rows' KiB asvideo-vt-gpu-copied-kib;a_stream_lands_in_the_lent_surfaces_pages_as_videotoolbox_reads_itholds it on the M3 (potluck job m3-max-80012). An arm64 macOS 27.0.1 guest's boot on the M3, which decoded seven H.264 and HEVC streams to their MD5s and played and recorded a 40 s 1080p movie of each codec, counted 5,056 pictures and 15,679,132 KiB so copied, and no picture copied by the CPU (m3-max-80121). Put off: the planner's ruling of 2026-12-02 accepts the copy for the first build. To lift it: a way for the guest's surface to be VideoToolbox's output, which neither VideoToolbox's API nor rt gives today; the ruling sends an rt import of IOSurfaces to metal2vulkan as an ask only with the copy's cost measured on a 4K stream first, against a bar of 5% in a guest-visible measure, decode frame time or dropped frames.