turnip: Refactor structs of tu_query
authorHyunjun Ko <zzoon@igalia.com>
Tue, 1 Sep 2020 03:13:55 +0000 (03:13 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 10:49:03 +0000 (10:49 +0000)
commit170da456efe8557cbc045d56d448b0ec0362a3a1
treeeea3d3ebfa50d3794740f7356671372ad8443aad
parent03fbff1efcccc0e09fc218c24b29e6d1ad4d4599
turnip: Refactor structs of tu_query

Since there are different number of results depending on query types,
this patch removes the result field out of the common struct and defines
query-specific results in each type of query struct.

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6299>
src/freedreno/vulkan/tu_query.c