Files
reims-vgpu/docs
Anees Iqbal bf31c11cf9 🐎 Mark a command buffer's parts but its last to join the next
A guest command buffer the walk cuts into parts went to the GPU as one
kernel submission a part: on the Iris Xe's animation page a waited buffer
took about 11.6 vkQueueSubmit calls of about 180 us each on ANV. Nothing
observes a part's completion but its own handler, which notes its GPU times
and error for the last part's record and lets its place among its queue's
command buffers go; the last part carries every record, ticket and signal
the guest sees.

So each part but the last is marked to join the next one's completion
(CommandBuffer::set_completion_joins_next), and the runtime may send up to
four of a queue's parts found ready together, and the part behind them, in
one submission. Never marked: the last part; a part that waits for or
signals an event, by an op or from the buffer's begin (a device cache's fill,
another queue's buffer in the surface order); and a part the platform keeps
whole, whose commit is the whole's. The guest still sees its command buffer
complete at its last part's own end, with the same GPU times and the first
failed part's error.

Tests: a_buffer_s_parts_but_its_last_join_the_next_completion_unless_they_
signal and a_first_part_that_waits_from_its_begin_is_not_marked; the dealt
and kept-whole tests check which parts are marked.
2026-11-16 11:41:25 -08:00
..
2026-11-15 15:16:04 -08:00