[mutter] renderer/native: Make the EGLStreams operate in mailbox mode



commit 1eabaf12da4346d9b08a9e4c236255dc1dd076ec
Author: Jonas Ådahl <jadahl gmail com>
Date:   Fri Jan 11 16:03:37 2019 +0100

    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.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/485

 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 c1247dfe4..e030e9518 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -2623,7 +2623,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
   };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]