diff options
| author | Chia-I Wu <olvaffe@gmail.com> | 2011-03-28 22:33:38 +0800 | 
|---|---|---|
| committer | Chia-I Wu <olvaffe@gmail.com> | 2011-03-28 22:33:38 +0800 | 
| commit | 0c1c261c2df8cdbe381e1e9b83dc0b46d936f538 (patch) | |
| tree | 09180e7acd20f7b5211a34ab4089c6e765b94d99 | |
| parent | f27a8a332173a6cc1096e6fb3d5f9fc132ed4f9f (diff) | |
gralloc: glFlush() should suffice for page flipping
| -rw-r--r-- | src/gralloc/Android.mk | 2 | ||||
| -rw-r--r-- | src/gralloc/gralloc_mod.c | 10 | 
2 files changed, 9 insertions, 3 deletions
| diff --git a/src/gralloc/Android.mk b/src/gralloc/Android.mk index e50060ee65..d440a99308 100644 --- a/src/gralloc/Android.mk +++ b/src/gralloc/Android.mk @@ -16,7 +16,7 @@ LOCAL_SHARED_LIBRARIES := \  	libdrm \  	liblog \  	libcutils \ -	libEGL +	libGLESv1_CM  ifeq ($(strip $(MESA_BUILD_INTEL)),true)  LOCAL_SRC_FILES += gralloc_gem_intel.c diff --git a/src/gralloc/gralloc_mod.c b/src/gralloc/gralloc_mod.c index 1296d2af04..bc0786eb3e 100644 --- a/src/gralloc/gralloc_mod.c +++ b/src/gralloc/gralloc_mod.c @@ -222,11 +222,17 @@ drm_mod_post_fb0(struct framebuffer_device_t *fb, buffer_handle_t handle)     return drm_kms_post(drm, bo);  } -#include <EGL/egl.h> +#include <GLES/gl.h>  static int  drm_mod_composition_complete_fb0(struct framebuffer_device_t *fb)  { -   eglWaitClient(); +   struct drm_module_t *drm = (struct drm_module_t *) fb->common.module; + +   if (drm->mode_page_flip) +      glFlush(); +   else +      glFinish(); +     return 0;  } | 
