radv: Don't create continue preamble when it's not needed.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 5 May 2022 18:09:27 +0000 (20:09 +0200)
committerTimur Kristóf <timur.kristof@gmail.com>
Tue, 10 May 2022 08:19:34 +0000 (10:19 +0200)
commitb8ef53d1c0ee1fc28a8d02ef6653df95be0c2a0d
tree7b892600357bcbdaea9e17d7dd6a9645848b2365
parent86821329c705c9fd7c323c53f8ad3f2e40081302
radv: Don't create continue preamble when it's not needed.

Previously we would always create it, but would return NULL when
it wasn't needed. Now, don't create it when not needed.

Additionally, don't create the continue preamble when we can use
IB BOs, because then we never use a continue preamble.

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