[PATCH] vulkan: Add VK_EXT_calibrated_timestamps extension (radv and anv) [v4]
Keith Packard
keithp at keithp.com
Wed Oct 17 05:14:03 UTC 2018
Jason Ekstrand <jason at jlekstrand.net> writes:
> Doing all of the CPU sampling on one side or the other of the GPU sampling
> would probably reduce our window.
True, although as I said, it's taking several µs to get through the
loop, and the gpu clock tick is far smaller than that, so even adding
the two values together to make it fit the current implementation won't
make the deviation that much larger.
> This leaves us with a delta of I + max(P(M), P(R), P(G)). In
> particular, any two real-number valued times are, instantaneously,
> within that interval.
That, at least, would be easy to compute, and scale nicely if we added
more clocks in the future.
> Personally, I'm completely content to have the delta just be a the first
> one: a bound on the difference between any two real-valued times. At this
> point, I can guarantee you that far more thought has been put into this
> mesa-dev discussion than was put into the spec and I think we're rapidly
> getting to the point of diminishing returns. :-)
It seems likely. How about we do the above computation for the current
code and leave it at that?
--
-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/d872cf1e/attachment-0001.sig>
More information about the dri-devel
mailing list