anv: Properly handle cases for different query types in copy_query_results_with_shadermain
commit33499636450e7a8316a2e4251431b5ee61a585fe
authorKevin Chuang <kaiwenjon23@gmail.com>
Thu, 30 May 2024 01:17:08 +0000 (29 18:17 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 1 Jun 2024 13:05:48 +0000 (1 13:05 +0000)
tree9c8288e5ce5dfcee287d3aad04c2e9bb90aabe42
parent71d455b96fbf3807441f1b9bb82416928c77ac20
anv: Properly handle cases for different query types in copy_query_results_with_shader

Like it describes in the comment section of VK_QUERY_TYPE_OCCLUSION,
only occlusion and timestamps queries needs ANV_COPY_QUERY_FLAG_PARTIAL.
VK_QUERY_TYPE_PRIMITIVES_GENERATED_EXT is captured by MI commands.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29493>
src/intel/vulkan/genX_query.c