backends/drm: remove retry-logic for atomic commits

While it can make KWin work even when the driver changes properties
behind its back, it can also mask bugs in KWin.
This commit is contained in:
Xaver Hugl 2022-03-01 01:10:42 +01:00 committed by Vlad Zahorodnii
parent b0982f7bbc
commit 0ba5916fe6

View file

@ -67,23 +67,7 @@ bool DrmPipeline::present()
return gpu()->maybeModeset();
}
if (gpu()->atomicModeSetting()) {
if (!commitPipelines({this}, CommitMode::Commit)) {
// update properties and try again
m_connector->updateProperties();
if (pending.crtc) {
pending.crtc->updateProperties();
if (pending.crtc->primaryPlane()) {
pending.crtc->primaryPlane()->updateProperties();
}
if (pending.crtc->cursorPlane()) {
pending.crtc->cursorPlane()->updateProperties();
}
}
if (!commitPipelines({this}, CommitMode::Commit)) {
printDebugInfo();
return false;
}
}
return commitPipelines({this}, CommitMode::Commit);
} else {
if (pending.layer->hasDirectScanoutBuffer()) {
// already presented