From 58043cbc8b67bad95fb362f6eb06a3bd0df2128d Mon Sep 17 00:00:00 2001 From: "Miguel A. Vico" Date: Wed, 1 Feb 2017 18:10:23 -0800 Subject: [PATCH] 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(+) diff --git a/src/backends/meta-egl-ext.h b/src/backends/meta-egl-ext.h index d93d757a7..8705e7d5b 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 92613db64..b618d97de 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;