zink: improve batch flushing for queries when compute batches are involved
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 9 Sep 2020 21:11:00 +0000 (17:11 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 13:54:14 +0000 (13:54 +0000)
commit8dec725bf06daf1ae3b994697d0c4ba8cb17c7e9
treeb27bbd9c9db10e51bd0432f0d1ed1892346cef73
parentab82e2c4f17cb4afd5087ebe45c042bf73b1c4ed
zink: improve batch flushing for queries when compute batches are involved

we can reduce some flushing here by only doing a flush if we're about to
copy a compute batch resource that has gfx batch access pending

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9152>
src/gallium/drivers/zink/zink_query.c