drm_gpu: don't bother trying to assign a crtc to a connector that isn't connected

BUG: 457002
This commit is contained in:
Janet Blackquill 2022-08-15 23:18:12 -04:00 committed by Xaver Hugl
parent f2e594358c
commit 506e2d6f9f

View file

@ -356,7 +356,7 @@ DrmPipeline::Error DrmGpu::checkCrtcAssignment(QVector<DrmConnector *> connector
}
auto connector = connectors.takeFirst();
auto pipeline = connector->pipeline();
if (!pipeline->enabled()) {
if (!pipeline->enabled() || !connector->isConnected()) {
// disabled pipelines don't need CRTCs
pipeline->setCrtc(nullptr);
return checkCrtcAssignment(connectors, crtcs);