1848b8605Smrg#ifndef __eglext_h_ 2848b8605Smrg#define __eglext_h_ 1 3848b8605Smrg 4848b8605Smrg#ifdef __cplusplus 5848b8605Smrgextern "C" { 6848b8605Smrg#endif 7848b8605Smrg 8848b8605Smrg/* 9b8e80941Smrg** Copyright (c) 2013-2017 The Khronos Group Inc. 10848b8605Smrg** 11848b8605Smrg** Permission is hereby granted, free of charge, to any person obtaining a 12848b8605Smrg** copy of this software and/or associated documentation files (the 13848b8605Smrg** "Materials"), to deal in the Materials without restriction, including 14848b8605Smrg** without limitation the rights to use, copy, modify, merge, publish, 15848b8605Smrg** distribute, sublicense, and/or sell copies of the Materials, and to 16848b8605Smrg** permit persons to whom the Materials are furnished to do so, subject to 17848b8605Smrg** the following conditions: 18848b8605Smrg** 19848b8605Smrg** The above copyright notice and this permission notice shall be included 20848b8605Smrg** in all copies or substantial portions of the Materials. 21848b8605Smrg** 22848b8605Smrg** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 23848b8605Smrg** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 24848b8605Smrg** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 25848b8605Smrg** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 26848b8605Smrg** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 27848b8605Smrg** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 28848b8605Smrg** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 29848b8605Smrg*/ 30848b8605Smrg/* 31b8e80941Smrg** This header is generated from the Khronos EGL XML API Registry. 32b8e80941Smrg** The current version of the Registry, generator scripts 33848b8605Smrg** used to make the header, and the header can be found at 34b8e80941Smrg** http://www.khronos.org/registry/egl 35848b8605Smrg** 36b8e80941Smrg** Khronos $Git commit SHA1: 9ed2ec4c67 $ on $Git commit date: 2019-01-09 17:54:35 -0800 $ 37848b8605Smrg*/ 38848b8605Smrg 39848b8605Smrg#include <EGL/eglplatform.h> 40848b8605Smrg 41b8e80941Smrg#define EGL_EGLEXT_VERSION 20190124 42848b8605Smrg 43848b8605Smrg/* Generated C header for: 44848b8605Smrg * API: egl 45848b8605Smrg * Versions considered: .* 46848b8605Smrg * Versions emitted: _nomatch_^ 47848b8605Smrg * Default extensions included: egl 48848b8605Smrg * Additional extensions included: _nomatch_^ 49848b8605Smrg * Extensions removed: _nomatch_^ 50848b8605Smrg */ 51848b8605Smrg 52848b8605Smrg#ifndef EGL_KHR_cl_event 53848b8605Smrg#define EGL_KHR_cl_event 1 54848b8605Smrg#define EGL_CL_EVENT_HANDLE_KHR 0x309C 55848b8605Smrg#define EGL_SYNC_CL_EVENT_KHR 0x30FE 56848b8605Smrg#define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF 57848b8605Smrg#endif /* EGL_KHR_cl_event */ 58848b8605Smrg 59848b8605Smrg#ifndef EGL_KHR_cl_event2 60848b8605Smrg#define EGL_KHR_cl_event2 1 61848b8605Smrgtypedef void *EGLSyncKHR; 62848b8605Smrgtypedef intptr_t EGLAttribKHR; 63848b8605Smrgtypedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list); 64848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 65848b8605SmrgEGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list); 66848b8605Smrg#endif 67848b8605Smrg#endif /* EGL_KHR_cl_event2 */ 68848b8605Smrg 69848b8605Smrg#ifndef EGL_KHR_client_get_all_proc_addresses 70848b8605Smrg#define EGL_KHR_client_get_all_proc_addresses 1 71848b8605Smrg#endif /* EGL_KHR_client_get_all_proc_addresses */ 72848b8605Smrg 73848b8605Smrg#ifndef EGL_KHR_config_attribs 74848b8605Smrg#define EGL_KHR_config_attribs 1 75848b8605Smrg#define EGL_CONFORMANT_KHR 0x3042 76848b8605Smrg#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020 77848b8605Smrg#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040 78848b8605Smrg#endif /* EGL_KHR_config_attribs */ 79848b8605Smrg 80b8e80941Smrg#ifndef EGL_KHR_context_flush_control 81b8e80941Smrg#define EGL_KHR_context_flush_control 1 82b8e80941Smrg#define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0 83b8e80941Smrg#define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097 84b8e80941Smrg#define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098 85b8e80941Smrg#endif /* EGL_KHR_context_flush_control */ 86b8e80941Smrg 87848b8605Smrg#ifndef EGL_KHR_create_context 88848b8605Smrg#define EGL_KHR_create_context 1 89848b8605Smrg#define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098 90848b8605Smrg#define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB 91848b8605Smrg#define EGL_CONTEXT_FLAGS_KHR 0x30FC 92848b8605Smrg#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD 93848b8605Smrg#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD 94848b8605Smrg#define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE 95848b8605Smrg#define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF 96848b8605Smrg#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 97848b8605Smrg#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002 98848b8605Smrg#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004 99848b8605Smrg#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001 100848b8605Smrg#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002 101848b8605Smrg#define EGL_OPENGL_ES3_BIT_KHR 0x00000040 102848b8605Smrg#endif /* EGL_KHR_create_context */ 103848b8605Smrg 104b8e80941Smrg#ifndef EGL_KHR_create_context_no_error 105b8e80941Smrg#define EGL_KHR_create_context_no_error 1 106b8e80941Smrg#define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3 107b8e80941Smrg#endif /* EGL_KHR_create_context_no_error */ 108b8e80941Smrg 109b8e80941Smrg#ifndef EGL_KHR_debug 110b8e80941Smrg#define EGL_KHR_debug 1 111b8e80941Smrgtypedef void *EGLLabelKHR; 112b8e80941Smrgtypedef void *EGLObjectKHR; 113b8e80941Smrgtypedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message); 114b8e80941Smrg#define EGL_OBJECT_THREAD_KHR 0x33B0 115b8e80941Smrg#define EGL_OBJECT_DISPLAY_KHR 0x33B1 116b8e80941Smrg#define EGL_OBJECT_CONTEXT_KHR 0x33B2 117b8e80941Smrg#define EGL_OBJECT_SURFACE_KHR 0x33B3 118b8e80941Smrg#define EGL_OBJECT_IMAGE_KHR 0x33B4 119b8e80941Smrg#define EGL_OBJECT_SYNC_KHR 0x33B5 120b8e80941Smrg#define EGL_OBJECT_STREAM_KHR 0x33B6 121b8e80941Smrg#define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9 122b8e80941Smrg#define EGL_DEBUG_MSG_ERROR_KHR 0x33BA 123b8e80941Smrg#define EGL_DEBUG_MSG_WARN_KHR 0x33BB 124b8e80941Smrg#define EGL_DEBUG_MSG_INFO_KHR 0x33BC 125b8e80941Smrg#define EGL_DEBUG_CALLBACK_KHR 0x33B8 126b8e80941Smrgtypedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list); 127b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib *value); 128b8e80941Smrgtypedef EGLint (EGLAPIENTRYP PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label); 129b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 130b8e80941SmrgEGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list); 131b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *value); 132b8e80941SmrgEGLAPI EGLint EGLAPIENTRY eglLabelObjectKHR (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label); 133b8e80941Smrg#endif 134b8e80941Smrg#endif /* EGL_KHR_debug */ 135b8e80941Smrg 136b8e80941Smrg#ifndef EGL_KHR_display_reference 137b8e80941Smrg#define EGL_KHR_display_reference 1 138b8e80941Smrg#define EGL_TRACK_REFERENCES_KHR 0x3352 139b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBKHRPROC) (EGLDisplay dpy, EGLint name, EGLAttrib *value); 140b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 141b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribKHR (EGLDisplay dpy, EGLint name, EGLAttrib *value); 142b8e80941Smrg#endif 143b8e80941Smrg#endif /* EGL_KHR_display_reference */ 144b8e80941Smrg 145848b8605Smrg#ifndef EGL_KHR_fence_sync 146848b8605Smrg#define EGL_KHR_fence_sync 1 147b8e80941Smrgtypedef khronos_utime_nanoseconds_t EGLTimeKHR; 148848b8605Smrg#ifdef KHRONOS_SUPPORT_INT64 149848b8605Smrg#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 150848b8605Smrg#define EGL_SYNC_CONDITION_KHR 0x30F8 151848b8605Smrg#define EGL_SYNC_FENCE_KHR 0x30F9 152b8e80941Smrgtypedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); 153b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync); 154b8e80941Smrgtypedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); 155b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); 156b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 157b8e80941SmrgEGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); 158b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync); 159b8e80941SmrgEGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); 160b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); 161b8e80941Smrg#endif 162848b8605Smrg#endif /* KHRONOS_SUPPORT_INT64 */ 163848b8605Smrg#endif /* EGL_KHR_fence_sync */ 164848b8605Smrg 165848b8605Smrg#ifndef EGL_KHR_get_all_proc_addresses 166848b8605Smrg#define EGL_KHR_get_all_proc_addresses 1 167848b8605Smrg#endif /* EGL_KHR_get_all_proc_addresses */ 168848b8605Smrg 169848b8605Smrg#ifndef EGL_KHR_gl_colorspace 170848b8605Smrg#define EGL_KHR_gl_colorspace 1 171848b8605Smrg#define EGL_GL_COLORSPACE_KHR 0x309D 172848b8605Smrg#define EGL_GL_COLORSPACE_SRGB_KHR 0x3089 173848b8605Smrg#define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A 174848b8605Smrg#endif /* EGL_KHR_gl_colorspace */ 175848b8605Smrg 176848b8605Smrg#ifndef EGL_KHR_gl_renderbuffer_image 177848b8605Smrg#define EGL_KHR_gl_renderbuffer_image 1 178848b8605Smrg#define EGL_GL_RENDERBUFFER_KHR 0x30B9 179848b8605Smrg#endif /* EGL_KHR_gl_renderbuffer_image */ 180848b8605Smrg 181848b8605Smrg#ifndef EGL_KHR_gl_texture_2D_image 182848b8605Smrg#define EGL_KHR_gl_texture_2D_image 1 183848b8605Smrg#define EGL_GL_TEXTURE_2D_KHR 0x30B1 184848b8605Smrg#define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC 185848b8605Smrg#endif /* EGL_KHR_gl_texture_2D_image */ 186848b8605Smrg 187848b8605Smrg#ifndef EGL_KHR_gl_texture_3D_image 188848b8605Smrg#define EGL_KHR_gl_texture_3D_image 1 189848b8605Smrg#define EGL_GL_TEXTURE_3D_KHR 0x30B2 190848b8605Smrg#define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD 191848b8605Smrg#endif /* EGL_KHR_gl_texture_3D_image */ 192848b8605Smrg 193848b8605Smrg#ifndef EGL_KHR_gl_texture_cubemap_image 194848b8605Smrg#define EGL_KHR_gl_texture_cubemap_image 1 195848b8605Smrg#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3 196848b8605Smrg#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4 197848b8605Smrg#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5 198848b8605Smrg#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6 199848b8605Smrg#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7 200848b8605Smrg#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8 201848b8605Smrg#endif /* EGL_KHR_gl_texture_cubemap_image */ 202848b8605Smrg 203848b8605Smrg#ifndef EGL_KHR_image 204848b8605Smrg#define EGL_KHR_image 1 205848b8605Smrgtypedef void *EGLImageKHR; 206848b8605Smrg#define EGL_NATIVE_PIXMAP_KHR 0x30B0 207b8e80941Smrg#define EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0) 208848b8605Smrgtypedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); 209848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image); 210848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 211848b8605SmrgEGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); 212848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image); 213848b8605Smrg#endif 214848b8605Smrg#endif /* EGL_KHR_image */ 215848b8605Smrg 216848b8605Smrg#ifndef EGL_KHR_image_base 217848b8605Smrg#define EGL_KHR_image_base 1 218848b8605Smrg#define EGL_IMAGE_PRESERVED_KHR 0x30D2 219848b8605Smrg#endif /* EGL_KHR_image_base */ 220848b8605Smrg 221848b8605Smrg#ifndef EGL_KHR_image_pixmap 222848b8605Smrg#define EGL_KHR_image_pixmap 1 223848b8605Smrg#endif /* EGL_KHR_image_pixmap */ 224848b8605Smrg 225848b8605Smrg#ifndef EGL_KHR_lock_surface 226848b8605Smrg#define EGL_KHR_lock_surface 1 227848b8605Smrg#define EGL_READ_SURFACE_BIT_KHR 0x0001 228848b8605Smrg#define EGL_WRITE_SURFACE_BIT_KHR 0x0002 229848b8605Smrg#define EGL_LOCK_SURFACE_BIT_KHR 0x0080 230848b8605Smrg#define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 231848b8605Smrg#define EGL_MATCH_FORMAT_KHR 0x3043 232848b8605Smrg#define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 233848b8605Smrg#define EGL_FORMAT_RGB_565_KHR 0x30C1 234848b8605Smrg#define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 235848b8605Smrg#define EGL_FORMAT_RGBA_8888_KHR 0x30C3 236848b8605Smrg#define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 237848b8605Smrg#define EGL_LOCK_USAGE_HINT_KHR 0x30C5 238848b8605Smrg#define EGL_BITMAP_POINTER_KHR 0x30C6 239848b8605Smrg#define EGL_BITMAP_PITCH_KHR 0x30C7 240848b8605Smrg#define EGL_BITMAP_ORIGIN_KHR 0x30C8 241848b8605Smrg#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 242848b8605Smrg#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA 243848b8605Smrg#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB 244848b8605Smrg#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC 245848b8605Smrg#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD 246848b8605Smrg#define EGL_LOWER_LEFT_KHR 0x30CE 247848b8605Smrg#define EGL_UPPER_LEFT_KHR 0x30CF 248848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list); 249848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface); 250848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 251848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list); 252848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface); 253848b8605Smrg#endif 254848b8605Smrg#endif /* EGL_KHR_lock_surface */ 255848b8605Smrg 256848b8605Smrg#ifndef EGL_KHR_lock_surface2 257848b8605Smrg#define EGL_KHR_lock_surface2 1 258848b8605Smrg#define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110 259848b8605Smrg#endif /* EGL_KHR_lock_surface2 */ 260848b8605Smrg 261848b8605Smrg#ifndef EGL_KHR_lock_surface3 262848b8605Smrg#define EGL_KHR_lock_surface3 1 263848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value); 264848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 265848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value); 266848b8605Smrg#endif 267848b8605Smrg#endif /* EGL_KHR_lock_surface3 */ 268848b8605Smrg 269b8e80941Smrg#ifndef EGL_KHR_mutable_render_buffer 270b8e80941Smrg#define EGL_KHR_mutable_render_buffer 1 271b8e80941Smrg#define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000 272b8e80941Smrg#endif /* EGL_KHR_mutable_render_buffer */ 273b8e80941Smrg 274b8e80941Smrg#ifndef EGL_KHR_no_config_context 275b8e80941Smrg#define EGL_KHR_no_config_context 1 276b8e80941Smrg#define EGL_NO_CONFIG_KHR EGL_CAST(EGLConfig,0) 277b8e80941Smrg#endif /* EGL_KHR_no_config_context */ 278b8e80941Smrg 279b8e80941Smrg#ifndef EGL_KHR_partial_update 280b8e80941Smrg#define EGL_KHR_partial_update 1 281b8e80941Smrg#define EGL_BUFFER_AGE_KHR 0x313D 282b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 283b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 284b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 285b8e80941Smrg#endif 286b8e80941Smrg#endif /* EGL_KHR_partial_update */ 287b8e80941Smrg 288b8e80941Smrg#ifndef EGL_KHR_platform_android 289b8e80941Smrg#define EGL_KHR_platform_android 1 290b8e80941Smrg#define EGL_PLATFORM_ANDROID_KHR 0x3141 291b8e80941Smrg#endif /* EGL_KHR_platform_android */ 292b8e80941Smrg 293b8e80941Smrg#ifndef EGL_KHR_platform_gbm 294b8e80941Smrg#define EGL_KHR_platform_gbm 1 295b8e80941Smrg#define EGL_PLATFORM_GBM_KHR 0x31D7 296b8e80941Smrg#endif /* EGL_KHR_platform_gbm */ 297b8e80941Smrg 298b8e80941Smrg#ifndef EGL_KHR_platform_wayland 299b8e80941Smrg#define EGL_KHR_platform_wayland 1 300b8e80941Smrg#define EGL_PLATFORM_WAYLAND_KHR 0x31D8 301b8e80941Smrg#endif /* EGL_KHR_platform_wayland */ 302b8e80941Smrg 303b8e80941Smrg#ifndef EGL_KHR_platform_x11 304b8e80941Smrg#define EGL_KHR_platform_x11 1 305b8e80941Smrg#define EGL_PLATFORM_X11_KHR 0x31D5 306b8e80941Smrg#define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6 307b8e80941Smrg#endif /* EGL_KHR_platform_x11 */ 308b8e80941Smrg 309848b8605Smrg#ifndef EGL_KHR_reusable_sync 310848b8605Smrg#define EGL_KHR_reusable_sync 1 311848b8605Smrg#ifdef KHRONOS_SUPPORT_INT64 312848b8605Smrg#define EGL_SYNC_STATUS_KHR 0x30F1 313848b8605Smrg#define EGL_SIGNALED_KHR 0x30F2 314848b8605Smrg#define EGL_UNSIGNALED_KHR 0x30F3 315848b8605Smrg#define EGL_TIMEOUT_EXPIRED_KHR 0x30F5 316848b8605Smrg#define EGL_CONDITION_SATISFIED_KHR 0x30F6 317848b8605Smrg#define EGL_SYNC_TYPE_KHR 0x30F7 318848b8605Smrg#define EGL_SYNC_REUSABLE_KHR 0x30FA 319848b8605Smrg#define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 320848b8605Smrg#define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull 321b8e80941Smrg#define EGL_NO_SYNC_KHR EGL_CAST(EGLSyncKHR,0) 322848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); 323848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 324848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); 325848b8605Smrg#endif 326848b8605Smrg#endif /* KHRONOS_SUPPORT_INT64 */ 327848b8605Smrg#endif /* EGL_KHR_reusable_sync */ 328848b8605Smrg 329848b8605Smrg#ifndef EGL_KHR_stream 330848b8605Smrg#define EGL_KHR_stream 1 331848b8605Smrgtypedef void *EGLStreamKHR; 332848b8605Smrgtypedef khronos_uint64_t EGLuint64KHR; 333848b8605Smrg#ifdef KHRONOS_SUPPORT_INT64 334b8e80941Smrg#define EGL_NO_STREAM_KHR EGL_CAST(EGLStreamKHR,0) 335848b8605Smrg#define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210 336848b8605Smrg#define EGL_PRODUCER_FRAME_KHR 0x3212 337848b8605Smrg#define EGL_CONSUMER_FRAME_KHR 0x3213 338848b8605Smrg#define EGL_STREAM_STATE_KHR 0x3214 339848b8605Smrg#define EGL_STREAM_STATE_CREATED_KHR 0x3215 340848b8605Smrg#define EGL_STREAM_STATE_CONNECTING_KHR 0x3216 341848b8605Smrg#define EGL_STREAM_STATE_EMPTY_KHR 0x3217 342848b8605Smrg#define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218 343848b8605Smrg#define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219 344848b8605Smrg#define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A 345848b8605Smrg#define EGL_BAD_STREAM_KHR 0x321B 346848b8605Smrg#define EGL_BAD_STATE_KHR 0x321C 347848b8605Smrgtypedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list); 348848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); 349848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); 350848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); 351848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); 352848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 353848b8605SmrgEGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list); 354848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream); 355848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); 356848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); 357848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); 358848b8605Smrg#endif 359848b8605Smrg#endif /* KHRONOS_SUPPORT_INT64 */ 360848b8605Smrg#endif /* EGL_KHR_stream */ 361848b8605Smrg 362b8e80941Smrg#ifndef EGL_KHR_stream_attrib 363b8e80941Smrg#define EGL_KHR_stream_attrib 1 364b8e80941Smrg#ifdef KHRONOS_SUPPORT_INT64 365b8e80941Smrgtypedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list); 366b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value); 367b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value); 368b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); 369b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); 370b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 371b8e80941SmrgEGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamAttribKHR (EGLDisplay dpy, const EGLAttrib *attrib_list); 372b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSetStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value); 373b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value); 374b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); 375b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); 376b8e80941Smrg#endif 377b8e80941Smrg#endif /* KHRONOS_SUPPORT_INT64 */ 378b8e80941Smrg#endif /* EGL_KHR_stream_attrib */ 379b8e80941Smrg 380848b8605Smrg#ifndef EGL_KHR_stream_consumer_gltexture 381848b8605Smrg#define EGL_KHR_stream_consumer_gltexture 1 382848b8605Smrg#ifdef EGL_KHR_stream 383848b8605Smrg#define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E 384848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); 385848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); 386848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); 387848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 388848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream); 389848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream); 390848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream); 391848b8605Smrg#endif 392848b8605Smrg#endif /* EGL_KHR_stream */ 393848b8605Smrg#endif /* EGL_KHR_stream_consumer_gltexture */ 394848b8605Smrg 395848b8605Smrg#ifndef EGL_KHR_stream_cross_process_fd 396848b8605Smrg#define EGL_KHR_stream_cross_process_fd 1 397848b8605Smrgtypedef int EGLNativeFileDescriptorKHR; 398848b8605Smrg#ifdef EGL_KHR_stream 399b8e80941Smrg#define EGL_NO_FILE_DESCRIPTOR_KHR EGL_CAST(EGLNativeFileDescriptorKHR,-1) 400848b8605Smrgtypedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); 401848b8605Smrgtypedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); 402848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 403848b8605SmrgEGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream); 404848b8605SmrgEGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); 405848b8605Smrg#endif 406848b8605Smrg#endif /* EGL_KHR_stream */ 407848b8605Smrg#endif /* EGL_KHR_stream_cross_process_fd */ 408848b8605Smrg 409848b8605Smrg#ifndef EGL_KHR_stream_fifo 410848b8605Smrg#define EGL_KHR_stream_fifo 1 411848b8605Smrg#ifdef EGL_KHR_stream 412848b8605Smrg#define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC 413848b8605Smrg#define EGL_STREAM_TIME_NOW_KHR 0x31FD 414848b8605Smrg#define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE 415848b8605Smrg#define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF 416848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); 417848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 418848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); 419848b8605Smrg#endif 420848b8605Smrg#endif /* EGL_KHR_stream */ 421848b8605Smrg#endif /* EGL_KHR_stream_fifo */ 422848b8605Smrg 423848b8605Smrg#ifndef EGL_KHR_stream_producer_aldatalocator 424848b8605Smrg#define EGL_KHR_stream_producer_aldatalocator 1 425848b8605Smrg#ifdef EGL_KHR_stream 426848b8605Smrg#endif /* EGL_KHR_stream */ 427848b8605Smrg#endif /* EGL_KHR_stream_producer_aldatalocator */ 428848b8605Smrg 429848b8605Smrg#ifndef EGL_KHR_stream_producer_eglsurface 430848b8605Smrg#define EGL_KHR_stream_producer_eglsurface 1 431848b8605Smrg#ifdef EGL_KHR_stream 432848b8605Smrg#define EGL_STREAM_BIT_KHR 0x0800 433848b8605Smrgtypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); 434848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 435848b8605SmrgEGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); 436848b8605Smrg#endif 437848b8605Smrg#endif /* EGL_KHR_stream */ 438848b8605Smrg#endif /* EGL_KHR_stream_producer_eglsurface */ 439848b8605Smrg 440848b8605Smrg#ifndef EGL_KHR_surfaceless_context 441848b8605Smrg#define EGL_KHR_surfaceless_context 1 442848b8605Smrg#endif /* EGL_KHR_surfaceless_context */ 443848b8605Smrg 444b8e80941Smrg#ifndef EGL_KHR_swap_buffers_with_damage 445b8e80941Smrg#define EGL_KHR_swap_buffers_with_damage 1 446b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 447b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 448b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 449b8e80941Smrg#endif 450b8e80941Smrg#endif /* EGL_KHR_swap_buffers_with_damage */ 451b8e80941Smrg 452848b8605Smrg#ifndef EGL_KHR_vg_parent_image 453848b8605Smrg#define EGL_KHR_vg_parent_image 1 454848b8605Smrg#define EGL_VG_PARENT_IMAGE_KHR 0x30BA 455848b8605Smrg#endif /* EGL_KHR_vg_parent_image */ 456848b8605Smrg 457848b8605Smrg#ifndef EGL_KHR_wait_sync 458848b8605Smrg#define EGL_KHR_wait_sync 1 459848b8605Smrgtypedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); 460848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 461848b8605SmrgEGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); 462848b8605Smrg#endif 463848b8605Smrg#endif /* EGL_KHR_wait_sync */ 464848b8605Smrg 465848b8605Smrg#ifndef EGL_ANDROID_blob_cache 466848b8605Smrg#define EGL_ANDROID_blob_cache 1 467848b8605Smrgtypedef khronos_ssize_t EGLsizeiANDROID; 468848b8605Smrgtypedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize); 469848b8605Smrgtypedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize); 470848b8605Smrgtypedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); 471848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 472848b8605SmrgEGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); 473848b8605Smrg#endif 474848b8605Smrg#endif /* EGL_ANDROID_blob_cache */ 475848b8605Smrg 476b8e80941Smrg#ifndef EGL_ANDROID_create_native_client_buffer 477b8e80941Smrg#define EGL_ANDROID_create_native_client_buffer 1 478b8e80941Smrg#define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143 479b8e80941Smrg#define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001 480b8e80941Smrg#define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002 481b8e80941Smrg#define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004 482b8e80941Smrgtypedef EGLClientBuffer (EGLAPIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint *attrib_list); 483b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 484b8e80941SmrgEGLAPI EGLClientBuffer EGLAPIENTRY eglCreateNativeClientBufferANDROID (const EGLint *attrib_list); 485b8e80941Smrg#endif 486b8e80941Smrg#endif /* EGL_ANDROID_create_native_client_buffer */ 487b8e80941Smrg 488848b8605Smrg#ifndef EGL_ANDROID_framebuffer_target 489848b8605Smrg#define EGL_ANDROID_framebuffer_target 1 490848b8605Smrg#define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147 491848b8605Smrg#endif /* EGL_ANDROID_framebuffer_target */ 492848b8605Smrg 493b8e80941Smrg#ifndef EGL_ANDROID_front_buffer_auto_refresh 494b8e80941Smrg#define EGL_ANDROID_front_buffer_auto_refresh 1 495b8e80941Smrg#define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C 496b8e80941Smrg#endif /* EGL_ANDROID_front_buffer_auto_refresh */ 497b8e80941Smrg 498b8e80941Smrg#ifndef EGL_ANDROID_get_frame_timestamps 499b8e80941Smrg#define EGL_ANDROID_get_frame_timestamps 1 500b8e80941Smrgtypedef khronos_stime_nanoseconds_t EGLnsecsANDROID; 501b8e80941Smrg#define EGL_TIMESTAMP_PENDING_ANDROID EGL_CAST(EGLnsecsANDROID,-2) 502b8e80941Smrg#define EGL_TIMESTAMP_INVALID_ANDROID EGL_CAST(EGLnsecsANDROID,-1) 503b8e80941Smrg#define EGL_TIMESTAMPS_ANDROID 0x3430 504b8e80941Smrg#define EGL_COMPOSITE_DEADLINE_ANDROID 0x3431 505b8e80941Smrg#define EGL_COMPOSITE_INTERVAL_ANDROID 0x3432 506b8e80941Smrg#define EGL_COMPOSITE_TO_PRESENT_LATENCY_ANDROID 0x3433 507b8e80941Smrg#define EGL_REQUESTED_PRESENT_TIME_ANDROID 0x3434 508b8e80941Smrg#define EGL_RENDERING_COMPLETE_TIME_ANDROID 0x3435 509b8e80941Smrg#define EGL_COMPOSITION_LATCH_TIME_ANDROID 0x3436 510b8e80941Smrg#define EGL_FIRST_COMPOSITION_START_TIME_ANDROID 0x3437 511b8e80941Smrg#define EGL_LAST_COMPOSITION_START_TIME_ANDROID 0x3438 512b8e80941Smrg#define EGL_FIRST_COMPOSITION_GPU_FINISHED_TIME_ANDROID 0x3439 513b8e80941Smrg#define EGL_DISPLAY_PRESENT_TIME_ANDROID 0x343A 514b8e80941Smrg#define EGL_DEQUEUE_READY_TIME_ANDROID 0x343B 515b8e80941Smrg#define EGL_READS_DONE_TIME_ANDROID 0x343C 516b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint name); 517b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCOMPOSITORTIMINGANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint *names, EGLnsecsANDROID *values); 518b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETNEXTFRAMEIDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR *frameId); 519b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint timestamp); 520b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETFRAMETIMESTAMPSANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint *timestamps, EGLnsecsANDROID *values); 521b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 522b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetCompositorTimingSupportedANDROID (EGLDisplay dpy, EGLSurface surface, EGLint name); 523b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetCompositorTimingANDROID (EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint *names, EGLnsecsANDROID *values); 524b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetNextFrameIdANDROID (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR *frameId); 525b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetFrameTimestampSupportedANDROID (EGLDisplay dpy, EGLSurface surface, EGLint timestamp); 526b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetFrameTimestampsANDROID (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint *timestamps, EGLnsecsANDROID *values); 527b8e80941Smrg#endif 528b8e80941Smrg#endif /* EGL_ANDROID_get_frame_timestamps */ 529b8e80941Smrg 530b8e80941Smrg#ifndef EGL_ANDROID_get_native_client_buffer 531b8e80941Smrg#define EGL_ANDROID_get_native_client_buffer 1 532b8e80941Smrgstruct AHardwareBuffer; 533b8e80941Smrgtypedef EGLClientBuffer (EGLAPIENTRYP PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC) (const struct AHardwareBuffer *buffer); 534b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 535b8e80941SmrgEGLAPI EGLClientBuffer EGLAPIENTRY eglGetNativeClientBufferANDROID (const struct AHardwareBuffer *buffer); 536b8e80941Smrg#endif 537b8e80941Smrg#endif /* EGL_ANDROID_get_native_client_buffer */ 538b8e80941Smrg 539848b8605Smrg#ifndef EGL_ANDROID_image_native_buffer 540848b8605Smrg#define EGL_ANDROID_image_native_buffer 1 541848b8605Smrg#define EGL_NATIVE_BUFFER_ANDROID 0x3140 542848b8605Smrg#endif /* EGL_ANDROID_image_native_buffer */ 543848b8605Smrg 544848b8605Smrg#ifndef EGL_ANDROID_native_fence_sync 545848b8605Smrg#define EGL_ANDROID_native_fence_sync 1 546848b8605Smrg#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144 547848b8605Smrg#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145 548848b8605Smrg#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146 549848b8605Smrg#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1 550848b8605Smrgtypedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync); 551848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 552848b8605SmrgEGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync); 553848b8605Smrg#endif 554848b8605Smrg#endif /* EGL_ANDROID_native_fence_sync */ 555848b8605Smrg 556b8e80941Smrg#ifndef EGL_ANDROID_presentation_time 557b8e80941Smrg#define EGL_ANDROID_presentation_time 1 558b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time); 559b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 560b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglPresentationTimeANDROID (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time); 561b8e80941Smrg#endif 562b8e80941Smrg#endif /* EGL_ANDROID_presentation_time */ 563b8e80941Smrg 564848b8605Smrg#ifndef EGL_ANDROID_recordable 565848b8605Smrg#define EGL_ANDROID_recordable 1 566848b8605Smrg#define EGL_RECORDABLE_ANDROID 0x3142 567848b8605Smrg#endif /* EGL_ANDROID_recordable */ 568848b8605Smrg 569848b8605Smrg#ifndef EGL_ANGLE_d3d_share_handle_client_buffer 570848b8605Smrg#define EGL_ANGLE_d3d_share_handle_client_buffer 1 571848b8605Smrg#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200 572848b8605Smrg#endif /* EGL_ANGLE_d3d_share_handle_client_buffer */ 573848b8605Smrg 574b8e80941Smrg#ifndef EGL_ANGLE_device_d3d 575b8e80941Smrg#define EGL_ANGLE_device_d3d 1 576b8e80941Smrg#define EGL_D3D9_DEVICE_ANGLE 0x33A0 577b8e80941Smrg#define EGL_D3D11_DEVICE_ANGLE 0x33A1 578b8e80941Smrg#endif /* EGL_ANGLE_device_d3d */ 579b8e80941Smrg 580848b8605Smrg#ifndef EGL_ANGLE_query_surface_pointer 581848b8605Smrg#define EGL_ANGLE_query_surface_pointer 1 582848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); 583848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 584848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); 585848b8605Smrg#endif 586848b8605Smrg#endif /* EGL_ANGLE_query_surface_pointer */ 587848b8605Smrg 588848b8605Smrg#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle 589848b8605Smrg#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1 590848b8605Smrg#endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */ 591848b8605Smrg 592b8e80941Smrg#ifndef EGL_ANGLE_window_fixed_size 593b8e80941Smrg#define EGL_ANGLE_window_fixed_size 1 594b8e80941Smrg#define EGL_FIXED_SIZE_ANGLE 0x3201 595b8e80941Smrg#endif /* EGL_ANGLE_window_fixed_size */ 596b8e80941Smrg 597b8e80941Smrg#ifndef EGL_ARM_implicit_external_sync 598b8e80941Smrg#define EGL_ARM_implicit_external_sync 1 599b8e80941Smrg#define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A 600b8e80941Smrg#endif /* EGL_ARM_implicit_external_sync */ 601b8e80941Smrg 602848b8605Smrg#ifndef EGL_ARM_pixmap_multisample_discard 603848b8605Smrg#define EGL_ARM_pixmap_multisample_discard 1 604848b8605Smrg#define EGL_DISCARD_SAMPLES_ARM 0x3286 605848b8605Smrg#endif /* EGL_ARM_pixmap_multisample_discard */ 606848b8605Smrg 607b8e80941Smrg#ifndef EGL_EXT_bind_to_front 608b8e80941Smrg#define EGL_EXT_bind_to_front 1 609b8e80941Smrg#define EGL_FRONT_BUFFER_EXT 0x3464 610b8e80941Smrg#endif /* EGL_EXT_bind_to_front */ 611b8e80941Smrg 612848b8605Smrg#ifndef EGL_EXT_buffer_age 613848b8605Smrg#define EGL_EXT_buffer_age 1 614848b8605Smrg#define EGL_BUFFER_AGE_EXT 0x313D 615848b8605Smrg#endif /* EGL_EXT_buffer_age */ 616848b8605Smrg 617848b8605Smrg#ifndef EGL_EXT_client_extensions 618848b8605Smrg#define EGL_EXT_client_extensions 1 619848b8605Smrg#endif /* EGL_EXT_client_extensions */ 620848b8605Smrg 621b8e80941Smrg#ifndef EGL_EXT_client_sync 622b8e80941Smrg#define EGL_EXT_client_sync 1 623b8e80941Smrg#define EGL_SYNC_CLIENT_EXT 0x3364 624b8e80941Smrg#define EGL_SYNC_CLIENT_SIGNAL_EXT 0x3365 625b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLCLIENTSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list); 626b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 627b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglClientSignalSyncEXT (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list); 628b8e80941Smrg#endif 629b8e80941Smrg#endif /* EGL_EXT_client_sync */ 630b8e80941Smrg 631b8e80941Smrg#ifndef EGL_EXT_compositor 632b8e80941Smrg#define EGL_EXT_compositor 1 633b8e80941Smrg#define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460 634b8e80941Smrg#define EGL_EXTERNAL_REF_ID_EXT 0x3461 635b8e80941Smrg#define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462 636b8e80941Smrg#define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463 637b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC) (const EGLint *external_ref_ids, EGLint num_entries); 638b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC) (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries); 639b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC) (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries); 640b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC) (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries); 641b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC) (EGLint external_win_id); 642b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETSIZEEXTPROC) (EGLint external_win_id, EGLint width, EGLint height); 643b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_id, EGLint policy); 644b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 645b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextListEXT (const EGLint *external_ref_ids, EGLint num_entries); 646b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextAttributesEXT (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries); 647b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowListEXT (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries); 648b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowAttributesEXT (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries); 649b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglCompositorBindTexWindowEXT (EGLint external_win_id); 650b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetSizeEXT (EGLint external_win_id, EGLint width, EGLint height); 651b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglCompositorSwapPolicyEXT (EGLint external_win_id, EGLint policy); 652b8e80941Smrg#endif 653b8e80941Smrg#endif /* EGL_EXT_compositor */ 654b8e80941Smrg 655848b8605Smrg#ifndef EGL_EXT_create_context_robustness 656848b8605Smrg#define EGL_EXT_create_context_robustness 1 657848b8605Smrg#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF 658848b8605Smrg#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138 659848b8605Smrg#define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE 660848b8605Smrg#define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF 661848b8605Smrg#endif /* EGL_EXT_create_context_robustness */ 662848b8605Smrg 663b8e80941Smrg#ifndef EGL_EXT_device_base 664b8e80941Smrg#define EGL_EXT_device_base 1 665b8e80941Smrgtypedef void *EGLDeviceEXT; 666b8e80941Smrg#define EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0) 667b8e80941Smrg#define EGL_BAD_DEVICE_EXT 0x322B 668b8e80941Smrg#define EGL_DEVICE_EXT 0x322C 669b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value); 670b8e80941Smrgtypedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name); 671b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices); 672b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value); 673b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 674b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value); 675b8e80941SmrgEGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name); 676b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices); 677b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value); 678b8e80941Smrg#endif 679b8e80941Smrg#endif /* EGL_EXT_device_base */ 680b8e80941Smrg 681b8e80941Smrg#ifndef EGL_EXT_device_drm 682b8e80941Smrg#define EGL_EXT_device_drm 1 683b8e80941Smrg#define EGL_DRM_DEVICE_FILE_EXT 0x3233 684b8e80941Smrg#define EGL_DRM_MASTER_FD_EXT 0x333C 685b8e80941Smrg#endif /* EGL_EXT_device_drm */ 686b8e80941Smrg 687b8e80941Smrg#ifndef EGL_EXT_device_enumeration 688b8e80941Smrg#define EGL_EXT_device_enumeration 1 689b8e80941Smrg#endif /* EGL_EXT_device_enumeration */ 690b8e80941Smrg 691b8e80941Smrg#ifndef EGL_EXT_device_openwf 692b8e80941Smrg#define EGL_EXT_device_openwf 1 693b8e80941Smrg#define EGL_OPENWF_DEVICE_ID_EXT 0x3237 694b8e80941Smrg#endif /* EGL_EXT_device_openwf */ 695b8e80941Smrg 696b8e80941Smrg#ifndef EGL_EXT_device_query 697b8e80941Smrg#define EGL_EXT_device_query 1 698b8e80941Smrg#endif /* EGL_EXT_device_query */ 699b8e80941Smrg 700b8e80941Smrg#ifndef EGL_EXT_gl_colorspace_bt2020_linear 701b8e80941Smrg#define EGL_EXT_gl_colorspace_bt2020_linear 1 702b8e80941Smrg#define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F 703b8e80941Smrg#endif /* EGL_EXT_gl_colorspace_bt2020_linear */ 704b8e80941Smrg 705b8e80941Smrg#ifndef EGL_EXT_gl_colorspace_bt2020_pq 706b8e80941Smrg#define EGL_EXT_gl_colorspace_bt2020_pq 1 707b8e80941Smrg#define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340 708b8e80941Smrg#endif /* EGL_EXT_gl_colorspace_bt2020_pq */ 709b8e80941Smrg 710b8e80941Smrg#ifndef EGL_EXT_gl_colorspace_display_p3 711b8e80941Smrg#define EGL_EXT_gl_colorspace_display_p3 1 712b8e80941Smrg#define EGL_GL_COLORSPACE_DISPLAY_P3_EXT 0x3363 713b8e80941Smrg#endif /* EGL_EXT_gl_colorspace_display_p3 */ 714b8e80941Smrg 715b8e80941Smrg#ifndef EGL_EXT_gl_colorspace_display_p3_linear 716b8e80941Smrg#define EGL_EXT_gl_colorspace_display_p3_linear 1 717b8e80941Smrg#define EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT 0x3362 718b8e80941Smrg#endif /* EGL_EXT_gl_colorspace_display_p3_linear */ 719b8e80941Smrg 720b8e80941Smrg#ifndef EGL_EXT_gl_colorspace_display_p3_passthrough 721b8e80941Smrg#define EGL_EXT_gl_colorspace_display_p3_passthrough 1 722b8e80941Smrg#define EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT 0x3490 723b8e80941Smrg#endif /* EGL_EXT_gl_colorspace_display_p3_passthrough */ 724b8e80941Smrg 725b8e80941Smrg#ifndef EGL_EXT_gl_colorspace_scrgb 726b8e80941Smrg#define EGL_EXT_gl_colorspace_scrgb 1 727b8e80941Smrg#define EGL_GL_COLORSPACE_SCRGB_EXT 0x3351 728b8e80941Smrg#endif /* EGL_EXT_gl_colorspace_scrgb */ 729b8e80941Smrg 730b8e80941Smrg#ifndef EGL_EXT_gl_colorspace_scrgb_linear 731b8e80941Smrg#define EGL_EXT_gl_colorspace_scrgb_linear 1 732b8e80941Smrg#define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350 733b8e80941Smrg#endif /* EGL_EXT_gl_colorspace_scrgb_linear */ 734b8e80941Smrg 735848b8605Smrg#ifndef EGL_EXT_image_dma_buf_import 736848b8605Smrg#define EGL_EXT_image_dma_buf_import 1 737848b8605Smrg#define EGL_LINUX_DMA_BUF_EXT 0x3270 738848b8605Smrg#define EGL_LINUX_DRM_FOURCC_EXT 0x3271 739848b8605Smrg#define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272 740848b8605Smrg#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273 741848b8605Smrg#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 742848b8605Smrg#define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275 743848b8605Smrg#define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276 744848b8605Smrg#define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277 745848b8605Smrg#define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278 746848b8605Smrg#define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279 747848b8605Smrg#define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A 748848b8605Smrg#define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B 749848b8605Smrg#define EGL_SAMPLE_RANGE_HINT_EXT 0x327C 750848b8605Smrg#define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D 751848b8605Smrg#define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E 752848b8605Smrg#define EGL_ITU_REC601_EXT 0x327F 753848b8605Smrg#define EGL_ITU_REC709_EXT 0x3280 754848b8605Smrg#define EGL_ITU_REC2020_EXT 0x3281 755848b8605Smrg#define EGL_YUV_FULL_RANGE_EXT 0x3282 756848b8605Smrg#define EGL_YUV_NARROW_RANGE_EXT 0x3283 757848b8605Smrg#define EGL_YUV_CHROMA_SITING_0_EXT 0x3284 758848b8605Smrg#define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285 759848b8605Smrg#endif /* EGL_EXT_image_dma_buf_import */ 760848b8605Smrg 761b8e80941Smrg#ifndef EGL_EXT_image_dma_buf_import_modifiers 762b8e80941Smrg#define EGL_EXT_image_dma_buf_import_modifiers 1 763b8e80941Smrg#define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440 764b8e80941Smrg#define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441 765b8e80941Smrg#define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442 766b8e80941Smrg#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443 767b8e80941Smrg#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444 768b8e80941Smrg#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445 769b8e80941Smrg#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446 770b8e80941Smrg#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447 771b8e80941Smrg#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448 772b8e80941Smrg#define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449 773b8e80941Smrg#define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A 774b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats); 775b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers); 776b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 777b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats); 778b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers); 779b8e80941Smrg#endif 780b8e80941Smrg#endif /* EGL_EXT_image_dma_buf_import_modifiers */ 781b8e80941Smrg 782b8e80941Smrg#ifndef EGL_EXT_image_gl_colorspace 783b8e80941Smrg#define EGL_EXT_image_gl_colorspace 1 784b8e80941Smrg#define EGL_GL_COLORSPACE_DEFAULT_EXT 0x314D 785b8e80941Smrg#endif /* EGL_EXT_image_gl_colorspace */ 786b8e80941Smrg 787b8e80941Smrg#ifndef EGL_EXT_image_implicit_sync_control 788b8e80941Smrg#define EGL_EXT_image_implicit_sync_control 1 789b8e80941Smrg#define EGL_IMPORT_SYNC_TYPE_EXT 0x3470 790b8e80941Smrg#define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471 791b8e80941Smrg#define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472 792b8e80941Smrg#endif /* EGL_EXT_image_implicit_sync_control */ 793b8e80941Smrg 794848b8605Smrg#ifndef EGL_EXT_multiview_window 795848b8605Smrg#define EGL_EXT_multiview_window 1 796848b8605Smrg#define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134 797848b8605Smrg#endif /* EGL_EXT_multiview_window */ 798848b8605Smrg 799b8e80941Smrg#ifndef EGL_EXT_output_base 800b8e80941Smrg#define EGL_EXT_output_base 1 801b8e80941Smrgtypedef void *EGLOutputLayerEXT; 802b8e80941Smrgtypedef void *EGLOutputPortEXT; 803b8e80941Smrg#define EGL_NO_OUTPUT_LAYER_EXT EGL_CAST(EGLOutputLayerEXT,0) 804b8e80941Smrg#define EGL_NO_OUTPUT_PORT_EXT EGL_CAST(EGLOutputPortEXT,0) 805b8e80941Smrg#define EGL_BAD_OUTPUT_LAYER_EXT 0x322D 806b8e80941Smrg#define EGL_BAD_OUTPUT_PORT_EXT 0x322E 807b8e80941Smrg#define EGL_SWAP_INTERVAL_EXT 0x322F 808b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers); 809b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports); 810b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value); 811b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value); 812b8e80941Smrgtypedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name); 813b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value); 814b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value); 815b8e80941Smrgtypedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name); 816b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 817b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers); 818b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports); 819b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value); 820b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value); 821b8e80941SmrgEGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name); 822b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value); 823b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value); 824b8e80941SmrgEGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name); 825b8e80941Smrg#endif 826b8e80941Smrg#endif /* EGL_EXT_output_base */ 827b8e80941Smrg 828b8e80941Smrg#ifndef EGL_EXT_output_drm 829b8e80941Smrg#define EGL_EXT_output_drm 1 830b8e80941Smrg#define EGL_DRM_CRTC_EXT 0x3234 831b8e80941Smrg#define EGL_DRM_PLANE_EXT 0x3235 832b8e80941Smrg#define EGL_DRM_CONNECTOR_EXT 0x3236 833b8e80941Smrg#endif /* EGL_EXT_output_drm */ 834b8e80941Smrg 835b8e80941Smrg#ifndef EGL_EXT_output_openwf 836b8e80941Smrg#define EGL_EXT_output_openwf 1 837b8e80941Smrg#define EGL_OPENWF_PIPELINE_ID_EXT 0x3238 838b8e80941Smrg#define EGL_OPENWF_PORT_ID_EXT 0x3239 839b8e80941Smrg#endif /* EGL_EXT_output_openwf */ 840b8e80941Smrg 841b8e80941Smrg#ifndef EGL_EXT_pixel_format_float 842b8e80941Smrg#define EGL_EXT_pixel_format_float 1 843b8e80941Smrg#define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339 844b8e80941Smrg#define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A 845b8e80941Smrg#define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B 846b8e80941Smrg#endif /* EGL_EXT_pixel_format_float */ 847b8e80941Smrg 848848b8605Smrg#ifndef EGL_EXT_platform_base 849848b8605Smrg#define EGL_EXT_platform_base 1 850848b8605Smrgtypedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list); 851848b8605Smrgtypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list); 852848b8605Smrgtypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list); 853848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 854848b8605SmrgEGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list); 855848b8605SmrgEGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list); 856848b8605SmrgEGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list); 857848b8605Smrg#endif 858848b8605Smrg#endif /* EGL_EXT_platform_base */ 859848b8605Smrg 860b8e80941Smrg#ifndef EGL_EXT_platform_device 861b8e80941Smrg#define EGL_EXT_platform_device 1 862b8e80941Smrg#define EGL_PLATFORM_DEVICE_EXT 0x313F 863b8e80941Smrg#endif /* EGL_EXT_platform_device */ 864b8e80941Smrg 865848b8605Smrg#ifndef EGL_EXT_platform_wayland 866848b8605Smrg#define EGL_EXT_platform_wayland 1 867848b8605Smrg#define EGL_PLATFORM_WAYLAND_EXT 0x31D8 868848b8605Smrg#endif /* EGL_EXT_platform_wayland */ 869848b8605Smrg 870848b8605Smrg#ifndef EGL_EXT_platform_x11 871848b8605Smrg#define EGL_EXT_platform_x11 1 872848b8605Smrg#define EGL_PLATFORM_X11_EXT 0x31D5 873848b8605Smrg#define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6 874848b8605Smrg#endif /* EGL_EXT_platform_x11 */ 875848b8605Smrg 876b8e80941Smrg#ifndef EGL_EXT_protected_content 877b8e80941Smrg#define EGL_EXT_protected_content 1 878b8e80941Smrg#define EGL_PROTECTED_CONTENT_EXT 0x32C0 879b8e80941Smrg#endif /* EGL_EXT_protected_content */ 880b8e80941Smrg 881b8e80941Smrg#ifndef EGL_EXT_protected_surface 882b8e80941Smrg#define EGL_EXT_protected_surface 1 883b8e80941Smrg#endif /* EGL_EXT_protected_surface */ 884b8e80941Smrg 885b8e80941Smrg#ifndef EGL_EXT_stream_consumer_egloutput 886b8e80941Smrg#define EGL_EXT_stream_consumer_egloutput 1 887b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer); 888b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 889b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer); 890b8e80941Smrg#endif 891b8e80941Smrg#endif /* EGL_EXT_stream_consumer_egloutput */ 892b8e80941Smrg 893b8e80941Smrg#ifndef EGL_EXT_surface_CTA861_3_metadata 894b8e80941Smrg#define EGL_EXT_surface_CTA861_3_metadata 1 895b8e80941Smrg#define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360 896b8e80941Smrg#define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361 897b8e80941Smrg#endif /* EGL_EXT_surface_CTA861_3_metadata */ 898b8e80941Smrg 899b8e80941Smrg#ifndef EGL_EXT_surface_SMPTE2086_metadata 900b8e80941Smrg#define EGL_EXT_surface_SMPTE2086_metadata 1 901b8e80941Smrg#define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341 902b8e80941Smrg#define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342 903b8e80941Smrg#define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343 904b8e80941Smrg#define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344 905b8e80941Smrg#define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345 906b8e80941Smrg#define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346 907b8e80941Smrg#define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347 908b8e80941Smrg#define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348 909b8e80941Smrg#define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349 910b8e80941Smrg#define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A 911b8e80941Smrg#define EGL_METADATA_SCALING_EXT 50000 912b8e80941Smrg#endif /* EGL_EXT_surface_SMPTE2086_metadata */ 913b8e80941Smrg 914848b8605Smrg#ifndef EGL_EXT_swap_buffers_with_damage 915848b8605Smrg#define EGL_EXT_swap_buffers_with_damage 1 916848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 917848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 918848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 919848b8605Smrg#endif 920848b8605Smrg#endif /* EGL_EXT_swap_buffers_with_damage */ 921848b8605Smrg 922b8e80941Smrg#ifndef EGL_EXT_sync_reuse 923b8e80941Smrg#define EGL_EXT_sync_reuse 1 924b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLUNSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list); 925b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 926b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglUnsignalSyncEXT (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list); 927b8e80941Smrg#endif 928b8e80941Smrg#endif /* EGL_EXT_sync_reuse */ 929b8e80941Smrg 930b8e80941Smrg#ifndef EGL_EXT_yuv_surface 931b8e80941Smrg#define EGL_EXT_yuv_surface 1 932b8e80941Smrg#define EGL_YUV_ORDER_EXT 0x3301 933b8e80941Smrg#define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311 934b8e80941Smrg#define EGL_YUV_SUBSAMPLE_EXT 0x3312 935b8e80941Smrg#define EGL_YUV_DEPTH_RANGE_EXT 0x3317 936b8e80941Smrg#define EGL_YUV_CSC_STANDARD_EXT 0x330A 937b8e80941Smrg#define EGL_YUV_PLANE_BPP_EXT 0x331A 938b8e80941Smrg#define EGL_YUV_BUFFER_EXT 0x3300 939b8e80941Smrg#define EGL_YUV_ORDER_YUV_EXT 0x3302 940b8e80941Smrg#define EGL_YUV_ORDER_YVU_EXT 0x3303 941b8e80941Smrg#define EGL_YUV_ORDER_YUYV_EXT 0x3304 942b8e80941Smrg#define EGL_YUV_ORDER_UYVY_EXT 0x3305 943b8e80941Smrg#define EGL_YUV_ORDER_YVYU_EXT 0x3306 944b8e80941Smrg#define EGL_YUV_ORDER_VYUY_EXT 0x3307 945b8e80941Smrg#define EGL_YUV_ORDER_AYUV_EXT 0x3308 946b8e80941Smrg#define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313 947b8e80941Smrg#define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314 948b8e80941Smrg#define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315 949b8e80941Smrg#define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318 950b8e80941Smrg#define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319 951b8e80941Smrg#define EGL_YUV_CSC_STANDARD_601_EXT 0x330B 952b8e80941Smrg#define EGL_YUV_CSC_STANDARD_709_EXT 0x330C 953b8e80941Smrg#define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D 954b8e80941Smrg#define EGL_YUV_PLANE_BPP_0_EXT 0x331B 955b8e80941Smrg#define EGL_YUV_PLANE_BPP_8_EXT 0x331C 956b8e80941Smrg#define EGL_YUV_PLANE_BPP_10_EXT 0x331D 957b8e80941Smrg#endif /* EGL_EXT_yuv_surface */ 958b8e80941Smrg 959848b8605Smrg#ifndef EGL_HI_clientpixmap 960848b8605Smrg#define EGL_HI_clientpixmap 1 961848b8605Smrgstruct EGLClientPixmapHI { 962848b8605Smrg void *pData; 963848b8605Smrg EGLint iWidth; 964848b8605Smrg EGLint iHeight; 965848b8605Smrg EGLint iStride; 966848b8605Smrg}; 967848b8605Smrg#define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74 968848b8605Smrgtypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap); 969848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 970848b8605SmrgEGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap); 971848b8605Smrg#endif 972848b8605Smrg#endif /* EGL_HI_clientpixmap */ 973848b8605Smrg 974848b8605Smrg#ifndef EGL_HI_colorformats 975848b8605Smrg#define EGL_HI_colorformats 1 976848b8605Smrg#define EGL_COLOR_FORMAT_HI 0x8F70 977848b8605Smrg#define EGL_COLOR_RGB_HI 0x8F71 978848b8605Smrg#define EGL_COLOR_RGBA_HI 0x8F72 979848b8605Smrg#define EGL_COLOR_ARGB_HI 0x8F73 980848b8605Smrg#endif /* EGL_HI_colorformats */ 981848b8605Smrg 982848b8605Smrg#ifndef EGL_IMG_context_priority 983848b8605Smrg#define EGL_IMG_context_priority 1 984848b8605Smrg#define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100 985848b8605Smrg#define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101 986848b8605Smrg#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102 987848b8605Smrg#define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103 988848b8605Smrg#endif /* EGL_IMG_context_priority */ 989848b8605Smrg 990b8e80941Smrg#ifndef EGL_IMG_image_plane_attribs 991b8e80941Smrg#define EGL_IMG_image_plane_attribs 1 992b8e80941Smrg#define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105 993b8e80941Smrg#define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106 994b8e80941Smrg#endif /* EGL_IMG_image_plane_attribs */ 995b8e80941Smrg 996848b8605Smrg#ifndef EGL_MESA_drm_image 997848b8605Smrg#define EGL_MESA_drm_image 1 998848b8605Smrg#define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0 999848b8605Smrg#define EGL_DRM_BUFFER_USE_MESA 0x31D1 1000848b8605Smrg#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2 1001848b8605Smrg#define EGL_DRM_BUFFER_MESA 0x31D3 1002848b8605Smrg#define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4 1003848b8605Smrg#define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001 1004848b8605Smrg#define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002 1005b8e80941Smrg#define EGL_DRM_BUFFER_USE_CURSOR_MESA 0x00000004 1006848b8605Smrgtypedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list); 1007848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); 1008848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1009848b8605SmrgEGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list); 1010848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); 1011848b8605Smrg#endif 1012848b8605Smrg#endif /* EGL_MESA_drm_image */ 1013848b8605Smrg 1014b8e80941Smrg#ifndef EGL_MESA_image_dma_buf_export 1015b8e80941Smrg#define EGL_MESA_image_dma_buf_export 1 1016b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers); 1017b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets); 1018b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1019b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers); 1020b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets); 1021b8e80941Smrg#endif 1022b8e80941Smrg#endif /* EGL_MESA_image_dma_buf_export */ 1023b8e80941Smrg 1024848b8605Smrg#ifndef EGL_MESA_platform_gbm 1025848b8605Smrg#define EGL_MESA_platform_gbm 1 1026848b8605Smrg#define EGL_PLATFORM_GBM_MESA 0x31D7 1027848b8605Smrg#endif /* EGL_MESA_platform_gbm */ 1028848b8605Smrg 1029b8e80941Smrg#ifndef EGL_MESA_platform_surfaceless 1030b8e80941Smrg#define EGL_MESA_platform_surfaceless 1 1031b8e80941Smrg#define EGL_PLATFORM_SURFACELESS_MESA 0x31DD 1032b8e80941Smrg#endif /* EGL_MESA_platform_surfaceless */ 1033b8e80941Smrg 1034b8e80941Smrg#ifndef EGL_MESA_query_driver 1035b8e80941Smrg#define EGL_MESA_query_driver 1 1036b8e80941Smrgtypedef char *(EGLAPIENTRYP PFNEGLGETDISPLAYDRIVERCONFIGPROC) (EGLDisplay dpy); 1037b8e80941Smrgtypedef const char *(EGLAPIENTRYP PFNEGLGETDISPLAYDRIVERNAMEPROC) (EGLDisplay dpy); 1038b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1039b8e80941SmrgEGLAPI char *EGLAPIENTRY eglGetDisplayDriverConfig (EGLDisplay dpy); 1040b8e80941SmrgEGLAPI const char *EGLAPIENTRY eglGetDisplayDriverName (EGLDisplay dpy); 1041b8e80941Smrg#endif 1042b8e80941Smrg#endif /* EGL_MESA_query_driver */ 1043b8e80941Smrg 1044b8e80941Smrg#ifndef EGL_NOK_swap_region 1045b8e80941Smrg#define EGL_NOK_swap_region 1 1046b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); 1047b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1048b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); 1049b8e80941Smrg#endif 1050b8e80941Smrg#endif /* EGL_NOK_swap_region */ 1051b8e80941Smrg 1052b8e80941Smrg#ifndef EGL_NOK_swap_region2 1053b8e80941Smrg#define EGL_NOK_swap_region2 1 1054b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); 1055b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1056b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); 1057b8e80941Smrg#endif 1058b8e80941Smrg#endif /* EGL_NOK_swap_region2 */ 1059b8e80941Smrg 1060b8e80941Smrg#ifndef EGL_NOK_texture_from_pixmap 1061b8e80941Smrg#define EGL_NOK_texture_from_pixmap 1 1062b8e80941Smrg#define EGL_Y_INVERTED_NOK 0x307F 1063b8e80941Smrg#endif /* EGL_NOK_texture_from_pixmap */ 1064b8e80941Smrg 1065848b8605Smrg#ifndef EGL_NV_3dvision_surface 1066848b8605Smrg#define EGL_NV_3dvision_surface 1 1067848b8605Smrg#define EGL_AUTO_STEREO_NV 0x3136 1068848b8605Smrg#endif /* EGL_NV_3dvision_surface */ 1069848b8605Smrg 1070b8e80941Smrg#ifndef EGL_NV_context_priority_realtime 1071b8e80941Smrg#define EGL_NV_context_priority_realtime 1 1072b8e80941Smrg#define EGL_CONTEXT_PRIORITY_REALTIME_NV 0x3357 1073b8e80941Smrg#endif /* EGL_NV_context_priority_realtime */ 1074b8e80941Smrg 1075848b8605Smrg#ifndef EGL_NV_coverage_sample 1076848b8605Smrg#define EGL_NV_coverage_sample 1 1077848b8605Smrg#define EGL_COVERAGE_BUFFERS_NV 0x30E0 1078848b8605Smrg#define EGL_COVERAGE_SAMPLES_NV 0x30E1 1079848b8605Smrg#endif /* EGL_NV_coverage_sample */ 1080848b8605Smrg 1081848b8605Smrg#ifndef EGL_NV_coverage_sample_resolve 1082848b8605Smrg#define EGL_NV_coverage_sample_resolve 1 1083848b8605Smrg#define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131 1084848b8605Smrg#define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132 1085848b8605Smrg#define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133 1086848b8605Smrg#endif /* EGL_NV_coverage_sample_resolve */ 1087848b8605Smrg 1088b8e80941Smrg#ifndef EGL_NV_cuda_event 1089b8e80941Smrg#define EGL_NV_cuda_event 1 1090b8e80941Smrg#define EGL_CUDA_EVENT_HANDLE_NV 0x323B 1091b8e80941Smrg#define EGL_SYNC_CUDA_EVENT_NV 0x323C 1092b8e80941Smrg#define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D 1093b8e80941Smrg#endif /* EGL_NV_cuda_event */ 1094b8e80941Smrg 1095848b8605Smrg#ifndef EGL_NV_depth_nonlinear 1096848b8605Smrg#define EGL_NV_depth_nonlinear 1 1097848b8605Smrg#define EGL_DEPTH_ENCODING_NV 0x30E2 1098848b8605Smrg#define EGL_DEPTH_ENCODING_NONE_NV 0 1099848b8605Smrg#define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3 1100848b8605Smrg#endif /* EGL_NV_depth_nonlinear */ 1101848b8605Smrg 1102b8e80941Smrg#ifndef EGL_NV_device_cuda 1103b8e80941Smrg#define EGL_NV_device_cuda 1 1104b8e80941Smrg#define EGL_CUDA_DEVICE_NV 0x323A 1105b8e80941Smrg#endif /* EGL_NV_device_cuda */ 1106b8e80941Smrg 1107848b8605Smrg#ifndef EGL_NV_native_query 1108848b8605Smrg#define EGL_NV_native_query 1 1109848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id); 1110848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window); 1111848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap); 1112848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1113848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id); 1114848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window); 1115848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap); 1116848b8605Smrg#endif 1117848b8605Smrg#endif /* EGL_NV_native_query */ 1118848b8605Smrg 1119848b8605Smrg#ifndef EGL_NV_post_convert_rounding 1120848b8605Smrg#define EGL_NV_post_convert_rounding 1 1121848b8605Smrg#endif /* EGL_NV_post_convert_rounding */ 1122848b8605Smrg 1123848b8605Smrg#ifndef EGL_NV_post_sub_buffer 1124848b8605Smrg#define EGL_NV_post_sub_buffer 1 1125848b8605Smrg#define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE 1126848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); 1127848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1128848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); 1129848b8605Smrg#endif 1130848b8605Smrg#endif /* EGL_NV_post_sub_buffer */ 1131848b8605Smrg 1132b8e80941Smrg#ifndef EGL_NV_robustness_video_memory_purge 1133b8e80941Smrg#define EGL_NV_robustness_video_memory_purge 1 1134b8e80941Smrg#define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C 1135b8e80941Smrg#endif /* EGL_NV_robustness_video_memory_purge */ 1136b8e80941Smrg 1137b8e80941Smrg#ifndef EGL_NV_stream_consumer_gltexture_yuv 1138b8e80941Smrg#define EGL_NV_stream_consumer_gltexture_yuv 1 1139b8e80941Smrg#define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C 1140b8e80941Smrg#define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D 1141b8e80941Smrg#define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E 1142b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); 1143b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1144b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); 1145b8e80941Smrg#endif 1146b8e80941Smrg#endif /* EGL_NV_stream_consumer_gltexture_yuv */ 1147b8e80941Smrg 1148b8e80941Smrg#ifndef EGL_NV_stream_cross_display 1149b8e80941Smrg#define EGL_NV_stream_cross_display 1 1150b8e80941Smrg#define EGL_STREAM_CROSS_DISPLAY_NV 0x334E 1151b8e80941Smrg#endif /* EGL_NV_stream_cross_display */ 1152b8e80941Smrg 1153b8e80941Smrg#ifndef EGL_NV_stream_cross_object 1154b8e80941Smrg#define EGL_NV_stream_cross_object 1 1155b8e80941Smrg#define EGL_STREAM_CROSS_OBJECT_NV 0x334D 1156b8e80941Smrg#endif /* EGL_NV_stream_cross_object */ 1157b8e80941Smrg 1158b8e80941Smrg#ifndef EGL_NV_stream_cross_partition 1159b8e80941Smrg#define EGL_NV_stream_cross_partition 1 1160b8e80941Smrg#define EGL_STREAM_CROSS_PARTITION_NV 0x323F 1161b8e80941Smrg#endif /* EGL_NV_stream_cross_partition */ 1162b8e80941Smrg 1163b8e80941Smrg#ifndef EGL_NV_stream_cross_process 1164b8e80941Smrg#define EGL_NV_stream_cross_process 1 1165b8e80941Smrg#define EGL_STREAM_CROSS_PROCESS_NV 0x3245 1166b8e80941Smrg#endif /* EGL_NV_stream_cross_process */ 1167b8e80941Smrg 1168b8e80941Smrg#ifndef EGL_NV_stream_cross_system 1169b8e80941Smrg#define EGL_NV_stream_cross_system 1 1170b8e80941Smrg#define EGL_STREAM_CROSS_SYSTEM_NV 0x334F 1171b8e80941Smrg#endif /* EGL_NV_stream_cross_system */ 1172b8e80941Smrg 1173b8e80941Smrg#ifndef EGL_NV_stream_fifo_next 1174b8e80941Smrg#define EGL_NV_stream_fifo_next 1 1175b8e80941Smrg#define EGL_PENDING_FRAME_NV 0x3329 1176b8e80941Smrg#define EGL_STREAM_TIME_PENDING_NV 0x332A 1177b8e80941Smrg#endif /* EGL_NV_stream_fifo_next */ 1178b8e80941Smrg 1179b8e80941Smrg#ifndef EGL_NV_stream_fifo_synchronous 1180b8e80941Smrg#define EGL_NV_stream_fifo_synchronous 1 1181b8e80941Smrg#define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336 1182b8e80941Smrg#endif /* EGL_NV_stream_fifo_synchronous */ 1183b8e80941Smrg 1184b8e80941Smrg#ifndef EGL_NV_stream_flush 1185b8e80941Smrg#define EGL_NV_stream_flush 1 1186b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMFLUSHNVPROC) (EGLDisplay dpy, EGLStreamKHR stream); 1187b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1188b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglStreamFlushNV (EGLDisplay dpy, EGLStreamKHR stream); 1189b8e80941Smrg#endif 1190b8e80941Smrg#endif /* EGL_NV_stream_flush */ 1191b8e80941Smrg 1192b8e80941Smrg#ifndef EGL_NV_stream_frame_limits 1193b8e80941Smrg#define EGL_NV_stream_frame_limits 1 1194b8e80941Smrg#define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337 1195b8e80941Smrg#define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338 1196b8e80941Smrg#endif /* EGL_NV_stream_frame_limits */ 1197b8e80941Smrg 1198b8e80941Smrg#ifndef EGL_NV_stream_metadata 1199b8e80941Smrg#define EGL_NV_stream_metadata 1 1200b8e80941Smrg#define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250 1201b8e80941Smrg#define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251 1202b8e80941Smrg#define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252 1203b8e80941Smrg#define EGL_PRODUCER_METADATA_NV 0x3253 1204b8e80941Smrg#define EGL_CONSUMER_METADATA_NV 0x3254 1205b8e80941Smrg#define EGL_PENDING_METADATA_NV 0x3328 1206b8e80941Smrg#define EGL_METADATA0_SIZE_NV 0x3255 1207b8e80941Smrg#define EGL_METADATA1_SIZE_NV 0x3256 1208b8e80941Smrg#define EGL_METADATA2_SIZE_NV 0x3257 1209b8e80941Smrg#define EGL_METADATA3_SIZE_NV 0x3258 1210b8e80941Smrg#define EGL_METADATA0_TYPE_NV 0x3259 1211b8e80941Smrg#define EGL_METADATA1_TYPE_NV 0x325A 1212b8e80941Smrg#define EGL_METADATA2_TYPE_NV 0x325B 1213b8e80941Smrg#define EGL_METADATA3_TYPE_NV 0x325C 1214b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value); 1215b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data); 1216b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data); 1217b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1218b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint attribute, EGLAttrib *value); 1219b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data); 1220b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data); 1221b8e80941Smrg#endif 1222b8e80941Smrg#endif /* EGL_NV_stream_metadata */ 1223b8e80941Smrg 1224b8e80941Smrg#ifndef EGL_NV_stream_remote 1225b8e80941Smrg#define EGL_NV_stream_remote 1 1226b8e80941Smrg#define EGL_STREAM_STATE_INITIALIZING_NV 0x3240 1227b8e80941Smrg#define EGL_STREAM_TYPE_NV 0x3241 1228b8e80941Smrg#define EGL_STREAM_PROTOCOL_NV 0x3242 1229b8e80941Smrg#define EGL_STREAM_ENDPOINT_NV 0x3243 1230b8e80941Smrg#define EGL_STREAM_LOCAL_NV 0x3244 1231b8e80941Smrg#define EGL_STREAM_PRODUCER_NV 0x3247 1232b8e80941Smrg#define EGL_STREAM_CONSUMER_NV 0x3248 1233b8e80941Smrg#define EGL_STREAM_PROTOCOL_FD_NV 0x3246 1234b8e80941Smrg#endif /* EGL_NV_stream_remote */ 1235b8e80941Smrg 1236b8e80941Smrg#ifndef EGL_NV_stream_reset 1237b8e80941Smrg#define EGL_NV_stream_reset 1 1238b8e80941Smrg#define EGL_SUPPORT_RESET_NV 0x3334 1239b8e80941Smrg#define EGL_SUPPORT_REUSE_NV 0x3335 1240b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLStreamKHR stream); 1241b8e80941Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1242b8e80941SmrgEGLAPI EGLBoolean EGLAPIENTRY eglResetStreamNV (EGLDisplay dpy, EGLStreamKHR stream); 1243b8e80941Smrg#endif 1244b8e80941Smrg#endif /* EGL_NV_stream_reset */ 1245b8e80941Smrg 1246b8e80941Smrg#ifndef EGL_NV_stream_socket 1247b8e80941Smrg#define EGL_NV_stream_socket 1 1248b8e80941Smrg#define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B 1249b8e80941Smrg#define EGL_SOCKET_HANDLE_NV 0x324C 1250b8e80941Smrg#define EGL_SOCKET_TYPE_NV 0x324D 1251b8e80941Smrg#endif /* EGL_NV_stream_socket */ 1252b8e80941Smrg 1253b8e80941Smrg#ifndef EGL_NV_stream_socket_inet 1254b8e80941Smrg#define EGL_NV_stream_socket_inet 1 1255b8e80941Smrg#define EGL_SOCKET_TYPE_INET_NV 0x324F 1256b8e80941Smrg#endif /* EGL_NV_stream_socket_inet */ 1257b8e80941Smrg 1258b8e80941Smrg#ifndef EGL_NV_stream_socket_unix 1259b8e80941Smrg#define EGL_NV_stream_socket_unix 1 1260b8e80941Smrg#define EGL_SOCKET_TYPE_UNIX_NV 0x324E 1261b8e80941Smrg#endif /* EGL_NV_stream_socket_unix */ 1262b8e80941Smrg 1263848b8605Smrg#ifndef EGL_NV_stream_sync 1264848b8605Smrg#define EGL_NV_stream_sync 1 1265848b8605Smrg#define EGL_SYNC_NEW_FRAME_NV 0x321F 1266848b8605Smrgtypedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list); 1267848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1268848b8605SmrgEGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list); 1269848b8605Smrg#endif 1270848b8605Smrg#endif /* EGL_NV_stream_sync */ 1271848b8605Smrg 1272848b8605Smrg#ifndef EGL_NV_sync 1273848b8605Smrg#define EGL_NV_sync 1 1274848b8605Smrgtypedef void *EGLSyncNV; 1275848b8605Smrgtypedef khronos_utime_nanoseconds_t EGLTimeNV; 1276848b8605Smrg#ifdef KHRONOS_SUPPORT_INT64 1277848b8605Smrg#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6 1278848b8605Smrg#define EGL_SYNC_STATUS_NV 0x30E7 1279848b8605Smrg#define EGL_SIGNALED_NV 0x30E8 1280848b8605Smrg#define EGL_UNSIGNALED_NV 0x30E9 1281848b8605Smrg#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001 1282848b8605Smrg#define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull 1283848b8605Smrg#define EGL_ALREADY_SIGNALED_NV 0x30EA 1284848b8605Smrg#define EGL_TIMEOUT_EXPIRED_NV 0x30EB 1285848b8605Smrg#define EGL_CONDITION_SATISFIED_NV 0x30EC 1286848b8605Smrg#define EGL_SYNC_TYPE_NV 0x30ED 1287848b8605Smrg#define EGL_SYNC_CONDITION_NV 0x30EE 1288848b8605Smrg#define EGL_SYNC_FENCE_NV 0x30EF 1289b8e80941Smrg#define EGL_NO_SYNC_NV EGL_CAST(EGLSyncNV,0) 1290848b8605Smrgtypedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); 1291848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync); 1292848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync); 1293848b8605Smrgtypedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); 1294848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode); 1295848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value); 1296848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1297848b8605SmrgEGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); 1298848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync); 1299848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync); 1300848b8605SmrgEGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); 1301848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode); 1302848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value); 1303848b8605Smrg#endif 1304848b8605Smrg#endif /* KHRONOS_SUPPORT_INT64 */ 1305848b8605Smrg#endif /* EGL_NV_sync */ 1306848b8605Smrg 1307848b8605Smrg#ifndef EGL_NV_system_time 1308848b8605Smrg#define EGL_NV_system_time 1 1309848b8605Smrgtypedef khronos_utime_nanoseconds_t EGLuint64NV; 1310848b8605Smrg#ifdef KHRONOS_SUPPORT_INT64 1311848b8605Smrgtypedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void); 1312848b8605Smrgtypedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void); 1313848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 1314848b8605SmrgEGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void); 1315848b8605SmrgEGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void); 1316848b8605Smrg#endif 1317848b8605Smrg#endif /* KHRONOS_SUPPORT_INT64 */ 1318848b8605Smrg#endif /* EGL_NV_system_time */ 1319848b8605Smrg 1320b8e80941Smrg#ifndef EGL_TIZEN_image_native_buffer 1321b8e80941Smrg#define EGL_TIZEN_image_native_buffer 1 1322b8e80941Smrg#define EGL_NATIVE_BUFFER_TIZEN 0x32A0 1323b8e80941Smrg#endif /* EGL_TIZEN_image_native_buffer */ 1324b8e80941Smrg 1325b8e80941Smrg#ifndef EGL_TIZEN_image_native_surface 1326b8e80941Smrg#define EGL_TIZEN_image_native_surface 1 1327b8e80941Smrg#define EGL_NATIVE_SURFACE_TIZEN 0x32A1 1328b8e80941Smrg#endif /* EGL_TIZEN_image_native_surface */ 1329b8e80941Smrg 1330848b8605Smrg#include <EGL/eglmesaext.h> 1331848b8605Smrg#include <EGL/eglextchromium.h> 1332848b8605Smrg 1333848b8605Smrg#ifdef __cplusplus 1334848b8605Smrg} 1335848b8605Smrg#endif 1336848b8605Smrg 1337848b8605Smrg#endif 1338