mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
wlr_output: Add adaptive_sync_supported
This will let compositors know if changing adaptive_sync state has any chance of working. When false, then the current state is the only supported state, including if adaptive_sync is currently enabled as is the case for Wayland and X11 backends. When true, changing state might succeed, but no guarantee is made. It just indicates that the backend does not already know it to be impossible.
This commit is contained in:
parent
55bee71a53
commit
f10327f915
2 changed files with 11 additions and 0 deletions
|
|
@ -1586,6 +1586,12 @@ static bool connect_drm_connector(struct wlr_drm_connector *wlr_conn,
|
|||
}
|
||||
}
|
||||
|
||||
uint64_t vrr_capable = 0;
|
||||
if (wlr_conn->props.vrr_capable != 0) {
|
||||
get_drm_prop(drm->fd, wlr_conn->id, wlr_conn->props.vrr_capable, &vrr_capable);
|
||||
}
|
||||
output->adaptive_sync_supported = vrr_capable;
|
||||
|
||||
size_t edid_len = 0;
|
||||
uint8_t *edid = get_drm_prop_blob(drm->fd,
|
||||
wlr_conn->id, wlr_conn->props.edid, &edid_len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue