turnip: make the struct slot_value of queries get 2 values
authorHyunjun Ko <zzoon@igalia.com>
Fri, 17 Apr 2020 06:39:14 +0000 (06:39 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 01:14:19 +0000 (01:14 +0000)
commitaff02dd76ba7d5eacda231e386945cff60d6a0c5
tree87db8d3e824b2e519486ccff81a4c66911a11089
parent259cae4442ba3ad1d1b8e981e47f42493d93ca86
turnip: make the struct slot_value of queries get 2 values

In case of transform feedback query, it writes two integer values,
which one is for primitives written and another is for primitives
generated.

To handle this, the second member of the struct slot_value is worth
to be presented not as a padding.

In addition, we also need to modify get/copy_result to access both
values.

This patch is the prep work for the transform feedback query support.

Tested with
dEQP-VK.pipeline.timestamp.*
dEQP-VK.query_pool.occlusion_query.*

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