Files
reims-vgpu/docs
Anees Iqbal d3372a8d1d 🆕 Decode an arm64 guest's HEIC tiles on the host's VA-API
An arm64 guest's CMPhoto decodes a HEIC image's grid through a
VTTileDecompressionSession, whose paravirtual decoder sends the host dsts,
dtil and dtfi. The host answered each kVTUnimplementedErr, so ImageIO decoded
every HEIC in software (a 6016x6016 desktop picture took 218 s under TCG).

A decoder session now starts a tile session where the arm lands a part of a
picture: it sends TDrs (the output buffers' attributes and the tiles it
decodes: the arm's sizes, and the alignments Apple's hardware decoder asks,
measured on an M3 Max on macOS 27.0.1) and answers noErr. Each dtil decodes
its tile and lands the ,tcd columns and rows from ,tco at ,obp of the surface
it lends, emits it (TDem: ,til, status, info, ,uiu) and is answered noErr;
dtfi has no tile left to finish. On VA-API the frame's crop narrows to the
region (Frame::crop_within), which then lands as a whole picture does, by the
driver's video processing in place or the CPU's copy. NVDEC lands no parts
yet and keeps answering kVTUnimplementedErr, which leaves its guests on the
software decode.
2026-11-17 02:10:28 -08:00
..
2026-11-15 15:16:04 -08:00