if tpl_display_create failed
try tpl_display_get
Change-Id: Ifb9add6c216b6eb3ad0d48efcb929c14d8b69338
void
vk_free(const VkAllocationCallbacks *allocator, void *mem);
+static inline tpl_display_t *
+vk_get_tpl_display(tpl_handle_t native_dpy)
+{
+ tpl_display_t *display = tpl_display_create(TPL_BACKEND_WAYLAND_VULKAN_WSI, native_dpy);
+ if (display == NULL)
+ display = tpl_display_get(native_dpy);
+ return display;
+};
+
PFN_vkVoidFunction
vk_icd_get_proc_addr(VkInstance instance, const char *name);