venus: refactor vn_queue_submission_count_semaphores
authorChia-I Wu <olvaffe@gmail.com>
Fri, 16 Apr 2021 17:34:15 +0000 (10:34 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 19 Apr 2021 18:25:00 +0000 (18:25 +0000)
commit588a52869e1f320697b57854f8ecb129e8f7cda4
tree668179a76fd32434eadcfd2cf4bbb01db6441053
parent9c689ef395772ce0f5fe999fc08ddb7a2929fce8
venus: refactor vn_queue_submission_count_semaphores

Add vn_queue_submission_count_batch_semaphores that works on a single
batch at a time.  Also avoid code duplication.

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