Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
From f719e942dde0a46a9ff0080001cb3466012ffcc0 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Mon, 9 Mar 2020 13:01:14 +0100
|
||||
Subject: [PATCH] vc4: add meson option to disable optional neon support
|
||||
|
||||
Not all toolchains are able to compile the runtime
|
||||
optional vc4 neon support, so add an meson option
|
||||
to force disabling it at compile time.
|
||||
|
||||
Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4114
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
[rebased for 25.3.0]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[fix syntax error after previous rebases]
|
||||
---
|
||||
meson.options | 7 +++++++
|
||||
src/gallium/drivers/vc4/meson.build | 4 ++--
|
||||
src/gallium/drivers/vc4/vc4_tiling.h | 4 ++--
|
||||
3 files changed, 11 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/meson.options b/meson.options
|
||||
index 8e0bf2a..1cf0e07 100644
|
||||
--- a/meson.options
|
||||
+++ b/meson.options
|
||||
@@ -123,6 +123,13 @@ option(
|
||||
description : 'enable gallium mediafoundation frontend tests.',
|
||||
)
|
||||
|
||||
+option(
|
||||
+ 'gallium-vc4-neon',
|
||||
+ type : 'feature',
|
||||
+ deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
+ description : 'enable gallium vc4 optional neon support.',
|
||||
+)
|
||||
+
|
||||
option(
|
||||
'va-libs-path',
|
||||
type : 'string',
|
||||
diff --git a/src/gallium/drivers/vc4/meson.build b/src/gallium/drivers/vc4/meson.build
|
||||
index 84da951..7f950de 100644
|
||||
--- a/src/gallium/drivers/vc4/meson.build
|
||||
+++ b/src/gallium/drivers/vc4/meson.build
|
||||
@@ -72,7 +72,7 @@ files_libvc4 = files(
|
||||
]
|
||||
|
||||
libvc4_neon = []
|
||||
-if host_machine.cpu_family() == 'arm'
|
||||
+if host_machine.cpu_family() == 'arm' and not get_option('gallium-vc4-neon').disabled()
|
||||
libvc4_neon = static_library(
|
||||
'vc4_neon',
|
||||
'vc4_tiling_lt.c',
|
||||
@@ -82,6 +82,7 @@
|
||||
c_args : ['-mfpu=neon', '-DV3D_BUILD_NEON'],
|
||||
dependencies : vc4_deps,
|
||||
)
|
||||
+ vc4_c_args += '-DVC4_TILING_LT_NEON'
|
||||
endif
|
||||
|
||||
if dep_simpenrose.found()
|
||||
diff --git a/src/gallium/drivers/vc4/vc4_tiling.h b/src/gallium/drivers/vc4/vc4_tiling.h
|
||||
index 5afe329..919b299 100644
|
||||
--- a/src/gallium/drivers/vc4/vc4_tiling.h
|
||||
+++ b/src/gallium/drivers/vc4/vc4_tiling.h
|
||||
@@ -90,7 +90,7 @@ vc4_load_lt_image(void *dst, uint32_t dst_stride,
|
||||
void *src, uint32_t src_stride,
|
||||
int cpp, const struct pipe_box *box)
|
||||
{
|
||||
-#if DETECT_ARCH_ARM
|
||||
+#ifdef VC4_TILING_LT_NEON
|
||||
if (util_get_cpu_caps()->has_neon) {
|
||||
vc4_load_lt_image_neon(dst, dst_stride, src, src_stride,
|
||||
cpp, box);
|
||||
@@ -106,7 +106,7 @@ vc4_store_lt_image(void *dst, uint32_t dst_stride,
|
||||
void *src, uint32_t src_stride,
|
||||
int cpp, const struct pipe_box *box)
|
||||
{
|
||||
-#if DETECT_ARCH_ARM
|
||||
+#ifdef VC4_TILING_LT_NEON
|
||||
if (util_get_cpu_caps()->has_neon) {
|
||||
vc4_store_lt_image_neon(dst, dst_stride, src, src_stride,
|
||||
cpp, box);
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From fdc8b5a205e2116408aeb9fd305e57f656e2e89d Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Sun, 9 Aug 2020 17:06:26 +0200
|
||||
Subject: [PATCH] src/util/rand_xor: Include stddef.h to fix build error
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes
|
||||
|
||||
In file included from ../src/util/rand_xor.c:29:
|
||||
output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35:
|
||||
error: unknown type name ‘size_t’
|
||||
extern int getrandom(void *__buf, size_t count, unsigned int flags)
|
||||
|
||||
seen with gcc version 8.3.0 (Buildroot 2020.02) and uClibc.
|
||||
|
||||
Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6248
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
src/util/rand_xor.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c
|
||||
index 81b64f1ea71..fcb481487fa 100644
|
||||
--- a/src/util/rand_xor.c
|
||||
+++ b/src/util/rand_xor.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "detect_os.h"
|
||||
|
||||
#if !DETECT_OS_WINDOWS
|
||||
+#include <stddef.h>
|
||||
#if defined(HAVE_GETRANDOM)
|
||||
#include <sys/random.h>
|
||||
#endif
|
||||
--
|
||||
2.27.0
|
||||
|
||||
71
package/mesa3d/0003-Fix-uClibc-build.patch
Normal file
71
package/mesa3d/0003-Fix-uClibc-build.patch
Normal file
@@ -0,0 +1,71 @@
|
||||
From 09ce52fe375a6fc1ccf51b6b691aaa2c3f53fbd5 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Fri, 3 Jun 2022 16:26:03 +0200
|
||||
Subject: [PATCH] Fix uClibc build
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes build errors with uClibc and gcc-9.3.0:
|
||||
|
||||
../src/gallium/drivers/lima/lima_texture.c:47:15: error: expected
|
||||
declaration specifiers or ‘...’ before ‘__builtin_offsetof’
|
||||
47 | static_assert(offsetof(lima_tex_desc, va) == 24,
|
||||
"lima_tex_desc->va offset isn't 24");
|
||||
|
||||
../src/egl/main/egldisplay.c: In function ‘_eglGetNativePlatformFromEnv’:
|
||||
../src/egl/main/egldisplay.c:101:4: error: implicit declaration of
|
||||
function ‘static_assert’ [-Werror=implicit-function-declaration] 101 |
|
||||
static_assert(ARRAY_SIZE(egl_platforms) == _EGL_NUM_PLATFORMS,
|
||||
|
||||
../src/util/macros.h:74:4: error: implicit declaration of function
|
||||
‘static_assert’ [-Werror=implicit-function-declaration]
|
||||
74 | static_assert(cond, #cond); \
|
||||
| ^~~~~~~~~~~~~
|
||||
|
||||
Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13898
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
[rebased for 25.3.0]
|
||||
---
|
||||
src/util/compiler.h | 10 ++++++++++
|
||||
src/util/macros.h | 1 +
|
||||
2 files changed, 11 insertions(+)
|
||||
|
||||
diff --git a/src/util/compiler.h b/src/util/compiler.h
|
||||
index d184ad455af..b5c56807acc 100644
|
||||
--- a/src/util/compiler.h
|
||||
+++ b/src/util/compiler.h
|
||||
@@ -35,6 +35,17 @@
|
||||
|
||||
|
||||
#include <assert.h>
|
||||
+
|
||||
+/*
|
||||
+ * C11 static_assert() macro
|
||||
+ * assert.h only defines that name for C11 and above
|
||||
+ */
|
||||
+#if !defined(__cplusplus)
|
||||
+#ifndef static_assert
|
||||
+#define static_assert _Static_assert
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
diff --git a/src/util/macros.h b/src/util/macros.h
|
||||
index 22b18303826..8f73ee72693 100644
|
||||
--- a/src/util/macros.h
|
||||
+++ b/src/util/macros.h
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
+#include "util/compiler.h"
|
||||
|
||||
#ifdef _GAMING_XBOX
|
||||
#define strdup _strdup
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
From 345b14a820a557b72f218637cb37ef39947b1f50 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex@linutronix.de>
|
||||
Date: Wed, 1 Jul 2026 22:48:15 +0200
|
||||
Subject: [PATCH] src/util/u_math.c: do not use arm fpu instructions if fpu is
|
||||
not available
|
||||
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42682>
|
||||
|
||||
Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42682
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/util/u_math.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/util/u_math.c b/src/util/u_math.c
|
||||
index 722eac7f733..5683766a417 100644
|
||||
--- a/src/util/u_math.c
|
||||
+++ b/src/util/u_math.c
|
||||
@@ -87,6 +87,7 @@ util_fpstate_get(void)
|
||||
}
|
||||
#endif
|
||||
#if DETECT_ARCH_ARM
|
||||
+#if !defined(__SOFTFP__)
|
||||
if (util_get_cpu_caps()->has_neon) {
|
||||
#ifdef HAVE___BUILTIN_ARM_GET_FPSCR
|
||||
fpstate = __builtin_arm_get_fpscr();
|
||||
@@ -94,6 +95,7 @@ util_fpstate_get(void)
|
||||
__asm__ volatile("vmrs %0, fpscr" : "=r"(fpstate));
|
||||
#endif
|
||||
}
|
||||
+#endif
|
||||
#elif DETECT_ARCH_AARCH64
|
||||
{
|
||||
#ifdef HAVE___BUILTIN_AARCH64_GET_FPCR
|
||||
@@ -154,6 +156,7 @@ util_fpstate_set(unsigned fpstate)
|
||||
}
|
||||
#endif
|
||||
#if DETECT_ARCH_ARM
|
||||
+#if !defined(__SOFTFP__)
|
||||
if (util_get_cpu_caps()->has_neon) {
|
||||
#ifdef HAVE___BUILTIN_ARM_SET_FPSCR
|
||||
__builtin_arm_set_fpscr(fpstate);
|
||||
@@ -161,6 +164,7 @@ util_fpstate_set(unsigned fpstate)
|
||||
__asm__ volatile("vmsr fpscr, %0" :: "r"(fpstate));
|
||||
#endif
|
||||
}
|
||||
+#endif
|
||||
#elif DETECT_ARCH_AARCH64
|
||||
{
|
||||
#ifdef HAVE___BUILTIN_AARCH64_SET_FPCR
|
||||
--
|
||||
2.47.3
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 345ccf93e9d00dfd0f71085832a7df0170b74f74 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex@linutronix.de>
|
||||
Date: Sun, 14 Jun 2026 17:42:19 +0200
|
||||
Subject: [PATCH] src/intel/compiler/jay/jay_ir.h: do not used typed enum
|
||||
|
||||
This is a C23 feature and not supported by gcc < 13, which
|
||||
many host distros still have (e.g. Debian 12).
|
||||
|
||||
Upstream-Status: Inappropriate [yocto host distro requirements]
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
Upstream: N/A, code completely changed upstream
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
src/intel/compiler/jay/jay_ir.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/intel/compiler/jay/jay_ir.h b/src/intel/compiler/jay/jay_ir.h
|
||||
index 8307044ef8a..abf175a71bf 100644
|
||||
--- a/src/intel/compiler/jay/jay_ir.h
|
||||
+++ b/src/intel/compiler/jay/jay_ir.h
|
||||
@@ -579,7 +579,7 @@ jay_type_is_any_float(enum jay_type t)
|
||||
return jay_base_type(t) == JAY_TYPE_F || jay_base_type(t) == JAY_TYPE_BF;
|
||||
}
|
||||
|
||||
-enum jay_predication : uint8_t {
|
||||
+enum jay_predication {
|
||||
/** No predication. */
|
||||
JAY_NOT_PREDICATED = 0,
|
||||
|
||||
@@ -634,7 +634,7 @@ typedef struct jay_inst {
|
||||
bool decrement_dep:1;
|
||||
unsigned padding :12;
|
||||
|
||||
- enum jay_predication predication;
|
||||
+ uint8_t predication;
|
||||
enum jay_conditional_mod conditional_mod;
|
||||
|
||||
jay_def cond_flag; /**< conditional flag */
|
||||
--
|
||||
2.55.0
|
||||
|
||||
564
package/mesa3d/Config.in
Normal file
564
package/mesa3d/Config.in
Normal file
@@ -0,0 +1,564 @@
|
||||
menuconfig BR2_PACKAGE_MESA3D
|
||||
bool "mesa3d"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_1
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8
|
||||
select BR2_PACKAGE_EXPAT
|
||||
select BR2_PACKAGE_LIBDRM
|
||||
select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_WAYLAND
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
Mesa 3D, an open-source implementation of the OpenGL
|
||||
specification.
|
||||
|
||||
http://mesa3d.org
|
||||
|
||||
if BR2_PACKAGE_MESA3D
|
||||
|
||||
# Some Gallium driver needs libelf when built with LLVM support
|
||||
config BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
|
||||
bool
|
||||
|
||||
config BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER
|
||||
bool
|
||||
select BR2_PACKAGE_MESA3D_OPENCL
|
||||
select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR
|
||||
select BR2_PACKAGE_SPIRV_TOOLS
|
||||
|
||||
config BR2_PACKAGE_MESA3D_LLVM
|
||||
bool "llvm support"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR # std::wstring
|
||||
depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm
|
||||
select BR2_PACKAGE_LLVM
|
||||
|
||||
comment "llvm support needs a toolchain w/ wchar, threads, C++, gcc >= 7, dynamic library, host gcc >= 7"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
|
||||
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR \
|
||||
|| !BR2_HOST_GCC_AT_LEAST_7
|
||||
|
||||
comment "llvm support needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
|
||||
config BR2_PACKAGE_MESA3D_LEGACY_BIND_WAYLAND_DISPLAY
|
||||
bool "Legacy Wayland EGL_WL_bind_wayland_display support"
|
||||
depends on BR2_PACKAGE_WAYLAND
|
||||
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"
|
||||
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
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
bool
|
||||
select BR2_PACKAGE_MESA3D_DRIVER
|
||||
|
||||
config BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
bool
|
||||
select BR2_PACKAGE_MESA3D_DRIVER
|
||||
|
||||
config BR2_PACKAGE_MESA3D_DRIVER
|
||||
bool
|
||||
select BR2_PACKAGE_XLIB_LIBXSHMFENCE if BR2_PACKAGE_XORG7
|
||||
|
||||
# OpenGL GLX needs X11
|
||||
config BR2_PACKAGE_MESA3D_NEEDS_X11
|
||||
bool
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_LIBXCB
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
select BR2_PACKAGE_XLIB_LIBXDAMAGE
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||
select BR2_PACKAGE_XLIB_LIBXFIXES
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR
|
||||
select BR2_PACKAGE_XLIB_LIBXXF86VM
|
||||
select BR2_PACKAGE_XORGPROTO
|
||||
|
||||
comment "Gallium drivers"
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_CROCUS
|
||||
bool "Gallium crocus driver"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
help
|
||||
Mesa driver for gen4-7 Intel GPUs.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV
|
||||
bool "Gallium Etnaviv driver"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_ETNAVIV
|
||||
help
|
||||
Mesa driver for Vivante GPUs.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO
|
||||
bool "Gallium freedreno driver"
|
||||
depends on BR2_arm || BR2_aarch64 || BR2_aarch64_be # libdrm-freedreno
|
||||
# libdrm's freedreno option depends on LIBDRM_HAS_ATOMIC. Propagating
|
||||
# that dependency here causes a circular dependency that Kconfig
|
||||
# can't see is just spurious. However, that dependency is about
|
||||
# the toolchain having sync4 primitives, which is always a given
|
||||
# for arm/aarch64.
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_SUPPORTED_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_FREEDRENO
|
||||
help
|
||||
Mesa driver for Freedreno GPUs.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915
|
||||
bool "Gallium i915 driver"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_INTEL
|
||||
help
|
||||
Support for i915-based Intel GPUs.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS
|
||||
bool "Gallium iris driver"
|
||||
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 iris-based Intel GPUs.
|
||||
|
||||
comment "iris driver needs llvm"
|
||||
depends on !BR2_PACKAGE_MESA3D_LLVM
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA
|
||||
bool "Gallium lima driver"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
help
|
||||
Mesa driver for ARM Mali Utgard GPUs.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LLVMPIPE
|
||||
bool "Gallium llvmpipe driver"
|
||||
depends on BR2_PACKAGE_MESA3D_LLVM
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
||||
help
|
||||
This is a llvm opengl implementation using the Gallium3D
|
||||
infrastructure.
|
||||
|
||||
comment "llvmpipe driver needs llvm"
|
||||
depends on !BR2_PACKAGE_MESA3D_LLVM
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
|
||||
bool "Gallium nouveau driver"
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_NOUVEAU
|
||||
select BR2_PACKAGE_LLVM_RTTI if BR2_PACKAGE_MESA3D_LLVM
|
||||
select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
||||
help
|
||||
Supports all Nvidia GPUs.
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300
|
||||
bool "Gallium Radeon R300 driver"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
# lbdrm's radeon option depends on LIBDRM_HAS_ATOMIC. Propagating
|
||||
# that dependency here causes a circular dependency that Kconfig
|
||||
# can't see is just spurious. However, that dependency is about
|
||||
# the toolchain having sync4 primitives, which is always a given
|
||||
# for x86.
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_RADEON
|
||||
help
|
||||
Driver for ATI/AMD Radeon R300/R400/R500 GPUs.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
|
||||
bool "Gallium Radeon R600 driver"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
depends on !BR2_PACKAGE_MESA3D_LLVM || \
|
||||
(BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
|
||||
BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_RADEON
|
||||
select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
|
||||
select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
|
||||
select BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
|
||||
help
|
||||
Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
|
||||
|
||||
# R600 needs libelf when Mesa3D is built with LLVM support
|
||||
# musl is not currently compatible with elfutils
|
||||
comment "R600 driver needs a uClibc or glibc toolchain when llvm is enabled"
|
||||
depends on BR2_PACKAGE_MESA3D_LLVM
|
||||
depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
|
||||
bool "Gallium Radeon SI driver"
|
||||
depends on BR2_USE_MMU # libdrm
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_SUPPORTED_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_AMDGPU
|
||||
select BR2_PACKAGE_LIBDRM_RADEON
|
||||
select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
|
||||
select BR2_PACKAGE_ELFUTILS
|
||||
select BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
|
||||
select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
|
||||
help
|
||||
Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
|
||||
|
||||
Since Mesa 26.0.0, the default shader compiler is ACO,
|
||||
even when LLVM support is enabled at build time.
|
||||
|
||||
Use the env var AMD_DEBUG=usellvm to override the
|
||||
default and use LLVM at runtime.
|
||||
|
||||
https://docs.mesa3d.org/envvars.html#envvar-AMD_DEBUG
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA
|
||||
bool "Gallium vmware svga driver"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_VMWGFX
|
||||
help
|
||||
This is a virtual GPU driver for VMWare virtual machines.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SOFTPIPE
|
||||
bool "Gallium softpipe driver"
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
help
|
||||
This is a software opengl implementation using the Gallium3D
|
||||
infrastructure.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_TEGRA
|
||||
bool "Gallium tegra driver"
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
|
||||
select BR2_PACKAGE_LIBDRM_NOUVEAU
|
||||
help
|
||||
Adds support for Nvidia Tegra GPUs, requires nouveau.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D
|
||||
bool "Gallium v3d driver"
|
||||
depends on (BR2_arm && BR2_ARM_CPU_HAS_NEON) || BR2_aarch64
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4 # runtime
|
||||
select BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||
help
|
||||
Driver for Broadcom VC6/7 (rpi4/5) GPUs (needs vc4).
|
||||
|
||||
It requires a kernel 4.18+ with DRM V3D support enabled:
|
||||
|
||||
- CONFIG_DRM_V3D
|
||||
- CONFIG_DRM_VC4
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4
|
||||
bool "Gallium vc4 driver"
|
||||
depends on BR2_arm || BR2_aarch64
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_VC4
|
||||
select BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||
help
|
||||
Driver for Broadcom VC4 (rpi0/1/2/3) GPUs.
|
||||
|
||||
It requires a vanilla 4.5+ kernel with drm vc4 (open) support.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL
|
||||
bool "Gallium virgl driver"
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||
help
|
||||
virgl is the 3D acceleration backend for the virtio-gpu
|
||||
shipping with qemu.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ZINK
|
||||
bool "Gallium zink driver"
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
select BR2_PACKAGE_VULKAN_LOADER
|
||||
help
|
||||
Zink is a Gallium driver that emits Vulkan API calls,
|
||||
providing OpenGL support on devices that only support
|
||||
Vulkan.
|
||||
|
||||
comment "Vulkan drivers"
|
||||
|
||||
config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_AMD
|
||||
bool "Vulkan AMD driver (radv)"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
|
||||
select BR2_PACKAGE_LIBDRM_AMDGPU
|
||||
select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
|
||||
select BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_SUPPORTED_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
help
|
||||
RADV is a userspace driver that implements the
|
||||
Vulkan API on most modern AMD GPUs.
|
||||
|
||||
https://docs.mesa3d.org/drivers/radv.html
|
||||
|
||||
config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_BROADCOM
|
||||
bool "Vulkan broadcom driver"
|
||||
depends on BR2_arm || BR2_aarch64
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libxshmfence
|
||||
select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
help
|
||||
Vulkan broadcom driver.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_FREEDRENO
|
||||
bool "Vulkan freedreno driver (turnip)"
|
||||
select BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_SUPPORTED_DRIVER
|
||||
select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
help
|
||||
Vulkan freedreno driver.
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
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
|
||||
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"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 || \
|
||||
!BR2_TOOLCHAIN_USES_GLIBC
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_SWRAST
|
||||
bool "Vulkan swrast driver"
|
||||
depends on BR2_PACKAGE_MESA3D_LLVM
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SOFTPIPE
|
||||
select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
help
|
||||
Vulkan swrast driver.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_VIRTIO
|
||||
bool "Vulkan VirtIO driver (Venus)"
|
||||
select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
help
|
||||
Vulkan VirtIO (venus) driver.
|
||||
|
||||
comment "Host native context drivers"
|
||||
depends on BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_SUPPORTED_DRIVER
|
||||
|
||||
config BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_DRIVER_AMDGPU
|
||||
bool "amdgpu-virtio"
|
||||
depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI || \
|
||||
BR2_PACKAGE_MESA3D_VULKAN_DRIVER_AMD
|
||||
help
|
||||
Enable VirtIO support for AMDGPU native contexts
|
||||
used by the radeonsi (OpenGL) and RADV (Vulkan) drivers.
|
||||
|
||||
Select this when running Mesa inside a virtual machine
|
||||
with virtio-gpu host native context support.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_DRIVER_FREEDRENO
|
||||
bool "freedreno-virtio"
|
||||
depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO || \
|
||||
BR2_PACKAGE_MESA3D_VULKAN_DRIVER_FREEDRENO
|
||||
help
|
||||
Enable VirtIO support for freedreno native contexts
|
||||
used by the freedreno (OpenGL) and Turnip (Vulkan)
|
||||
drivers.
|
||||
|
||||
Select this when running Mesa inside a virtual machine
|
||||
with virtio-gpu host native context support.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_SUPPORTED_DRIVER
|
||||
bool
|
||||
|
||||
if BR2_PACKAGE_MESA3D_DRIVER
|
||||
|
||||
comment "OpenGL API Support"
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GBM
|
||||
bool "gbm"
|
||||
depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER && \
|
||||
BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||
select BR2_PACKAGE_HAS_LIBGBM
|
||||
select BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
|
||||
select BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF
|
||||
help
|
||||
Enable Generic Buffer Management (gbm)
|
||||
|
||||
comment "gbm support needs a gallium driver w/ EGL support."
|
||||
depends on !(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER && BR2_PACKAGE_MESA3D_OPENGL_EGL)
|
||||
|
||||
config BR2_PACKAGE_MESA3D_OPENGL_GLX
|
||||
bool "OpenGL GLX"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_HAS_LIBGL if !BR2_PACKAGE_LIBGLVND
|
||||
select BR2_PACKAGE_LIBGLVND_DISPATCH_GL if BR2_PACKAGE_LIBGLVND
|
||||
select BR2_PACKAGE_MESA3D_NEEDS_X11
|
||||
help
|
||||
Enable GLX graphic acceleration (OpenGL + X11).
|
||||
|
||||
comment "OpenGL GLX support needs X11"
|
||||
depends on !BR2_PACKAGE_XORG7
|
||||
|
||||
config BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||
bool "OpenGL EGL"
|
||||
depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_HAS_LIBEGL if !BR2_PACKAGE_LIBGLVND
|
||||
select BR2_PACKAGE_LIBGLVND_DISPATCH_EGL if BR2_PACKAGE_LIBGLVND
|
||||
select BR2_PACKAGE_MESA3D_GBM
|
||||
help
|
||||
Use the Khronos EGL APIs. EGL is a window manager for OpenGL
|
||||
applications similar to GLX, for X, and WGL, for Windows.
|
||||
|
||||
config BR2_PACKAGE_MESA3D_OPENGL_ES
|
||||
bool "OpenGL ES"
|
||||
select BR2_PACKAGE_HAS_LIBGLES if !BR2_PACKAGE_LIBGLVND
|
||||
select BR2_PACKAGE_LIBGLVND_DISPATCH_GLES if BR2_PACKAGE_LIBGLVND
|
||||
help
|
||||
Use the Khronos OpenGL ES APIs. This is commonly used on
|
||||
embedded systems and represents a subset of the OpenGL API.
|
||||
|
||||
endif # BR2_PACKAGE_MESA3D_DRIVER
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
|
||||
bool
|
||||
|
||||
config BR2_PACKAGE_MESA3D_GALLIUM_VA
|
||||
bool "Gallium VA-API"
|
||||
depends on BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
|
||||
# circular dependency: mesa3d -> libva -> libgl -> mesa3d
|
||||
depends on !BR2_PACKAGE_MESA3D_OPENGL_GLX || BR2_PACKAGE_LIBGLVND
|
||||
select BR2_PACKAGE_LIBVA
|
||||
help
|
||||
Enable VA-API video acceleration support in Gallium drivers.
|
||||
|
||||
comment "Gallium VA-API needs a supported gallium driver, incompatible with GLX w/o libglvnd"
|
||||
depends on !BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER || \
|
||||
(BR2_PACKAGE_MESA3D_OPENGL_GLX && !BR2_PACKAGE_LIBGLVND)
|
||||
|
||||
config BR2_PACKAGE_MESA3D_PATENTED_VIDEO_CODECS
|
||||
bool "patented video codecs (H.264, H.265)"
|
||||
depends on BR2_PACKAGE_MESA3D_GALLIUM_VA || BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
help
|
||||
Enable patent-encumbered video codec support (H.264, H.265,
|
||||
VC-1 decode/encode) for Gallium VA-API and/or Vulkan video.
|
||||
|
||||
Without this, only royalty-free codecs are supported
|
||||
(AV1, VP9, MPEG-1/2, JPEG).
|
||||
|
||||
comment "patented video codecs need Gallium VA-API or a Vulkan driver"
|
||||
depends on !BR2_PACKAGE_MESA3D_GALLIUM_VA && \
|
||||
!BR2_PACKAGE_MESA3D_VULKAN_DRIVER
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LIBGBM
|
||||
default "mesa3d" if BR2_PACKAGE_MESA3D_GBM
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LIBGL
|
||||
default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_GLX && !BR2_PACKAGE_LIBGLVND
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LIBEGL
|
||||
default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL && !BR2_PACKAGE_LIBGLVND
|
||||
|
||||
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
|
||||
|
||||
endif # BR2_PACKAGE_MESA3D
|
||||
|
||||
comment "mesa3d needs a toolchain w/ gcc >=8, C++, NPTL, dynamic library"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_8
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_1
|
||||
7
package/mesa3d/mesa3d.hash
Normal file
7
package/mesa3d/mesa3d.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# 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
|
||||
# License
|
||||
sha256 0d1a0472ecc81830e75c20d59b0ea02841e3db21255e0ebad97ab682c54d6615 docs/license.rst
|
||||
sha256 323c587d0ccf10e376f8bf9a7f31fb4ca6078105194b42e0b1e0ee2bc9bde71f licenses/MIT
|
||||
sha256 686bf035a1fd22076416fd3b90370ac67771e884bf57f55693d51f8ce7c710a7 licenses/SGI-B-2.0
|
||||
378
package/mesa3d/mesa3d.mk
Normal file
378
package/mesa3d/mesa3d.mk
Normal file
@@ -0,0 +1,378 @@
|
||||
################################################################################
|
||||
#
|
||||
# mesa3d
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# When updating the version, please also update mesa3d-headers
|
||||
MESA3D_VERSION = 26.1.8
|
||||
MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
|
||||
MESA3D_SITE = https://archive.mesa3d.org
|
||||
MESA3D_LICENSE = MIT, SGI, Khronos
|
||||
MESA3D_LICENSE_FILES = \
|
||||
docs/license.rst \
|
||||
licenses/MIT \
|
||||
licenses/SGI-B-2.0
|
||||
MESA3D_CPE_ID_VENDOR = mesa3d
|
||||
MESA3D_CPE_ID_PRODUCT = mesa
|
||||
|
||||
MESA3D_INSTALL_STAGING = YES
|
||||
|
||||
MESA3D_PROVIDES =
|
||||
|
||||
MESA3D_DEPENDENCIES = \
|
||||
host-bison \
|
||||
host-flex \
|
||||
host-python-mako \
|
||||
host-python-pyyaml \
|
||||
expat \
|
||||
libdrm \
|
||||
zlib
|
||||
|
||||
MESA3D_CONF_OPTS = \
|
||||
-Dmicrosoft-clc=disabled
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_DRIVER)$(BR2_PACKAGE_XORG7),yy)
|
||||
MESA3D_DEPENDENCIES += xlib_libxshmfence
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_LLVM),y)
|
||||
MESA3D_DEPENDENCIES += host-llvm llvm
|
||||
MESA3D_MESON_EXTRA_BINARIES += llvm-config='$(STAGING_DIR)/usr/bin/llvm-config'
|
||||
MESA3D_CONF_OPTS += -Dllvm=enabled
|
||||
ifeq ($(BR2_PACKAGE_LLVM_RTTI),y)
|
||||
MESA3D_CONF_OPTS += -Dcpp_rtti=true
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dcpp_rtti=false
|
||||
endif
|
||||
else
|
||||
# Avoid automatic search of llvm-config
|
||||
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_DEPENDENCIES += \
|
||||
host-rustc \
|
||||
host-rust-bindgen \
|
||||
spirv-tools \
|
||||
spirv-llvm-translator \
|
||||
opencl-icd-loader
|
||||
|
||||
# rust_std is defined here to workaround a known meson bug. See:
|
||||
# https://docs.mesa3d.org/rusticl.html#known-issues
|
||||
# https://github.com/mesonbuild/meson/issues/10664
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dgallium-rusticl=true \
|
||||
-Drust_std=2021 \
|
||||
-Dmesa-clc-bundle-headers=enabled
|
||||
|
||||
# meson does not allow ccache
|
||||
# https://github.com/mesonbuild/meson/commit/aac5f78580a3ea1cf0cae487cb46cab68a048660
|
||||
MESA3D_CONF_ENV += \
|
||||
CC_FOR_BUILD="$(HOSTCC_NOCCACHE)" \
|
||||
CXX_FOR_BUILD="$(HOSTCXX_NOCCACHE)"
|
||||
|
||||
MESA3D_MESON_EXTRA_BINARIES += \
|
||||
rust=['$(HOST_DIR)/bin/rustc','--target=$(RUSTC_TARGET_NAME)'] \
|
||||
rust_ld='$(TARGET_CROSS)gcc'
|
||||
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dgallium-rusticl=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS),y)
|
||||
MESA3D_DEPENDENCIES += elfutils
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX),y)
|
||||
# Disable-mangling not yet supported by meson build system.
|
||||
# glx:
|
||||
# dri : dri based GLX requires at least one DRI driver
|
||||
# xlib : xlib conflicts with any dri driver
|
||||
# Always enable glx-direct; without it, many GLX applications don't work.
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dglx=dri \
|
||||
-Dglx-direct=true
|
||||
else
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dglx=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
||||
MESA3D_CONF_OPTS += -Dgallium-vc4-neon=auto
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dgallium-vc4-neon=disabled
|
||||
endif
|
||||
|
||||
# Drivers
|
||||
|
||||
#Gallium Drivers
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_CROCUS) += crocus
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV) += etnaviv
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO) += freedreno
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915) += i915
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS) += iris
|
||||
HOST_MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS) += iris
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA) += lima
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LLVMPIPE) += llvmpipe
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU) += nouveau
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST) += panfrost
|
||||
HOST_MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST) += panfrost
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300) += r300
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600) += r600
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) += radeonsi
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA) += svga
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SOFTPIPE) += softpipe
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_TEGRA) += tegra
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D) += v3d
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4) += vc4
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL) += virgl
|
||||
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ZINK) += zink
|
||||
# Vulkan Drivers
|
||||
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_AMD) += amd
|
||||
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_BROADCOM) += broadcom
|
||||
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_FREEDRENO) += freedreno
|
||||
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION) += imagination
|
||||
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL) += intel
|
||||
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_PANFROST) += panfrost
|
||||
HOST_MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_PANFROST) += panfrost
|
||||
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_SWRAST) += swrast
|
||||
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_VIRTIO) += virtio
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER),)
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dgallium-drivers= \
|
||||
-Dgallium-extra-hud=false
|
||||
else
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dgallium-drivers=$(subst $(space),$(comma),$(MESA3D_GALLIUM_DRIVERS-y)) \
|
||||
-Dgallium-extra-hud=true
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV),y)
|
||||
MESA3D_DEPENDENCIES += host-python-pycparser
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_DRIVER_AMDGPU),y)
|
||||
MESA3D_CONF_OPTS += -Damdgpu-virtio=true
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Damdgpu-virtio=false
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO)$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_FREEDRENO),)
|
||||
MESA3D_FREEDRENO_KMDS = msm
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_DRIVER_FREEDRENO),y)
|
||||
MESA3D_FREEDRENO_KMDS += virtio
|
||||
endif
|
||||
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dfreedreno-kmds=$(subst $(space),$(comma),$(MESA3D_FREEDRENO_KMDS))
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL),y)
|
||||
MESA3D_DEPENDENCIES += host-python-ply
|
||||
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
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER),)
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Ddisplay-info=disabled \
|
||||
-Dvulkan-drivers=
|
||||
else
|
||||
MESA3D_DEPENDENCIES += host-python-glslang
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dvulkan-drivers=$(subst $(space),$(comma),$(MESA3D_VULKAN_DRIVERS-y))
|
||||
ifeq ($(BR2_PACKAGE_LIBDISPLAY_INFO),y)
|
||||
MESA3D_DEPENDENCIES += libdisplay-info
|
||||
MESA3D_CONF_OPTS += -Ddisplay-info=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Ddisplay-info=disabled
|
||||
endif
|
||||
endif
|
||||
|
||||
# APIs
|
||||
|
||||
# Always enable OpenGL:
|
||||
# - Building OpenGL ES without OpenGL is not supported, so always keep opengl enabled.
|
||||
MESA3D_CONF_OPTS += -Dopengl=true
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_VA),y)
|
||||
MESA3D_CONF_OPTS += -Dgallium-va=enabled
|
||||
MESA3D_DEPENDENCIES += libva
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dgallium-va=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_PATENTED_VIDEO_CODECS),y)
|
||||
MESA3D_CONF_OPTS += -Dvideo-codecs=all
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dvideo-codecs=all_free
|
||||
endif
|
||||
|
||||
# libGL is only provided for a full xorg stack, without libglvnd
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX),y)
|
||||
MESA3D_PROVIDES += $(if $(BR2_PACKAGE_LIBGLVND),,libgl)
|
||||
else
|
||||
define MESA3D_REMOVE_OPENGL_HEADERS
|
||||
rm -rf $(STAGING_DIR)/usr/include/GL/
|
||||
endef
|
||||
|
||||
MESA3D_POST_INSTALL_STAGING_HOOKS += MESA3D_REMOVE_OPENGL_HEADERS
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_X11),y)
|
||||
MESA3D_DEPENDENCIES += \
|
||||
xlib_libX11 \
|
||||
xlib_libXext \
|
||||
xlib_libXdamage \
|
||||
xlib_libXfixes \
|
||||
xlib_libXrandr \
|
||||
xlib_libXxf86vm \
|
||||
xorgproto \
|
||||
libxcb
|
||||
MESA3D_PLATFORMS += x11
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
||||
MESA3D_DEPENDENCIES += wayland wayland-protocols
|
||||
MESA3D_PLATFORMS += wayland
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_LEGACY_BIND_WAYLAND_DISPLAY),y)
|
||||
MESA3D_CONF_OPTS += -Dlegacy-wayland=bind-wayland-display
|
||||
endif
|
||||
endif
|
||||
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dplatforms=$(subst $(space),$(comma),$(MESA3D_PLATFORMS))
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_GBM),y)
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dgbm=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dgbm=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
||||
MESA3D_PROVIDES += $(if $(BR2_PACKAGE_LIBGLVND),,libegl)
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Degl=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Degl=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_ES),y)
|
||||
MESA3D_PROVIDES += $(if $(BR2_PACKAGE_LIBGLVND),,libgles)
|
||||
MESA3D_CONF_OPTS += -Dgles1=enabled -Dgles2=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dgles1=disabled -Dgles2=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_VALGRIND),y)
|
||||
MESA3D_CONF_OPTS += -Dvalgrind=enabled
|
||||
MESA3D_DEPENDENCIES += valgrind
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dvalgrind=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBUDEV),y)
|
||||
MESA3D_DEPENDENCIES += libudev
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
||||
MESA3D_CONF_OPTS += -Dlibunwind=enabled
|
||||
MESA3D_DEPENDENCIES += libunwind
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dlibunwind=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
|
||||
MESA3D_CONF_OPTS += -Dlmsensors=enabled
|
||||
MESA3D_DEPENDENCIES += lm-sensors
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dlmsensors=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
MESA3D_CONF_OPTS += -Dzstd=enabled
|
||||
MESA3D_DEPENDENCIES += zstd
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dzstd=disabled
|
||||
endif
|
||||
|
||||
MESA3D_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
# m68k needs 32-bit offsets in switch tables to build
|
||||
ifeq ($(BR2_m68k),y)
|
||||
MESA3D_CFLAGS += -mlong-jump-table-offsets
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLVND),y)
|
||||
ifneq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX)$(BR2_PACKAGE_MESA3D_OPENGL_EGL),)
|
||||
MESA3D_DEPENDENCIES += libglvnd
|
||||
MESA3D_CONF_OPTS += -Dglvnd=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dglvnd=disabled
|
||||
endif
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dglvnd=disabled
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST)$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_PANFROST),)
|
||||
HOST_MESA3D_TOOLS += panfrost
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION),y)
|
||||
HOST_MESA3D_TOOLS += imagination
|
||||
endif
|
||||
|
||||
HOST_MESA3D_CONF_ENV = \
|
||||
LLVM_CONFIG="$(HOST_DIR)/bin/llvm-config"
|
||||
|
||||
HOST_MESA3D_CONF_OPTS = \
|
||||
-Dglvnd=disabled \
|
||||
-Dgallium-drivers=$(subst $(space),$(comma),$(HOST_MESA3D_GALLIUM_DRIVERS-y)) \
|
||||
-Dtools=$(subst $(space),$(comma),$(HOST_MESA3D_TOOLS)) \
|
||||
-Dinstall-mesa-clc=true \
|
||||
-Dllvm=enabled \
|
||||
-Dmesa-clc=enabled \
|
||||
-Dplatforms= \
|
||||
-Dprecomp-compiler=enabled \
|
||||
-Dglx=disabled \
|
||||
-Dvulkan-drivers=""
|
||||
|
||||
HOST_MESA3D_DEPENDENCIES = \
|
||||
host-libclc \
|
||||
host-libdrm \
|
||||
host-llvm \
|
||||
host-python-mako \
|
||||
host-python-pyyaml \
|
||||
host-spirv-tools
|
||||
|
||||
ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST)$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_PANFROST),)
|
||||
HOST_MESA3D_INSTALL_PANFROST_COMPILE = \
|
||||
$(INSTALL) -D -m 0755 $(@D)/buildroot-build/src/panfrost/clc/panfrost_compile $(HOST_DIR)/bin/panfrost_compile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION),y)
|
||||
HOST_MESA3D_INSTALL_PCO_CLC = \
|
||||
$(INSTALL) -D -m 0755 $(@D)/buildroot-build/src/imagination/pco/uscgen/pco_clc $(HOST_DIR)/bin/pco_clc
|
||||
endif
|
||||
|
||||
define HOST_MESA3D_INSTALL_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/buildroot-build/src/compiler/clc/mesa_clc $(HOST_DIR)/bin/mesa_clc
|
||||
$(INSTALL) -D -m 0755 $(@D)/buildroot-build/src/compiler/spirv/vtn_bindgen2 $(HOST_DIR)/bin/vtn_bindgen2
|
||||
$(HOST_MESA3D_INSTALL_PANFROST_COMPILE)
|
||||
$(HOST_MESA3D_INSTALL_PCO_CLC)
|
||||
endef
|
||||
|
||||
$(eval $(meson-package))
|
||||
$(eval $(host-meson-package))
|
||||
Reference in New Issue
Block a user