zink: reset query on-demand when beginning a new query from resume
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 20 May 2020 13:53:45 +0000 (09:53 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 22 May 2020 13:24:10 +0000 (13:24 +0000)
commitaf2d99353555715afe6e6b6ba5158a2cc0d6b015
tree270f3921d8967765aed71a4c27ce69534e488462
parent3933747d87680a3432814aa51f2f5231b2f1ed60
zink: reset query on-demand when beginning a new query from resume

the current query pool implementation expects queries to be reset at
the time they're initiated, which means queries started at this point
need to also be explicitly reset

the zink_begin_query() function can't be reused here or else the
query will be double-added to the active list, triggering an infinite loop

ref mesa/mesa#3000

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