Re: [Development] QtWayland synchronisation between GL and compositor

2016-05-27 Thread Tomek Bury
Hi Gunnar, Thanks for your replay. I've spend quite some time on #wayland IRC channel yesterday discussing this matter. It turns out that the compositor implementation assumes implicit synchronisation. The "submit" operation assumes that whatever dependencies were present on the client side are

Re: [Development] QtWayland synchronisation between GL and compositor

2016-05-26 Thread Gunnar Sletta
Hi Tomek, You're not really missing anything :) In the case of an asynchronous swapBuffers, there is a slight chance the wl_buffer release on the next draw pass will be premature, because there is nothing the qtwayland module that catches when the GPU is done with a frame. In stack that I'm f

[Development] QtWayland synchronisation between GL and compositor

2016-05-26 Thread Tomek Bury
Hi all, Is there any mechanism that that synchronises wl_buffer release by the compositor to the GL driver's pipeline? I can't figure out how this synchronisation is supposed to work. My initial thought was that the sequence of actions will be something like this. The client sends a new frame to