mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
backend/drm: log whether ADDFB2 modifiers are supported
This commit is contained in:
parent
71eaab9d8c
commit
5548406667
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ bool check_drm_features(struct wlr_drm_backend *drm) {
|
||||||
} else {
|
} else {
|
||||||
ret = drmGetCap(drm->fd, DRM_CAP_ADDFB2_MODIFIERS, &cap);
|
ret = drmGetCap(drm->fd, DRM_CAP_ADDFB2_MODIFIERS, &cap);
|
||||||
drm->addfb2_modifiers = ret == 0 && cap == 1;
|
drm->addfb2_modifiers = ret == 0 && cap == 1;
|
||||||
|
wlr_log(WLR_DEBUG, "ADDFB2 modifiers %s",
|
||||||
|
drm->addfb2_modifiers ? "supported" : "unsupported");
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue