summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Xiao <b49994@freescale.com>2015-05-14 20:09:59 +0800
committerPrabhu Sundararaj <prabhu.sundararaj@freescale.com>2015-05-15 11:18:15 -0500
commit80da3e4a6f4e6965c6044e20692abef5142dc863 (patch)
treee770278cdfe3cd1a906caf25deaacc10e59e5582
parentfc6e710576142fbd831a5c50847d582ddb695fde (diff)
MGS-293-1 [#ccc] Wayland EGL is not throttling to VSYNC by default
Introduced a new event queue in which the swap worker can dispatch its frame callback events so it does not interfere with the main EGL thread waiting for the buffer release event. Otherwise there would be a race between checking for received events and entering dispatch function. Date: Nov 28, 2014 Signed-off-by Yong Gan <yong.gan@freescale.com>
-rw-r--r--drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h
index a93878706431..716251817019 100644
--- a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h
+++ b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h
@@ -55,7 +55,7 @@ typedef struct _DFBPixmap * HALNativePixmapType;
#include "wayland-server.h"
#include <wayland-egl.h>
-#define WL_EGL_NUM_BACKBUFFERS 3
+#define WL_EGL_NUM_BACKBUFFERS 2
typedef struct _gcsWL_VIV_BUFFER
{
@@ -70,6 +70,7 @@ typedef struct _gcsWL_EGL_DISPLAY
struct wl_viv* wl_viv;
struct wl_registry *registry;
struct wl_event_queue *wl_queue;
+ struct wl_event_queue *wl_swap_queue;
gctINT swapInterval;
} gcsWL_EGL_DISPLAY;