Files
reims-vgpu/docs/graphics-kext
Anees Iqbal 89785d5a90 🐛 Hold a decode's readers until its planes are said written
A picture that lands by the host's own work (VA-API's copy, NVDEC's, the
Windows host's Direct3D 11 draw) writes the output's planes off the platform's
queues, and the platform's reads see that write only in the command buffers
committed after the landing's external_writes_done, the acquire. A buffer of
another queue ordered after the decode, by its SURFACE_ORDER or by the decode's
early CB_COMPLETE alone, waited on the GPU for the decode's buffer's end, but
could be committed before that acquire and read the planes' earlier picture:
picture 423 on the Windows host, read through a plain shape 22 ms before its
acquire.

What the guest sees: such a buffer's begin, and so its CB_SUBMITTED, its
ticket and its commit, now wait until the decode's session signals the
decode's value, which the landing gives once the planes are said written, or
once the picture ended without landing. The key is the decode's buffer, by its
queue and seqno, kept in its queue's marks from its walk until that signal.
Nothing times the hold out; a hold past 2 s is named in the log, and the
order's summary line counts the holds, those for a landing and the longest,
and the named buffers not yet published, which hold nothing. A doorbell no
longer answers a buffer that uses a block of a decode completed ahead of its
end.

The tests that run a reader behind a fake session's decode now signal the
session's value as the landing does. The completed-ahead reader's test holds
its begin past 2 s and checks the log's lines, and the red test of the reader
named after a decode passes.
2026-11-27 01:43:54 -08:00
..