mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-21 02:20:26 +01:00
Merge branch 'atomic-modesetting-tearing-retry-on-failure' into 'master'
Draft: backend/drm: retry drm commit when async commit fails See merge request wlroots/wlroots!4746
This commit is contained in:
commit
58d062ff34
1 changed files with 6 additions and 0 deletions
|
|
@ -984,6 +984,12 @@ static bool drm_connector_commit_state(struct wlr_drm_connector *conn,
|
|||
|
||||
ok = drm_commit(drm, &pending_dev, flags, test_only);
|
||||
|
||||
if (!ok && flags & DRM_MODE_PAGE_FLIP_ASYNC) {
|
||||
// try again if some props change caused a failure here
|
||||
flags &= ~DRM_MODE_PAGE_FLIP_ASYNC;
|
||||
ok = drm_commit(drm, &pending_dev, flags, test_only);
|
||||
}
|
||||
|
||||
out:
|
||||
drm_connector_state_finish(&pending);
|
||||
return ok;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue