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:
parent
b0982f7bbc
commit
0ba5916fe6
1 changed files with 1 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue