Files
reims-vgpu/crates
Anees Iqbal 827c0d12da 🆕 Post the platform's GPU times in the graphics lane's completions
The graphics lane posted CB_COMPLETE with gpu_start_ns and gpu_end_ns of 0,
so the guest bundle answered GPUStartTime == GPUEndTime at the delivery
time. Every Mac measured answers real GPU times (dgpu-oracle.md, Q7). That
is class 3, agreed by the Radeon Pro 5300M, the UHD 630 and the M3 Max.

A completed handler now learns the buffer's GPUStartTime and GPUEndTime
(core's CompletedInfo::gpu_times_ns, in nanoseconds of the platform's host
clock), and the graphics lane posts them. The bundle already ends the run
at the delivery time and starts it the run's length before that, never
before its submission ended.

- The Metal platform reads Metal's own times.
- The Vulkan platform reads the runtime's. Under the platform's
  gpu_times_from_host these run from the end of the submission, or of the
  queue's run before it, to the runtime seeing the buffer complete. Real
  timestamps would cost each completion about 70 us (platform.rs).
- The apple-gfx lane reads none.

For the guest, GPUEndTime - GPUStartTime is now the run's length instead
of 0.
2026-11-05 21:59:20 -08:00
..
2026-10-29 22:10:44 +02:00