backend-drm: Parse KMS panel orientation property, apply to weston_head
authorLucas Stach <l.stach@pengutronix.de>
Mon, 25 Nov 2019 23:31:57 +0000 (23:31 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 6 Mar 2020 21:50:38 +0000 (21:50 +0000)
commit72e7a1ed48d003977edcd244301c0a3cbd15df2c
treeea667a70cb425a9b6b034146f86c61d803c029e2
parenta69cb711cce25d10f8f50907f0f44c02baf527bd
backend-drm: Parse KMS panel orientation property, apply to weston_head

The KMS 'panel orientation' property allows the driver to statically
declare a fixed rotation of an output device. Now that weston_head has a
transform member, plumb the KMS property through to weston_head so the
compositor can make a smarter choice out of the box.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
[daniels: Extracted from one of Lucas's patches]
Signed-off-by: Daniel Stone <daniels@collabora.com>
libweston/backend-drm/drm-internal.h
libweston/backend-drm/kms.c
libweston/backend-drm/modes.c