From: Eric Engestrom Date: Mon, 5 Nov 2018 09:55:02 +0000 (+0000) Subject: wsi/wayland: use proper VkResult type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcee22afed935a434118935bcdad5c4fc7246077;p=mesa.git wsi/wayland: use proper VkResult type Signed-off-by: Eric Engestrom Reviewed-by: Dave Airlie --- diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index e9cc22ec603..12014b0c143 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -455,10 +455,10 @@ wsi_wl_get_presentation_support(struct wsi_device *wsi_device, (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND]; struct wsi_wl_display display; - int ret = wsi_wl_display_init(wsi, &display, wl_display, false); + VkResult ret = wsi_wl_display_init(wsi, &display, wl_display, false); wsi_wl_display_finish(&display); - return ret == 0; + return ret == VK_SUCCESS; } static VkResult