egl: inline _eglGetDriverProc() into eglGetProcAddress()

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>
This commit is contained in:
Eric Engestrom
2020-08-04 01:38:02 +02:00
committed by Marge Bot
parent 735b35e34a
commit 0e7ae395e7
3 changed files with 5 additions and 15 deletions

View File

@@ -163,6 +163,9 @@
_EGL_CHECK_OBJECT(disp, Sync, s, ret)
extern const _EGLDriver _eglDriver;
struct _egl_entrypoint {
const char *name;
_EGLProc function;
@@ -2703,8 +2706,8 @@ eglGetProcAddress(const char *procname)
ret = entrypoint->function;
}
if (!ret)
ret = _eglGetDriverProc(procname);
if (!ret && _eglDriver.GetProcAddress)
ret = _eglDriver.GetProcAddress(procname);
RETURN_EGL_SUCCESS(NULL, ret);
}

View File

@@ -80,12 +80,3 @@ _eglInitializeDisplay(_EGLDisplay *disp)
disp->Initialized = EGL_TRUE;
return true;
}
__eglMustCastToProperFunctionPointerType
_eglGetDriverProc(const char *procname)
{
if (_eglDriver.GetProcAddress)
return _eglDriver.GetProcAddress(procname);
return NULL;
}

View File

@@ -199,10 +199,6 @@ extern bool
_eglInitializeDisplay(_EGLDisplay *disp);
extern __eglMustCastToProperFunctionPointerType
_eglGetDriverProc(const char *procname);
#ifdef __cplusplus
}
#endif