zink: add pipe_context::get_timestamp hook
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 10 Jul 2020 18:46:18 +0000 (14:46 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 6 Oct 2020 12:17:31 +0000 (12:17 +0000)
commitbb603352b68f1a58f020e9cd7fa15040742c00d5
tree7eb886b789b78501d0885d33582f664b13766e65
parentb551ee22dfc806f90fae37e51240afea98299204
zink: add pipe_context::get_timestamp hook

this uses VK_EXT_calibrated_timestamps to read a timestamp immediately from
the device without using a batch, which is what the gallium api expects

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6923>
src/gallium/drivers/zink/zink_query.c