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 f3589857537d5e8c4fad2761701757a6755a8626..7185368a3662f3fc3bb63956555ac88bb7e801d8 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 2452d883c87673d5ab720cac8cd0ceb5a177a850..bd7ecbbb62708f51c90ec55a89dc188572000f38 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,