summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gralloc/Android.mk2
-rw-r--r--src/gralloc/gralloc_mod.c10
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;
}