mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
egl: drop unused _EGLDriver from PostSubBufferNV()
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
f010568ea2
commit
155541bc02
5 changed files with 8 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue