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:
parent
2c7727a225
commit
a263655f91
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user