Event waits can be safely moved before a render pass start, since event setting and resetting commands cannot happen inside one. We don't need to go that far, but we can use this to record the wait in its own separate job and then execute this job before the binning commands recorded in the secondary command buffer when we execute the secondary into a primary.
ca4b42a51df v3dv: implement vkCmdWaitEvents for secondary command buffers
src/broadcom/vulkan/v3dv_cmd_buffer.c | 95 +++++++++++++++++++++++------------
src/broadcom/vulkan/v3dv_private.h | 6 +++
2 files changed, 70 insertions(+), 31 deletions(-)