mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-09 13:29:46 -05:00
render: disable linux-dmabuf without DRM FD
linux-dmabuf used to not need a DRM FD, however since v4 a DRM FD
is required for the main_device event.
(cherry picked from commit 4ed8df9ab2)
This commit is contained in:
parent
fcf62ba709
commit
bb8bcb354e
1 changed files with 4 additions and 7 deletions
|
|
@ -228,14 +228,11 @@ bool wlr_renderer_init_wl_display(struct wlr_renderer *r,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wlr_renderer_get_dmabuf_texture_formats(r) != NULL) {
|
if (wlr_renderer_get_dmabuf_texture_formats(r) != NULL &&
|
||||||
if (wlr_renderer_get_drm_fd(r) >= 0) {
|
wlr_renderer_get_drm_fd(r) >= 0) {
|
||||||
if (wlr_drm_create(wl_display, r) == NULL) {
|
if (wlr_drm_create(wl_display, r) == NULL) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
wlr_log(WLR_INFO, "Cannot get renderer DRM FD, disabling wl_drm");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (wlr_linux_dmabuf_v1_create_with_renderer(wl_display, 4, r) == NULL) {
|
if (wlr_linux_dmabuf_v1_create_with_renderer(wl_display, 4, r) == NULL) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue