radv: optimize vkCmd{Set,Reset}Event() a little bit
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 Jun 2018 10:21:18 +0000 (12:21 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Jul 2018 09:31:06 +0000 (11:31 +0200)
commit8339ba827bf3f18463824206347665a45989b99e
tree1a8c258ae4a7ee1d4826bdf57b6a163b453fd3d2
parentf635109140d92139f981f5cd5409f5b1078fc079
radv: optimize vkCmd{Set,Reset}Event() a little bit

Always emitting a bottom-of-pipe event is quite dumb. Instead,
start to optimize these functions by syncing PFP for the
top-of-pipe and syncing ME for the post-index-fetch event.

This can still be improved by emitting EOS events for
syncing PS and CS stages.

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