From: Eric Engestrom Date: Sun, 22 Apr 2018 14:48:15 +0000 (+0200) Subject: egl: drop unused _EGLDriver from {Bind,Release}TexImage() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f4a6ad3b32aeb9e7172a8ec80c969495637cf17;p=mesa.git egl: drop unused _EGLDriver from {Bind,Release}TexImage() Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 81df0d909ee..f1babe1e73b 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -2126,8 +2126,7 @@ dri2_wait_native(const _EGLDriver *drv, _EGLDisplay *disp, EGLint engine) } static EGLBoolean -dri2_bind_tex_image(const _EGLDriver *drv, - _EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) +dri2_bind_tex_image(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); struct dri2_egl_context *dri2_ctx; @@ -2138,7 +2137,7 @@ dri2_bind_tex_image(const _EGLDriver *drv, ctx = _eglGetCurrentContext(); dri2_ctx = dri2_egl_context(ctx); - if (!_eglBindTexImage(drv, disp, surf, buffer)) + if (!_eglBindTexImage(disp, surf, buffer)) return EGL_FALSE; switch (surf->TextureFormat) { @@ -2170,8 +2169,7 @@ dri2_bind_tex_image(const _EGLDriver *drv, } static EGLBoolean -dri2_release_tex_image(const _EGLDriver *drv, - _EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) +dri2_release_tex_image(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); struct dri2_egl_context *dri2_ctx; @@ -2182,7 +2180,7 @@ dri2_release_tex_image(const _EGLDriver *drv, ctx = _eglGetCurrentContext(); dri2_ctx = dri2_egl_context(ctx); - if (!_eglReleaseTexImage(drv, disp, surf, buffer)) + if (!_eglReleaseTexImage(disp, surf, buffer)) return EGL_FALSE; switch (surf->TextureTarget) { diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 492201ee857..9762a4dad12 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1237,7 +1237,7 @@ eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) _EGL_FUNC_START(disp, EGL_OBJECT_SURFACE_KHR, surf, EGL_FALSE); _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); - ret = drv->BindTexImage(drv, disp, surf, buffer); + ret = drv->BindTexImage(disp, surf, buffer); RETURN_EGL_EVAL(disp, ret); } @@ -1253,7 +1253,7 @@ eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) _EGL_FUNC_START(disp, EGL_OBJECT_SURFACE_KHR, surf, EGL_FALSE); _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); - ret = drv->ReleaseTexImage(drv, disp, surf, buffer); + ret = drv->ReleaseTexImage(disp, surf, buffer); RETURN_EGL_EVAL(disp, ret); } diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h index 1c02578147c..974b021d6df 100644 --- a/src/egl/main/egldriver.h +++ b/src/egl/main/egldriver.h @@ -111,10 +111,10 @@ struct _egl_driver EGLBoolean (*DestroySurface)(_EGLDisplay *disp, _EGLSurface *surface); EGLBoolean (*QuerySurface)(_EGLDisplay *disp, _EGLSurface *surface, EGLint attribute, EGLint *value); - EGLBoolean (*BindTexImage)(const _EGLDriver *drv, _EGLDisplay *disp, - _EGLSurface *surface, EGLint buffer); - EGLBoolean (*ReleaseTexImage)(const _EGLDriver *drv, _EGLDisplay *disp, - _EGLSurface *surface, EGLint buffer); + EGLBoolean (*BindTexImage)(_EGLDisplay *disp, _EGLSurface *surface, + EGLint buffer); + EGLBoolean (*ReleaseTexImage)(_EGLDisplay *disp, _EGLSurface *surface, + EGLint buffer); EGLBoolean (*SwapInterval)(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, EGLint interval); EGLBoolean (*SwapBuffers)(const _EGLDriver *drv, _EGLDisplay *disp, diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c index 38f273ba548..0ab6c7c7a5f 100644 --- a/src/egl/main/eglsurface.c +++ b/src/egl/main/eglsurface.c @@ -719,8 +719,7 @@ _eglSurfaceAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface EGLBoolean -_eglBindTexImage(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface, - EGLint buffer) +_eglBindTexImage(_EGLDisplay *disp, _EGLSurface *surface, EGLint buffer) { EGLint texture_type = EGL_PBUFFER_BIT; @@ -749,8 +748,7 @@ _eglBindTexImage(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface, } EGLBoolean -_eglReleaseTexImage(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, - EGLint buffer) +_eglReleaseTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) { /* Just do basic error checking and return success/fail. * Drivers must implement the real stuff. diff --git a/src/egl/main/eglsurface.h b/src/egl/main/eglsurface.h index aef2c39fb72..5a10e2bc061 100644 --- a/src/egl/main/eglsurface.h +++ b/src/egl/main/eglsurface.h @@ -190,10 +190,10 @@ _eglSurfaceAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, E extern EGLBoolean -_eglBindTexImage(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, EGLint buffer); +_eglBindTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer); extern EGLBoolean -_eglReleaseTexImage(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, EGLint buffer); +_eglReleaseTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer); extern EGLBoolean