freedreno/a6xx: Avoid stalling for occlusion queries
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 15 May 2020 19:23:18 +0000 (12:23 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 00:16:55 +0000 (00:16 +0000)
commit13fc03f4c0e709f6d1a8d811f9bc8a0c8c42943c
treef924cfa6c216fb33fef64b85aa6532bec089d817
parent1c21577246691589f0295081d208894082444a02
freedreno/a6xx: Avoid stalling for occlusion queries

If we postpone computing the counter delta until after each tile (or
sysmem pass), we don't have to stall in the middle of the draw stream.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5064>
src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
src/gallium/drivers/freedreno/a6xx/fd6_query.c
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_batch.h