From 0d2787f7c96a243f374477ea618e893839958119 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 25 Oct 2019 17:07:02 -0500 Subject: [PATCH] anv: Use the query_slot helper in vkResetQueryPoolEXT Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/genX_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index b3090f20545..59fe638a48c 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -602,7 +602,7 @@ void genX(ResetQueryPoolEXT)( ANV_FROM_HANDLE(anv_query_pool, pool, queryPool); for (uint32_t i = 0; i < queryCount; i++) { - uint64_t *slot = pool->bo.map + (firstQuery + i) * pool->stride; + uint64_t *slot = query_slot(pool, firstQuery + i); *slot = 0; } } -- 2.30.2