OSDN Git Service

wayland: Add wl_drm listener immediately upon bind
authorPhilipp Kerling <pkerling@casix.org>
Wed, 16 Aug 2017 10:37:27 +0000 (12:37 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 17 Aug 2017 03:06:29 +0000 (11:06 +0800)
commit9ca99eb84cdb6ea638af567f6074c53fa51a416c
treeb3fa142d0459da7fbbf0a40a34a611458f7f3d12
parent62affbb44b771931a8895fc7428df23afb888750
wayland: Add wl_drm listener immediately upon bind

Events on wl_drm could get lost if the listener is bound only after
the roundtrip is complete. While it is correct that to get all wl_drm
events at most two roundtrips are required, in fact one roundtrip may
be enough if another thread flushes and reads from the connection
in parallel to the initial libva wl_registry roundtrip. It is thus too
late to call wl_drm_add_listener after the roundtrip.

Fixes: #101
va/wayland/va_wayland_drm.c