radv: reset pending_reset_query when flushing caches
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 5 Dec 2018 10:34:39 +0000 (11:34 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 5 Dec 2018 12:05:55 +0000 (13:05 +0100)
commite8997287695119e61709daa89ded28e393ece533
tree812a883e0178f83fc456f27c69247b5b96df521c
parent9a7b3199037ac4b798974f561067cb3d66be8010
radv: reset pending_reset_query when flushing caches

If the driver used a compute shader for resetting a query pool,
it should be completed when caches are flushed.

This might reduce the number of stalls if operations are done
between vkCmdResetQueryPool() and vkCmdBeginQuery()
(or vkCmdWriteTimestamp()).

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