Re: [PATCH mesa] egl/wayland: Don't invalidate drawable on swap buffers

2012-11-30 Thread Kristian Høgsberg
On Fri, Nov 30, 2012 at 11:07:09AM -0500, Kristian Høgsberg wrote: > On Fri, Nov 30, 2012 at 05:41:02PM +0200, Ander Conselvan de Oliveira wrote: > > We used to invalidate the drawable after a call to eglSwapBuffers(), > > so that a wl_egl_window_resize() would take effect for the next frame. > > H

Re: [PATCH mesa] egl/wayland: Don't invalidate drawable on swap buffers

2012-11-30 Thread Kristian Høgsberg
On Fri, Nov 30, 2012 at 05:41:02PM +0200, Ander Conselvan de Oliveira wrote: > We used to invalidate the drawable after a call to eglSwapBuffers(), > so that a wl_egl_window_resize() would take effect for the next frame. > However, that leads to calling dri2_get_buffers() when eglMakeCurrent() > is

[PATCH mesa] egl/wayland: Don't invalidate drawable on swap buffers

2012-11-30 Thread Ander Conselvan de Oliveira
We used to invalidate the drawable after a call to eglSwapBuffers(), so that a wl_egl_window_resize() would take effect for the next frame. However, that leads to calling dri2_get_buffers() when eglMakeCurrent() is called with the current context and surface, and a later call to wl_egl_window_resiz