aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-10-28 13:40:12 +0000
committerEric Engestrom <[email protected]>2019-03-11 10:49:36 +0000
commitf2e24dd81d338421de63d66b0988fd4f0e72db8e (patch)
tree9d11ccebd612ddaf76568188f0e473573c405f32
parent687babc04532a602937148c9e2ae31dd8daced9e (diff)
wsi/wayland: fix pointer casting warning on 32bit
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
-rw-r--r--src/vulkan/wsi/wsi_common_wayland.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c
index fac34304044..87fcbae26c4 100644
--- a/src/vulkan/wsi/wsi_common_wayland.c
+++ b/src/vulkan/wsi/wsi_common_wayland.c
@@ -672,6 +672,7 @@ struct wsi_wl_swapchain {
struct wsi_wl_image images[0];
};
+WSI_DEFINE_NONDISP_HANDLE_CASTS(wsi_wl_swapchain, VkSwapchainKHR)
static struct wsi_image *
wsi_wl_swapchain_get_wsi_image(struct wsi_swapchain *wsi_chain,
@@ -967,7 +968,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;
+ WSI_FROM_HANDLE(wsi_wl_swapchain, old_chain, pCreateInfo->oldSwapchain);
chain->display = wsi_wl_display_ref(old_chain->display);
} else {
chain->display = NULL;