etnaviv: query: reset sample count on begin_query
authorLucas Stach <l.stach@pengutronix.de>
Fri, 9 Jun 2023 16:51:05 +0000 (18:51 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 11 Jun 2023 18:41:31 +0000 (18:41 +0000)
commitb6a4b988abf57bd00be8a18be4ac610b0da64201
treed97a7fbe3cce27dfa73852462488ab5bfd28b3ef
parent22d5d1bc4040303fddaec04c9a0fd0b67e4d82f4
etnaviv: query: reset sample count on begin_query

ARB_occlusion_query specifies that the query is reset on BeginQueryARB,
not when the fetching the result of the query. This behavior also makes
a lot of sense for the perfmon queries.

CC: mesa-stable
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23557>
src/gallium/drivers/etnaviv/etnaviv_query_acc.c