tpl_wayland_egl: Added checking reset flag to fix frontbuffer mode 77/202577/2
authorJoonbum Ko <joonbum.ko@samsung.com>
Mon, 1 Apr 2019 06:17:38 +0000 (15:17 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 3 Apr 2019 07:44:29 +0000 (07:44 +0000)
 - If activate-> deactivate-> activate occurs between
  tpl_surface_dequeue <-> tpl_surface_dequeue, a new dequeue is needed.

Change-Id: Ie76f8f0ccd3e7aac6b912f6e9bd4dd90eea9b121
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl.c
src/tpl_wl_egl_thread.c

index f358985..7185368 100644 (file)
@@ -1231,7 +1231,7 @@ __tpl_wayland_egl_surface_dequeue_buffer(tpl_surface_t *surface, uint64_t timeou
                 * it will return that frontbuffer if it is still activated,
                 * otherwise dequeue the new buffer after initializing
                 * surface->frontbuffer to NULL. */
-               if (is_activated) {
+               if (is_activated && !wayland_egl_surface->reset) {
                        TPL_LOG_B("WL_EGL",
                                          "[DEQ][F] surface->frontbuffer(%p) BO_NAME(%d)",
                                          surface->frontbuffer,
index 2452d88..bd7ecbb 100644 (file)
@@ -716,7 +716,7 @@ __tpl_wl_egl_surface_dequeue_buffer(tpl_surface_t *surface, uint64_t timeout_ns,
                 * it will return that frontbuffer if it is still activated,
                 * otherwise dequeue the new buffer after initializing
                 * surface->frontbuffer to NULL. */
-               if (is_activated) {
+               if (is_activated && !wayland_egl_surface->reset) {
                        TPL_LOG_T("WL_EGL",
                                          "[DEQ][F] surface->frontbuffer(%p) BO_NAME(%d)",
                                          surface->frontbuffer,