From 1a36e51f7a8e854722cb89cb4e3f4d7c0c710df1 Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Mon, 31 May 2021 01:41:57 +0800 Subject: [PATCH 11/14] HACK: [ozone/wayland]: Force disable implicit external sync The Mali's implicit external sync seems broken. Signed-off-by: Jeffy Chen --- ui/ozone/platform/wayland/gpu/gbm_surfaceless_wayland.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/ozone/platform/wayland/gpu/gbm_surfaceless_wayland.cc b/ui/ozone/platform/wayland/gpu/gbm_surfaceless_wayland.cc index c67c8bd1..2378a376 100644 --- a/ui/ozone/platform/wayland/gpu/gbm_surfaceless_wayland.cc +++ b/ui/ozone/platform/wayland/gpu/gbm_surfaceless_wayland.cc @@ -137,7 +137,8 @@ void GbmSurfacelessWayland::SwapBuffersAsync( } else { // TODO(fangzhoug): the following should be replaced by a per surface flush // as it gets implemented in GL drivers. - EGLSyncKHR fence = InsertFence(has_implicit_external_sync_); + // HACK: The Mali's implicit external sync seems broken. + EGLSyncKHR fence = InsertFence(/* has_implicit_external_sync_ */ false); CHECK_NE(fence, EGL_NO_SYNC_KHR) << "eglCreateSyncKHR failed"; fence_wait_task = base::BindOnce(&WaitForEGLFence, GetDisplay(), fence); -- 2.20.1