What changes for the guest: a VideoToolbox decoder session's Dpba now asks
for planes on a page (PlaneAlignment 4096) and rows of the least of 512,
1024, 2048 and 4096 bytes that makes the luma plane's rows whole pages
(BytesPerRowAlignment), where it asked 64 and 256; a tile session's TDrs
asks for planes on a page and rows of 512, and its MaximumCanvasRowBytes is
rounded to 512.
With 64 and 256, the guest's CoreVideo put the luma plane 512 bytes into
the buffer's first page (measured in an arm64 macOS 26 guest, m3-max-84840).
iHD writes a luma plane only at its dma-buf's first byte, so on the Iris Xe
every picture of a hardware decode was copied by the CPU: all 240 of
H.264 1080p and HEVC 1080p and 4K at 8 and 10 bits, in 4 of 4 sessions.
radeonsi copied 1920-wide 8-bit pictures, whose rows are not a multiple of
256. With the new keys, the same guest lays the luma at the buffer's second
page and the chroma right after the luma's rows, whole pages, which both
drivers write in place.
Cost: rows over the 64-byte rows asked before. 3840x2160 at 8 bits takes
rows of 4096 for 3840, 6.7% more; nothing passes twice from 540 rows up;
small pictures whose height has few factors of 2 cost the most, the worst
240x135 at 8 bits, 16 times, 810 KiB a buffer for 50 KiB (the rule's doc
lists them).
(cherry picked from commit 5f23e17e1b198ec91624d023a231602bf2e07204)
(cherry picked from commit f52fb8e7938365dd653335235cdfa3ff7f638fca)
(cherry picked from commit 36af84f5d8754879ab58c3fefbddcc6c5ae7fe73)