vulkan: Unconditionally add barriers for missing external subpass deps
authorJason Ekstrand <jason.ekstrand@collabora.com>
Tue, 8 Nov 2022 16:43:37 +0000 (10:43 -0600)
committerEric Engestrom <eric@engestrom.ch>
Thu, 17 Nov 2022 14:05:03 +0000 (14:05 +0000)
commit84381034a775346f839fbdf1f046057ef340b3dd
tree520cdc5c3cb6fda55e2dd6c3de6e8f9411a4fc1d
parent8747b27202251dff8e932b361e57af6078e0dd95
vulkan: Unconditionally add barriers for missing external subpass deps

This is a very scorched-earth approach which doesn't take into account
whether or not there are any explicitly provided dependencies.  We could
take a finer-grained approach in theory but it's unlikely to matter in
practice since you usually stall in Begin/EndRenderPass anyway.

Fixes: 1d726940d288 ("vulkan: Add a common CmdBegin/EndRederPass implementation")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6203
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7650
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19599>
(cherry picked from commit 11b2a063bf1f18b3be9542be8c229427a33c92f0)
.pick_status.json
src/vulkan/runtime/vk_render_pass.c