egl/wayland: Flush the wl_display at the end of SwapBuffers
commit188c60143b1e77e62ec8404e8ecde2472fe9b80f
authorAxel Davy <axel.davy@ens.fr>
Tue, 3 Dec 2013 16:38:09 +0000 (3 17:38 +0100)
committerCarl Worth <cworth@cworth.org>
Thu, 12 Dec 2013 23:33:33 +0000 (12 15:33 -0800)
treef83d37f9e092b5aadbdcd093cc20d0146396af86
parentd0f606ffbde369aae3acf8c943ef38002ae14e62
egl/wayland: Flush the wl_display at the end of SwapBuffers

We would like the compositor to receive the commited buffer
as soon as possible, so it has the time to treat it, and
release old ones. We shouldn't rely on the client
to flush the queue for us.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Cc: "10.0" mesa-stable@lists.freedesktop.org
(cherry picked from commit 402bf6e8d098b64390277b229f7fae769e4449e5)
src/egl/drivers/dri2/platform_wayland.c