radv: make sure to emit cache flushes before starting a query
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 28 Feb 2018 20:47:11 +0000 (21:47 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 1 Mar 2018 08:14:49 +0000 (09:14 +0100)
commitc956d0f4069cf39d8d3c57ebed8d905575e9ea34
tree0bd8f5792b5cbaf08847361896b04e7ba5d6c752
parente72fb4e61128684efc28647931a793910e190656
radv: make sure to emit cache flushes before starting a query

If the query pool has been previously resetted using the compute
shader path.

Fixes: a41e2e9cf5 ("radv: allow to use a compute shader for resetting the query pool")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105292
Cc: "18.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_query.c