kms/connector: Look up CRTC_ID property

To be used by the atomic backend.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2020-07-16 22:05:18 +02:00 committed by Marge Bot
parent 1959a872b8
commit d3c630f637
2 changed files with 7 additions and 1 deletions

View File

@ -24,7 +24,8 @@
typedef enum _MetaKmsConnectorProp
{
META_KMS_CONNECTOR_PROP_DPMS = 0,
META_KMS_CONNECTOR_PROP_CRTC_ID = 0,
META_KMS_CONNECTOR_PROP_DPMS,
META_KMS_CONNECTOR_PROP_UNDERSCAN,
META_KMS_CONNECTOR_PROP_UNDERSCAN_HBORDER,
META_KMS_CONNECTOR_PROP_UNDERSCAN_VBORDER,

View File

@ -532,6 +532,11 @@ init_properties (MetaKmsConnector *connector,
*prop_table = (MetaKmsConnectorPropTable) {
.props = {
[META_KMS_CONNECTOR_PROP_CRTC_ID] =
{
.name = "CRTC_ID",
.type = DRM_MODE_PROP_OBJECT,
},
[META_KMS_CONNECTOR_PROP_DPMS] =
{
.name = "DPMS",