turnip: Fix vkGetQueryPoolResults with available flag
authorBrian Ho <brian@brkho.com>
Fri, 24 Jan 2020 21:39:47 +0000 (16:39 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jan 2020 20:30:46 +0000 (20:30 +0000)
commit1a3e2a7fa8bf184b5f9214d4c404e4c2c754aa58
tree54990863aaba23ce5db5cdda5dfe8efceac85f83
parent1c3319cf81779ba6a17223d22ddd3afc68acab1e
turnip: Fix vkGetQueryPoolResults with available flag

Previously, calling vkGetQueryPoolResults with the
VK_QUERY_RESULT_WITH_AVAILABILITY_BIT flag set the query result
field in *pData to 0 if unavailable and the query result if
available. This was a misunderstanding of the Vulkan spec, and this
commit corrects the behavior to eriting a separate available result
in addition to the query result.

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