OSDN Git Service

turnip: Update tu_query_pool with turnip-specific fields
authorBrian Ho <brian@brkho.com>
Thu, 2 Jan 2020 19:42:14 +0000 (14:42 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 18:14:01 +0000 (18:14 +0000)
tu_query_pool was forked from radv_query_pool, but we will need a
different set of fields to implement queries in turnip.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3279>

src/freedreno/vulkan/tu_private.h

index 39025c4..6199831 100644 (file)
@@ -1549,12 +1549,11 @@ tu_device_finish_meta(struct tu_device *device);
 
 struct tu_query_pool
 {
+   VkQueryType type;
    uint32_t stride;
-   uint32_t availability_offset;
    uint64_t size;
-   char *ptr;
-   VkQueryType type;
-   uint32_t pipeline_stats_mask;
+   uint32_t pipeline_statistics;
+   struct tu_bo bo;
 };
 
 struct tu_semaphore