[mutter] egl: Add EGL_RESOURCE_BUSY_EXT error



commit 58043cbc8b67bad95fb362f6eb06a3bd0df2128d
Author: Miguel A. Vico <mvicomoya nvidia com>
Date:   Wed Feb 1 18:10:23 2017 -0800

    egl: Add EGL_RESOURCE_BUSY_EXT error
    
    This change adds both the error code and description for
    EGL_RESOURCE_BUSY_EXT, recently added to the EGL_EXT_stream_acquire_mode
    extension:
    
      
https://github.com/aritger/eglstreams-kms-example/blob/master/proposed-extensions/EGL_EXT_stream_acquire_mode.txt
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779112

 src/backends/meta-egl-ext.h |    1 +
 src/backends/meta-egl.c     |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/meta-egl-ext.h b/src/backends/meta-egl-ext.h
index d93d757..8705e7d 100644
--- a/src/backends/meta-egl-ext.h
+++ b/src/backends/meta-egl-ext.h
@@ -66,6 +66,7 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, st
 #ifndef EGL_EXT_stream_acquire_mode
 #define EGL_EXT_stream_acquire_mode 1
 #define EGL_CONSUMER_AUTO_ACQUIRE_EXT         0x332B
+#define EGL_RESOURCE_BUSY_EXT                 0x3353
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBEXTPROC) (EGLDisplay dpy, EGLStreamKHR 
stream, const EGLAttrib *attrib_list);
 #ifdef EGL_EGLEXT_PROTOTYPES
 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribEXT (EGLDisplay dpy, EGLStreamKHR stream, const 
EGLAttrib *attrib_list);
diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c
index 92613db..b618d97 100644
--- a/src/backends/meta-egl.c
+++ b/src/backends/meta-egl.c
@@ -133,6 +133,8 @@ get_egl_error_str (EGLint error_number)
       break;
     case EGL_BAD_OUTPUT_LAYER_EXT:
       return "An EGLOutputLayerEXT argument does not name a valid EGL output layer.";
+    case EGL_RESOURCE_BUSY_EXT:
+      return "The operation could not be completed on the requested resource because it is temporary 
unavailable.";
     default:
       return "Unknown error";
       break;


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