diff --git a/auto/Makefile b/auto/Makefile index 8299a02..c363d5a 100644 --- a/auto/Makefile +++ b/auto/Makefile @@ -90,6 +90,7 @@ OpenGL-Registry/.dummy: @echo "Downloading OpenGL-Registry" @echo "--------------------------------------------------------------------" git clone https://github.com/KhronosGroup/OpenGL-Registry.git OpenGL-Registry + git clone https://github.com/KhronosGroup/EGL-Registry.git EGL-Registry git clone --branch glew https://github.com/nigels-com/glfixes glfixes touch $@ @@ -101,7 +102,8 @@ $(EXT)/.dummy: OpenGL-Registry/.dummy cp -r glfixes/gl/specs/ANGLE OpenGL-Registry/extensions cp -r glfixes/gl/specs/REGAL OpenGL-Registry/extensions $(BIN)/update_ext.sh $(EXT) OpenGL-Registry/extensions $(BLACKLIST) - $(PYTHON) $(BIN)/parse_xml.py registry/xml/egl.xml --core core/gl --extensions extensions/gl +# $(PYTHON) $(BIN)/parse_xml.py EGL-Registry/api/egl.xml --core core/gl --extensions extensions/gl + $(PYTHON) $(BIN)/parse_xml.py EGL-Registry/api/egl.xml --extensions extensions/gl $(BIN)/filter_gl_ext.sh $(EXT) ifeq ($(patsubst Darwin%,Darwin,$(SYSTEM)), Darwin) find $(CORE) -maxdepth 1 -type f | grep -v VERSION | grep -v "~" | \ diff --git a/auto/core/gl/EGL_EXT_device_base b/auto/core/gl/EGL_EXT_device_base new file mode 100644 index 0000000..fa1d2e1 --- /dev/null +++ b/auto/core/gl/EGL_EXT_device_base @@ -0,0 +1,7 @@ +EGL_EXT_device_base +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf +EGL_EXT_device_base + + EGL_BAD_DEVICE_EXT 0x322B + EGL_DEVICE_EXT 0x322C + EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0) diff --git a/auto/core/gl/EGL_KHR_fence_sync b/auto/core/gl/EGL_KHR_fence_sync new file mode 100644 index 0000000..398b292 --- /dev/null +++ b/auto/core/gl/EGL_KHR_fence_sync @@ -0,0 +1,7 @@ +EGL_KHR_fence_sync +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf +EGL_KHR_fence_sync + + EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 + EGL_SYNC_CONDITION_KHR 0x30F8 + EGL_SYNC_FENCE_KHR 0x30F9 diff --git a/auto/core/gl/EGL_KHR_image_base b/auto/core/gl/EGL_KHR_image_base new file mode 100644 index 0000000..dd38a6c --- /dev/null +++ b/auto/core/gl/EGL_KHR_image_base @@ -0,0 +1,6 @@ +EGL_KHR_image_base +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf +EGL_KHR_image_base + + EGL_IMAGE_PRESERVED_KHR 0x30D2 + EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0) diff --git a/auto/core/gl/EGL_KHR_lock_surface3 b/auto/core/gl/EGL_KHR_lock_surface3 new file mode 100644 index 0000000..4c0e13a --- /dev/null +++ b/auto/core/gl/EGL_KHR_lock_surface3 @@ -0,0 +1,27 @@ +EGL_KHR_lock_surface3 +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf +EGL_KHR_lock_surface3 + + EGL_READ_SURFACE_BIT_KHR 0x0001 + EGL_WRITE_SURFACE_BIT_KHR 0x0002 + EGL_LOCK_SURFACE_BIT_KHR 0x0080 + EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 + EGL_MATCH_FORMAT_KHR 0x3043 + EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 + EGL_FORMAT_RGB_565_KHR 0x30C1 + EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 + EGL_FORMAT_RGBA_8888_KHR 0x30C3 + EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 + EGL_LOCK_USAGE_HINT_KHR 0x30C5 + EGL_BITMAP_POINTER_KHR 0x30C6 + EGL_BITMAP_PITCH_KHR 0x30C7 + EGL_BITMAP_ORIGIN_KHR 0x30C8 + EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 + EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA + EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB + EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC + EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD + EGL_LOWER_LEFT_KHR 0x30CE + EGL_UPPER_LEFT_KHR 0x30CF + EGL_BITMAP_PIXEL_SIZE_KHR 0x3110 + EGLBoolean eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR * value) diff --git a/auto/core/gl/EGL_VERSION_1_0 b/auto/core/gl/EGL_VERSION_1_0 new file mode 100644 index 0000000..ef48e74 --- /dev/null +++ b/auto/core/gl/EGL_VERSION_1_0 @@ -0,0 +1,86 @@ +EGL_VERSION_1_0 +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf + + + EGL_FALSE 0 + EGL_PBUFFER_BIT 0x0001 + EGL_PIXMAP_BIT 0x0002 + EGL_WINDOW_BIT 0x0004 + EGL_SUCCESS 0x3000 + EGL_NOT_INITIALIZED 0x3001 + EGL_BAD_ACCESS 0x3002 + EGL_BAD_ALLOC 0x3003 + EGL_BAD_ATTRIBUTE 0x3004 + EGL_BAD_CONFIG 0x3005 + EGL_BAD_CONTEXT 0x3006 + EGL_BAD_CURRENT_SURFACE 0x3007 + EGL_BAD_DISPLAY 0x3008 + EGL_BAD_MATCH 0x3009 + EGL_BAD_NATIVE_PIXMAP 0x300A + EGL_BAD_NATIVE_WINDOW 0x300B + EGL_BAD_PARAMETER 0x300C + EGL_BAD_SURFACE 0x300D + EGL_BUFFER_SIZE 0x3020 + EGL_ALPHA_SIZE 0x3021 + EGL_BLUE_SIZE 0x3022 + EGL_GREEN_SIZE 0x3023 + EGL_RED_SIZE 0x3024 + EGL_DEPTH_SIZE 0x3025 + EGL_STENCIL_SIZE 0x3026 + EGL_CONFIG_CAVEAT 0x3027 + EGL_CONFIG_ID 0x3028 + EGL_LEVEL 0x3029 + EGL_MAX_PBUFFER_HEIGHT 0x302A + EGL_MAX_PBUFFER_PIXELS 0x302B + EGL_MAX_PBUFFER_WIDTH 0x302C + EGL_NATIVE_RENDERABLE 0x302D + EGL_NATIVE_VISUAL_ID 0x302E + EGL_NATIVE_VISUAL_TYPE 0x302F + EGL_SAMPLES 0x3031 + EGL_SAMPLE_BUFFERS 0x3032 + EGL_SURFACE_TYPE 0x3033 + EGL_TRANSPARENT_TYPE 0x3034 + EGL_TRANSPARENT_BLUE_VALUE 0x3035 + EGL_TRANSPARENT_GREEN_VALUE 0x3036 + EGL_TRANSPARENT_RED_VALUE 0x3037 + EGL_NONE 0x3038 + EGL_SLOW_CONFIG 0x3050 + EGL_NON_CONFORMANT_CONFIG 0x3051 + EGL_TRANSPARENT_RGB 0x3052 + EGL_VENDOR 0x3053 + EGL_VERSION 0x3054 + EGL_EXTENSIONS 0x3055 + EGL_HEIGHT 0x3056 + EGL_WIDTH 0x3057 + EGL_LARGEST_PBUFFER 0x3058 + EGL_DRAW 0x3059 + EGL_READ 0x305A + EGL_CORE_NATIVE_ENGINE 0x305B + EGL_TRUE 1 + EGL_NO_CONTEXT EGL_CAST(EGLContext,0) + EGL_NO_DISPLAY EGL_CAST(EGLDisplay,0) + EGL_NO_SURFACE EGL_CAST(EGLSurface,0) + EGL_DONT_CARE EGL_CAST(EGLint,-1) + EGLBoolean eglChooseConfig (EGLDisplay dpy, const EGLint * attrib_list, EGLConfig * configs, EGLint config_size, EGLint * num_config) + EGLBoolean eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target) + EGLContext eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint * attrib_list) + EGLSurface eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint * attrib_list) + EGLSurface eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint * attrib_list) + EGLSurface eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint * attrib_list) + EGLBoolean eglDestroyContext (EGLDisplay dpy, EGLContext ctx) + EGLBoolean eglDestroySurface (EGLDisplay dpy, EGLSurface surface) + EGLBoolean eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint * value) + EGLBoolean eglGetConfigs (EGLDisplay dpy, EGLConfig * configs, EGLint config_size, EGLint * num_config) + EGLDisplay eglGetCurrentDisplay ( void ) + EGLSurface eglGetCurrentSurface (EGLint readdraw) + EGLDisplay eglGetDisplay (EGLNativeDisplayType display_id) + EGLint eglGetError ( void ) + EGLBoolean eglInitialize (EGLDisplay dpy, EGLint * major, EGLint * minor) + EGLBoolean eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx) + EGLBoolean eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint * value) + const char * eglQueryString (EGLDisplay dpy, EGLint name) + EGLBoolean eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint * value) + EGLBoolean eglSwapBuffers (EGLDisplay dpy, EGLSurface surface) + EGLBoolean eglTerminate (EGLDisplay dpy) + EGLBoolean eglWaitGL ( void ) + EGLBoolean eglWaitNative (EGLint engine) diff --git a/auto/core/gl/EGL_VERSION_1_1 b/auto/core/gl/EGL_VERSION_1_1 new file mode 100644 index 0000000..550dc24 --- /dev/null +++ b/auto/core/gl/EGL_VERSION_1_1 @@ -0,0 +1,22 @@ +EGL_VERSION_1_1 +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf + + + EGL_CONTEXT_LOST 0x300E + EGL_BIND_TO_TEXTURE_RGB 0x3039 + EGL_BIND_TO_TEXTURE_RGBA 0x303A + EGL_MIN_SWAP_INTERVAL 0x303B + EGL_MAX_SWAP_INTERVAL 0x303C + EGL_NO_TEXTURE 0x305C + EGL_TEXTURE_RGB 0x305D + EGL_TEXTURE_RGBA 0x305E + EGL_TEXTURE_2D 0x305F + EGL_TEXTURE_FORMAT 0x3080 + EGL_TEXTURE_TARGET 0x3081 + EGL_MIPMAP_TEXTURE 0x3082 + EGL_MIPMAP_LEVEL 0x3083 + EGL_BACK_BUFFER 0x3084 + EGLBoolean eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer) + EGLBoolean eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer) + EGLBoolean eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) + EGLBoolean eglSwapInterval (EGLDisplay dpy, EGLint interval) diff --git a/auto/core/gl/EGL_VERSION_1_2 b/auto/core/gl/EGL_VERSION_1_2 new file mode 100644 index 0000000..e5a3a38 --- /dev/null +++ b/auto/core/gl/EGL_VERSION_1_2 @@ -0,0 +1,38 @@ +EGL_VERSION_1_2 +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf + + + EGL_OPENGL_ES_BIT 0x0001 + EGL_OPENVG_BIT 0x0002 + EGL_LUMINANCE_SIZE 0x303D + EGL_ALPHA_MASK_SIZE 0x303E + EGL_COLOR_BUFFER_TYPE 0x303F + EGL_RENDERABLE_TYPE 0x3040 + EGL_SINGLE_BUFFER 0x3085 + EGL_RENDER_BUFFER 0x3086 + EGL_COLORSPACE 0x3087 + EGL_ALPHA_FORMAT 0x3088 + EGL_COLORSPACE_sRGB 0x3089 + EGL_COLORSPACE_LINEAR 0x308A + EGL_ALPHA_FORMAT_NONPRE 0x308B + EGL_ALPHA_FORMAT_PRE 0x308C + EGL_CLIENT_APIS 0x308D + EGL_RGB_BUFFER 0x308E + EGL_LUMINANCE_BUFFER 0x308F + EGL_HORIZONTAL_RESOLUTION 0x3090 + EGL_VERTICAL_RESOLUTION 0x3091 + EGL_PIXEL_ASPECT_RATIO 0x3092 + EGL_SWAP_BEHAVIOR 0x3093 + EGL_BUFFER_PRESERVED 0x3094 + EGL_BUFFER_DESTROYED 0x3095 + EGL_OPENVG_IMAGE 0x3096 + EGL_CONTEXT_CLIENT_TYPE 0x3097 + EGL_OPENGL_ES_API 0x30A0 + EGL_OPENVG_API 0x30A1 + EGL_DISPLAY_SCALING 10000 + EGL_UNKNOWN EGL_CAST(EGLint,-1) + EGLBoolean eglBindAPI (EGLenum api) + EGLSurface eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint * attrib_list) + EGLenum eglQueryAPI ( void ) + EGLBoolean eglReleaseThread ( void ) + EGLBoolean eglWaitClient ( void ) diff --git a/auto/core/gl/EGL_VERSION_1_3 b/auto/core/gl/EGL_VERSION_1_3 new file mode 100644 index 0000000..de1d34d --- /dev/null +++ b/auto/core/gl/EGL_VERSION_1_3 @@ -0,0 +1,16 @@ +EGL_VERSION_1_3 +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf + + + EGL_OPENGL_ES2_BIT 0x0004 + EGL_VG_COLORSPACE_LINEAR_BIT 0x0020 + EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040 + EGL_MATCH_NATIVE_PIXMAP 0x3041 + EGL_CONFORMANT 0x3042 + EGL_VG_COLORSPACE 0x3087 + EGL_VG_ALPHA_FORMAT 0x3088 + EGL_VG_COLORSPACE_sRGB 0x3089 + EGL_VG_COLORSPACE_LINEAR 0x308A + EGL_VG_ALPHA_FORMAT_NONPRE 0x308B + EGL_VG_ALPHA_FORMAT_PRE 0x308C + EGL_CONTEXT_CLIENT_VERSION 0x3098 diff --git a/auto/core/gl/EGL_VERSION_1_4 b/auto/core/gl/EGL_VERSION_1_4 new file mode 100644 index 0000000..d8c71d3 --- /dev/null +++ b/auto/core/gl/EGL_VERSION_1_4 @@ -0,0 +1,13 @@ +EGL_VERSION_1_4 +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf + + + EGL_OPENGL_BIT 0x0008 + EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200 + EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400 + EGL_MULTISAMPLE_RESOLVE 0x3099 + EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A + EGL_MULTISAMPLE_RESOLVE_BOX 0x309B + EGL_OPENGL_API 0x30A2 + EGL_DEFAULT_DISPLAY EGL_CAST(EGLNativeDisplayType,0) + EGLContext eglGetCurrentContext ( void ) diff --git a/auto/core/gl/EGL_VERSION_1_5 b/auto/core/gl/EGL_VERSION_1_5 new file mode 100644 index 0000000..b436fdf --- /dev/null +++ b/auto/core/gl/EGL_VERSION_1_5 @@ -0,0 +1,59 @@ +EGL_VERSION_1_5 +https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf + + + EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001 + EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002 + EGL_OPENGL_ES3_BIT 0x00000040 + EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001 + EGL_GL_COLORSPACE_SRGB 0x3089 + EGL_GL_COLORSPACE_LINEAR 0x308A + EGL_CONTEXT_MAJOR_VERSION 0x3098 + EGL_CL_EVENT_HANDLE 0x309C + EGL_GL_COLORSPACE 0x309D + EGL_GL_TEXTURE_2D 0x30B1 + EGL_GL_TEXTURE_3D 0x30B2 + EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3 + EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4 + EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5 + EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6 + EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7 + EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8 + EGL_GL_RENDERBUFFER 0x30B9 + EGL_GL_TEXTURE_LEVEL 0x30BC + EGL_GL_TEXTURE_ZOFFSET 0x30BD + EGL_IMAGE_PRESERVED 0x30D2 + EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0 + EGL_SYNC_STATUS 0x30F1 + EGL_SIGNALED 0x30F2 + EGL_UNSIGNALED 0x30F3 + EGL_TIMEOUT_EXPIRED 0x30F5 + EGL_CONDITION_SATISFIED 0x30F6 + EGL_SYNC_TYPE 0x30F7 + EGL_SYNC_CONDITION 0x30F8 + EGL_SYNC_FENCE 0x30F9 + EGL_CONTEXT_MINOR_VERSION 0x30FB + EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD + EGL_SYNC_CL_EVENT 0x30FE + EGL_SYNC_CL_EVENT_COMPLETE 0x30FF + EGL_CONTEXT_OPENGL_DEBUG 0x31B0 + EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1 + EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2 + EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2 + EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD + EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD + EGL_NO_RESET_NOTIFICATION 0x31BE + EGL_LOSE_CONTEXT_ON_RESET 0x31BF + EGL_FOREVER 0xFFFFFFFFFFFFFFFF + EGL_NO_IMAGE EGL_CAST(EGLImage,0) + EGL_NO_SYNC EGL_CAST(EGLSync,0) + EGLint eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout) + EGLImage eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib * attrib_list) + EGLSurface eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void * native_pixmap, const EGLAttrib * attrib_list) + EGLSurface eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void * native_window, const EGLAttrib * attrib_list) + EGLSync eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib * attrib_list) + EGLBoolean eglDestroyImage (EGLDisplay dpy, EGLImage image) + EGLBoolean eglDestroySync (EGLDisplay dpy, EGLSync sync) + EGLDisplay eglGetPlatformDisplay (EGLenum platform, void * native_display, const EGLAttrib * attrib_list) + EGLBoolean eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib * value) + EGLBoolean eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags) diff --git a/auto/src/eglew_head.h b/auto/src/eglew_head.h index df2f1d9..69bb3d9 100644 --- a/auto/src/eglew_head.h +++ b/auto/src/eglew_head.h @@ -72,6 +72,7 @@ typedef khronos_utime_nanoseconds_t EGLuint64NV; typedef khronos_stime_nanoseconds_t EGLnsecsANDROID; struct EGLClientPixmapHI; +struct AHardwareBuffer; #define EGL_DONT_CARE ((EGLint)-1)