tpl_wayland_egl: Format of tpl_surface is now used instead of ARGB8888 74/140574/3
authorHoyub Lee <hoyub.lee@samsung.com>
Tue, 25 Jul 2017 10:58:15 +0000 (19:58 +0900)
committerHoyub Lee <hoyub.lee@samsung.com>
Thu, 27 Jul 2017 04:29:30 +0000 (04:29 +0000)
Because there was no real use case using format other than ARGB8888,
the format value in __tpl_wayland_egl_surface_init() was fixed as ARGB8888.

However, there were cases using other formats on CTS.
Therefore, the format of tpl_surface is going to be used.

Change-Id: I427d1a989267b9ec0fbe03f5bb67b02ba985a039
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
src/tpl_wayland_egl.c

index 714c890..156b6e3 100644 (file)
@@ -527,14 +527,14 @@ __tpl_wayland_egl_surface_init(tpl_surface_t *surface)
                                                                                         CLIENT_QUEUE_SIZE,
                                                                                         wl_egl_window->width,
                                                                                         wl_egl_window->height,
-                                                                                        TBM_FORMAT_ARGB8888);
+                                                                                        surface->format);
        } else
                /*Why wl_surface is NULL ?*/
                wayland_egl_surface->tbm_queue = tbm_surface_queue_sequence_create(
                                                                                         CLIENT_QUEUE_SIZE,
                                                                                         wl_egl_window->width,
                                                                                         wl_egl_window->height,
-                                                                                        TBM_FORMAT_ARGB8888,
+                                                                                        surface->format,
                                                                                         0);
 
        if (!wayland_egl_surface->tbm_queue) {