mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-15 05:34:22 -04:00
backend/drm: Set timeline support based on capability
We assumed that all atomic backends supported syncobj, but gud does not. Instead, query DRM_CAP_SYNCOBJ_TIMELINE when using the atomic backend.
This commit is contained in:
parent
c0945b6613
commit
014023c14f
2 changed files with 1 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ bool check_drm_features(struct wlr_drm_backend *drm) {
|
|||
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;
|
||||
drm->backend.features.timeline = drmGetCap(drm->fd, DRM_CAP_SYNCOBJ_TIMELINE, &cap) == 0 && cap == 1;
|
||||
}
|
||||
|
||||
if (env_parse_bool("WLR_DRM_NO_MODIFIERS")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue