[PATCH] vulkan: Add VK_EXT_calibrated_timestamps extension (radv and anv) [v4]
Keith Packard
keithp at keithp.com
Tue Oct 16 21:51:41 UTC 2018
Jason Ekstrand <jason at jlekstrand.net> writes:
> You've got me almost convinced as well. Thanks for the diagrams! I think
> instead of adding 1 perhaps what we want is
>
> max2(sample_interval_ns, gpu_tick_ns + monotonic_tick_ns)
>
> Where monotonic_tick_ns is maybe as low as 1. Am I following you correctly?
Not quite; I was thinking that because the sample_interval_ns is
measured by sampling the monotonic clock twice, the actual interval can
be up to 1 tick longer, so
max2(sample_interval_ns + monotonic_tick_ns, gpu_tick_ns)
The gpu_tick_ns is computed, not measured, and so accurately reflects
the maximum deviation in the measurements.
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20181016/d4330022/attachment.sig>
More information about the dri-devel
mailing list