[Mesa-dev] [PATCH 09/15] egl: add EGL 1.5 functions that don't need any changes from extensions

Emil Velikov emil.l.velikov at gmail.com
Thu May 14 15:44:07 PDT 2015


On 12/05/15 22:54, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> Declare the functions without the suffix, so that the core names are exported.
> ---
>  src/egl/main/eglapi.c | 20 ++++++++++++--------
>  1 file changed, 12 insertions(+), 8 deletions(-)
> 
> diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
> index 9f09466..60df297 100644
> --- a/src/egl/main/eglapi.c
> +++ b/src/egl/main/eglapi.c
> @@ -1158,16 +1158,20 @@ eglGetProcAddress(const char *procname)
>        { "eglWaitClient", (_EGLProc) eglWaitClient },
>        { "eglWaitGL", (_EGLProc) eglWaitGL },
>        { "eglWaitNative", (_EGLProc) eglWaitNative },
> +      { "eglCreateSync", (_EGLProc) eglCreateSync },
> +      { "eglDestroySync", (_EGLProc) eglDestroySync },
> +      { "eglClientWaitSync", (_EGLProc) eglClientWaitSync },
> +      { "eglDestroyImage", (_EGLProc) eglDestroyImage },
>  #endif /* _EGL_GET_CORE_ADDRESSES */
>  #ifdef EGL_MESA_drm_display
>        { "eglGetDRMDisplayMESA", (_EGLProc) eglGetDRMDisplayMESA },
>  #endif
>        { "eglCreateImageKHR", (_EGLProc) eglCreateImageKHR },
> -      { "eglDestroyImageKHR", (_EGLProc) eglDestroyImageKHR },
> +      { "eglDestroyImageKHR", (_EGLProc) eglDestroyImage },
>        { "eglCreateSyncKHR", (_EGLProc) eglCreateSyncKHR },
> -      { "eglCreateSync64KHR", (_EGLProc) eglCreateSync64KHR },
> -      { "eglDestroySyncKHR", (_EGLProc) eglDestroySyncKHR },
> -      { "eglClientWaitSyncKHR", (_EGLProc) eglClientWaitSyncKHR },
> +      { "eglCreateSync64KHR", (_EGLProc) eglCreateSync },
> +      { "eglDestroySyncKHR", (_EGLProc) eglDestroySync },
> +      { "eglClientWaitSyncKHR", (_EGLProc) eglClientWaitSync },
Just a heads-up there will be some conflicts when rebasing this patch.
The _EGL_GET_CORE_ADDRESSES macro is gone, plus the four renamed
functions have a static notation.

-Emil


More information about the mesa-dev mailing list