Mesa (master): wsi/wayland: use proper VkResult type
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Nov 5 15:31:27 UTC 2018
Module: Mesa
Branch: master
Commit: dcee22afed935a434118935bcdad5c4fc7246077
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dcee22afed935a434118935bcdad5c4fc7246077
Author: Eric Engestrom <eric.engestrom at intel.com>
Date: Mon Nov 5 09:55:02 2018 +0000
wsi/wayland: use proper VkResult type
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Dave Airlie <airlied at redhat.com>
---
src/vulkan/wsi/wsi_common_wayland.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c
index e9cc22ec60..12014b0c14 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
More information about the mesa-commit
mailing list