radv: flush and invalidate CB before resetting query pools on GFX9
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Jun 2019 08:52:02 +0000 (10:52 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Jun 2019 09:23:48 +0000 (11:23 +0200)
commitca6bf9a6cd0a58aba24d3873c9a4938cd548cf10
tree8ef54a5ef80ea1031d1c2e028d6ccb0a49f5f280
parentcb728f28acbf8982d37aa3863cae58db95a439ca
radv: flush and invalidate CB before resetting query pools on GFX9

We have to emit a CACHE_FLUSH_AND_INV_TS_EVENT to be sure all
prior GPU work is done. While we are at it, also flush and
invalidate DB.

This fixes the following CTS (when the small hint is disabled):
dEQP-VK.query_pool.statistics_query.reset_before_copy.*

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_query.c