|
@@ -5,7 +5,7 @@
|
|
|
################################################################################
|
|
|
|
|
|
# When updating the version, please also update mesa3d-headers
|
|
|
-MESA3D_VERSION = 25.0.6
|
|
|
+MESA3D_VERSION = 25.1.1
|
|
|
MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
|
|
|
MESA3D_SITE = https://archive.mesa3d.org
|
|
|
MESA3D_LICENSE = MIT, SGI, Khronos
|
|
@@ -30,10 +30,8 @@ MESA3D_DEPENDENCIES = \
|
|
|
zlib
|
|
|
|
|
|
MESA3D_CONF_OPTS = \
|
|
|
- -Dgallium-opencl=disabled \
|
|
|
-Dgallium-rusticl=false \
|
|
|
- -Dmicrosoft-clc=disabled \
|
|
|
- -Dpower8=disabled
|
|
|
+ -Dmicrosoft-clc=disabled
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_DRIVER)$(BR2_PACKAGE_XORG7),yy)
|
|
|
MESA3D_DEPENDENCIES += xlib_libxshmfence
|
|
@@ -65,7 +63,7 @@ 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 || dri based GLX requires shared-glapi
|
|
|
+# 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 += \
|
|
@@ -96,10 +94,12 @@ 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
|
|
@@ -122,7 +122,6 @@ MESA3D_CONF_OPTS += \
|
|
|
-Dgallium-extra-hud=false
|
|
|
else
|
|
|
MESA3D_CONF_OPTS += \
|
|
|
- -Dshared-glapi=enabled \
|
|
|
-Dgallium-drivers=$(subst $(space),$(comma),$(MESA3D_GALLIUM_DRIVERS-y)) \
|
|
|
-Dgallium-extra-hud=true
|
|
|
endif
|
|
@@ -135,7 +134,7 @@ ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL),y)
|
|
|
MESA3D_DEPENDENCIES += host-python-ply
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS),y)
|
|
|
+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
|
|
@@ -151,12 +150,6 @@ endif
|
|
|
|
|
|
# APIs
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_MESA3D_OSMESA_GALLIUM),y)
|
|
|
-MESA3D_CONF_OPTS += -Dosmesa=true
|
|
|
-else
|
|
|
-MESA3D_CONF_OPTS += -Dosmesa=false
|
|
|
-endif
|
|
|
-
|
|
|
# Always enable OpenGL:
|
|
|
# - Building OpenGL ES without OpenGL is not supported, so always keep opengl enabled.
|
|
|
MESA3D_CONF_OPTS += -Dopengl=true
|
|
@@ -273,11 +266,9 @@ else
|
|
|
MESA3D_CONF_OPTS += -Dglvnd=disabled
|
|
|
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-drivers=$(subst $(space),$(comma),$(HOST_MESA3D_GALLIUM_DRIVERS-y)) \
|
|
|
-Dgallium-vdpau=disabled \
|
|
|
-Dinstall-mesa-clc=true \
|
|
|
-Dmesa-clc=enabled \
|
|
@@ -286,6 +277,10 @@ HOST_MESA3D_CONF_OPTS = \
|
|
|
-Dglx=disabled \
|
|
|
-Dvulkan-drivers=""
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST),y)
|
|
|
+HOST_MESA3D_CONF_OPTS += -Dtools=panfrost
|
|
|
+endif
|
|
|
+
|
|
|
HOST_MESA3D_DEPENDENCIES = \
|
|
|
host-libclc \
|
|
|
host-libdrm \
|
|
@@ -293,9 +288,15 @@ HOST_MESA3D_DEPENDENCIES = \
|
|
|
host-python-pyyaml \
|
|
|
host-spirv-tools
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST),y)
|
|
|
+HOST_MESA3D_INSTALL_PANFROST_COMPILE = \
|
|
|
+ $(INSTALL) -D -m 0755 $(@D)/buildroot-build/src/panfrost/clc/panfrost_compile $(HOST_DIR)/bin/panfrost_compile
|
|
|
+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_bindgen $(HOST_DIR)/bin/vtn_bindgen
|
|
|
+ $(INSTALL) -D -m 0755 $(@D)/buildroot-build/src/compiler/spirv/vtn_bindgen2 $(HOST_DIR)/bin/vtn_bindgen2
|
|
|
+ $(HOST_MESA3D_INSTALL_PANFROST_COMPILE)
|
|
|
endef
|
|
|
|
|
|
$(eval $(meson-package))
|