[Mesa-dev] [PATCH mesa 1/2] wsi/wayland: user proper VkResult type
Dave Airlie
airlied at gmail.com
Mon Nov 5 10:08:43 UTC 2018
Reviewed-by: Dave Airlie <airlied at redhat.com>
On Mon, 5 Nov 2018 at 20:00, Eric Engestrom <eric.engestrom at intel.com> wrote:
>
> Signed-off-by: Eric Engestrom <eric.engestrom at intel.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 86b3acec94e8b98b3dbf..a799b427621d72b2927c 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
> --
> Cheers,
> Eric
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list