wsi/wayland: use proper VkResult type
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 5 Nov 2018 09:55:02 +0000 (09:55 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Mon, 5 Nov 2018 14:55:05 +0000 (14:55 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/vulkan/wsi/wsi_common_wayland.c

index e9cc22ec60372e486e8eb6e9a2aedaf1b8f5ddcf..12014b0c143d93df96dd08cc2c083313b1015b04 100644 (file)
@@ -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