mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
egl/wayland/sw: move dri2_wl_swrast_commit_backbuffer() directly into swapbuffers
no functional changes Acked-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27703>
This commit is contained in:
parent
81e5f9c398
commit
73a3a1c646
1 changed files with 2 additions and 1 deletions
|
|
@ -2488,7 +2488,6 @@ dri2_wl_swrast_put_image2(__DRIdrawable *draw, int op, int x, int y, int w,
|
|||
src += stride;
|
||||
dst += dst_stride;
|
||||
}
|
||||
dri2_wl_swrast_commit_backbuffer(dri2_surf);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -2522,6 +2521,8 @@ dri2_wl_swrast_swap_buffers_with_damage(_EGLDisplay *disp, _EGLSurface *draw,
|
|||
if (disp->Options.Zink) {
|
||||
dri2_surf->current = dri2_surf->back;
|
||||
dri2_surf->back = NULL;
|
||||
} else {
|
||||
dri2_wl_swrast_commit_backbuffer(dri2_surf);
|
||||
}
|
||||
return EGL_TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue