summaryrefslogtreecommitdiffstats
path: root/src/gralloc/gralloc_mod.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-03-28 22:33:38 +0800
committerChia-I Wu <[email protected]>2011-03-28 22:33:38 +0800
commit0c1c261c2df8cdbe381e1e9b83dc0b46d936f538 (patch)
tree09180e7acd20f7b5211a34ab4089c6e765b94d99 /src/gralloc/gralloc_mod.c
parentf27a8a332173a6cc1096e6fb3d5f9fc132ed4f9f (diff)
gralloc: glFlush() should suffice for page flipping
Diffstat (limited to 'src/gralloc/gralloc_mod.c')
-rw-r--r--src/gralloc/gralloc_mod.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gralloc/gralloc_mod.c b/src/gralloc/gralloc_mod.c
index 1296d2af042..bc0786eb3ea 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;
}