mirror of https://gitlab.freedesktop.org/mesa/mesa
egl: drop unused _EGLDriver from SetDamageRegion()
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
d202fd6596
commit
648f603c35
|
@ -2050,7 +2050,7 @@ dri2_swap_buffers_region(_EGLDisplay *disp, _EGLSurface *surf,
|
|||
}
|
||||
|
||||
static EGLBoolean
|
||||
dri2_set_damage_region(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf,
|
||||
dri2_set_damage_region(_EGLDisplay *disp, _EGLSurface *surf,
|
||||
EGLint *rects, EGLint n_rects)
|
||||
{
|
||||
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
|
||||
|
|
|
@ -1456,7 +1456,7 @@ eglSetDamageRegionKHR(EGLDisplay dpy, EGLSurface surface,
|
|||
RETURN_EGL_ERROR(disp, EGL_BAD_ACCESS, EGL_FALSE);
|
||||
|
||||
_eglSetDamageRegionKHRClampRects(disp, surf, rects, n_rects);
|
||||
ret = drv->SetDamageRegion(drv, disp, surf, rects, n_rects);
|
||||
ret = drv->SetDamageRegion(disp, surf, rects, n_rects);
|
||||
|
||||
if (ret)
|
||||
surf->SetDamageRegionCalled = EGL_TRUE;
|
||||
|
|
|
@ -120,8 +120,8 @@ struct _egl_driver
|
|||
EGLBoolean (*SwapBuffers)(_EGLDisplay *disp, _EGLSurface *draw);
|
||||
EGLBoolean (*CopyBuffers)(_EGLDisplay *disp, _EGLSurface *surface,
|
||||
void *native_pixmap_target);
|
||||
EGLBoolean (*SetDamageRegion)(const _EGLDriver *drv, _EGLDisplay *disp,
|
||||
_EGLSurface *surface, EGLint *rects, EGLint n_rects);
|
||||
EGLBoolean (*SetDamageRegion)(_EGLDisplay *disp, _EGLSurface *surface,
|
||||
EGLint *rects, EGLint n_rects);
|
||||
|
||||
/* misc functions */
|
||||
EGLBoolean (*WaitClient)(const _EGLDriver *drv, _EGLDisplay *disp,
|
||||
|
|
Loading…
Reference in New Issue