|
@@ -5,11 +5,14 @@
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
# When updating the version, please also update mesa3d-headers
|
|
# When updating the version, please also update mesa3d-headers
|
|
-MESA3D_VERSION = 24.0.9
|
|
|
|
|
|
+MESA3D_VERSION = 25.0.6
|
|
MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
|
|
MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
|
|
MESA3D_SITE = https://archive.mesa3d.org
|
|
MESA3D_SITE = https://archive.mesa3d.org
|
|
MESA3D_LICENSE = MIT, SGI, Khronos
|
|
MESA3D_LICENSE = MIT, SGI, Khronos
|
|
-MESA3D_LICENSE_FILES = docs/license.rst
|
|
|
|
|
|
+MESA3D_LICENSE_FILES = \
|
|
|
|
+ docs/license.rst \
|
|
|
|
+ licenses/MIT \
|
|
|
|
+ licenses/SGI-B-2.0
|
|
MESA3D_CPE_ID_VENDOR = mesa3d
|
|
MESA3D_CPE_ID_VENDOR = mesa3d
|
|
MESA3D_CPE_ID_PRODUCT = mesa
|
|
MESA3D_CPE_ID_PRODUCT = mesa
|
|
|
|
|
|
@@ -21,19 +24,19 @@ MESA3D_DEPENDENCIES = \
|
|
host-bison \
|
|
host-bison \
|
|
host-flex \
|
|
host-flex \
|
|
host-python-mako \
|
|
host-python-mako \
|
|
|
|
+ host-python-pyyaml \
|
|
expat \
|
|
expat \
|
|
libdrm \
|
|
libdrm \
|
|
zlib
|
|
zlib
|
|
|
|
|
|
MESA3D_CONF_OPTS = \
|
|
MESA3D_CONF_OPTS = \
|
|
- -Dgallium-omx=disabled \
|
|
|
|
|
|
+ -Dgallium-opencl=disabled \
|
|
|
|
+ -Dgallium-rusticl=false \
|
|
|
|
+ -Dmicrosoft-clc=disabled \
|
|
-Dpower8=disabled
|
|
-Dpower8=disabled
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_DRIVER)$(BR2_PACKAGE_XORG7),yy)
|
|
ifeq ($(BR2_PACKAGE_MESA3D_DRIVER)$(BR2_PACKAGE_XORG7),yy)
|
|
-MESA3D_CONF_OPTS += -Ddri3=enabled
|
|
|
|
MESA3D_DEPENDENCIES += xlib_libxshmfence
|
|
MESA3D_DEPENDENCIES += xlib_libxshmfence
|
|
-else
|
|
|
|
-MESA3D_CONF_OPTS += -Ddri3=disabled
|
|
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_LLVM),y)
|
|
ifeq ($(BR2_PACKAGE_MESA3D_LLVM),y)
|
|
@@ -50,14 +53,9 @@ else
|
|
MESA3D_CONF_OPTS += -Dllvm=disabled
|
|
MESA3D_CONF_OPTS += -Dllvm=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
-# Disable opencl-icd: OpenCL lib will be named libOpenCL instead of
|
|
|
|
-# libMesaOpenCL and CL headers are installed
|
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENCL),y)
|
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENCL),y)
|
|
MESA3D_PROVIDES += libopencl
|
|
MESA3D_PROVIDES += libopencl
|
|
MESA3D_DEPENDENCIES += clang libclc
|
|
MESA3D_DEPENDENCIES += clang libclc
|
|
-MESA3D_CONF_OPTS += -Dgallium-opencl=standalone
|
|
|
|
-else
|
|
|
|
-MESA3D_CONF_OPTS += -Dgallium-opencl=disabled
|
|
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS),y)
|
|
ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS),y)
|
|
@@ -99,14 +97,14 @@ MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO) += freedre
|
|
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915) += i915
|
|
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915) += i915
|
|
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS) += iris
|
|
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_LIMA) += lima
|
|
-MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO) += kmsro
|
|
|
|
|
|
+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_NOUVEAU) += nouveau
|
|
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST) += panfrost
|
|
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_R300) += r300
|
|
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600) += r600
|
|
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_RADEONSI) += radeonsi
|
|
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA) += svga
|
|
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA) += svga
|
|
-MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST) += swrast
|
|
|
|
|
|
+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_TEGRA) += tegra
|
|
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D) += v3d
|
|
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_VC4) += vc4
|
|
@@ -129,6 +127,19 @@ MESA3D_CONF_OPTS += \
|
|
-Dgallium-extra-hud=true
|
|
-Dgallium-extra-hud=true
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV),y)
|
|
|
|
+MESA3D_DEPENDENCIES += host-python-pycparser
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL),y)
|
|
|
|
+MESA3D_DEPENDENCIES += host-python-ply
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS),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),)
|
|
ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER),)
|
|
MESA3D_CONF_OPTS += \
|
|
MESA3D_CONF_OPTS += \
|
|
-Dvulkan-drivers=
|
|
-Dvulkan-drivers=
|
|
@@ -254,12 +265,38 @@ endif
|
|
ifeq ($(BR2_PACKAGE_LIBGLVND),y)
|
|
ifeq ($(BR2_PACKAGE_LIBGLVND),y)
|
|
ifneq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX)$(BR2_PACKAGE_MESA3D_OPENGL_EGL),)
|
|
ifneq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX)$(BR2_PACKAGE_MESA3D_OPENGL_EGL),)
|
|
MESA3D_DEPENDENCIES += libglvnd
|
|
MESA3D_DEPENDENCIES += libglvnd
|
|
-MESA3D_CONF_OPTS += -Dglvnd=true
|
|
|
|
|
|
+MESA3D_CONF_OPTS += -Dglvnd=enabled
|
|
else
|
|
else
|
|
-MESA3D_CONF_OPTS += -Dglvnd=false
|
|
|
|
|
|
+MESA3D_CONF_OPTS += -Dglvnd=disabled
|
|
endif
|
|
endif
|
|
else
|
|
else
|
|
-MESA3D_CONF_OPTS += -Dglvnd=false
|
|
|
|
|
|
+MESA3D_CONF_OPTS += -Dglvnd=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+# host-mesa3d is needed by mesa3d only when the Iris Gallium driver is
|
|
|
|
+# enabled
|
|
|
|
+HOST_MESA3D_CONF_OPTS = \
|
|
|
|
+ -Dglvnd=disabled \
|
|
|
|
+ -Dgallium-drivers=iris \
|
|
|
|
+ -Dgallium-vdpau=disabled \
|
|
|
|
+ -Dinstall-mesa-clc=true \
|
|
|
|
+ -Dmesa-clc=enabled \
|
|
|
|
+ -Dplatforms= \
|
|
|
|
+ -Dprecomp-compiler=enabled \
|
|
|
|
+ -Dglx=disabled \
|
|
|
|
+ -Dvulkan-drivers=""
|
|
|
|
+
|
|
|
|
+HOST_MESA3D_DEPENDENCIES = \
|
|
|
|
+ host-libclc \
|
|
|
|
+ host-libdrm \
|
|
|
|
+ host-python-mako \
|
|
|
|
+ host-python-pyyaml \
|
|
|
|
+ host-spirv-tools
|
|
|
|
+
|
|
|
|
+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_bindgen $(HOST_DIR)/bin/vtn_bindgen
|
|
|
|
+endef
|
|
|
|
+
|
|
$(eval $(meson-package))
|
|
$(eval $(meson-package))
|
|
|
|
+$(eval $(host-meson-package))
|