Skip to contentSkip to conversation

package/mesa3d: fix comment for iris gallium driver

PATCH In review Bernd Kuhls 3 participants 4 messages Jun 1, 2025 – Jun 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/mesa3d: fix comment for iris gallium driver

Buildroot commit 600e75b606 "remove depends on architecture for Iris/ Vulkan" forgot to remove the dependency for the comment of the iris driver.

---
 package/mesa3d/Config.in | 1 -
 1 file changed, 1 deletion(-)
package/mesa3d/Config.in +0 -1
index 99cb0b955c..9454beedf4 100644
@@ -138,7 +138,6 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS
 	  Mesa driver for iris-based Intel GPUs.
 
 comment "iris driver needs llvm"
-	depends on BR2_i386 || BR2_x86_64
 	depends on !BR2_PACKAGE_MESA3D_LLVM
 
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/mesa3d: vulkan intel needs llvm

Since mesa3d was bumped to 25.0.6 with buildroot commit 317260f336 the Intel Vulkan driver also needs llvm.

https://lists.buildroot.org/pipermail/buildroot/2025-May/780130.html

---
 package/mesa3d/Config.in | 10 +++++++++-
 package/mesa3d/mesa3d.mk |  2 ++
 2 files changed, 11 insertions(+), 1 deletion(-)
package/mesa3d/Config.in +9 -1
index 9454beedf4..98c77125e1 100644
@@ -51,7 +51,8 @@ config BR2_PACKAGE_MESA3D_OPENCL
 	depends on BR2_PACKAGE_MESA3D_LLVM
 	depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 || \
 		BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI || \
-		BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS
+		BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS || \
+		BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL
 	select BR2_PACKAGE_LLVM_RTTI
 	select BR2_PACKAGE_CLANG
 	select BR2_PACKAGE_LIBCLC
@@ -324,10 +325,17 @@ config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # memfd.h
 	depends on BR2_TOOLCHAIN_USES_GLIBC # ifunc, static_assert
+	depends on BR2_PACKAGE_MESA3D_LLVM
+	select BR2_PACKAGE_MESA3D_OPENCL
 	select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
+	select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR
+	select BR2_PACKAGE_SPIRV_TOOLS
 	help
 	  Vulkan driver for Intel hardware from Ivy Bridge onward.
 
+comment "intel vulkan needs llvm"
+	depends on !BR2_PACKAGE_MESA3D_LLVM
+
 comment "intel vulkan needs a glibc toolchain w/ headers >= 3.17"
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7
 	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 || \
package/mesa3d/mesa3d.mk +2 -0
index 84d1aae6ef..bc456a43a3 100644
@@ -133,6 +133,8 @@ endif
 
 ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL),y)
 MESA3D_DEPENDENCIES += host-python-ply
+MESA3D_CONF_OPTS += -Dmesa-clc=system -Dprecomp-compiler=system
+MESA3D_DEPENDENCIES += host-mesa3d spirv-llvm-translator spirv-tools
 endif
 
 ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS),y)
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 2/2 package/mesa3d: vulkan intel needs llvm

LLVM dependecy has already been added for Iris but was missing for ANV.
This was required since Mesa commit a512c2a8b57.
See https://gitlab.freedesktop.org/mesa/mesa/-/commit/a512c2a8b572c5da360873320dbbd343c6223cd6

Best regards,
Mehdi
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot