radv: Move normal (non-empty) queue submit to a separate function.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 5 May 2022 16:37:20 +0000 (18:37 +0200)
committerTimur Kristóf <timur.kristof@gmail.com>
Tue, 10 May 2022 08:19:31 +0000 (10:19 +0200)
commit4ea82fad24c35f22b9c32bf712d059d5a456866b
tree0d24fdcee6032ae0619520b28e396d3e51e1af4c
parent0c77c94b8e3f637d2a95f854022030b83910dde5
radv: Move normal (non-empty) queue submit to a separate function.

Also move the preamble update into this function, as that is only needed
by this code path and not needed for empty submits.

With this change, the goal is to make radv_queue_submit easier to
read and understand. This prepares it for future work when we'll
add the capability to submit to multiple queues at the same time.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16358>
src/amd/vulkan/radv_device.c