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)
committerMarge Bot <emma+marge@anholt.net>
Sun, 13 Nov 2022 20:34:29 +0000 (20:34 +0000)
commit11b2a063bf1f18b3be9542be8c229427a33c92f0
treebe008dcaad6b9d01d714e67a632b4543d313925d
parent4ff5051944e7a7a8bf003c331af1a73ac6c7df61
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>
src/vulkan/runtime/vk_render_pass.c