egl: sync with Khronos
Updated the EGL headers and XML file to the Khronos repository, from commit 90b78b0662e2f0548cfd1926fb77bf628933541b.
This commit is contained in:
parent
1c32de0707
commit
4acb9be27d
|
@ -33,7 +33,7 @@ extern "C" {
|
|||
** used to make the header, and the header can be found at
|
||||
** http://www.khronos.org/registry/egl
|
||||
**
|
||||
** Khronos $Git commit SHA1: cb927ca98d $ on $Git commit date: 2019-08-08 01:05:38 -0700 $
|
||||
** Khronos $Git commit SHA1: b5409265f3 $ on $Git commit date: 2020-02-20 08:24:34 -0800 $
|
||||
*/
|
||||
|
||||
#include <EGL/eglplatform.h>
|
||||
|
@ -42,7 +42,7 @@ extern "C" {
|
|||
#define EGL_EGL_PROTOTYPES 1
|
||||
#endif
|
||||
|
||||
/* Generated on date 20190808 */
|
||||
/* Generated on date 20200220 */
|
||||
|
||||
/* Generated C header for:
|
||||
* API: egl
|
||||
|
|
|
@ -33,12 +33,12 @@ extern "C" {
|
|||
** used to make the header, and the header can be found at
|
||||
** http://www.khronos.org/registry/egl
|
||||
**
|
||||
** Khronos $Git commit SHA1: cb927ca98d $ on $Git commit date: 2019-08-08 01:05:38 -0700 $
|
||||
** Khronos $Git commit SHA1: b5409265f3 $ on $Git commit date: 2020-02-20 08:24:34 -0800 $
|
||||
*/
|
||||
|
||||
#include <EGL/eglplatform.h>
|
||||
|
||||
#define EGL_EGLEXT_VERSION 20190808
|
||||
#define EGL_EGLEXT_VERSION 20200220
|
||||
|
||||
/* Generated C header for:
|
||||
* API: egl
|
||||
|
@ -443,9 +443,9 @@ EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy,
|
|||
|
||||
#ifndef EGL_KHR_swap_buffers_with_damage
|
||||
#define EGL_KHR_swap_buffers_with_damage 1
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
|
||||
#ifdef EGL_EGLEXT_PROTOTYPES
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
|
||||
#endif
|
||||
#endif /* EGL_KHR_swap_buffers_with_damage */
|
||||
|
||||
|
@ -598,6 +598,12 @@ EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSu
|
|||
#define EGL_FIXED_SIZE_ANGLE 0x3201
|
||||
#endif /* EGL_ANGLE_window_fixed_size */
|
||||
|
||||
#ifndef EGL_ARM_image_format
|
||||
#define EGL_ARM_image_format 1
|
||||
#define EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM 0x3287
|
||||
#define EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM 0x3288
|
||||
#endif /* EGL_ARM_image_format */
|
||||
|
||||
#ifndef EGL_ARM_implicit_external_sync
|
||||
#define EGL_ARM_implicit_external_sync 1
|
||||
#define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
|
||||
|
@ -917,9 +923,9 @@ EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStr
|
|||
|
||||
#ifndef EGL_EXT_swap_buffers_with_damage
|
||||
#define EGL_EXT_swap_buffers_with_damage 1
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
|
||||
#ifdef EGL_EGLEXT_PROTOTYPES
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
|
||||
#endif
|
||||
#endif /* EGL_EXT_swap_buffers_with_damage */
|
||||
|
||||
|
@ -1362,6 +1368,40 @@ EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
|
|||
#define EGL_NATIVE_SURFACE_TIZEN 0x32A1
|
||||
#endif /* EGL_TIZEN_image_native_surface */
|
||||
|
||||
#ifndef EGL_WL_bind_wayland_display
|
||||
#define EGL_WL_bind_wayland_display 1
|
||||
#define PFNEGLBINDWAYLANDDISPLAYWL PFNEGLBINDWAYLANDDISPLAYWLPROC
|
||||
#define PFNEGLUNBINDWAYLANDDISPLAYWL PFNEGLUNBINDWAYLANDDISPLAYWLPROC
|
||||
#define PFNEGLQUERYWAYLANDBUFFERWL PFNEGLQUERYWAYLANDBUFFERWLPROC
|
||||
struct wl_display;
|
||||
struct wl_resource;
|
||||
#define EGL_WAYLAND_BUFFER_WL 0x31D5
|
||||
#define EGL_WAYLAND_PLANE_WL 0x31D6
|
||||
#define EGL_TEXTURE_Y_U_V_WL 0x31D7
|
||||
#define EGL_TEXTURE_Y_UV_WL 0x31D8
|
||||
#define EGL_TEXTURE_Y_XUXV_WL 0x31D9
|
||||
#define EGL_TEXTURE_EXTERNAL_WL 0x31DA
|
||||
#define EGL_WAYLAND_Y_INVERTED_WL 0x31DB
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWLPROC) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
|
||||
#ifdef EGL_EGLEXT_PROTOTYPES
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
|
||||
#endif
|
||||
#endif /* EGL_WL_bind_wayland_display */
|
||||
|
||||
#ifndef EGL_WL_create_wayland_buffer_from_image
|
||||
#define EGL_WL_create_wayland_buffer_from_image 1
|
||||
#define PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC
|
||||
struct wl_buffer;
|
||||
typedef struct wl_buffer *(EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC) (EGLDisplay dpy, EGLImageKHR image);
|
||||
#ifdef EGL_EGLEXT_PROTOTYPES
|
||||
EGLAPI struct wl_buffer *EGLAPIENTRY eglCreateWaylandBufferFromImageWL (EGLDisplay dpy, EGLImageKHR image);
|
||||
#endif
|
||||
#endif /* EGL_WL_create_wayland_buffer_from_image */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -146,6 +146,12 @@ typedef void *EGLNativeDisplayType;
|
|||
typedef khronos_uintptr_t EGLNativePixmapType;
|
||||
typedef khronos_uintptr_t EGLNativeWindowType;
|
||||
|
||||
#elif defined(__Fuchsia__)
|
||||
|
||||
typedef void *EGLNativeDisplayType;
|
||||
typedef khronos_uintptr_t EGLNativePixmapType;
|
||||
typedef khronos_uintptr_t EGLNativeWindowType;
|
||||
|
||||
#else
|
||||
#error "Platform not recognized"
|
||||
#endif
|
||||
|
|
|
@ -49,6 +49,9 @@
|
|||
<type name="NativePixmapType" requires="eglplatform"/>
|
||||
<type name="NativeWindowType" requires="eglplatform"/>
|
||||
<type>struct <name>AHardwareBuffer</name>;</type>
|
||||
<type>struct <name>wl_buffer</name>;</type>
|
||||
<type>struct <name>wl_display</name>;</type>
|
||||
<type>struct <name>wl_resource</name>;</type>
|
||||
<!-- Dummy placeholders for non-EGL types -->
|
||||
<type name="Bool"/>
|
||||
<!-- These are actual EGL types. -->
|
||||
|
@ -89,7 +92,13 @@
|
|||
EGLint iHeight;
|
||||
EGLint iStride;
|
||||
};</type>
|
||||
<!-- Backwards-compatibility hack: Downstream implementations shipped
|
||||
incorrect function pointer names for some years. -->
|
||||
<type>typedef void (<apientry/> *<name>EGLDEBUGPROCKHR</name>)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);</type>
|
||||
<type>#define <name>PFNEGLBINDWAYLANDDISPLAYWL</name> PFNEGLBINDWAYLANDDISPLAYWLPROC</type>
|
||||
<type>#define <name>PFNEGLUNBINDWAYLANDDISPLAYWL</name> PFNEGLUNBINDWAYLANDDISPLAYWLPROC</type>
|
||||
<type>#define <name>PFNEGLQUERYWAYLANDBUFFERWL</name> PFNEGLQUERYWAYLANDBUFFERWLPROC</type>
|
||||
<type>#define <name>PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL</name> PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC</type>
|
||||
</types>
|
||||
|
||||
<!-- SECTION: EGL enumerant (token) definitions. -->
|
||||
|
@ -581,11 +590,27 @@
|
|||
<enum value="0x31D7" name="EGL_PLATFORM_GBM_MESA" alias="EGL_PLATFORM_GBM_KHR"/>
|
||||
<enum value="0x31D8" name="EGL_PLATFORM_WAYLAND_KHR"/>
|
||||
<enum value="0x31D8" name="EGL_PLATFORM_WAYLAND_EXT" alias="EGL_PLATFORM_WAYLAND_KHR"/>
|
||||
<unused start="0x31D9" end="0x31DC"/>
|
||||
<unused start="0x31DC" end="0x31DC"/>
|
||||
<enum value="0x31DD" name="EGL_PLATFORM_SURFACELESS_MESA"/>
|
||||
<unused start="0x31DE" end="0x31DF"/>
|
||||
</enums>
|
||||
|
||||
<!-- Due to an oversight in development, these enums alias the above MESA
|
||||
vendor range for EGL the X11/GBM/Wayland/surfaceless platforms.
|
||||
They are both currently in wide use and cannot be changed, however
|
||||
the tokens cannot be used in the same contexts and the aliasing is
|
||||
therefore harmless. Future Wayland tokens should not create further
|
||||
aliasing in this range.-->
|
||||
<enums namespace="EGL" start="0x31D5" end="0x31DB" vendor="WL" comment="EGL_WL_bind_wayland_display">
|
||||
<enum value="0x31D5" name="EGL_WAYLAND_BUFFER_WL"/>
|
||||
<enum value="0x31D6" name="EGL_WAYLAND_PLANE_WL"/>
|
||||
<enum value="0x31D7" name="EGL_TEXTURE_Y_U_V_WL"/>
|
||||
<enum value="0x31D8" name="EGL_TEXTURE_Y_UV_WL"/>
|
||||
<enum value="0x31D9" name="EGL_TEXTURE_Y_XUXV_WL"/>
|
||||
<enum value="0x31DA" name="EGL_TEXTURE_EXTERNAL_WL"/>
|
||||
<enum value="0x31DB" name="EGL_WAYLAND_Y_INVERTED_WL"/>
|
||||
</enums>
|
||||
|
||||
<enums namespace="EGL" start="0x31E0" end="0x31EF" vendor="HI" comment="Reserved for Mark Callow (Khronos bug 6799)">
|
||||
<unused start="0x31E0" end="0x31EF"/>
|
||||
</enums>
|
||||
|
@ -719,7 +744,9 @@
|
|||
<enum value="0x3284" name="EGL_YUV_CHROMA_SITING_0_EXT"/>
|
||||
<enum value="0x3285" name="EGL_YUV_CHROMA_SITING_0_5_EXT"/>
|
||||
<enum value="0x3286" name="EGL_DISCARD_SAMPLES_ARM"/>
|
||||
<unused start="0x3287" end="0x3289"/>
|
||||
<enum value="0x3287" name="EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM"/>
|
||||
<enum value="0x3288" name="EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM"/>
|
||||
<unused start="0x3289" end="0x3289"/>
|
||||
<enum value="0x328A" name="EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM"/>
|
||||
<unused start="0x328B" end="0x328F"/>
|
||||
</enums>
|
||||
|
@ -1006,6 +1033,10 @@
|
|||
<unused start="0x34A0" end="0x34AF"/>
|
||||
</enums>
|
||||
|
||||
<enums namespace="EGL" start="0x34B0" end="0x34BF" vendor="ARM" comment="Reserved for Jan-Harald Fredriksen (via github pull request)">
|
||||
<unused start="0x34B0" end="0x34BF"/>
|
||||
</enums>
|
||||
|
||||
<!-- Please remember that new enumerant allocations must be obtained by
|
||||
request to the Khronos API registrar (see comments at the top of this
|
||||
file) File requests in the Khronos Bugzilla, EGL project, Registry
|
||||
|
@ -1015,8 +1046,8 @@
|
|||
|
||||
<!-- Reservable for future use. To generate a new range, allocate multiples
|
||||
of 16 starting at the lowest available point in this block. -->
|
||||
<enums namespace="EGL" start="0x34B0" end="0x3FFF" vendor="KHR" comment="Reserved for future use">
|
||||
<unused start="0x34B0" end="0x3FFF"/>
|
||||
<enums namespace="EGL" start="0x34C0" end="0x3FFF" vendor="KHR" comment="Reserved for future use">
|
||||
<unused start="0x34C0" end="0x3FFF"/>
|
||||
</enums>
|
||||
|
||||
<enums namespace="EGL" start="0x8F70" end="0x8F7F" vendor="HI" comment="For Mark Callow, Khronos bug 4055. Shared with GL.">
|
||||
|
@ -1799,14 +1830,14 @@
|
|||
<proto><ptype>EGLBoolean</ptype> <name>eglSwapBuffersWithDamageEXT</name></proto>
|
||||
<param><ptype>EGLDisplay</ptype> <name>dpy</name></param>
|
||||
<param><ptype>EGLSurface</ptype> <name>surface</name></param>
|
||||
<param><ptype>EGLint</ptype> *<name>rects</name></param>
|
||||
<param>const <ptype>EGLint</ptype> *<name>rects</name></param>
|
||||
<param><ptype>EGLint</ptype> <name>n_rects</name></param>
|
||||
</command>
|
||||
<command>
|
||||
<proto><ptype>EGLBoolean</ptype> <name>eglSwapBuffersWithDamageKHR</name></proto>
|
||||
<param><ptype>EGLDisplay</ptype> <name>dpy</name></param>
|
||||
<param><ptype>EGLSurface</ptype> <name>surface</name></param>
|
||||
<param><ptype>EGLint</ptype> *<name>rects</name></param>
|
||||
<param>const <ptype>EGLint</ptype> *<name>rects</name></param>
|
||||
<param><ptype>EGLint</ptype> <name>n_rects</name></param>
|
||||
</command>
|
||||
<command>
|
||||
|
@ -1903,6 +1934,28 @@
|
|||
<param><ptype>EGLint</ptype> <name>external_win_id</name></param>
|
||||
<param><ptype>EGLint</ptype> <name>policy</name></param>
|
||||
</command>
|
||||
<command>
|
||||
<proto><ptype>EGLBoolean</ptype> <name>eglBindWaylandDisplayWL</name></proto>
|
||||
<param><ptype>EGLDisplay</ptype> <name>dpy</name></param>
|
||||
<param>struct <ptype>wl_display</ptype> *<name>display</name></param>
|
||||
</command>
|
||||
<command>
|
||||
<proto><ptype>EGLBoolean</ptype> <name>eglUnbindWaylandDisplayWL</name></proto>
|
||||
<param><ptype>EGLDisplay</ptype> <name>dpy</name></param>
|
||||
<param>struct <ptype>wl_display</ptype> *<name>display</name></param>
|
||||
</command>
|
||||
<command>
|
||||
<proto><ptype>EGLBoolean</ptype> <name>eglQueryWaylandBufferWL</name></proto>
|
||||
<param><ptype>EGLDisplay</ptype> <name>dpy</name></param>
|
||||
<param>struct <ptype>wl_resource</ptype> *<name>buffer</name></param>
|
||||
<param><ptype>EGLint</ptype> <name>attribute</name></param>
|
||||
<param><ptype>EGLint</ptype> *<name>value</name></param>
|
||||
</command>
|
||||
<command>
|
||||
<proto>struct <ptype>wl_buffer</ptype> *<name>eglCreateWaylandBufferFromImageWL</name></proto>
|
||||
<param><ptype>EGLDisplay</ptype> <name>dpy</name></param>
|
||||
<param><ptype>EGLImageKHR</ptype> <name>image</name></param>
|
||||
</command>
|
||||
</commands>
|
||||
|
||||
<!-- SECTION: EGL API interface definitions. -->
|
||||
|
@ -3281,5 +3334,35 @@
|
|||
<enum name="EGL_Y_AXIS_NV"/>
|
||||
</require>
|
||||
</extension>
|
||||
<extension name="EGL_WL_bind_wayland_display" supported="egl">
|
||||
<require>
|
||||
<enum name="EGL_WAYLAND_BUFFER_WL"/>
|
||||
<enum name="EGL_WAYLAND_PLANE_WL"/>
|
||||
<enum name="EGL_TEXTURE_Y_U_V_WL"/>
|
||||
<enum name="EGL_TEXTURE_Y_UV_WL"/>
|
||||
<enum name="EGL_TEXTURE_Y_XUXV_WL"/>
|
||||
<enum name="EGL_TEXTURE_EXTERNAL_WL"/>
|
||||
<enum name="EGL_WAYLAND_Y_INVERTED_WL"/>
|
||||
|
||||
<command name="eglBindWaylandDisplayWL"/>
|
||||
<command name="eglUnbindWaylandDisplayWL"/>
|
||||
<command name="eglQueryWaylandBufferWL"/>
|
||||
<type name="PFNEGLBINDWAYLANDDISPLAYWL"/>
|
||||
<type name="PFNEGLUNBINDWAYLANDDISPLAYWL"/>
|
||||
<type name="PFNEGLQUERYWAYLANDBUFFERWL"/>
|
||||
</require>
|
||||
</extension>
|
||||
<extension name="EGL_WL_create_wayland_buffer_from_image" supported="egl">
|
||||
<require>
|
||||
<command name="eglCreateWaylandBufferFromImageWL"/>
|
||||
<type name="PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL"/>
|
||||
</require>
|
||||
</extension>
|
||||
<extension name="EGL_ARM_image_format" supported="egl">
|
||||
<require>
|
||||
<enum name="EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM"/>
|
||||
<enum name="EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM"/>
|
||||
</require>
|
||||
</extension>
|
||||
</extensions>
|
||||
</registry>
|
||||
|
|
Loading…
Reference in a new issue