freedreno/query/acc: Set needs_flush
authorRob Clark <robdclark@chromium.org>
Mon, 3 May 2021 20:28:21 +0000 (13:28 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 May 2021 23:27:31 +0000 (23:27 +0000)
commit71cff8171c22d0b363073625cfb4aab46c15c2ba
treec236f89c51079f5912996fb0ad6d4256292d120b
parenta9c9a9938d6d2ead6f08ccf5256c95801fbc864f
freedreno/query/acc: Set needs_flush

Somehow this was missed, but when we emit a query start/stop we need
have something that will need to be flushed in the batch.

Detected due to TC assert, but this had the potential to cause problems
in the non-TC case as well.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10599>
src/gallium/drivers/freedreno/freedreno_query_acc.c