Commit 7dddcf20 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

platforms/drm: Don't create outputs without primary plane in AMS

parent d6cca178
......@@ -256,10 +256,15 @@ bool DrmGpu::updateOutputs()
continue;
}
auto primary = getCompatiblePlane(DrmPlane::TypeIndex::Primary, crtc);
if (m_atomicModeSetting && !primary) {
continue;
}
DrmOutput *output = new DrmOutput(this->m_backend, this);
output->m_conn = con;
output->m_crtc = crtc;
output->m_primaryPlane = getCompatiblePlane(DrmPlane::TypeIndex::Primary, crtc);
output->m_primaryPlane = primary;
qCDebug(KWIN_DRM) << "For new output use mode" << con->currentMode().mode.name;
if (!output->init()) {
......
......@@ -155,10 +155,6 @@ bool DrmOutput::moveCursor()
bool DrmOutput::init()
{
if (m_gpu->atomicModeSetting() && !m_primaryPlane) {
return false;
}
setSubPixelInternal(m_conn->subpixel());
setInternal(m_conn->isInternal());
setCapabilityInternal(Capability::Dpms);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment