freedreno: Associate the acc query bo with the batch.
authorEric Anholt <eric@anholt.net>
Fri, 27 Mar 2020 18:31:24 +0000 (11:31 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 30 Mar 2020 21:35:21 +0000 (21:35 +0000)
commit4a0783994810fd00e0a6727e902796dc2abe2b41
tree1bb05d675c0a21dc40760229a484bd911d668e34
parent36612c96bd2a354b4c31eeb331d2f4bbad2f210e
freedreno: Associate the acc query bo with the batch.

Otherwise, a result query with wait won't trigger flushing the batch, and
we can end up with zeroed results.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4356>
src/gallium/drivers/freedreno/freedreno_query_acc.c