backend/drm: add explicit sync support to libliftoff interface

This commit is contained in:
Simon Ser 2024-08-06 19:55:37 +02:00
parent d7223eae02
commit 0d6284eb62
2 changed files with 12 additions and 2 deletions

View file

@ -1646,8 +1646,7 @@ static bool connect_drm_connector(struct wlr_drm_connector *wlr_conn,
output->non_desktop = non_desktop;
}
// TODO: support sync timelines with libliftoff
output->timeline = drm->iface == &atomic_iface;
output->timeline = drm->iface != &legacy_iface;
if (drm->parent) {
output->timeline = output->timeline && drm->mgpu_renderer.wlr_rend->features.timeline;
}