Commit Graph

20 Commits

Author SHA1 Message Date
Christian Marangi
094bf58da6 mesa: bump host pip requirements tools verion for python 3.13 support
The mesa package currently can't compile as Cython dependency fails to
compile with Python >= 3.13 version.

To fix this, bump all the host pip requirements tools to latest stable
version.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-27 12:18:29 +01:00
Daniel Golle
282ef05e74 mesa: update to version 25.2.4
Mesa 25.2 brings a bunch of new features, especially the Panfrost Vulkan
driver saw many improvements.

See https://docs.mesa3d.org/relnotes.html for details about what has
happened since Mesa 25.1.6.

Note that OSMesa as well as the old OpenCL 1.1 support has been dropped.
The new Rusticl OpenCL implementation cannot be supported yet as OpenWrt's
meson integration still lacks support for Rust at this point.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-10-19 14:53:15 +01:00
Daniel Golle
fc414652e0 mesa: update to 25.1.6
See https://docs.mesa3d.org/relnotes/25.1.6.html

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-21 17:04:52 +01:00
Daniel Golle
f80c4adb21 mesa: unconditionally depend on libatomic
Trying to express the dependency on libatomic conditionally didn't work
well and the effort also simply isn't worth it: given the size of mesa
itself, libatomic is negligable.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-20 00:52:13 +01:00
Daniel Golle
a35ca4c713 mesa: requires libatomic also on older ARM and ARMEB platforms
Add dependency on libatomic also for non-ARMv6 ARM targets as well as
big-endian ARM (xscale). Obviously they are all unlikely to ever
actually use Mesa.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-19 02:23:37 +01:00
Daniel Golle
47c626a74f mesa: update to 25.1.5
Support for off-screen rendering ("libOSMesa") has been dropped upstream.

In order to still be able to cross-compile the panfrost driver also on
non-Linux buildhosts, or Linux hosts without libdrm, a patch has been
applied.

This patch has also been submitted upstream via
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36170

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-17 23:53:34 +01:00
W. Michael Petullo
0f402858fd mesa: add dependency on libatomic when building for on mips
Fix build errors on the noted platforms. Builds were failing with:

	Package libmesa-amd is missing dependencies for the following
	libraries:
	libatomic.so.1

Signed-off-by: W. Michael Petullo <mike@flyn.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-15 17:42:35 +01:00
Mirko Vogt
f2d60f5719 mesa: setting meson opt mesa-clc to 'auto' if LLVM support disabled
mesa-clc set to 'system' requires the system tool 'mesa-clc' which gets
built as part of the mesa/host build.

The mesa/host build however depends on LLVM and others - hence we're
trying to avoid pulling this in where possible if target configuration
allows.

meson option 'mesa-clc' allows for 3 options: enabled, system, auto.

While 'auto' sounds like it will only automagically go for either
'enabled' or 'system', it will also disable CLC support entirely, if
only drivers are enabled which don't need it (resulting in
`with_clc=false`) - which is exactly what we want.

This relies on only drivers being selectable, which don't automatically
enable CLC - if LLVM support is disabled.
2025-05-19 21:34:37 +00:00
Daniel Golle
2ebf064c05 mesa: update to 25.0.5
Improve build and make dependency on LLVM conditional.

Fixes: #60
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-05-12 19:01:45 +01:00
Daniel Golle
3880c96903 mesa: update to version 24.3.1
Include libs in /usr/lib/gbm/dri_gbm.so as well as /usr/lib/dri/*.so in
libmesa packages.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-12-20 12:22:24 +00:00
Daniel Golle
c2c7549bc3 mesa: add package decriptions
Add descriptions for all generated packages.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-12-13 14:50:27 +00:00
Daniel Golle
68ccbbb3b6 mesa: remove useless OpenCL libraries
Clover only implements OpenCL API for nouveau, r600 and radeon-si GPUs.
Remove OpenCL library packages for targets which anyway implement 0% of
the API and are hence useless.

See also https://mesamatrix.net

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-12-13 03:34:22 +00:00
Daniel Golle
b24439f50b mesa: clean up dependencies
Define all CONFIG_PACKAGE_* symbols which may change build configuration
and only build broadcom drivers on ARM targets with FPU.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-12-08 22:55:29 +00:00
Daniel Golle
d91f0b4823 mesa: fix dependencies and always prefer LLVM subproject
Make sure build dependency to mesa/host is set for x86 and x86/64 builds,
add missing dependency on Python ply and make sure to always prefer LLVM
subproject to avoid picking up LLVM from the build host (which may not
match SPIR-V converter tool version).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-12-07 21:58:31 +00:00
Daniel Golle
a3eafcfc95 mesa: build without libunwind and valgrind
Configure build to never link against libunwind or valgrind.
Prevents accidental linkage against those libraries in case they are
present.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-12-07 01:45:29 +00:00
Daniel Golle
1623b707b1 mesa: update to 24.3.0, improve build
Apart from switching to a newer upstream version, also improve the
build:
 * introduce build-variants for each kind of hardware
 * use LLVM
 * build more Gallium drivers
 * build Vulkan drivers
 * build Clover OpenCL library

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-12-05 01:15:41 +00:00
Daniel Golle
630f39d6f7 mesa: add missing dependencies
Add missing dependencies on libzstd and libsensors which some libraries
link against if detected during build.

Fixes: #27
Reported-by: @dreirund
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-07-23 09:53:22 +01:00
Jeffery To
375b9ad7e1 mesa: Use Mako installed by host pip instead of Mako/host
Packages normally use host pip to install libraries for host Python.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-03-18 13:16:17 +00:00
Daniel Golle
211b848af3 mesa: update to version 21.3.0
* build vulkan drivers only if selected
 * disable broadcom vulkan driver as it causes meson-related
   build troubles (unrelated to the version bump)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-11-24 11:08:42 +00:00
Daniel Golle
b9efdfc437 mesa: add mesa 3D libraries
Package libGL, libEGL, libGLES, ... from mesa as well as DRI drivers.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-10-07 00:09:16 +01:00