From a16765721499be729a07c8a9844b99a247eb67dc Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Mon, 3 Jun 2024 20:40:49 +0200 Subject: [PATCH] backends/drm: enable pipelines for VR headsets Otherwise, the pipeline state from an earlier hotplug scenario can leave the pipeline disabled and without a CRTC, which means leasing the output will fail BUG: 487938 FIXED-IN: 6.1.0 --- src/backends/drm/drm_gpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/drm/drm_gpu.cpp b/src/backends/drm/drm_gpu.cpp index 794f4aef2f..39b14856ce 100644 --- a/src/backends/drm/drm_gpu.cpp +++ b/src/backends/drm/drm_gpu.cpp @@ -289,6 +289,8 @@ bool DrmGpu::updateOutputs() Q_EMIT outputAdded(output); pipeline->setLayers(m_platform->renderBackend()->createDrmPlaneLayer(pipeline, DrmPlane::TypeIndex::Primary), m_platform->renderBackend()->createDrmPlaneLayer(pipeline, DrmPlane::TypeIndex::Cursor)); pipeline->setActive(!conn->isNonDesktop()); + // only "enable" VR headsets here; Workspace makes this decision for normal outputs + pipeline->setEnable(conn->isNonDesktop()); pipeline->applyPendingChanges(); } if (stillExists) {