From: Jason Ekstrand Date: Fri, 25 Oct 2019 22:07:02 +0000 (-0500) Subject: anv: Use the query_slot helper in vkResetQueryPoolEXT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d2787f7c96a243f374477ea618e893839958119;p=mesa.git anv: Use the query_slot helper in vkResetQueryPoolEXT Reviewed-by: Lionel Landwerlin --- 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; } }