mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
1bd28d62e4
commit
9cf22c5fd0
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue