summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-03-14 17:58:44 -0700
committerJason Ekstrand <[email protected]>2017-03-17 12:12:49 -0700
commitbce4a935c6de6dd3ac37339b51c1a6a3e9131a11 (patch)
tree25a026e16858f26407dd06ff734e20f19b6ea53b /src/intel/vulkan/anv_private.h
parent1c797af2c6007382b1cdd11a653e2e5c670e8cda (diff)
anv/query: Use a variable-length slot size
Not all queries are the same. Even the two queries we support today require a different amount of data per slot. Once we introduce pipeline statistics queries, the size will vary wildly. Reviewed-By: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index acf0962a4a1..997962e77b5 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -2013,14 +2013,11 @@ struct anv_render_pass {
struct anv_subpass subpasses[0];
};
-struct anv_query_pool_slot {
- uint64_t available;
- uint64_t begin;
- uint64_t end;
-};
-
struct anv_query_pool {
VkQueryType type;
+ /** Stride between slots, in bytes */
+ uint32_t stride;
+ /** Number of slots in this query pool */
uint32_t slots;
struct anv_bo bo;
};