From 506e2d6f9f677b9975068b5d425e49273b2dd14c Mon Sep 17 00:00:00 2001 From: Janet Blackquill Date: Mon, 15 Aug 2022 23:18:12 -0400 Subject: [PATCH] drm_gpu: don't bother trying to assign a crtc to a connector that isn't connected BUG: 457002 --- src/backends/drm/drm_gpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_gpu.cpp b/src/backends/drm/drm_gpu.cpp index a3aa7d2fac..ff6a847d1a 100644 --- a/src/backends/drm/drm_gpu.cpp +++ b/src/backends/drm/drm_gpu.cpp @@ -356,7 +356,7 @@ DrmPipeline::Error DrmGpu::checkCrtcAssignment(QVector 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);