From b538ec5409c88f9fc08e0dbbaf3ae71346a1e398 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Sat, 9 Jan 2016 00:51:50 -0800 Subject: [PATCH] vk: Support reseting timestamp query pools --- src/vulkan/anv_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2