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
This commit is contained in:
parent
09fa27cd09
commit
58043cbc8b
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user