zink: fix for startup crash of weston running on top of zink + venus
authorIgor Torrente <igor.torrente@collabora.com>
Thu, 28 Sep 2023 16:26:25 +0000 (12:26 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 4 Oct 2023 22:28:32 +0000 (22:28 +0000)
commitf0762f003d9e091a8da65406f21a631f9e98e8c4
tree98844d89e71631d51ac7cc7fb66a5267e57da3b6
parent59ea386065b71abb0a4abd08cb103e0aab6ec9a4
zink: fix for startup crash of weston running on top of zink + venus

Venus asserts if we are transitioning to/from
`VK_IMAGE_LAYOUT_PRESENT_SRC_KHR` if we are not dealing with a wsi
image.

Now we detects this case and avoid transition the layout in this case.

Signed-off-by: Igor Torrente <igor.torrente@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25423>
src/gallium/drivers/zink/zink_context.c