aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_query.c
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2016-01-09 00:51:50 -0800
committerKristian Høgsberg Kristensen <[email protected]>2016-01-09 00:51:50 -0800
commitb538ec5409c88f9fc08e0dbbaf3ae71346a1e398 (patch)
tree9fd31e40c9a770873f31dcb4cea339942cfb8fb4 /src/vulkan/anv_query.c
parent925ad847008f12b888b9949fffa8df23347f0d13 (diff)
vk: Support reseting timestamp query pools
Diffstat (limited to 'src/vulkan/anv_query.c')
-rw-r--r--src/vulkan/anv_query.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/anv_query.c b/src/vulkan/anv_query.c
index 3b29a235cd3..1bcac097104 100644
--- a/src/vulkan/anv_query.c
+++ b/src/vulkan/anv_query.c
@@ -175,7 +175,8 @@ void anv_CmdResetQueryPool(
for (uint32_t i = 0; i < queryCount; i++) {
switch (pool->type) {
- case VK_QUERY_TYPE_OCCLUSION: {
+ case VK_QUERY_TYPE_OCCLUSION:
+ case VK_QUERY_TYPE_TIMESTAMP: {
struct anv_query_pool_slot *slot = pool->bo.map;
slot[startQuery + i].available = 0;
break;