turnip: Implement vkCmdCopyQueryPoolResults for occlusion queries
authorBrian Ho <brian@brkho.com>
Mon, 6 Jan 2020 22:11:50 +0000 (17:11 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 18:14:01 +0000 (18:14 +0000)
commitf55e215b8c7ebbd58635694f048b121bb1d1bc03
treef1450376aca7e24e380b02837a8413f1dfe59827
parent9a3656b9fd92849b74a9866528faf4c4157cc0ef
turnip: Implement vkCmdCopyQueryPoolResults for occlusion queries

Use CP_COND_EXEC and CP_COND_WRITE to conditionally copy the results
of a query to a buffer based off the query's availability.

Fixes: #2238
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3279>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3279>
src/freedreno/vulkan/tu_query.c