radv: optimize radv_CmdWaitEvents()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 27 Jun 2018 12:15:58 +0000 (14:15 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Jul 2018 09:31:03 +0000 (11:31 +0200)
commitf635109140d92139f981f5cd5409f5b1078fc079
treed8fcbb76b3027ae5b2989d4cf033ebc144bd8b46
parent620626a371a9d2fa69d7b73cfaf3e816dffd6f04
radv: optimize radv_CmdWaitEvents()

This introduces radv_barrier() (same as the draw/dispatch codepath).
This helper is used for merging the code from CmdWaitEvents() and
CmdPipelineBarrier because it's quite similar.

We do ignore the source stage mask for CmdWaitEvents because
it's irrelevant when event objects are used.

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