OSDN Git Service

wayland: Immediately destroy wl_* objects when DRM device is authenticated
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)
commit324a725e5068a538e2446b0b73cccb3c119f3d8b
tree1bb0322a5d236f73ce51c6369edd02909fd04806
parentd90f0ff10a77cb62f41655920439b1c31d26b0ec
wayland: Immediately destroy wl_* objects when DRM device is authenticated

The Wayland protocol is only used to determine which device driver to
load and initialize the DRM state. After the initial roundtrips that
open and authenticate the DRM device, the Wayland protocol objects
are not used anymore and will only take up memory and possibly have
events queued that never get handled.
As fix, destroy them immediately after DRM auth is through. This commit
also adds more error checking to the initialization function.

Fixes: #100

Signed-off-by: Philipp Kerling <pkerling@casix.org>
va/wayland/va_wayland_drm.c