zink: fix vkCmdResetQueryPool usage
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 20 May 2020 13:52:24 +0000 (09:52 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 22 May 2020 13:24:10 +0000 (13:24 +0000)
commit3933747d87680a3432814aa51f2f5231b2f1ed60
treec7e7dbd27a8fd101ff725ea99c75b2df98bfd0e6
parentae32a1ed20ebd49c8fb42b9dd31d26c046881f46
zink: fix vkCmdResetQueryPool usage

the final parameter here is the number of queries to reset, not the
index of the last query, meaning that the value passed needs to be
(curr_query + 1) in order to reset the query corresponding to
curr_query

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5120>
src/gallium/drivers/zink/zink_query.c