aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-10-25 17:07:02 -0500
committerJason Ekstrand <[email protected]>2019-10-31 13:46:09 +0000
commit0d2787f7c96a243f374477ea618e893839958119 (patch)
tree4d06c6296e360119e32eb3ff78e759090f89f486
parent3119b96bdf57c850eddebc765c56c3282749b311 (diff)
anv: Use the query_slot helper in vkResetQueryPoolEXT
Reviewed-by: Lionel Landwerlin <[email protected]>
-rw-r--r--src/intel/vulkan/genX_query.c2
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;
}
}