backend-drm: Skip testing plane state if plane is not enabled
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 14 Nov 2019 22:25:11 +0000 (00:25 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 22 Nov 2019 15:11:36 +0000 (17:11 +0200)
commit788e80db77e5e86a67fca606ac61f23682a07e71
treeae38be72c9d28006e834c0ef4a8349a99f8d5ca2
parentbd002b98841200a2425ccc8740267322b1c8788d
backend-drm: Skip testing plane state if plane is not enabled

Adds a further assert() to make sure we're not checking against invalid
values. This was seen in the wild when the kernel rejects the commit for
overlay resulting in a check for invalid zpos values.

Fixes: #304
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
libweston/backend-drm/state-propose.c