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
This commit is contained in:
Xaver Hugl 2024-06-03 20:40:49 +02:00
parent 47d873db94
commit a167657214

View file

@ -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) {