From d810a7f8c378ded62c821cd8d189bc662c60f52e Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Fri, 25 Oct 2024 16:17:09 +0200 Subject: [PATCH] fix: add vulkan support in wlroots --- custom/package/wlroots/wlroots.mk | 5 +++++ custom/package/wlroots/wlroots.mk.patch | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/custom/package/wlroots/wlroots.mk b/custom/package/wlroots/wlroots.mk index 485f92f698..e09904c7b3 100644 --- a/custom/package/wlroots/wlroots.mk +++ b/custom/package/wlroots/wlroots.mk @@ -47,6 +47,11 @@ WLROOTS_RENDERERS += vulkan WLROOTS_DEPENDENCIES += mesa3d vulkan-loader endif +ifeq ($(BR2_PACKAGE_MESA3DRPI5_VULKAN_DRIVER)$(BR2_PACKAGE_VULKAN_LOADER),yy) +WLROOTS_RENDERERS += vulkan +WLROOTS_DEPENDENCIES += mesa3drpi5 vulkan-loader +endif + WLROOTS_CONF_OPTS += \ -Dbackends=$(subst $(space),$(comma),$(strip $(WLROOTS_BACKENDS))) \ -Drenderers=$(subst $(space),$(comma),$(strip $(WLROOTS_RENDERERS))) diff --git a/custom/package/wlroots/wlroots.mk.patch b/custom/package/wlroots/wlroots.mk.patch index 1a929c39ae..adc576fd4a 100644 --- a/custom/package/wlroots/wlroots.mk.patch +++ b/custom/package/wlroots/wlroots.mk.patch @@ -1,5 +1,5 @@ diff --git a/package/wlroots/wlroots.mk b/package/wlroots/wlroots.mk -index fdd2fb8250..485f92f698 100644 +index fdd2fb8250..e09904c7b3 100644 --- a/package/wlroots/wlroots.mk +++ b/package/wlroots/wlroots.mk @@ -4,7 +4,7 @@ @@ -21,3 +21,15 @@ index fdd2fb8250..485f92f698 100644 WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled +@@ -46,6 +47,11 @@ WLROOTS_RENDERERS += vulkan + WLROOTS_DEPENDENCIES += mesa3d vulkan-loader + endif + ++ifeq ($(BR2_PACKAGE_MESA3DRPI5_VULKAN_DRIVER)$(BR2_PACKAGE_VULKAN_LOADER),yy) ++WLROOTS_RENDERERS += vulkan ++WLROOTS_DEPENDENCIES += mesa3drpi5 vulkan-loader ++endif ++ + WLROOTS_CONF_OPTS += \ + -Dbackends=$(subst $(space),$(comma),$(strip $(WLROOTS_BACKENDS))) \ + -Drenderers=$(subst $(space),$(comma),$(strip $(WLROOTS_RENDERERS))) -- GitLab