mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 18:30:09 +01:00
egl/wayland/sw: call dri2_wl_swrast_attach_backbuffer() before swap
should be 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
448cd2cd37
commit
e4db8c6e8d
1 changed files with 5 additions and 2 deletions
|
|
@ -2374,7 +2374,8 @@ dri2_wl_swrast_attach_backbuffer(struct dri2_egl_surface *dri2_surf)
|
|||
}
|
||||
|
||||
wl_surface_attach(dri2_surf->wl_surface_wrapper,
|
||||
dri2_surf->current->wl_buffer, dri2_surf->dx,
|
||||
/* 'back' here will be promoted to 'current' */
|
||||
dri2_surf->back->wl_buffer, dri2_surf->dx,
|
||||
dri2_surf->dy);
|
||||
}
|
||||
|
||||
|
|
@ -2384,7 +2385,6 @@ dri2_wl_swrast_commit_backbuffer(struct dri2_egl_surface *dri2_surf)
|
|||
struct dri2_egl_display *dri2_dpy =
|
||||
dri2_egl_display(dri2_surf->base.Resource.Display);
|
||||
|
||||
dri2_wl_swrast_attach_backbuffer(dri2_surf);
|
||||
dri2_surf->wl_win->attached_width = dri2_surf->base.Width;
|
||||
dri2_surf->wl_win->attached_height = dri2_surf->base.Height;
|
||||
/* reset resize growing parameters */
|
||||
|
|
@ -2519,6 +2519,9 @@ dri2_wl_swrast_swap_buffers_with_damage(_EGLDisplay *disp, _EGLSurface *draw,
|
|||
if (!disp->Options.Zink)
|
||||
(void)swrast_update_buffers(dri2_surf);
|
||||
|
||||
if (!disp->Options.Zink)
|
||||
dri2_wl_swrast_attach_backbuffer(dri2_surf);
|
||||
|
||||
if (n_rects)
|
||||
dri2_dpy->core->swapBuffersWithDamage(dri2_surf->dri_drawable, n_rects, rects);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue