|
@@ -50,19 +50,43 @@ comment "llvm support needs a toolchain not affected by GCC bug 64735"
|
|
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
|
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
|
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
|
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
|
|
|
|
|
-# clang and libclc dependencies are satisfied by
|
|
|
|
-# BR2_PACKAGE_MESA3D_LLVM
|
|
|
|
-config BR2_PACKAGE_MESA3D_OPENCL
|
|
|
|
|
|
+menuconfig BR2_PACKAGE_MESA3D_OPENCL
|
|
bool "OpenCL support"
|
|
bool "OpenCL support"
|
|
depends on BR2_PACKAGE_MESA3D_LLVM
|
|
depends on BR2_PACKAGE_MESA3D_LLVM
|
|
depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 || \
|
|
depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 || \
|
|
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST || \
|
|
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST || \
|
|
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI || \
|
|
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI || \
|
|
- BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS
|
|
|
|
|
|
+ BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS || \
|
|
|
|
+ BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS && \
|
|
|
|
+ BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
|
select BR2_PACKAGE_LLVM_RTTI
|
|
select BR2_PACKAGE_LLVM_RTTI
|
|
select BR2_PACKAGE_CLANG
|
|
select BR2_PACKAGE_CLANG
|
|
select BR2_PACKAGE_LIBCLC
|
|
select BR2_PACKAGE_LIBCLC
|
|
select BR2_PACKAGE_HAS_LIBOPENCL
|
|
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"
|
|
|
|
+ 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_SPIRV_TOOLS
|
|
|
|
+ select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR
|
|
|
|
+ select BR2_PACKAGE_OPENCL_ICD_LOADER
|
|
|
|
+ help
|
|
|
|
+ RustiCL is an OpenCL implementation written in Rust.
|
|
|
|
+ By default, devices are disabled in RustiCL. If you want
|
|
|
|
+ to enable a device, you need to set the environment variable
|
|
|
|
+ RUSTICL_ENABLE to the driver you are using.
|
|
|
|
+
|
|
|
|
+ https://docs.mesa3d.org/envvars.html#envvar-RUSTICL_ENABLE
|
|
|
|
+
|
|
|
|
+endif # BR2_PACKAGE_MESA3D_OPENCL
|
|
|
|
+
|
|
|
|
+config BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
|
|
|
+ bool
|
|
|
|
|
|
# inform the .mk file of gallium or vulkan driver selection
|
|
# inform the .mk file of gallium or vulkan driver selection
|
|
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
@@ -139,6 +163,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS
|
|
depends on BR2_PACKAGE_MESA3D_LLVM
|
|
depends on BR2_PACKAGE_MESA3D_LLVM
|
|
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER
|
|
select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER
|
|
|
|
+ select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
|
help
|
|
help
|
|
Mesa driver for iris-based Intel GPUs.
|
|
Mesa driver for iris-based Intel GPUs.
|
|
|
|
|
|
@@ -157,6 +182,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LLVMPIPE
|
|
bool "Gallium llvmpipe driver"
|
|
bool "Gallium llvmpipe driver"
|
|
depends on BR2_PACKAGE_MESA3D_LLVM
|
|
depends on BR2_PACKAGE_MESA3D_LLVM
|
|
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
|
|
+ select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
|
help
|
|
help
|
|
This is a llvm opengl implementation using the Gallium3D
|
|
This is a llvm opengl implementation using the Gallium3D
|
|
infrastructure.
|
|
infrastructure.
|
|
@@ -170,6 +196,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
|
|
select BR2_PACKAGE_LIBDRM_NOUVEAU
|
|
select BR2_PACKAGE_LIBDRM_NOUVEAU
|
|
select BR2_PACKAGE_MESA3D_NEEDS_XA
|
|
select BR2_PACKAGE_MESA3D_NEEDS_XA
|
|
select BR2_PACKAGE_LLVM_RTTI if BR2_PACKAGE_MESA3D_LLVM
|
|
select BR2_PACKAGE_LLVM_RTTI if BR2_PACKAGE_MESA3D_LLVM
|
|
|
|
+ select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
|
help
|
|
help
|
|
Supports all Nvidia GPUs.
|
|
Supports all Nvidia GPUs.
|
|
|
|
|
|
@@ -179,6 +206,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST
|
|
depends on BR2_PACKAGE_MESA3D_LLVM
|
|
depends on BR2_PACKAGE_MESA3D_LLVM
|
|
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER
|
|
select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER
|
|
|
|
+ select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
|
help
|
|
help
|
|
Mesa driver for ARM Mali Midgard and Bifrost GPUs.
|
|
Mesa driver for ARM Mali Midgard and Bifrost GPUs.
|
|
|
|
|
|
@@ -229,6 +257,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
|
|
select BR2_PACKAGE_LLVM_AMDGPU
|
|
select BR2_PACKAGE_LLVM_AMDGPU
|
|
select BR2_PACKAGE_ELFUTILS
|
|
select BR2_PACKAGE_ELFUTILS
|
|
select BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
|
|
select BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
|
|
|
|
+ select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
|
help
|
|
help
|
|
Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
|
|
Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
|
|
|
|
|