package/mesa3d: rework OpenCL handling
PATCH v3 1/5 package/mesa3d: rework OpenCL handling
Mesa3D removed the old Clover OpenCL implementation in version 25.2.0 and kept only RustiCL:
https://lists.freedesktop.org/archives/mesa-announce/2025-August/000815.html
"[...] the Clover OpenCL implementation has been deleted. RustiCL is now
the only OpenCL implementation available [...]"
Since then the option BR2_PACKAGE_MESA3D_OPENCL served no other purpose than allowing access to the RustiCL sub-option. This commit merges both options and their dependencies.
Fixes https://gitlab.com/buildroot.org/buildroot/-/work_items/180#note_3501740032
---
v3: rebased
v2: removed code left-over (Romain)
Config.in.legacy | 9 ++++++ package/mesa3d/Config.in | 32 +++++--------------- package/mesa3d/mesa3d.mk | 8 ++--- support/testing/tests/package/test_mesa3d.py | 1 - 4 files changed, 19 insertions(+), 31 deletions(-)
Config.in.legacy +9 -0
@@ -146,6 +146,15 @@ endif comment "Legacy options removed in 2026.11" +config BR2_PACKAGE_MESA3D_OPENCL + bool "Mesa3D OpenCL support is now provided by RustiCL" + select BR2_LEGACY + help + Mesa3D removed the old Clover OpenCL implementation and + replaced it by RustiCL. This option served no other purpose + than allowing access to the RustiCL sub-option which was moved + to the main options section. + config BR2_TARGET_EDK2_PLATFORM_ARM_SGI575 bool "EDK2 platform ARM SGI-575 has been removed" select BR2_LEGACY
package/mesa3d/Config.in +7 -25
@@ -23,7 +23,6 @@ config BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS config BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER bool - select BR2_PACKAGE_MESA3D_OPENCL select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR select BR2_PACKAGE_SPIRV_TOOLS
@@ -56,35 +55,20 @@ config BR2_PACKAGE_MESA3D_LEGACY_BIND_WAYLAND_DISPLAY help Legacy Wayland EGL_WL_bind_wayland_display support. -menuconfig BR2_PACKAGE_MESA3D_OPENCL - bool "OpenCL support" - depends on BR2_PACKAGE_MESA3D_LLVM - 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_IRIS || \ - BR2_PACKAGE_MESA3D_VULKAN_DRIVER_AMD || \ - BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL || \ - BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION || \ - BR2_PACKAGE_MESA3D_VULKAN_DRIVER_PANFROST || \ - (BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS && \ - BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER) - select BR2_PACKAGE_LLVM_RTTI - select BR2_PACKAGE_CLANG - select BR2_PACKAGE_LIBCLC - select BR2_PACKAGE_HAS_LIBOPENCL -if BR2_PACKAGE_MESA3D_OPENCL -# libclc dependency is satisfied by -# BR2_PACKAGE_MESA3D_LLVM config BR2_PACKAGE_MESA3D_RUSTICL - bool "RustiCL" + bool "RustiCL OpenCL support" + depends on BR2_PACKAGE_MESA3D_LLVM depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER select BR2_PACKAGE_HOST_RUSTC select BR2_PACKAGE_LLVM_DUMP + select BR2_PACKAGE_LLVM_RTTI + select BR2_PACKAGE_CLANG + select BR2_PACKAGE_LIBCLC select BR2_PACKAGE_SPIRV_TOOLS select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR select BR2_PACKAGE_OPENCL_ICD_LOADER + select BR2_PACKAGE_HAS_LIBOPENCL help RustiCL is an OpenCL implementation written in Rust. By default, devices are disabled in RustiCL. If you want
@@ -93,8 +77,6 @@ config BR2_PACKAGE_MESA3D_RUSTICL https://docs.mesa3d.org/envvars.html#envvar-RUSTICL_ENABLE -endif # BR2_PACKAGE_MESA3D_OPENCL - config BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER bool
@@ -554,7 +536,7 @@ config BR2_PACKAGE_PROVIDES_LIBGLES default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES && !BR2_PACKAGE_LIBGLVND config BR2_PACKAGE_PROVIDES_LIBOPENCL - default "mesa3d" if BR2_PACKAGE_MESA3D_OPENCL + default "mesa3d" if BR2_PACKAGE_MESA3D_RUSTICL endif # BR2_PACKAGE_MESA3D
package/mesa3d/mesa3d.mk +3 -5
@@ -50,13 +50,11 @@ else MESA3D_CONF_OPTS += -Dllvm=disabled endif -ifeq ($(BR2_PACKAGE_MESA3D_OPENCL),y) -MESA3D_PROVIDES += libopencl -MESA3D_DEPENDENCIES += clang libclc -endif - ifeq ($(BR2_PACKAGE_MESA3D_RUSTICL),y) +MESA3D_PROVIDES += libopencl MESA3D_DEPENDENCIES += \ + clang \ + libclc \ host-rustc \ host-rust-bindgen \ spirv-tools \
support/testing/tests/package/test_mesa3d.py +0 -1
@@ -17,7 +17,6 @@ class TestMesa3DRusticl(infra.basetest.BRTest): BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config" BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_LLVM=y - BR2_PACKAGE_MESA3D_OPENCL=y BR2_PACKAGE_MESA3D_RUSTICL=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LLVMPIPE=y BR2_PACKAGE_CLINFO=y
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 2/5 package/mesa3d: precomp-compiler does not need target llvm
Inspired by and fixes
https://gitlab.com/buildroot.org/buildroot/-/work_items/180
To build binaries provided by the host-mesa3d package we do not need to build llvm packages for the target arch.
Added configure options for rtti support to fix build error when BR2_PACKAGE_LLVM_RTTI is not enabled:
output/build/host-mesa3d-26.2.3/meson.build:2042:8: ERROR: Problem
encountered: LLVM was built without RTTI, so Mesa must also disable RTTI. Use an LLVM built with LLVM_ENABLE_RTTI or add cpp_rtti=false.
---
v3: no changes
v2: added note about new rtti configure options (Romain)
package/mesa3d/Config.in | 46 +++++++++++++++++++++++----------------- package/mesa3d/mesa3d.mk | 8 ++++++- 2 files changed, 33 insertions(+), 21 deletions(-)
package/mesa3d/Config.in +26 -20
@@ -23,8 +23,7 @@ config BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS config BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER bool - select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR - select BR2_PACKAGE_SPIRV_TOOLS + select BR2_HOST_CMAKE_AT_LEAST_3_20 # host-llvm config BR2_PACKAGE_MESA3D_LLVM bool "llvm support"
@@ -147,15 +146,17 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS bool "Gallium iris driver" - depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-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 iris-based Intel GPUs. -comment "iris driver needs llvm" - depends on !BR2_PACKAGE_MESA3D_LLVM +comment "iris driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA bool "Gallium lima driver"
@@ -189,15 +190,17 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST bool "Gallium panfrost driver" depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence - depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-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 ARM Mali Midgard and Bifrost GPUs. -comment "panfrost driver needs llvm" - depends on !BR2_PACKAGE_MESA3D_LLVM +comment "panfrost driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300 bool "Gallium Radeon R300 driver"
@@ -360,46 +363,49 @@ config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION bool "Vulkan imagination driver" depends on BR2_arm || BR2_aarch64 depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence - depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER select BR2_PACKAGE_MESA3D_VULKAN_DRIVER help Vulkan imagination driver. -comment "imagination vulkan needs llvm" - depends on !BR2_PACKAGE_MESA3D_LLVM +comment "imagination vulkan driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL bool "Vulkan Intel driver" 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 + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER select BR2_PACKAGE_MESA3D_VULKAN_DRIVER 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" +comment "intel vulkan driver needs a glibc toolchain w/ headers >= 3.17, host gcc >= 7" depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 || \ - !BR2_TOOLCHAIN_USES_GLIBC + !BR2_TOOLCHAIN_USES_GLIBC || !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_PANFROST bool "Vulkan panfrost driver" depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence - depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm select BR2_PACKAGE_LLVM_RTTI if BR2_PACKAGE_MESA3D_LLVM select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER select BR2_PACKAGE_MESA3D_VULKAN_DRIVER help Vulkan panfrost driver. -comment "panfrost vulkan needs llvm" - depends on !BR2_PACKAGE_MESA3D_LLVM +comment "panfrost vulkan driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_SWRAST bool "Vulkan swrast driver"
package/mesa3d/mesa3d.mk +7 -1
@@ -178,7 +178,7 @@ endif ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER),y) MESA3D_CONF_OPTS += -Dmesa-clc=system -Dprecomp-compiler=system -MESA3D_DEPENDENCIES += host-mesa3d spirv-llvm-translator spirv-tools +MESA3D_DEPENDENCIES += host-mesa3d endif ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER),)
@@ -347,6 +347,12 @@ HOST_MESA3D_CONF_OPTS = \ -Dglx=disabled \ -Dvulkan-drivers="" +ifeq ($(BR2_PACKAGE_LLVM_RTTI),y) +HOST_MESA3D_CONF_OPTS += -Dcpp_rtti=true +else +HOST_MESA3D_CONF_OPTS += -Dcpp_rtti=false +endif + HOST_MESA3D_DEPENDENCIES = \ host-libclc \ host-libdrm \
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedRe: [Buildroot] [PATCH v3 2/5] package/mesa3d: precomp-compiler does not need target llvm
In reply of:
Quoted 6 lines
Inspired by and fixes
https://gitlab.com/buildroot.org/buildroot/-/work_items/180To build binaries provided by the host-mesa3d package we do not need to build llvm packages for the target arch.
Quoted 8 lines
Added configure options for rtti support to fix build error when
BR2_PACKAGE_LLVM_RTTIis not enabled:output/build/host-mesa3d-26.2.3/meson.build:2042:8: ERROR: Problem
encountered: LLVM was built without RTTI, so Mesa must also disable RTTI. Use an LLVM built withLLVM_ENABLE_RTTIor add cpp_rtti=false.Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2026.08.x. Thanks
Quoted 142 lines
---
v3: no changes
v2: added note about new rtti configure options (Romain)package/mesa3d/Config.in | 46 +++++++++++++++++++++++----------------- package/mesa3d/mesa3d.mk | 8 ++++++- 2 files changed, 33 insertions(+), 21 deletions(-)package/mesa3d/Config.in +26
-20@@ -23,8 +23,7 @@ config BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS config BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER bool - select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR - select BR2_PACKAGE_SPIRV_TOOLS + select BR2_HOST_CMAKE_AT_LEAST_3_20 # host-llvm config BR2_PACKAGE_MESA3D_LLVM bool "llvm support"@@ -147,15 +146,17 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS bool "Gallium iris driver" - depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-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 iris-based Intel GPUs. -comment "iris driver needs llvm" - depends on !BR2_PACKAGE_MESA3D_LLVM +comment "iris driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA bool "Gallium lima driver"@@ -189,15 +190,17 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST bool "Gallium panfrost driver" depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence - depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-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 ARM Mali Midgard and Bifrost GPUs. -comment "panfrost driver needs llvm" - depends on !BR2_PACKAGE_MESA3D_LLVM +comment "panfrost driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300 bool "Gallium Radeon R300 driver"@@ -360,46 +363,49 @@ config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION bool "Vulkan imagination driver" depends on BR2_arm || BR2_aarch64 depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence - depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER select BR2_PACKAGE_MESA3D_VULKAN_DRIVER help Vulkan imagination driver. -comment "imagination vulkan needs llvm" - depends on !BR2_PACKAGE_MESA3D_LLVM +comment "imagination vulkan driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL bool "Vulkan Intel driver" 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 + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER select BR2_PACKAGE_MESA3D_VULKAN_DRIVER 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" +comment "intel vulkan driver needs a glibc toolchain w/ headers >= 3.17, host gcc >= 7" depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 || \ - !BR2_TOOLCHAIN_USES_GLIBC + !BR2_TOOLCHAIN_USES_GLIBC || !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_PANFROST bool "Vulkan panfrost driver" depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence - depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm select BR2_PACKAGE_LLVM_RTTI if BR2_PACKAGE_MESA3D_LLVM select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER select BR2_PACKAGE_MESA3D_VULKAN_DRIVER help Vulkan panfrost driver. -comment "panfrost vulkan needs llvm" - depends on !BR2_PACKAGE_MESA3D_LLVM +comment "panfrost vulkan driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_SWRAST bool "Vulkan swrast driver"package/mesa3d/mesa3d.mk +1
-1@@ -178,7 +178,7 @@ endif ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER),y) MESA3D_CONF_OPTS += -Dmesa-clc=system -Dprecomp-compiler=system -MESA3D_DEPENDENCIES += host-mesa3d spirv-llvm-translator spirv-tools +MESA3D_DEPENDENCIES += host-mesa3d endif ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER),)@@ -347,6 +347,12 @@ HOST_MESA3D_CONF_OPTS = \ -Dglx=disabled \ -Dvulkan-drivers=""
package/mesa3d/mesa3d.mk HOST_MESA3D_CONF_OPTS = \ · line 358
Quoted 10 lines
package/mesa3d/mesa3d.mk +6
-0+ifeq ($(BR2_PACKAGE_LLVM_RTTI),y) +HOST_MESA3D_CONF_OPTS += -Dcpp_rtti=true +else +HOST_MESA3D_CONF_OPTS += -Dcpp_rtti=false +endif + HOST_MESA3D_DEPENDENCIES = \ host-libclc \ host-libdrm \
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 3/5 package/mesa3d: crocus Gallium driver needs precomp-compiler
In reply to Bernd KuhlsBuildroot commit 59ed1137e9bb8c0157be3dc91a1cc462211dd3c7 bumped the package to 26.0.0 which added upstream commit
https://gitlab.freedesktop.org/mesa/mesa/-/commit/b72d347d1c3b9e829971fbdabf993b68776083c1
requiring the precomp-compiler 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
caused by
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.8/meson.build?ref_type=tags#L945
which checks the value in the variable with_clc.
When the precomp-compiler is not provided by host-mesa3d the meson
configure option mesa-clc does not contain 'system' causing
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.8/meson.build?ref_type=tags#L939
the variable with_clc to be filled, among others, with the content of with_driver_using_cl:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.8/meson.build?ref_type=tags#L939
which contains 'true' when the crocus driver is enabled:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.8/meson.build?ref_type=tags#L925
So we need to provide the precomp-compiler also for the crocus driver.
Fixes:
https://autobuild.buildroot.org/results/baa718e140264a9aa64c3a8f4114ca1b05f740e3/
---
v3: no changes
v2: no changes
package/mesa3d/Config.in | 8 ++++++++ 1 file changed, 8 insertions(+)
package/mesa3d/Config.in +8 -0
@@ -110,10 +110,18 @@ 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_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-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 host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 + 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
Raphaël Mélotte via buildroot
AppliedRe: [Buildroot] [PATCH v3 3/5] package/mesa3d: crocus Gallium driver needs precomp-compiler
In reply of:
Quoted 24 lines
Buildroot commit
59ed1137e9bb8c0157be3dc91a1cc462211dd3c7bumped the package to 26.0.0 which added upstream commit
https://gitlab.freedesktop.org/mesa/mesa/-/commit/b72d347d1c3b9e829971fbdabf993b68776083c1
requiring the precomp-compiler 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 LLVMcaused by
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.8/meson.build?ref_type=tags#L945which checks the value in the variable
with_clc.When the precomp-compiler is not provided by host-mesa3d the meson
configure option mesa-clc does not contain 'system' causing
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.8/meson.build?ref_type=tags#L939
the variablewith_clcto be filled, among others, with the content ofwith_driver_using_cl:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.8/meson.build?ref_type=tags#L939which contains 'true' when the crocus driver is enabled:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.8/meson.build?ref_type=tags#L925
Quoted 6 lines
So we need to provide the precomp-compiler also for the crocus driver.
Fixes:
https://autobuild.buildroot.org/results/baa718e140264a9aa64c3a8f4114ca1b05f740e3/Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2026.08.x. Thanks
Quoted 20 lines
---
v3: no changes
v2: no changespackage/mesa3d/Config.in | 8 ++++++++ 1 file changed, 8 insertions(+)package/mesa3d/Config.in +4
-0@@ -110,10 +110,18 @@ 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_LLVM_ARCH_SUPPORTS # host-llvm + depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER + select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
package/mesa3d/Config.in comment "Gallium drivers" · line 127
Quoted 10 lines
package/mesa3d/Config.in +4
-0help Mesa driver for gen4-7 Intel GPUs. +comment "crocus driver needs host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_7 + config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV bool "Gallium Etnaviv driver" depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 4/5 package/mesa3d: i915 Gallium driver needs llvm
In reply to Bernd KuhlsBuildroot 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/
---
v3: no changes
v2: no changes
package/mesa3d/Config.in | 4 ++++ 1 file changed, 4 insertions(+)
package/mesa3d/Config.in +4 -0
@@ -147,11 +147,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_LLVM_ARCH_SUPPORTS # host-llvm
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedRe: [Buildroot] [PATCH v3 4/5] package/mesa3d: i915 Gallium driver needs llvm
In reply of:
Quoted 18 lines
Buildroot commit
3e296a151195f9d32dbfd62d6c75d08b822be6ddbumped 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
Quoted 4 lines
Fixes:
https://autobuild.buildroot.org/results/acd9039901cf4168e6318c62252ddae6ea0ec93d/Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2026.08.x. Thanks
Quoted 17 lines
---
v3: no changes
v2: no changespackage/mesa3d/Config.in | 4 ++++ 1 file changed, 4 insertions(+)package/mesa3d/Config.in +1
-0@@ -147,11 +147,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
package/mesa3d/Config.in config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO · line 161
Quoted 10 lines
package/mesa3d/Config.in +3
-0select 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_LLVM_ARCH_SUPPORTS # host-llvm
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 5/5 package/{mesa3d, mesa3d-headers}: bump version to 26.2.5
In reply to Bernd Kuhlshttps://lists.freedesktop.org/archives/mesa-announce/2026-October/000871.html
https://lists.freedesktop.org/archives/mesa-announce/2026-October/000870.html
https://lists.freedesktop.org/archives/mesa-announce/2026-September/000869.html
https://lists.freedesktop.org/archives/mesa-announce/2026-September/000868.html
https://lists.freedesktop.org/archives/mesa-announce/2026-August/000867.html
https://lists.freedesktop.org/archives/mesa-announce/2026-August/000863.html
Removed patch which was applied to fix a build error with gcc < 13 seen with mesa 26.1.x.
Renumbered remaining patches.
Rebased patches 0005-0007 by replacing them with non-rebased versions of the upstream commits. The rebase was only needed for the mesa's 26.1.x branch.
Added patch 0008 to fix a build error which would be introduced by this bump due to upstream commit:
https://gitlab.freedesktop.org/mesa/mesa/-/commit/6351df29e2d99a982dbfed931b23a76defca0132
Upstream commit
https://gitlab.freedesktop.org/mesa/mesa/-/commit/3f9451b54c42a37b41246de3ceea991111389c37
added rusticl to the variable with_driver_using_cl which creates a new dependency to the precomp-compiler:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.2.5/meson.build?ref_type=tags#L973
---
Please note that this series does not pass all Gitlab pipelines:
https://gitlab.com/bkuhls/buildroot/-/commits/1eefcb30f86c653755ecfd95f3d32417b6e23830
The only broken target is bootlin-m68k-68040-uclibc/build/mesa3d-26.2.5/.stamp_built:
../src/compiler/nir/nir_opt_varyings.c:3207:1: error: static assertion
failed: "dedup_entry layout changed"
The assert was added to 26.2.0 with upstream commit
https://gitlab.freedesktop.org/mesa/mesa/-/commit/136596668e09431605d5cbac79243fb935da4520
but neither do I understand it nor do I have an idea about how to fix the build error.
v3:
- bumped to 26.2.5
- renumbered and rebased rusticl patch set
- added patch 0008
v2: bumped to 26.2.3
package/mesa3d-headers/mesa3d-headers.mk | 2 +-
...o-not-compare-sys_path-against-NULL.patch} | 68 +++++++--------
...er-jay-jay_ir.h-do-not-used-typed-en.patch | 41 ---------
..._libclc-turn-sys_path-into-an-array.patch} | 68 +++++++--------
...oad_libclc-add-llvm-23-libclc-paths.patch} | 4 +-
...-floating-point-exception-flags-with.patch | 84 +++++++++++++++++++
package/mesa3d/Config.in | 1 +
package/mesa3d/mesa3d.hash | 6 +-
package/mesa3d/mesa3d.mk | 2 +-
9 files changed, 156 insertions(+), 120 deletions(-)
rename package/mesa3d/{0006-nir-load_libclc-do-not-compare-sys_path-against-NULL.patch => 0005-nir-load_libclc-do-not-compare-sys_path-against-NULL.patch} (75%)
delete mode 100644 package/mesa3d/0005-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch
rename package/mesa3d/{0007-nir-load_libclc-turn-sys_path-into-an-array.patch => 0006-nir-load_libclc-turn-sys_path-into-an-array.patch} (71%)
rename package/mesa3d/{0008-nir-load_libclc-add-llvm-23-libclc-paths.patch => 0007-nir-load_libclc-add-llvm-23-libclc-paths.patch} (93%)
create mode 100644 package/mesa3d/0008-nir-fix-build-of-floating-point-exception-flags-with.patchpackage/mesa3d-headers/mesa3d-headers.mk +1 -1
@@ -12,7 +12,7 @@ endif # Not possible to directly refer to mesa3d variables, because of # first/second expansion trickery... -MESA3D_HEADERS_VERSION = 26.1.8 +MESA3D_HEADERS_VERSION = 26.2.5 MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION).tar.xz MESA3D_HEADERS_SITE = https://archive.mesa3d.org MESA3D_HEADERS_DL_SUBDIR = mesa3d
package/mesa3d/0005-nir-load_libclc-do-not-compare-sys_path-against-NULL.patch renamed from package/mesa3d/0006-nir-load_libclc-do-not-compare-sys_path-against-NULL.patch +32 -36
110 lines not on this page · raw message
package/mesa3d/0005-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch deleted +0 -41
41 lines not on this page · raw message
package/mesa3d/0006-nir-load_libclc-turn-sys_path-into-an-array.patch renamed from package/mesa3d/0007-nir-load_libclc-turn-sys_path-into-an-array.patch +32 -36
110 lines not on this page · raw message
package/mesa3d/0007-nir-load_libclc-add-llvm-23-libclc-paths.patch renamed from package/mesa3d/0008-nir-load_libclc-add-llvm-23-libclc-paths.patch +2 -2
@@ -1,4 +1,4 @@ -From c86bf6e6b9fbc9cfb02eeed3d798ffbdd3dc0252 Mon Sep 17 00:00:00 2001 +From 6b9cd5ab9cc3bfd0c79d9500a07a5e74351c72d1 Mon Sep 17 00:00:00 2001 From: Karol Herbst <[email protected]> Date: Tue, 22 Sep 2026 14:13:28 +0200 Subject: [PATCH] nir/load_libclc: add llvm-23 libclc paths
@@ -13,7 +13,7 @@ Signed-off-by: Bernd Kuhls <[email protected]> 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/clc/nir_load_libclc.c b/src/compiler/clc/nir_load_libclc.c -index 54b45ad7808..bb1efd0ce57 100644 +index 17b901db47c..889bde610a3 100644 --- a/src/compiler/clc/nir_load_libclc.c +++ b/src/compiler/clc/nir_load_libclc.c @@ -52,7 +52,7 @@ struct clc_file {
package/mesa3d/0008-nir-fix-build-of-floating-point-exception-flags-with.patch new file +84 -0
84 lines not on this page · raw message
package/mesa3d/Config.in +1 -0
@@ -64,6 +64,7 @@ config BR2_PACKAGE_MESA3D_RUSTICL select BR2_PACKAGE_LLVM_RTTI select BR2_PACKAGE_CLANG select BR2_PACKAGE_LIBCLC + select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER select BR2_PACKAGE_SPIRV_TOOLS select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR select BR2_PACKAGE_OPENCL_ICD_LOADER
package/mesa3d/mesa3d.hash +3 -3
@@ -1,6 +1,6 @@ -# From https://lists.freedesktop.org/archives/mesa-announce/2026-August/000865.html -sha256 b320f65874fd9653ac6c0bd1616605387344e1247411a50c797b5f3fb9dc0b55 mesa-26.1.8.tar.xz -sha512 eb3d46ae9aaba70fdd908486cef24041fec9264ddf586eaebbba65ce55e716d306ef9e91be83e742dfaec4dfc94105a5cd3a36b29bf56614febcbcf6c1f8b516 mesa-26.1.8.tar.xz +# From https://lists.freedesktop.org/archives/mesa-announce/2026-October/000871.html +sha256 794b3d1729075dae7ebd47c7283b7ca0cdb5dec668f7f11cc0a5d82f6138a0a5 mesa-26.2.5.tar.xz +sha512 08c7d7ea426ddfb0f7bc51b06e18c363a4d31cf1a8b203828bb455eda0189e41d2215eb9f627585ed11e0d0f231a6a8c9f0c7176238760cd76b62e20c35ccd6a mesa-26.2.5.tar.xz # License sha256 0d1a0472ecc81830e75c20d59b0ea02841e3db21255e0ebad97ab682c54d6615 docs/license.rst sha256 323c587d0ccf10e376f8bf9a7f31fb4ca6078105194b42e0b1e0ee2bc9bde71f licenses/MIT
package/mesa3d/mesa3d.mk +1 -1
@@ -5,7 +5,7 @@ ################################################################################ # When updating the version, please also update mesa3d-headers -MESA3D_VERSION = 26.1.8 +MESA3D_VERSION = 26.2.5 MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz MESA3D_SITE = https://archive.mesa3d.org MESA3D_LICENSE = MIT, SGI, Khronos
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines · Bernd Kuhls
Mesa3D removed the old Clover OpenCL implementation in version 25.2.0 and kept only RustiCL:
https://lists.freedesktop.org/archives/mesa-announce/2025-August/000815.html
"[...] the Clover OpenCL implementation has been deleted. RustiCL is now
the only OpenCL implementation available [...]"
Quoted 7 lines
Since then the option
BR2_PACKAGE_MESA3D_OPENCLserved no other purpose than allowing access to the RustiCL sub-option. This commit merges both options and their dependencies.Fixes https://gitlab.com/buildroot.org/buildroot/-/work_items/180#note_3501740032
Signed-off-by Bernd Kuhls <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedIn reply of:
Quoted 7 lines
Mesa3D removed the old Clover OpenCL implementation in version 25.2.0 and kept only RustiCL:
https://lists.freedesktop.org/archives/mesa-announce/2025-August/000815.html
"[...] the Clover OpenCL implementation has been deleted. RustiCL is now
the only OpenCL implementation available [...]"
Quoted 7 lines
Since then the option
BR2_PACKAGE_MESA3D_OPENCLserved no other purpose than allowing access to the RustiCL sub-option. This commit merges both options and their dependencies.Fixes https://gitlab.com/buildroot.org/buildroot/-/work_items/180#note_3501740032
Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2026.08.x. Thanks
Quoted 128 lines
---
v3: rebased
v2: removed code left-over (Romain)Config.in.legacy | 9 ++++++ package/mesa3d/Config.in | 32 +++++--------------- package/mesa3d/mesa3d.mk | 8 ++--- support/testing/tests/package/test_mesa3d.py | 1 - 4 files changed, 19 insertions(+), 31 deletions(-)Config.in.legacy +9
-0@@ -146,6 +146,15 @@ endif comment "Legacy options removed in 2026.11" +config BR2_PACKAGE_MESA3D_OPENCL + bool "Mesa3D OpenCL support is now provided by RustiCL" + select BR2_LEGACY + help + Mesa3D removed the old Clover OpenCL implementation and + replaced it by RustiCL. This option served no other purpose + than allowing access to the RustiCL sub-option which was moved + to the main options section. + config BR2_TARGET_EDK2_PLATFORM_ARM_SGI575 bool "EDK2 platform ARM SGI-575 has been removed" select BR2_LEGACYpackage/mesa3d/Config.in +7
-25@@ -23,7 +23,6 @@ config BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS config BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER bool - select BR2_PACKAGE_MESA3D_OPENCL select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR select BR2_PACKAGE_SPIRV_TOOLS@@ -56,35 +55,20 @@ config BR2_PACKAGE_MESA3D_LEGACY_BIND_WAYLAND_DISPLAY help Legacy Wayland EGL_WL_bind_wayland_display support. -menuconfig BR2_PACKAGE_MESA3D_OPENCL - bool "OpenCL support" - depends on BR2_PACKAGE_MESA3D_LLVM - 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_IRIS || \ - BR2_PACKAGE_MESA3D_VULKAN_DRIVER_AMD || \ - BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL || \ - BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION || \ - BR2_PACKAGE_MESA3D_VULKAN_DRIVER_PANFROST || \ - (BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS && \ - BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER) - select BR2_PACKAGE_LLVM_RTTI - select BR2_PACKAGE_CLANG - select BR2_PACKAGE_LIBCLC - select BR2_PACKAGE_HAS_LIBOPENCL -if BR2_PACKAGE_MESA3D_OPENCL -# libclc dependency is satisfied by -# BR2_PACKAGE_MESA3D_LLVM config BR2_PACKAGE_MESA3D_RUSTICL - bool "RustiCL" + bool "RustiCL OpenCL support" + depends on BR2_PACKAGE_MESA3D_LLVM depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER select BR2_PACKAGE_HOST_RUSTC select BR2_PACKAGE_LLVM_DUMP + select BR2_PACKAGE_LLVM_RTTI + select BR2_PACKAGE_CLANG + select BR2_PACKAGE_LIBCLC select BR2_PACKAGE_SPIRV_TOOLS select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR select BR2_PACKAGE_OPENCL_ICD_LOADER + select BR2_PACKAGE_HAS_LIBOPENCL help RustiCL is an OpenCL implementation written in Rust. By default, devices are disabled in RustiCL. If you want@@ -93,8 +77,6 @@ config BR2_PACKAGE_MESA3D_RUSTICL https://docs.mesa3d.org/envvars.html#envvar-RUSTICL_ENABLE -endif # BR2_PACKAGE_MESA3D_OPENCL - config BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER bool@@ -554,7 +536,7 @@ config BR2_PACKAGE_PROVIDES_LIBGLES default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES && !BR2_PACKAGE_LIBGLVND config BR2_PACKAGE_PROVIDES_LIBOPENCL - default "mesa3d" if BR2_PACKAGE_MESA3D_OPENCL + default "mesa3d" if BR2_PACKAGE_MESA3D_RUSTICL endif # BR2_PACKAGE_MESA3Dpackage/mesa3d/mesa3d.mk +3
-5@@ -50,13 +50,11 @@ else MESA3D_CONF_OPTS += -Dllvm=disabled endif -ifeq ($(BR2_PACKAGE_MESA3D_OPENCL),y) -MESA3D_PROVIDES += libopencl -MESA3D_DEPENDENCIES += clang libclc -endif - ifeq ($(BR2_PACKAGE_MESA3D_RUSTICL),y) +MESA3D_PROVIDES += libopencl MESA3D_DEPENDENCIES += \ + clang \ + libclc \ host-rustc \ host-rust-bindgen \ spirv-tools \support/testing/tests/package/test_mesa3d.py +0
-0
support/testing/tests/package/test_mesa3d.py class TestMesa3DRusticl(infra.basetest.BRTest): · line 22
Quoted 7 lines
support/testing/tests/package/test_mesa3d.py +0
-1@@ -17,7 +17,6 @@ class TestMesa3DRusticl(infra.basetest.BRTest): BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config" BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_LLVM=y - BR2_PACKAGE_MESA3D_OPENCL=y BR2_PACKAGE_MESA3D_RUSTICL=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LLVMPIPE=y BR2_PACKAGE_CLINFO=y
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot