radv: Flush before vkCmdWriteTimestamp() if needed
authorAlex Smith <asmith@feralinteractive.com>
Wed, 5 Dec 2018 09:45:26 +0000 (09:45 +0000)
committerAlex Smith <asmith@feralinteractive.com>
Wed, 5 Dec 2018 10:52:48 +0000 (10:52 +0000)
commitc1b6cb068c4dfe49c309624610e8610b3f0b27c3
tree9ec64fc88ce0155a3add738034c2001590332c03
parent824cfc1ee5e0aba15b676b9363ff32046d96eb42
radv: Flush before vkCmdWriteTimestamp() if needed

As done for vkCmdBeginQuery() already. Prevents timestamps from being
overwritten by previous vkCmdResetQueryPool() calls if the shader path
was used to do the reset.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108925
Fixes: a41e2e9cf5 ("radv: allow to use a compute shader for resetting the query pool")
Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_query.c