package/mesa3d: i915 Gallium driver needs llvm
PATCH v2 1/2 package/mesa3d: i915 Gallium driver needs llvm
Buildroot commit 3e296a151195f9d32dbfd62d6c75d08b822be6dd bumped the package to 25.3.0 which includes upstream commit
https://gitlab.freedesktop.org/mesa/mesa/-/commit/b8b38d38b1c14b60de0324ac2f98ff7f1f4cc3c5
that enforces llvm for the i915 gallium driver causing configure errors in buildroot:
../output-1/build/mesa3d-26.1.6/meson.build:241:3: ERROR: Feature llvm cannot be disabled: i915 Gallium driver requires LLVM for vertex shaders
Please note that
https://gitlab.freedesktop.org/mesa/mesa/-/commit/4235c39a9a8378f1e2dc0899dd4c3c941f27b887
later removed the llvm dependency for the r300 driver introduced by the commit mentioned above so we only need to add the dependency to the i915 driver.
The configure option draw-use-llvm is disabled by default when llvm is not available:
https://gitlab.freedesktop.org/mesa/mesa/-/commit/37c7d19e46a4863c120186a99ac0344c2dd31260
Fixes:
https://autobuild.buildroot.org/results/acd9039901cf4168e6318c62252ddae6ea0ec93d/
---
v2: no changes, added to new series
package/mesa3d/Config.in | 4 ++++ 1 file changed, 4 insertions(+)
package/mesa3d/Config.in +4 -0
@@ -158,11 +158,15 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915 bool "Gallium i915 driver" depends on BR2_i386 || BR2_x86_64 + depends on BR2_PACKAGE_MESA3D_LLVM select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_INTEL help Support for i915-based Intel GPUs. +comment "i915 driver needs llvm" + depends on !BR2_PACKAGE_MESA3D_LLVM + config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS bool "Gallium iris driver" depends on BR2_PACKAGE_MESA3D_LLVM
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/mesa3d: crocus Gallium driver needs OpenCL
Buildroot commit 59ed1137e9bb8c0157be3dc91a1cc462211dd3c7 bumped the package to 26.0.0 which added upstream commit
https://gitlab.freedesktop.org/mesa/mesa/-/commit/b72d347d1c3b9e829971fbdabf993b68776083c1
requiring OpenCL for the crocus driver.
Add the necessary dependencies to fix a configure error:
../output-1/build/mesa3d-26.1.8/meson.build:945:3: ERROR:
Feature llvm cannot be disabled: CLC requires LLVM
Fixes:
https://autobuild.buildroot.org/results/baa718e140264a9aa64c3a8f4114ca1b05f740e3/
--- package/mesa3d/Config.in | 7 +++++++ 1 file changed, 7 insertions(+)
package/mesa3d/Config.in +7 -0
@@ -62,6 +62,7 @@ menuconfig BR2_PACKAGE_MESA3D_OPENCL depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 || \ BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST || \ BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI || \ + BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_CROCUS || \ BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS || \ BR2_PACKAGE_MESA3D_VULKAN_DRIVER_AMD || \ BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL || \
@@ -129,10 +130,16 @@ comment "Gallium drivers" config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_CROCUS bool "Gallium crocus driver" depends on BR2_i386 || BR2_x86_64 + depends on BR2_PACKAGE_MESA3D_LLVM select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER + select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER help Mesa driver for gen4-7 Intel GPUs. +comment "crocus driver needs llvm" + depends on !BR2_PACKAGE_MESA3D_LLVM + config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV bool "Gallium Etnaviv driver" depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot