eglfs/kms: Share drm connector id with nativeRes.ForScreen

This allows to share the connector id for external applications
and drm layers embedding.

Change-Id: I87d4c257c8d8600665eb2328f8b44df3f1ac3c0a
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Lionel CHAZALLON 2018-03-17 08:28:44 +01:00
parent 2c7727a225
commit a263655f91

View File

@ -151,6 +151,8 @@ void *QEglFSKmsIntegration::nativeResourceForScreen(const QByteArray &resource,
if (s) {
if (resource == QByteArrayLiteral("dri_crtcid"))
return (void *) (qintptr) s->output().crtc_id;
if (resource == QByteArrayLiteral("dri_connectorid"))
return (void *) (qintptr) s->output().connector_id;
}
return nullptr;
}