Files
reims-vgpu/docs
Anees Iqbal 4e91a9490d 🐛 Let each video arm answer its output buffers' alignments
f52fb8e793 made every decoder session's Dpba and TDrs ask the guest's output
buffers for rows of 512 to 4096 bytes and planes on a page, the layout radeonsi
and iHD write a picture into in place. VideoToolbox's arm on a Mac host writes
no picture in place: its own GPU copy lands each one in the lent pages at any
pitch. There the drivers' rows only cost: with the 2048-byte rows of a 1080p
8-bit picture, rt refused 92 of the guest's textures over the lent pages in
place for their pitch and made 22 in place in a boot (m3-max-85387), where with
64-byte rows the same streams made 118 in place and none was refused for its
pitch (m3-max-85316).

The paravirtual decoder's Backend now answers the alignments its sessions ask
(output_alignment, tile_alignment), by default f52fb8e793's
(OutputAlignment::in_place_of_drivers, TILES_IN_PLACE_OF_DRIVERS). reims-vgpu's
VtBackend takes its arm's answer (GraphicsVideo::guest_output_alignment and
guest_tile_alignment): the VA-API and NVDEC arms keep the default, and the
VideoToolbox arm answers rows of 64 bytes and planes of 256
(OutputAlignment::PICTURES_OWN).

What the guest sees: on a Mac host, Dpba and TDrs ask rows of 64 and planes of
256 again; on Linux and Windows hosts nothing changes. Tests pin each answer: a
fake arm asking the pictures' own gets them in Dpba and TDrs, the default's
tests keep 512 and 4096, VtBackend passes on the default and an arm's own, and
the VideoToolbox arm answers 64 and 256 at every size and depth.

(cherry picked from commit adda4c343529c3c7682df844d23c75e740b1e47b)
(cherry picked from commit a1ee6ea804af04e3b4304706c902c30833e5f1e5)
2026-12-03 15:02:10 -08:00
..