vulkan/wsi/wayland: fix wsi_wl_image_init error code
authorSimon Ser <contact@emersion.fr>
Thu, 24 Jun 2021 18:30:25 +0000 (20:30 +0200)
committerSimon Ser <contact@emersion.fr>
Thu, 8 Jul 2021 10:05:25 +0000 (12:05 +0200)
commit7d711a10aa5ce5a045901381e80d9b41f2be08b2
treedb62f0bde7d3251d52a7a255dced738cf5bdeb47
parentc45a1de5c6016e861dbd19467eb5492ed3990878
vulkan/wsi/wayland: fix wsi_wl_image_init error code

If image->buffer cannot be allocated, the value returned by
wsi_create_native_image is returned. However, if we got that far,
that value is VK_SUCCESS.

Fix it and return VK_ERROR_OUT_OF_HOST_MEMORY.

Signed-off-by: Simon Ser <contact@emersion.fr>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11589>
src/vulkan/wsi/wsi_common_wayland.c