mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Release notes: https://lists.freedesktop.org/archives/mesa-announce/2025-May/000804.html https://lists.freedesktop.org/archives/mesa-announce/2025-May/000802.html Note: Mesa3d depends on spirv-tools >= 2024.1fe8a0d3548which translates to spirv-tools version 1.3.280.0. Note: AMD drivers depend on llvm >= 18:82047fa82fRemoved patch 0001, not needed anymore due to upstream commite4eb5e80c3which removes the libclc headers include. Renumbered remaining patches. Rebased patch 0002 due to upstream commit6652eb0ec3which renamed meson_options.txt to meson.options. Panfrost driver depends on llvm:20970bcd96and needs the host tool panfrost_compile which is created by the same method as mesa_clc needed by the Iris driver. Refactor the dependencies by introducing a blind option BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER which is selected by either the iris or the panfrost driver. vtn_bindgen was replaced by vtn_bindgen2:6d5375017aOSMesa was removed upstream:027ccd963bAlso remove optional osmesa support from mesa3d-demos and wine. Regarding wine please see this discussion: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33836#note_2805850 Configure option shared-glapi was removed upstream:e5c76088e9fefb1a6fb3Removed deprecated and unused configure options gallium-opencl & power8:a0b457aca6c4b305079dSigned-off-by: Bernd Kuhls <bernd@kuhls.net> [Bernd v3: - bump to 25.1.1, rebase on -next branch, added note about impact of osmesa removal on wine] Signed-off-by: El Mehdi YOUNES <elmehdi.younes@smile.fr> [Mehdi v2: - removed 0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch from .checkpackageignore. - removed OSMesa from mesa-demos and wine packages.] Signed-off-by: Julien Olivain <ju.o@free.fr>
73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
################################################################################
|
|
#
|
|
# mesa3d-demos
|
|
#
|
|
################################################################################
|
|
|
|
MESA3D_DEMOS_VERSION = 9.0.0
|
|
MESA3D_DEMOS_SOURCE = mesa-demos-$(MESA3D_DEMOS_VERSION).tar.xz
|
|
MESA3D_DEMOS_SITE = https://archive.mesa3d.org/demos
|
|
MESA3D_DEMOS_DEPENDENCIES = host-pkgconf
|
|
MESA3D_DEMOS_LICENSE = MIT
|
|
|
|
MESA3D_DEMOS_CONF_OPTS += \
|
|
-Dgles1=disabled \
|
|
-Dosmesa=disabled # BR2_PACKAGE_MESA3D_OSMESA_GALLIUM removed in mesa 25.1
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7)$(BR2_PACKAGE_HAS_LIBGL),yy)
|
|
MESA3D_DEMOS_DEPENDENCIES += libgl libglew libglu xlib_libX11 xlib_libXext
|
|
MESA3D_DEMOS_CONF_OPTS += -Dgl=enabled -Dx11=enabled
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += -Dgl=disabled -Dx11=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += libegl
|
|
MESA3D_DEMOS_CONF_OPTS += -Degl=enabled
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += -Degl=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += libgles
|
|
MESA3D_DEMOS_CONF_OPTS += -Dgles2=enabled
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += -Dgles2=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += libdrm
|
|
MESA3D_DEMOS_CONF_OPTS += -Dlibdrm=enabled
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += -Dlibdrm=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_GBM),y)
|
|
# Meson search for gbm, but has no option to enable/disable it. See:
|
|
# https://gitlab.freedesktop.org/mesa/demos/-/blob/mesa-demos-8.5.0/meson.build#L88
|
|
# We still add the dependency, if needed, to make sure it will always
|
|
# be detected.
|
|
MESA3D_DEMOS_DEPENDENCIES += mesa3d
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += libfreeglut
|
|
MESA3D_DEMOS_CONF_OPTS += -Dwith-glut=$(STAGING_DIR)/usr
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDECOR)$(BR2_PACKAGE_WAYLAND),yy)
|
|
MESA3D_DEMOS_DEPENDENCIES += libdecor libxkbcommon wayland
|
|
MESA3D_DEMOS_CONF_OPTS += -Dwayland=enabled
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += -Dwayland=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_VULKAN_LOADER),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += vulkan-loader
|
|
MESA3D_DEMOS_CONF_OPTS += -Dvulkan=enabled
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += -Dvulkan=disabled
|
|
endif
|
|
|
|
$(eval $(meson-package))
|