radv: sync before resetting a pool if there is active pending queries
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 28 May 2019 09:08:32 +0000 (11:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 May 2019 06:47:54 +0000 (08:47 +0200)
commiteaeaad25f78a3a6676518f54cc4d30945efd3a59
treebc3f88c7a91803935cbee3e04c8e2c72f8a29021
parentbc273dece25e50b50a7b6373f4e92a29bd243fb0
radv: sync before resetting a pool if there is active pending queries

Make sure to sync all previous work if the given command buffer
has pending active queries. Otherwise the GPU might write queries
data after the reset operation.

This fixes a bunch of new dEQP-VK.query_pool.* CTS failures.

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
src/amd/vulkan/si_cmd_buffer.c