zink: only reset query pool on query end if current batch isn't in renderpass
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 8 Jun 2020 13:59:44 +0000 (09:59 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 20:59:07 +0000 (20:59 +0000)
commitb9b943793b017e3da8239117e70d020c17480d3f
tree4a388d7519a9a7c01a343a644ad0df82deb990b4
parent2c02ca21842c71162dbcce98d4b7357db5489348
zink: only reset query pool on query end if current batch isn't in renderpass

reset can't be performed during a renderpass, so we need to defer that until a
time when we're definitely not in a renderpass, such as when we're starting a
new query or resuming a query

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