Files
reims-vgpu/docs/graphics-kext
Anees Iqbal 359ac7817e 🐎 Complete a decode alone into caches at its decode
A command buffer that holds only a video decode whose output lies in device
caches, where the VA-API arm copies the picture into the caches by its video
processing on the GPU, now posts its CB_COMPLETE as the session says the
decode is done and the copy is issued, instead of at its platform end after
the copy. The guest's decoder hands the picture on while the copy runs: the
start of a 4K stream decodes one picture at a time into new surfaces, and
each picture's chain waited for its copy.

What changed for the guest:
- such a CB_COMPLETE comes before the copy into the output's caches ends,
  in its queue's order of records (a queue's turns of completion posts), and
  carries GPU times of 0;
- the guest's writer slots, which it empties at the CB_COMPLETE, then name
  the decode no more, so the host keeps each such decode by its blocks until
  its platform end: a later command buffer of another queue that uses the
  output waits for that end, on the GPU, or on the CPU for a video op; a
  present waits for it as for a writer named; a lock's download waits on the
  end value as before. Counted as buffers and presents held;
- the buffer's later work, its surface timeline, its caches' copy into the
  pages, its context's drain and its place among its queue's buffers in
  flight all stay at its platform end, so a reset, a close and a quiesce see
  the decode in flight as before.

What changed for the host: raise_interrupt may now be called on a video
session's picture landing thread, reims-vgpu.graphics-video-land, inside the
landing's video processing run (reims_vgpu.h, docs/api.md section 5). QEMU's
reims-graphics-pci raises its interrupt from any thread, and is unchanged.
2026-11-19 16:59:44 -08:00
..