egl/kopper: call swrast buffer age query for kopper+swrast

with zink+lavapipe, this is actually how it works since the vtable is
different

Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27703>
This commit is contained in:
Mike Blumenkrantz 2024-02-13 16:23:34 -05:00 committed by Marge Bot
parent 1bd28d62e4
commit 9cf22c5fd0
2 changed files with 4 additions and 0 deletions

View file

@ -2593,6 +2593,8 @@ dri2_wl_kopper_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surface)
/* This can legitimately be null for lavapipe */
if (dri2_dpy->kopper)
return dri2_dpy->kopper->queryBufferAge(dri2_surf->dri_drawable);
else
return dri2_dpy->swrast->queryBufferAge(dri2_surf->dri_drawable);
return 0;
}

View file

@ -1336,6 +1336,8 @@ dri2_kopper_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surf)
/* This can legitimately be null for lavapipe */
if (dri2_dpy->kopper)
return dri2_dpy->kopper->queryBufferAge(dri2_surf->dri_drawable);
else
return dri2_dpy->swrast->queryBufferAge(dri2_surf->dri_drawable);
return 0;
}