Ver código fonte

egl/wayland: Send commit after flushing the driver context

This typically won't make a difference, since we only send the requests at
wl_display_flush() time.  There might be a small race
with another thread calling wl_display_flush() after our commit request,
but before we flush the DRI driver.  Moving the commit below the DRI
driver flush call looks more natural and eliminates the small race.

Cc: "10.0" mesa-stable@lists.freedesktop.org
tags/mesa-10.1-rc1
Kristian Høgsberg 12 anos atrás
pai
commit
33eb5eabee
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1
    2
      src/egl/drivers/dri2/platform_wayland.c

+ 1
- 2
src/egl/drivers/dri2/platform_wayland.c Ver arquivo

@@ -610,11 +610,10 @@ dri2_swap_buffers_with_damage(_EGLDriver *drv,
}
}

wl_surface_commit(dri2_surf->wl_win->surface);

(*dri2_dpy->flush->flush)(dri2_surf->dri_drawable);
(*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable);

wl_surface_commit(dri2_surf->wl_win->surface);
wl_display_flush(dri2_dpy->wl_dpy);

return EGL_TRUE;

Carregando…
Cancelar
Salvar