vulkan/wsi/wayland: Use per-display event queue
authorDaniel Stone <daniels@collabora.com>
Tue, 2 May 2017 09:04:33 +0000 (10:04 +0100)
committerDaniel Stone <daniels@collabora.com>
Fri, 19 May 2017 08:36:03 +0000 (09:36 +0100)
commitc902a1957d079941823006d56b6810e1e85be4b0
tree2fcaa254cb706d76d9ef71b70b158aa94eeaf068
parentafe8c8a2997950cd63076b7c9eba39e1858fee43
vulkan/wsi/wayland: Use per-display event queue

Calling random callbacks on the display's event queue is hostile, as
we may call into client code when it least expects it. Create our own
event queue, one per wsi_wl_display, and use that for the registry.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/vulkan/wsi/wsi_common_wayland.c