mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
735b35e34a
commit
0e7ae395e7
3 changed files with 5 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue