turnip: Implement vkCreateQueryPool for occlusion queries
authorBrian Ho <brian@brkho.com>
Thu, 2 Jan 2020 19:46:57 +0000 (14:46 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 18:14:01 +0000 (18:14 +0000)
commit78dea40b1c96a1d06a9361e1f1fb0c87ada6d156
tree9036ea896798aa90791bd27ff5b20d23c47c88d1
parenta155ab93a3be567a18222e98ba6e361e2edb6009
turnip: Implement vkCreateQueryPool for occlusion queries

General structure is inspired by anv's implementation in genX_query.c.
We define a packed struct that tracks sample count at the beginning of
the query and at the end; the result of the occlusion query is then
slot->end - slot->begin.

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