Files
reims-vgpu/docs
Anees Iqbal f716a52d2a 🆕 Decode VA-API's pictures into rt's exported blocks
On the rt platform the VA-API arm now answers the guest: its decoders
land pictures in rt's exported blocks, which rt makes as dma-bufs
(new_dma_buf_buffer_of_length_padding_unobserved, export_dma_buf over
new_exported_block(DmaBuf), linear, the named byte on a multiple of 256).

rt's contract after an acquire is that the external side does not touch
the block until its next whole overwrite, and VA reads a reference from
the surface it was decoded into. So each codec's decoder now tells its
accelerator whether a later picture may predict from the picture it asks
storage for (PictureRole: H.264's nal_ref_idc, HEVC's sub-layer
non-reference picture of the highest sub-layer), and where the platform's
rules keep references apart (CachedReferences::Apart, rt's) a reference
is decoded into a surface of the decoder's own and lands in its cache by
video processing, while a picture no later one predicts from is decoded
straight into its cache. Each session counts its pictures by role and the
references it kept apart, and logs the counts at its end.

The rt arm answers no encoder: rt releases no encoder's sources to the
driver yet. The Vulkan platform's rules keep every picture in its cache
and its encoders, as before.
2026-11-19 08:25:54 -08:00
..