From: Eric Engestrom Date: Mon, 21 May 2018 18:48:13 +0000 (+0100) Subject: egl: drop unused _EGLDriver from _eglGetConfigs()/_eglChooseConfig()/_eglGetConfigAtt... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0345a614629d6e22c942cbaee095d04a14d72c2b;p=mesa.git egl: drop unused _EGLDriver from _eglGetConfigs()/_eglChooseConfig()/_eglGetConfigAttrib() Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index deeee566e36..210b5a8bbc1 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -732,7 +732,7 @@ eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, if (!num_config) RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE); - ret = _eglGetConfigs(drv, disp, configs, config_size, num_config); + ret = _eglGetConfigs(disp, configs, config_size, num_config); RETURN_EGL_EVAL(disp, ret); } @@ -753,7 +753,7 @@ eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, if (!num_config) RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE); - ret = _eglChooseConfig(drv, disp, attrib_list, configs, + ret = _eglChooseConfig(disp, attrib_list, configs, config_size, num_config); RETURN_EGL_EVAL(disp, ret); @@ -773,7 +773,7 @@ eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, _EGL_CHECK_CONFIG(disp, conf, EGL_FALSE, drv); - ret = _eglGetConfigAttrib(drv, disp, conf, attribute, value); + ret = _eglGetConfigAttrib(disp, conf, attribute, value); RETURN_EGL_EVAL(disp, ret); } diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index 2a59896c2d7..17d8f3555d4 100644 --- a/src/egl/main/eglconfig.c +++ b/src/egl/main/eglconfig.c @@ -790,7 +790,7 @@ _eglFallbackCompare(const _EGLConfig *conf1, const _EGLConfig *conf2, * Typical fallback routine for eglChooseConfig */ EGLBoolean -_eglChooseConfig(const _EGLDriver *drv, _EGLDisplay *disp, const EGLint *attrib_list, +_eglChooseConfig(_EGLDisplay *disp, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_configs) { _EGLConfig criteria; @@ -809,7 +809,7 @@ _eglChooseConfig(const _EGLDriver *drv, _EGLDisplay *disp, const EGLint *attrib_ * Fallback for eglGetConfigAttrib. */ EGLBoolean -_eglGetConfigAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf, +_eglGetConfigAttrib(_EGLDisplay *disp, _EGLConfig *conf, EGLint attribute, EGLint *value) { if (!_eglIsConfigAttribValid(conf, attribute)) @@ -845,7 +845,7 @@ _eglFlattenConfig(void *elem, void *buffer) * Fallback for eglGetConfigs. */ EGLBoolean -_eglGetConfigs(const _EGLDriver *drv, _EGLDisplay *disp, EGLConfig *configs, +_eglGetConfigs(_EGLDisplay *disp, EGLConfig *configs, EGLint config_size, EGLint *num_config) { *num_config = _eglFlattenArray(disp->Configs, (void *) configs, diff --git a/src/egl/main/eglconfig.h b/src/egl/main/eglconfig.h index ebad16125d3..1f2a4008f12 100644 --- a/src/egl/main/eglconfig.h +++ b/src/egl/main/eglconfig.h @@ -224,15 +224,15 @@ _eglFilterConfigArray(_EGLArray *array, EGLConfig *configs, extern EGLBoolean -_eglChooseConfig(const _EGLDriver *drv, _EGLDisplay *disp, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config); +_eglChooseConfig(_EGLDisplay *disp, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config); extern EGLBoolean -_eglGetConfigAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf, EGLint attribute, EGLint *value); +_eglGetConfigAttrib(_EGLDisplay *disp, _EGLConfig *conf, EGLint attribute, EGLint *value); extern EGLBoolean -_eglGetConfigs(const _EGLDriver *drv, _EGLDisplay *disp, EGLConfig *configs, EGLint config_size, EGLint *num_config); +_eglGetConfigs(_EGLDisplay *disp, EGLConfig *configs, EGLint config_size, EGLint *num_config); #ifdef __cplusplus