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)
|
_EGL_CHECK_OBJECT(disp, Sync, s, ret)
|
||||||
|
|
||||||
|
|
||||||
|
extern const _EGLDriver _eglDriver;
|
||||||
|
|
||||||
|
|
||||||
struct _egl_entrypoint {
|
struct _egl_entrypoint {
|
||||||
const char *name;
|
const char *name;
|
||||||
_EGLProc function;
|
_EGLProc function;
|
||||||
@@ -2703,8 +2706,8 @@ eglGetProcAddress(const char *procname)
|
|||||||
ret = entrypoint->function;
|
ret = entrypoint->function;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ret)
|
if (!ret && _eglDriver.GetProcAddress)
|
||||||
ret = _eglGetDriverProc(procname);
|
ret = _eglDriver.GetProcAddress(procname);
|
||||||
|
|
||||||
RETURN_EGL_SUCCESS(NULL, ret);
|
RETURN_EGL_SUCCESS(NULL, ret);
|
||||||
}
|
}
|
||||||
|
@@ -80,12 +80,3 @@ _eglInitializeDisplay(_EGLDisplay *disp)
|
|||||||
disp->Initialized = EGL_TRUE;
|
disp->Initialized = EGL_TRUE;
|
||||||
return 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);
|
_eglInitializeDisplay(_EGLDisplay *disp);
|
||||||
|
|
||||||
|
|
||||||
extern __eglMustCastToProperFunctionPointerType
|
|
||||||
_eglGetDriverProc(const char *procname);
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user