In the per-shape form a cache made for the host's video is now a deferred
exportable buffer (an exported block for NVDEC, a dma-buf for VA-API) whose
memory is made where something first reaches it: a decode or an encode whose
buffer is the cache's, or a copy of the caches' through it. Its make on the
guest's SURFACE_PAGES call makes no memory and records no zeros.
The zeros the video's memory needs ahead of a write of the host's video,
which waits for no work of the platform's, are recorded as the video first
uses the memory, on the transfer queue, and the decode's op waits for them as
for the cache's last fill. A cache's planes, whose fill at their make read the
buffer's zeros, copy them from a 1 MiB buffer of zeros made with the surface
for that fill alone. A fill of the pages into a video cache whose memory is
not made goes straight into its shapes, as any deferred cache's does, and a
decode into the buffer then takes the pages into it over the zeros.
What changes for the guest: nothing it reads. Each plane, shape and buffer
holds the same bytes at the same points; a video cache whose pictures all
land in its surface holds no memory of its buffer.