fastports

mesa-dri 24.1.7_11

graphics/mesa-dri

OpenGL hardware acceleration drivers for DRI2+

Category
graphics
Maintainer
x11@FreeBSD.org
WWW
https://www.mesa3d.org/
License
MIT
USES
llvm:lib,noexport xorg compiler:c++11-lib bison meson pathfix pkgconfig python:build shebangfix tar:xz

Description

This package contains the current stable release of the client drivers for DRI2+

With a X Server configured for DRI, they allow direct rendering of hardware-
accelerated OpenGL. This package also includes the software renderer, either
llvmpipe or classic SWrast.

Dependencies

Commit History

may be incomplete — full history at freebsd-ports on GitHub

Commit Credits Log message
be3cf7dfe6 files touched Hiroki Tagato (tagattie)
*/*: Bump port revision after spirv-tools update (691d023921f3)
6d81aa7e95 files touched Hiroki Tagato (tagattie)
*/*: Bump port revision after spirv-tools update (ec3b7d6b9107)
19cee39960 files touched Hiroki Tagato (tagattie)
*/*: bump port revision after spirv-tools update (1fcdc76337bc)
46f45d8357 files touched Matthew Wener (matthew)
graphics/mesa: Add py-packaging as BUILD_DEP
- Due to the deprecation of distutils a version check in the meson.build code is failing
- This is fixed by adding py-packaging which is default approach for getting the version
- Note: We are not adding py-setuptools as distutils is a fallback approach to getting the version

PR:	287567
79c1483eda files touched Jan Beich (jbeich)
graphics/glslang: update to 15.4.0
Changes:	https://github.com/KhronosGroup/glslang/releases/tag/15.4.0
Reported by:	GitHub (watch releases)
17c48bcecb files touched Jan Beich (jbeich)
graphics/spirv-tools: update to 2025.3.r1
Changes:	https://github.com/KhronosGroup/SPIRV-Tools/compare/v2025.2.rc1...v2025.3.rc1
Reported by:	Repology
d4b2a35afa files touched Robert Clausecker (fuz)
graphics/mesa-libs: fix build on armv7 with LLVM 19
Approved by:	portmgr (build fix blanket)
MFH:		2025Q2
808f64e9a3 files touched Jan Beich (jbeich)
graphics/glslang: update to 15.3.0
Changes:	https://github.com/KhronosGroup/glslang/releases/tag/15.3.0
Reported by:	GitHub (watch releases)
00045e68e1 files touched Jan Beich (jbeich)
graphics/spirv-tools: update to 2025.2.r1
Changes:	https://github.com/KhronosGroup/SPIRV-Tools/compare/v2025.1...v2025.2.rc1
Reported by:	Repology
10a572d0b8 files touched Emmanuel Vadot (manu)
Revert "graphics/mesa-dri: Drop radeonsi for i386"
i386 radeonsi_dri.so is still needed by wine.

This reverts commit 69000ee2eb1c7167cd9542468ac674f3bb38b94c.

Reported by:	jbeich
Sponsored by:	Beckhoff Automation GmbH & Co. KG
113d022ba2 files touched Emmanuel Vadot (manu)
graphics/mesa-dri: Drop radeonsi for i386
We've never supported amdgpu for i386 in drm-*-kmod so no need mesa.

Sponsored by:   Beckhoff Automation GmbH & Co. KG
0b3f2f14f0 files touched Gleb Popov (arrowd)
graphics/mesa-dri: Add upstream patch fixing the bogus close() call
PR:		283851
Approved by:	x11 (maintainer timeout)
13d55b0eaa files touched Jung-uk Kim (jkim)
graphics/mesa-dri: fix build with clang 19
Reviewed by:	manu
Tested by:	jbeich
PR:		282316
16852ed437 files touched Anton Saietskii (vsasjason)
graphics/mesa-dri: Remove intel-rt from MESON_ARGS
This isn't needed after 17257d707a58595d2a5c3cc95cdf2966f397b8f1.

PR:	281111
ec87669831 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.1.7
Release notes (24.1.6):	https://lists.freedesktop.org/archives/mesa-dev/2024-August/226294.html
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-August/226303.html

Differential Revision:	https://reviews.freebsd.org/D46478
Sponsored by:		Beckhoff Automation GmbH & Co. KG
c01e7d09ad files touched Emmanuel Vadot (manu)
devel/libclc: Flavorize the port
Defines some flavors for llvm15 to llvm18 for libclc.
This will allow users to use a different LLVM_DEFAULT without having
to rely on the default one (llvm15 for now).

PR:		280863
Sponsored by:	Beckhoff Automation GmbH & Co. KG
17257d707a files touched Emmanuel Vadot (manu)
graphics/mesa-dri: Always disable intel-rt on !amd64
Since anv is only included for x86(-64) the MESON_ON isn't added to MESON_ARGS.
So explicitely disable intel-rt on !amd64 since it doesn't work.

Reported by:	eduardo@freebsd.org
Spoonsored by:	Beckhoff Automation GmbH & Co. KG
e313acaea3 files touched Emmanuel Vadot (manu)
graphics/mesa: Unbreak on !amd64
Disable intel-rt for all arches except amd64 as it's only supported there.

PR:		 280979
Sponsored by:	Beckhoff Automation GmbH & Co. KG
277dfdc8d5 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.1.5
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-May/226222.html
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-June/226223.html
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-June/226249.html
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-July/226272.html
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-July/226279.html
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-July/226289.html

Sponsored by:		Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D46229
142029e560 files touched Emmanuel Vadot (manu)
graphics/mesa-dri: unbreak radv=OFF
The Intel Vulkan driver also needs it.

Fixes:		efb0c89e59bd ("graphics/mesa-dri: Convert gallium and vulkan driver to port options")
PR:		280071
Sponsored by:	Beckhoff Automation GmbH & Co. KG
efb0c89e59 files touched Emmanuel Vadot (manu)
graphics/mesa-dri: Convert gallium and vulkan driver to port options
Instead of selecting the one by arches add options.
This will help users who doesn't want some features.
The default are still the same based on the specific arch.
No functional changes intended.

Differential Revision:	https://reviews.freebsd.org/D45754
Inspired by:		graphics/mesa-devel
Reviewed by:		bapt
Sponsored by:		Beckhoff Automation GmbH & Co. KG
a26876a1e5 files touched Emmanuel Vadot (manu)
graphics/mesa: Fix X11 options
We need to disable xlib-lease otherwise meson will fail to configure the port

Differential Revision:	https://reviews.freebsd.org/D45744
Reviewed by:		bapt
Sponsored by:		Beckhoff Automation GmbH & Co. KG
aa6c9614c0 files touched Emmanuel Vadot (manu)
graphics/mesa: Simplify x11/wayland option
Simply use X11 for x11 support as it's done for all other ports.
Same for Wayland, just use WAYLAND.

While here always use xcb and xrandr for X11 support in mesa-dri as we
always build a vulkan driver (swrast).

Differential Revision:	https://reviews.freebsd.org/D45743
Reviewed by:		bapt
Sponsored by:		Beckhoff Automation GmbH & Co. KG
5046f2d40b files touched Emmanuel Vadot (manu)
graphics/mesa: libdrm is used by all component
libosmesa also needs libdrm as a dep, so add it for every mesa component.

No functional changes intended.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
c2f3b7d631 files touched Emmanuel Vadot (manu)
graphics/mesa: Drop check for ld and lld
We stopped shipping bfd.ld a long time ago so we can drop this.

No functional changes intented.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
a469f13cdb files touched Emmanuel Vadot (manu)
graphics/mesa: Drop SHEBANG_FILES
Most do not exists anymore and the rest aren't used in the build or already
have /usr/bin/env python3 in the shebang which is fine.

No functional changes intended.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
f314f371a0 files touched Emmanuel Vadot (manu)
graphics/mesa: Remove python_OLD_CMD
Python2 support was removed from mesa 21.3.0 so we don't need it anymore.

No functional changes intended.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
8769afe94a files touched Emmanuel Vadot (manu)
graphics/mesa: Only use MESAVERSION
We don't deal with -rc or such here so no need for a lot of variable to
just specify one simple version.

While here drop the MASTER_SITE that do not work and the ftp ones.

No functional changes intended.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
2007b26000 files touched Emmanuel Vadot (manu)
graphics/mesa: Remove Makefile.targets
This was only used to specify directory for drirc.d but the default one
works fine.

No functional changes intended.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
e614247986 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.0.9
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-June/226224.html

Differential Revision:	https://reviews.freebsd.org/D45542
Sponsored by:		Beckhoff Automation GmbH & Co. KG
4caac3599a files touched Cy Schubert (cy)
graphics/mesa-dri: Fix 15-CURRENT 108de784513d build
108de784513d on main in src redefined CLOCK_BOOTTIME to alias
CLOCK_MONOTONIC, instead of CLOCK_UPTIME. This results in the following
errors when building this port under 15-CURRENT:

../src/intel/common/xe/intel_gem.c:72:9: error: duplicate case value '4'
   72 |    case CLOCK_BOOTTIME:
      |         ^
/usr/include/sys/_clock_id.h:81:25: note: expanded from macro
'CLOCK_BOOTTIME'
   81 | #define CLOCK_BOOTTIME          CLOCK_MONOTONIC
      |                                 ^
/usr/include/sys/_clock_id.h:56:26: note: expanded from macro
'CLOCK_MONOTONIC'
   56 | #define CLOCK_MONOTONIC         4
      |                                 ^
../src/intel/common/xe/intel_gem.c:66:9: note: previous case defined here
   66 |    case CLOCK_MONOTONIC:
      |         ^
/usr/include/sys/_clock_id.h:56:26: note: expanded from macro
'CLOCK_MONOTONIC'
   56 | #define CLOCK_MONOTONIC         4
      |                                 ^
1 error generated.

On FreeBSD systems without 108de784513d the old definition will be used
while on 108de784513d and newer the duplicate case will be removed.

Repored by:	eduardo
Obtained from:	src 676041c41ba5
Discussed with: imp
5505a46a19 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.0.8
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-May/226221.html

Differential Revision:	https://reviews.freebsd.org/D45314
MFH:			2024Q2
Reviewed by:		bapt
Sponsored by:		Beckhoff Automation GmbH & Co. KG
e8c3e827f6 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.0.7
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-May/226215.html

Differential Revision:	https://reviews.freebsd.org/D45128
Sponsored by:		Beckhoff Automation GmbH & Co. KG
c681251087 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.0.6
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-April/226190.html
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-April/226200.html

Differential Revision:	https://reviews.freebsd.org/D44941
Sponsored by:		Beckhoff Automation GmbH & Co. KG
bed3b0ad50 files touched Emmanuel Vadot (manu)
graphics/libosmesa: Remove expat from LIB_DEPENDS
It's not needed for this mesa component.

Differential Revision:	https://reviews.freebsd.org/D44828
PR:			278324
Reported by:		autodep
Reviewed by:		bapt
Sponsored by:		Beckhoff Automation GmbH & Co. KG
9846c828d4 files touched Emmanuel Vadot (manu)
graphics/mesa: Enable AV1 and VP9
This should help AMD users with hardware that can decode those.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
7b2edd408e files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.0.4
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-March/226176.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
cf8cf5293c files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.0.3
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-March/226172.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
ccef168211 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.0.2
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-February/226163.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
6e197c6c59 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 24.0.1
Release notes (24.0.0):	https://lists.freedesktop.org/archives/mesa-dev/2024-February/226138.html
Release notes (24.0.1):	https://lists.freedesktop.org/archives/mesa-dev/2024-February/226151.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
9473f40936 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 23.3.5
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-February/226139.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
168e1199a5 files touched Emmanuel Vadot (manu)
graphics/mesa: Add a patch for testing kcmp
Upstream patch is based on the mesa main branch and this branch have
extra checks for kcmp, add those test locally as they are not in 23.3.4

Fixes:		2080c2eddaca ("graphics/mesa: Update to 23.3.4")
Sponsored by:	Beckhoff Automation GmbH & Co. KG
2080c2edda files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 23.3.4
Also add a patch to use kcmp(2) if available.

Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-January/226125.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
df5b231c0f files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 23.3.3
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2024-January/226096.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
3f284c9488 files touched Emmanuel Vadot (manu)
graphics/mesa: Update to 23.3.2
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2023-December/226088.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
37c38b676a files touched Emmanuel Vadot (manu)
graphics/mesa-dri: Update to 23.3.1
Release notes:	https://lists.freedesktop.org/archives/mesa-dev/2023-December/226085.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
9f41e650f5 files touched Emmanuel Vadot (manu)
graphics/mesa: Fix port when elfutils is installed
By default when building in a clean env (i.e. poudriere) libelf from base
will be used.
When building with an unclean env and if devel/elfutils is installed build
system will be confused and use libelf headers from ${LOCALBASE}/include but
libelf from base.

Fix this.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
PR:		275388
e18ae97ac3 files touched Emmanuel Vadot (manu)
graphics/mesa*: Update to 23.3.0
Release notes: https://lists.freedesktop.org/archives/mesa-dev/2023-November/226083.html

Sponsored by:	Beckhoff Automation GmbH & Co. KG
98949a34f4 files touched Jan Beich (jbeich)
graphics/mesa-dri: enable codecs for Vulkan Video after 29d855b6f775
Mesa 23 enabled Vulkan Video itself but all codecs are disabled by
default due to patents. Copy -Dvideo-codecs from mesa-gallium-va to
avoid the following error:

[ffmpeg/video] h264: Device does not support decoding h264!

$ vulkaninfo | fgrep decode
<empty>
$ export ANV_VIDEO_DECODE=1 RADV_PERFTEST=video_decode
$ vulkaninfo | fgrep decode
        VK_KHR_video_decode_queue                   : extension revision 7
$ pkg upgrade mesa-dri
$ vulkaninfo | fgrep decode
        VK_KHR_video_decode_h264                    : extension revision 8
        VK_KHR_video_decode_queue                   : extension revision 7

PR:		275360
Approved by:	manu
fb107dc4b6 files touched Piotr Kubaj (pkubaj)
graphics/mesa-libs: fix build on powerpc64le
Checking if "POWER8 intrinsics" compiles: NO

meson.build:720:6: ERROR: Problem encountered: POWER8 intrinsic support required but not found.

Load all commits →