From 7cd1789933aeb27b544e9cbc05521a13e735a154 Mon Sep 17 00:00:00 2001 From: Kalyan Kondapally Date: Wed, 25 Jan 2017 18:47:38 -0800 Subject: [PATCH] Dont pass EGL_SYNC_FLUSH_COMMANDS_BIT_KHR. Mesa generates invalid argument error with this and seems to work fine without it. Jira: None Test: No more errors from Mesa related to EGL Fence in logcat. Signed-off-by: Kalyan Kondapally --- common/compositor/gl/glrenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/compositor/gl/glrenderer.cpp b/common/compositor/gl/glrenderer.cpp index df05dce..20e1331 100644 --- a/common/compositor/gl/glrenderer.cpp +++ b/common/compositor/gl/glrenderer.cpp @@ -128,7 +128,7 @@ void GLRenderer::InsertFence(int kms_fence) { }; EGLSyncKHR fence = eglCreateSyncKHR( context_.GetDisplay(), EGL_SYNC_NATIVE_FENCE_ANDROID, attrib_list); - eglWaitSyncKHR(context_.GetDisplay(), fence, EGL_SYNC_FLUSH_COMMANDS_BIT_KHR); + eglWaitSyncKHR(context_.GetDisplay(), fence, 0); eglDestroySyncKHR(context_.GetDisplay(), fence); #else glFlush(); -- 2.11.0