zink: sync queries at the end of cmdbufs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 3 May 2023 14:39:55 +0000 (10:39 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 May 2023 20:08:07 +0000 (20:08 +0000)
commit2e3ce614b9e4c307f233aac5deaf2b623a0f0fab
tree3d31d54237fbb6b00bc65a289a2691f57bfcf794
parent738c2eacf3578b8c177304e9761909d492f82619
zink: sync queries at the end of cmdbufs

with tc, query results can be fetched async, and it's impossible to
sync tc in this scenario. to avoid needing to sync when a sync is not
possible, sync ahead of time in all cases

Fixes: 7c96e989755 ("zink: always start/stop/resume queries inside renderpasses")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22827>
src/gallium/drivers/zink/zink_batch.c
src/gallium/drivers/zink/zink_query.c
src/gallium/drivers/zink/zink_query.h