From b832da25bc7e967f40d93f2be00be184db4df26f Mon Sep 17 00:00:00 2001 From: Gyusun Date: Sun, 22 Aug 2021 12:29:55 +0000 Subject: [PATCH] Generate Sources of master updated at Sun Aug 22 12:29:55 GMT 2021 --- include/GL/eglew.h | 30 ++++++++++++++++++++++++++++++ src/glew.c | 38 ++++++++++++++++++++++++++++++++++++++ src/glewinfo.c | 28 +++++++++++++++++++++++++++- 3 files changed, 95 insertions(+), 1 deletion(-) diff --git a/include/GL/eglew.h b/include/GL/eglew.h index 246380c..64fe1e5 100644 --- a/include/GL/eglew.h +++ b/include/GL/eglew.h @@ -830,6 +830,17 @@ typedef EGLBoolean ( * PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_i #endif /* EGL_EXT_compositor */ +/* ---------------------- EGL_EXT_config_select_group ---------------------- */ + +#ifndef EGL_EXT_config_select_group +#define EGL_EXT_config_select_group 1 + +#define EGL_CONFIG_SELECT_GROUP_EXT 0x34C0 + +#define EGLEW_EXT_config_select_group EGLEW_GET_VAR(__EGLEW_EXT_config_select_group) + +#endif /* EGL_EXT_config_select_group */ + /* ------------------- EGL_EXT_create_context_robustness ------------------- */ #ifndef EGL_EXT_create_context_robustness @@ -868,6 +879,17 @@ typedef EGLBoolean ( * PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_i #endif /* EGL_EXT_device_drm */ +/* --------------------- EGL_EXT_device_drm_render_node -------------------- */ + +#ifndef EGL_EXT_device_drm_render_node +#define EGL_EXT_device_drm_render_node 1 + +#define EGL_DRM_RENDER_NODE_FILE_EXT 0x3377 + +#define EGLEW_EXT_device_drm_render_node EGLEW_GET_VAR(__EGLEW_EXT_device_drm_render_node) + +#endif /* EGL_EXT_device_drm_render_node */ + /* ----------------------- EGL_EXT_device_enumeration ---------------------- */ #ifndef EGL_EXT_device_enumeration @@ -901,6 +923,10 @@ typedef EGLBoolean ( * PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDevice #define EGL_DRIVER_UUID_EXT 0x335D #define EGL_DRIVER_NAME_EXT 0x335E +typedef EGLBoolean ( * PFNEGLQUERYDEVICEBINARYEXTPROC) (EGLDeviceEXT device, EGLint name, EGLint max_size, void* value, EGLint* size); + +#define eglQueryDeviceBinaryEXT EGLEW_GET_FUN(__eglewQueryDeviceBinaryEXT) + #define EGLEW_EXT_device_persistent_id EGLEW_GET_VAR(__EGLEW_EXT_device_persistent_id) #endif /* EGL_EXT_device_persistent_id */ @@ -2834,6 +2860,8 @@ EGLEW_FUN_EXPORT PFNEGLCOMPOSITORSWAPPOLICYEXTPROC __eglewCompositorSwapPolicyEX EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESEXTPROC __eglewQueryDevicesEXT; +EGLEW_FUN_EXPORT PFNEGLQUERYDEVICEBINARYEXTPROC __eglewQueryDeviceBinaryEXT; + EGLEW_FUN_EXPORT PFNEGLQUERYDEVICEATTRIBEXTPROC __eglewQueryDeviceAttribEXT; EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESTRINGEXTPROC __eglewQueryDeviceStringEXT; EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBEXTPROC __eglewQueryDisplayAttribEXT; @@ -2995,9 +3023,11 @@ EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_buffer_age; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_client_extensions; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_client_sync; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_compositor; +EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_config_select_group; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_create_context_robustness; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_base; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_drm; +EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_drm_render_node; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_enumeration; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_openwf; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_persistent_id; diff --git a/src/glew.c b/src/glew.c index 45c4d0c..69f1365 100644 --- a/src/glew.c +++ b/src/glew.c @@ -19567,6 +19567,8 @@ PFNEGLCOMPOSITORSWAPPOLICYEXTPROC __eglewCompositorSwapPolicyEXT = NULL; PFNEGLQUERYDEVICESEXTPROC __eglewQueryDevicesEXT = NULL; +PFNEGLQUERYDEVICEBINARYEXTPROC __eglewQueryDeviceBinaryEXT = NULL; + PFNEGLQUERYDEVICEATTRIBEXTPROC __eglewQueryDeviceAttribEXT = NULL; PFNEGLQUERYDEVICESTRINGEXTPROC __eglewQueryDeviceStringEXT = NULL; PFNEGLQUERYDISPLAYATTRIBEXTPROC __eglewQueryDisplayAttribEXT = NULL; @@ -19728,9 +19730,11 @@ GLboolean __EGLEW_EXT_buffer_age = GL_FALSE; GLboolean __EGLEW_EXT_client_extensions = GL_FALSE; GLboolean __EGLEW_EXT_client_sync = GL_FALSE; GLboolean __EGLEW_EXT_compositor = GL_FALSE; +GLboolean __EGLEW_EXT_config_select_group = GL_FALSE; GLboolean __EGLEW_EXT_create_context_robustness = GL_FALSE; GLboolean __EGLEW_EXT_device_base = GL_FALSE; GLboolean __EGLEW_EXT_device_drm = GL_FALSE; +GLboolean __EGLEW_EXT_device_drm_render_node = GL_FALSE; GLboolean __EGLEW_EXT_device_enumeration = GL_FALSE; GLboolean __EGLEW_EXT_device_openwf = GL_FALSE; GLboolean __EGLEW_EXT_device_persistent_id = GL_FALSE; @@ -20113,6 +20117,19 @@ static GLboolean _glewInit_EGL_EXT_device_enumeration () #endif /* EGL_EXT_device_enumeration */ +#ifdef EGL_EXT_device_persistent_id + +static GLboolean _glewInit_EGL_EXT_device_persistent_id () +{ + GLboolean r = GL_FALSE; + + r = ((eglQueryDeviceBinaryEXT = (PFNEGLQUERYDEVICEBINARYEXTPROC)glewGetProcAddress((const GLubyte*)"eglQueryDeviceBinaryEXT")) == NULL) || r; + + return r; +} + +#endif /* EGL_EXT_device_persistent_id */ + #ifdef EGL_EXT_device_query static GLboolean _glewInit_EGL_EXT_device_query () @@ -20840,6 +20857,9 @@ GLenum eglewInit (EGLDisplay display) EGLEW_EXT_compositor = _glewSearchExtension("EGL_EXT_compositor", extStart, extEnd); if (glewExperimental || EGLEW_EXT_compositor) EGLEW_EXT_compositor = !_glewInit_EGL_EXT_compositor(); #endif /* EGL_EXT_compositor */ +#ifdef EGL_EXT_config_select_group + EGLEW_EXT_config_select_group = _glewSearchExtension("EGL_EXT_config_select_group", extStart, extEnd); +#endif /* EGL_EXT_config_select_group */ #ifdef EGL_EXT_create_context_robustness EGLEW_EXT_create_context_robustness = _glewSearchExtension("EGL_EXT_create_context_robustness", extStart, extEnd); #endif /* EGL_EXT_create_context_robustness */ @@ -20849,6 +20869,9 @@ GLenum eglewInit (EGLDisplay display) #ifdef EGL_EXT_device_drm EGLEW_EXT_device_drm = _glewSearchExtension("EGL_EXT_device_drm", extStart, extEnd); #endif /* EGL_EXT_device_drm */ +#ifdef EGL_EXT_device_drm_render_node + EGLEW_EXT_device_drm_render_node = _glewSearchExtension("EGL_EXT_device_drm_render_node", extStart, extEnd); +#endif /* EGL_EXT_device_drm_render_node */ #ifdef EGL_EXT_device_enumeration EGLEW_EXT_device_enumeration = _glewSearchExtension("EGL_EXT_device_enumeration", extStart, extEnd); if (glewExperimental || EGLEW_EXT_device_enumeration) EGLEW_EXT_device_enumeration = !_glewInit_EGL_EXT_device_enumeration(); @@ -20858,6 +20881,7 @@ GLenum eglewInit (EGLDisplay display) #endif /* EGL_EXT_device_openwf */ #ifdef EGL_EXT_device_persistent_id EGLEW_EXT_device_persistent_id = _glewSearchExtension("EGL_EXT_device_persistent_id", extStart, extEnd); + if (glewExperimental || EGLEW_EXT_device_persistent_id) EGLEW_EXT_device_persistent_id = !_glewInit_EGL_EXT_device_persistent_id(); #endif /* EGL_EXT_device_persistent_id */ #ifdef EGL_EXT_device_query EGLEW_EXT_device_query = _glewSearchExtension("EGL_EXT_device_query", extStart, extEnd); @@ -31379,6 +31403,13 @@ GLboolean eglewIsSupported (const char* name) continue; } #endif +#ifdef EGL_EXT_config_select_group + if (_glewStrSame3(&pos, &len, (const GLubyte*)"config_select_group", 19)) + { + ret = EGLEW_EXT_config_select_group; + continue; + } +#endif #ifdef EGL_EXT_create_context_robustness if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_robustness", 25)) { @@ -31400,6 +31431,13 @@ GLboolean eglewIsSupported (const char* name) continue; } #endif +#ifdef EGL_EXT_device_drm_render_node + if (_glewStrSame3(&pos, &len, (const GLubyte*)"device_drm_render_node", 22)) + { + ret = EGLEW_EXT_device_drm_render_node; + continue; + } +#endif #ifdef EGL_EXT_device_enumeration if (_glewStrSame3(&pos, &len, (const GLubyte*)"device_enumeration", 18)) { diff --git a/src/glewinfo.c b/src/glewinfo.c index 398a739..358056e 100644 --- a/src/glewinfo.c +++ b/src/glewinfo.c @@ -12129,6 +12129,15 @@ static void _glewInfo_EGL_EXT_compositor (void) #endif /* EGL_EXT_compositor */ +#ifdef EGL_EXT_config_select_group + +static void _glewInfo_EGL_EXT_config_select_group (void) +{ + glewPrintExt("EGL_EXT_config_select_group", EGLEW_EXT_config_select_group, eglewIsSupported("EGL_EXT_config_select_group"), eglewGetExtension("EGL_EXT_config_select_group")); +} + +#endif /* EGL_EXT_config_select_group */ + #ifdef EGL_EXT_create_context_robustness static void _glewInfo_EGL_EXT_create_context_robustness (void) @@ -12156,6 +12165,15 @@ static void _glewInfo_EGL_EXT_device_drm (void) #endif /* EGL_EXT_device_drm */ +#ifdef EGL_EXT_device_drm_render_node + +static void _glewInfo_EGL_EXT_device_drm_render_node (void) +{ + glewPrintExt("EGL_EXT_device_drm_render_node", EGLEW_EXT_device_drm_render_node, eglewIsSupported("EGL_EXT_device_drm_render_node"), eglewGetExtension("EGL_EXT_device_drm_render_node")); +} + +#endif /* EGL_EXT_device_drm_render_node */ + #ifdef EGL_EXT_device_enumeration static void _glewInfo_EGL_EXT_device_enumeration (void) @@ -12180,7 +12198,9 @@ static void _glewInfo_EGL_EXT_device_openwf (void) static void _glewInfo_EGL_EXT_device_persistent_id (void) { - glewPrintExt("EGL_EXT_device_persistent_id", EGLEW_EXT_device_persistent_id, eglewIsSupported("EGL_EXT_device_persistent_id"), eglewGetExtension("EGL_EXT_device_persistent_id")); + GLboolean fi = glewPrintExt("EGL_EXT_device_persistent_id", EGLEW_EXT_device_persistent_id, eglewIsSupported("EGL_EXT_device_persistent_id"), eglewGetExtension("EGL_EXT_device_persistent_id")); + + glewInfoFunc(fi, "eglQueryDeviceBinaryEXT", eglQueryDeviceBinaryEXT == NULL); } #endif /* EGL_EXT_device_persistent_id */ @@ -18261,6 +18281,9 @@ static void eglewInfo () #ifdef EGL_EXT_compositor _glewInfo_EGL_EXT_compositor(); #endif /* EGL_EXT_compositor */ +#ifdef EGL_EXT_config_select_group + _glewInfo_EGL_EXT_config_select_group(); +#endif /* EGL_EXT_config_select_group */ #ifdef EGL_EXT_create_context_robustness _glewInfo_EGL_EXT_create_context_robustness(); #endif /* EGL_EXT_create_context_robustness */ @@ -18270,6 +18293,9 @@ static void eglewInfo () #ifdef EGL_EXT_device_drm _glewInfo_EGL_EXT_device_drm(); #endif /* EGL_EXT_device_drm */ +#ifdef EGL_EXT_device_drm_render_node + _glewInfo_EGL_EXT_device_drm_render_node(); +#endif /* EGL_EXT_device_drm_render_node */ #ifdef EGL_EXT_device_enumeration _glewInfo_EGL_EXT_device_enumeration(); #endif /* EGL_EXT_device_enumeration */