eglfs_kms: Skip disconnected outputs
For some reason VMware reports 8 outputs, 7 of them are disconnected and so they cause several errors. Skip disconnected outputs to avoid those errors. Change-Id: I5f9fa2ef38b916af9f9ae8b50fce9fc40c18bff3 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
parent
0ea56cc075
commit
dceb424fe8
@ -191,6 +191,12 @@ QEglFSKmsScreen *QEglFSKmsDevice::screenForConnector(drmModeResPtr resources, dr
|
|||||||
return Q_NULLPTR;
|
return Q_NULLPTR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip disconnected output
|
||||||
|
if (configuration == OutputConfigPreferred && connector->connection == DRM_MODE_DISCONNECTED) {
|
||||||
|
qCDebug(qLcEglfsKmsDebug) << "Skipping disconnected output" << connectorName;
|
||||||
|
return Q_NULLPTR;
|
||||||
|
}
|
||||||
|
|
||||||
// Get the current mode on the current crtc
|
// Get the current mode on the current crtc
|
||||||
drmModeModeInfo crtc_mode;
|
drmModeModeInfo crtc_mode;
|
||||||
memset(&crtc_mode, 0, sizeof crtc_mode);
|
memset(&crtc_mode, 0, sizeof crtc_mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user