Fix ws-testcase build issue: 04/259304/1
authorTianhao Ni <tianhao.ni@samsung.com>
Fri, 4 Jun 2021 05:42:48 +0000 (13:42 +0800)
committerTianhao Ni <tianhao.ni@samsung.com>
Fri, 4 Jun 2021 05:58:16 +0000 (13:58 +0800)
- Issue:
   undefined reference to '__tpl_display_choose_backend_wl_egl_thread'
   undefined refetence to '__tpl_display_choose_backend_wayland_vk_wsi'

- Fix:
   Replace __tpl_display_choose_backend_wl_egl_thread() with __tpl_display_choose_backend_wl_egl_thread2()
   Replace __tpl_display_choose_backend_wayland_vk_wsi() with __tpl_display_choose_backend_wayland_vk_wsi_thread()

Change-Id: I1d562bbaf37c4c45b238e221b125bdb42cc6db1a
Signed-off-by: Tianhao Ni <tianhao.ni@samsung.com>
src/tpl.c

index f40889d..5482bc1 100644 (file)
--- a/src/tpl.c
+++ b/src/tpl.c
@@ -274,14 +274,14 @@ __tpl_display_choose_backend(tpl_handle_t native_dpy)
        if (__tpl_display_choose_backend_tbm(native_dpy) == TPL_TRUE)
                return TPL_BACKEND_TBM;
        if (wl_egl_thread) {
-               if (__tpl_display_choose_backend_wl_egl_thread(native_dpy))
+               if (__tpl_display_choose_backend_wl_egl_thread2(native_dpy))
                        return TPL_BACKEND_WAYLAND_THREAD;
        } else {
                if (__tpl_display_choose_backend_wayland_egl(native_dpy))
                        return TPL_BACKEND_WAYLAND;
        }
-       if (__tpl_display_choose_backend_wayland_vk_wsi(native_dpy) == TPL_TRUE)
-               return TPL_BACKEND_WAYLAND_VULKAN_WSI;
+       if (__tpl_display_choose_backend_wayland_vk_wsi_thread(native_dpy) == TPL_TRUE)
+               return TPL_BACKEND_WAYLAND_VULKAN_WSI_THREAD;
 #endif
 #ifdef TPL_WINSYS_DRI2
        if (__tpl_display_choose_backend_x11_dri2(native_dpy) == TPL_TRUE)