From d7f72651254ba24efc5faea743f1ce34d9ef6ed5 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Sat, 23 Apr 2022 00:49:19 +0300 Subject: [PATCH] package/wlroots: enable vulkan renderer if possible Enable the wlroots' Vulkan renderer if a suitable driver is being built. Currently only Mesa provides Vulkan drivers, so gating the feature on BR2_PACKAGE_MESA3D_VULKAN_DRIVER seems reasonable at the moment (and is done at least by one other package already: pipewire). Signed-off-by: Adrian Perez de Castro Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/wlroots/wlroots.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/package/wlroots/wlroots.mk b/package/wlroots/wlroots.mk index baa1edd9e1..4f14d20b11 100644 --- a/package/wlroots/wlroots.mk +++ b/package/wlroots/wlroots.mk @@ -23,8 +23,9 @@ WLROOTS_DEPENDENCIES = \ wayland \ wayland-protocols -WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled -Drenderers=gles2 +WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled +WLROOTS_RENDERERS = gles2 WLROOTS_BACKENDS = libinput drm ifeq ($(BR2_PACKAGE_WLROOTS_X11),y) @@ -35,6 +36,13 @@ else WLROOTS_CONF_OPTS += -Dxwayland=disabled endif -WLROOTS_CONF_OPTS += -Dbackends=$(subst $(space),$(comma),$(strip $(WLROOTS_BACKENDS))) +ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER),y) +WLROOTS_RENDERERS += vulkan +WLROOTS_DEPENDENCIES += mesa3d +endif + +WLROOTS_CONF_OPTS += \ + -Dbackends=$(subst $(space),$(comma),$(strip $(WLROOTS_BACKENDS))) \ + -Drenderers=$(subst $(space),$(comma),$(strip $(WLROOTS_RENDERERS))) $(eval $(meson-package))