venus: refactor vn_EndCommandBuffer
authorChia-I Wu <olvaffe@gmail.com>
Wed, 14 Jul 2021 23:08:25 +0000 (16:08 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 15 Jul 2021 00:52:43 +0000 (00:52 +0000)
commit12d18abfe7a523d91739a6f0fb0f59c66d0478f3
tree2ddba5c5a6d1a894bca082f7c929d2f1432ace6d
parentf144d914966eba2fd816b2948d5832b14f01a947
venus: refactor vn_EndCommandBuffer

Add vn_cmd_submit as a wrapper to vn_instance_ring_submit.  It is also
designed such that it can be called from any of the vn_Cmd* functions.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11896>
src/virtio/vulkan/vn_command_buffer.c