diff options
author | Simon Ser <contact@emersion.fr> | 2023-11-23 17:43:55 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-01-27 13:37:43 +0100 |
commit | 00b869c1a96f300a8f25da95d624524895e0ddf2 (patch) | |
tree | 0440dcdb8ecdee0d83b97e1dc955b123cb8bf2f9 /backend/drm | |
parent | 4ec901bb33bdac70356bf00a23133d81ca0d10df (diff) |
backend/drm: add support for atomic tearing page-flips
The kernel patches [1] have been merged.
[1]: https://patchwork.freedesktop.org/series/120103/
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 5ad84235..b2bebe2d 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -114,6 +114,8 @@ bool check_drm_features(struct wlr_drm_backend *drm) { if (drm->iface == &legacy_iface) { drm->supports_tearing_page_flips = drmGetCap(drm->fd, DRM_CAP_ASYNC_PAGE_FLIP, &cap) == 0 && cap == 1; + } else { + drm->supports_tearing_page_flips = drmGetCap(drm->fd, DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP, &cap) == 0 && cap == 1; } if (env_parse_bool("WLR_DRM_NO_MODIFIERS")) { |