diff options
-rw-r--r-- | src/intel/vulkan/genX_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |