anv: disable VK_EXT_calibrated_timestamps when the timestamp register is unreadable
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 15 May 2019 10:30:36 +0000 (11:30 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 May 2020 21:49:10 +0000 (21:49 +0000)
commitf68db81cbb3c8f2b901fc5dcac02d01d3e698cc3
tree671e715d8454657c1a3644fb19c629987f665dd5
parenta62ee262fd43f1c7f204de4e5b822d95c2ff6977
anv: disable VK_EXT_calibrated_timestamps when the timestamp register is unreadable

When running in a virtual context, the timestamp register is unreadable
on Gen12+.
While we could work around this, that would result in very inaccurate
results for an extension where the whole point is accuracy, so let's
just disable the extension.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2797>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py
src/intel/vulkan/anv_private.h