turnip: Implement vkCmdEndQuery for occlusion queries
authorBrian Ho <brian@brkho.com>
Thu, 2 Jan 2020 22:50:41 +0000 (17:50 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 18:14:01 +0000 (18:14 +0000)
commitf750dd2ab8b4479f0ada0c49f13870e75cc5cd08
treee3210edb3e046d2e3602741e37e1e128a3af7166
parent5824a59ee2c325e04b18592b12c23a622ef32d72
turnip: Implement vkCmdEndQuery for occlusion queries

Mostly a translation of freedreno's implementation of glEndQuery for
GL_SAMPLES_PASSED query objects with a slight modification to set the
availability bit of the query bo (slot->available) if the query was
not ended inside a render pass.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3279>
src/freedreno/vulkan/tu_query.c