tu: Improve timestamp queries
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 2 Jul 2020 09:07:34 +0000 (11:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Aug 2020 19:21:18 +0000 (19:21 +0000)
commitff5f46098041bad8d80109b092279b9d1707113a
treef4b92a2c2a26a5daa1bbc83eafa7ed1bab1da1a3
parent6c446fe650b80301a5c5d1ab74a0560b4183d7e9
tu: Improve timestamp queries

As the original comment says, we can't really give the user what they
want if there's a timestamp inside a GMEM renderpass, but we can give
them a better approximation of it. At least sysmem renderpasses will now
have an accurate timestamp.

Also, don't emit the WFI if it's not necessary, based on the stage
flags.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5720>
src/freedreno/vulkan/tu_query.c