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:

committed by
Marge Bot

parent
735b35e34a
commit
0e7ae395e7
@@ -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);
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -199,10 +199,6 @@ extern bool
|
||||
_eglInitializeDisplay(_EGLDisplay *disp);
|
||||
|
||||
|
||||
extern __eglMustCastToProperFunctionPointerType
|
||||
_eglGetDriverProc(const char *procname);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user