anv: Use the query_slot helper in vkResetQueryPoolEXT
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 25 Oct 2019 22:07:02 +0000 (17:07 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 31 Oct 2019 13:46:09 +0000 (13:46 +0000)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/genX_query.c

index b3090f20545179000993e2ed353e4c98a3ec1236..59fe638a48c2cf4065e3a13a3c0a365ab6953131 100644 (file)
@@ -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;
    }
 }