[Mesa-dev] [PATCH mesa 4/4] vulkan/wsi: fix pointer casting warning on 32bit

Eric Engestrom eric.engestrom at intel.com
Sun Oct 28 13:45:08 UTC 2018


Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 src/vulkan/wsi/wsi_common_wayland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c
index e9cc22ec60372e486e8e..c3cb066bd6dfedb6a363 100644
--- a/src/vulkan/wsi/wsi_common_wayland.c
+++ b/src/vulkan/wsi/wsi_common_wayland.c
@@ -959,7 +959,7 @@ wsi_wl_surface_create_swapchain(VkIcdSurfaceBase *icd_surface,
       /* If we have an oldSwapchain parameter, copy the display struct over
        * from the old one so we don't have to fully re-initialize it.
        */
-      struct wsi_wl_swapchain *old_chain = (void *)pCreateInfo->oldSwapchain;
+      struct wsi_wl_swapchain *old_chain = (void *)(uintptr_t)pCreateInfo->oldSwapchain;
       chain->display = wsi_wl_display_ref(old_chain->display);
    } else {
       chain->display = NULL;
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list