Files
reims-vgpu/docs
Anees Iqbal 584d57e6c4 🐛 Issue a VA-API frame's processing runs once its decode is done
A frame written by video processing had its runs issued right behind its
decode, before the decode was waited for, resting on the driver to order a
run on another context after a pending decode of the surface it reads.
Nothing in va.h or va_vpp.h promises that, and va.h's own example of a
surface handed on waits for the decode first. The write now waits for the
decode, then issues the runs and waits for them, as runs_after_the_decode
orders it.

Its fake call-order test, a_frames_runs_are_issued_once_its_decode_is_done,
fails on the old order and passes on the new one (job m3-max-77975). The
hardware test that held the old order, now
a_write_asked_as_its_decode_is_issued_writes_what_it_decoded, checks that a
write asked while its decode runs still writes what it decoded.

For the guest, a reference picture's landing starts its copy one CPU round
trip after its decode ends instead of as the GPU finishes it; what lands is
unchanged. A failed decode is still copied, and its error is the frame's.
2026-12-02 07:18:16 -08:00
..