anv/wsi_wayland: Fix FIFO mode
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 28 Sep 2015 22:56:14 +0000 (15:56 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 28 Sep 2015 22:58:34 +0000 (15:58 -0700)
commit9ac3dde3a08d2914d4a95c42493b2b91d0f05244
treef0b1faff2bff20b1b8cfc3f782e1a7fd87d27a2e
parentddcedb979a143ca25a8c16b9ce39956311b3b324
anv/wsi_wayland: Fix FIFO mode

Previously, there were a number of things we were doing wrong:

 1) We weren't flushing the wl_display so dead-looping clients weren't
    guaranteed to work.
 2) We were sending the frame event after calling wl_surface.commit() so it
    wasn't getting assigned to the correct frame
 3) We weren't actually setting fifo_ready to false.

Unfortunately, we never noticed because (3) was hiding the other two.  This
commit fixes all three and clients that use FIFO mode are now properly
refresh-rate limited.
src/vulkan/anv_wsi_wayland.c