Files
metal2vulkan/crates
Anees Iqbal f8d29324d5 start_stamp: the first work's span is held against the same fill's GPU time, not the life it adds
The Iris runtime leg (ANV, m3-max-38516) failed
a_command_buffer_s_gpu_span_holds_its_batch_s_first_work: with a new 256 MiB Private buffer the
fill's life grew by 65.3 ms, of which 54.1 ms lay from the kernel end to the GPU start and
11.37 ms in the GPU span (0.004 ms without the buffer). The span held the first work: 11.37 ms is
the zero fill's one vkCmdFillBuffer of 256 MiB. The 54 ms lay before the GPU's first timestamp,
after the start of the driver's submission call (the kernel end, command_buffer/group.rs's call
time), where the runtime does nothing: no GPU span holds it, nor would Metal's. The test's claim
(the span holds half the life the first work adds) counted it.

The test now runs the same fill again after the batch (one vkCmdFillBuffer of the buffer's
256 MiB, its first work done, which it asserts) and holds the batch's span to at least half of
that fill's span: GPU time against GPU time. A start written after the first work would leave a
span of about 0.004 ms against a bound of about 5.7 ms there, so the test still fails on that.
Each line also prints the submission call's own time where the process set
METAL2VULKAN_QUEUE_TIMES (CommandBuffer::submit_returned_time), so a run can show where the
time before the GPU start goes.

Test only; the product is unchanged.
2026-11-16 18:56:53 -08:00
..