egl: inline DRI_SWRAST

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472>
This commit is contained in:
Mike Blumenkrantz
2024-07-26 15:22:08 -04:00
committed by Marge Bot
parent b1b8ac6b34
commit d9eae369e9
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -1568,7 +1568,7 @@ dri2_create_drawable(struct dri2_egl_display *dri2_dpy,
else if (dri2_dpy->dri2)
createNewDrawable = dri2_dpy->dri2->createNewDrawable;
else if (dri2_dpy->swrast)
createNewDrawable = dri2_dpy->swrast->createNewDrawable;
createNewDrawable = driCreateNewDrawable;
else
return _eglError(EGL_BAD_ALLOC, "no createNewDrawable");
+2 -2
View File
@@ -2788,7 +2788,7 @@ dri2_wl_kopper_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surface)
if (dri2_dpy->kopper)
return kopperQueryBufferAge(dri2_surf->dri_drawable);
else
return dri2_dpy->swrast->queryBufferAge(dri2_surf->dri_drawable);
return driSWRastQueryBufferAge(dri2_surf->dri_drawable);
return 0;
}
@@ -2799,7 +2799,7 @@ dri2_wl_swrast_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surface)
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface);
assert(dri2_dpy->swrast);
return dri2_dpy->swrast->queryBufferAge(dri2_surf->dri_drawable);
return driSWRastQueryBufferAge(dri2_surf->dri_drawable);
}
static void
+2 -4
View File
@@ -1527,7 +1527,7 @@ dri2_kopper_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surf)
if (dri2_dpy->kopper)
return kopperQueryBufferAge(dri2_surf->dri_drawable);
else
return dri2_dpy->swrast->queryBufferAge(dri2_surf->dri_drawable);
return driSWRastQueryBufferAge(dri2_surf->dri_drawable);
return 0;
}
@@ -1535,11 +1535,9 @@ dri2_kopper_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surf)
static EGLint
dri2_swrast_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surf)
{
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf);
assert(dri2_dpy->swrast);
return dri2_dpy->swrast->queryBufferAge(dri2_surf->dri_drawable);
return driSWRastQueryBufferAge(dri2_surf->dri_drawable);
}
static const struct dri2_egl_display_vtbl dri2_x11_swrast_display_vtbl = {