From efd7b8987f8da318089e9391400d06db81b0ce1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 11 Jan 2019 16:03:37 +0100 Subject: [PATCH] renderer/native: Make the EGLStreams operate in mailbox mode This means eglSwapBuffers() wont dead lock if there is an old buffer pending page flip. This could happen after e.g. mode changes or for other reasons. --- src/backends/native/meta-renderer-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index d80826c27..a19fcef2a 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -2122,7 +2122,7 @@ meta_renderer_native_create_surface_egl_device (CoglOnscreen *onscreen, EGLOutputLayerEXT output_layer; EGLAttrib output_attribs[3]; EGLint stream_attribs[] = { - EGL_STREAM_FIFO_LENGTH_KHR, 1, + EGL_STREAM_FIFO_LENGTH_KHR, 0, EGL_CONSUMER_AUTO_ACQUIRE_EXT, EGL_FALSE, EGL_NONE };