vulkan/wsi: fix pointer-integer conversion warnings
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 20 Aug 2018 21:36:58 +0000 (00:36 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 22 Aug 2018 21:34:32 +0000 (00:34 +0300)
For 32bit build. Trivial.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/vulkan/wsi/wsi_common_display.c
src/vulkan/wsi/wsi_common_x11.c

index e6cba188dfaf8d790415ea104e2941662dedbbc6..1e90bba460cba190c5ab04709a7feacc45558bb2 100644 (file)
@@ -1517,7 +1517,7 @@ wsi_register_vblank_event(struct wsi_display_fence *fence,
                                      flags,
                                      frame_requested,
                                      frame_queued,
-                                     (uint64_t) fence);
+                                     (uintptr_t) fence);
 
       if (!ret)
          return VK_SUCCESS;
@@ -2342,7 +2342,7 @@ wsi_get_randr_output_display(VkPhysicalDevice physical_device,
    if (connector)
       *display = wsi_display_connector_to_handle(connector);
    else
-      *display = NULL;
+      *display = VK_NULL_HANDLE;
    return VK_SUCCESS;
 }
 
index 7b930884b4709d7c6dc4211a85ff249855ff797f..aaa4d1e658e89b14a007dec002a3aaa00812337d 100644 (file)
@@ -1325,7 +1325,7 @@ x11_surface_create_swapchain(VkIcdSurfaceBase *icd_surface,
     * mode which provokes reallocation when anything changes, to make
     * sure we have the most optimal allocation.
     */
-   struct x11_swapchain *old_chain = (void *) pCreateInfo->oldSwapchain;
+   struct x11_swapchain *old_chain = (void *)(intptr_t) pCreateInfo->oldSwapchain;
    if (old_chain)
       chain->last_present_mode = old_chain->last_present_mode;
    else