From 155541bc025ad8ff122ffafa28df452c7b53d771 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 22 Apr 2018 16:48:15 +0200 Subject: [PATCH] egl: drop unused _EGLDriver from PostSubBufferNV() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- src/egl/drivers/dri2/egl_dri2.c | 4 ++-- src/egl/drivers/dri2/egl_dri2.h | 3 +-- src/egl/drivers/dri2/platform_x11.c | 4 ++-- src/egl/main/eglapi.c | 2 +- src/egl/main/egldriver.h | 5 ++--- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 877f0133369..3f8209f413a 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -2064,13 +2064,13 @@ dri2_set_damage_region(_EGLDisplay *disp, _EGLSurface *surf, } static EGLBoolean -dri2_post_sub_buffer(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, +dri2_post_sub_buffer(_EGLDisplay *disp, _EGLSurface *surf, EGLint x, EGLint y, EGLint width, EGLint height) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); if (!dri2_dpy->vtbl->post_sub_buffer) return EGL_FALSE; - return dri2_dpy->vtbl->post_sub_buffer(drv, disp, surf, x, y, width, height); + return dri2_dpy->vtbl->post_sub_buffer(disp, surf, x, y, width, height); } static EGLBoolean diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 0df270a3737..7e66a967796 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -129,8 +129,7 @@ struct dri2_egl_display_vtbl { EGLint numRects, const EGLint *rects); /* optional */ - EGLBoolean (*post_sub_buffer)(const _EGLDriver *drv, _EGLDisplay *disp, - _EGLSurface *surf, + EGLBoolean (*post_sub_buffer)(_EGLDisplay *disp, _EGLSurface *surf, EGLint x, EGLint y, EGLint width, EGLint height); diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 108d8660531..605035581d1 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -968,8 +968,8 @@ dri2_x11_swap_buffers_region(_EGLDisplay *disp, _EGLSurface *draw, } static EGLBoolean -dri2_x11_post_sub_buffer(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw, - EGLint x, EGLint y, EGLint width, EGLint height) +dri2_x11_post_sub_buffer(_EGLDisplay *disp, _EGLSurface *draw, + EGLint x, EGLint y, EGLint width, EGLint height) { const EGLint rect[4] = { x, y, width, height }; diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 2b69c47fae7..7bf70eb53d6 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -2338,7 +2338,7 @@ eglPostSubBufferNV(EGLDisplay dpy, EGLSurface surface, if (!disp->Extensions.NV_post_sub_buffer) RETURN_EGL_EVAL(disp, EGL_FALSE); - ret = drv->PostSubBufferNV(drv, disp, surf, x, y, width, height); + ret = drv->PostSubBufferNV(disp, surf, x, y, width, height); RETURN_EGL_EVAL(disp, ret); } diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h index b5344d24666..69efae7eb38 100644 --- a/src/egl/main/egldriver.h +++ b/src/egl/main/egldriver.h @@ -161,9 +161,8 @@ struct _egl_driver EGLBoolean (*SwapBuffersWithDamageEXT)(_EGLDisplay *disp, _EGLSurface *surface, const EGLint *rects, EGLint n_rects); - EGLBoolean (*PostSubBufferNV)(const _EGLDriver *drv, _EGLDisplay *disp, - _EGLSurface *surface, EGLint x, EGLint y, - EGLint width, EGLint height); + EGLBoolean (*PostSubBufferNV)(_EGLDisplay *disp, _EGLSurface *surface, + EGLint x, EGLint y, EGLint width, EGLint height); EGLint (*QueryBufferAge)(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface); -- 2.30.2