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.
===> The following configuration options are available for mesa-dri-26.2.2_1:
ZSTD=on: Use ZSTD for shader cache
====> Unified OpenGL drivers
crocus=on: Intel GPU Gen4 (Broadwater) to Gen7 (Haswell)
i915=on: Intel GPU Gen3 (Grantsdale to Pineview)
iris=on: Intel GPU Gen8 (Broadwell) and newer
llvmpipe=on: Software Rasterizer
r300=on: AMD/ATI R300, R400 and R500
r600=on: AMD/ATI R600, R700, Evergreen, Northern Islands
radeonsi=on: AMD/ATI Southern Islands and newer
svga=on: VMWare Virtual GPU
====> Options available for the group PLATFORM
X11=on: Enable X11 support for GBM/EGL
WAYLAND=on: Enable Wayland support for GBM/EGL and Vulkan
====> Vulkan drivers
anv=on: Intel GPU Gen9 and newer Vulkan support
radv=on: AMD/ATI Southern Islands and newer Vulkan support
swrast_vk=on: Software Rasterizer Vulkan support
===> Use 'make config' to modify these settings
graphics/mesa-dri: Make zink unconditional
This driver is enabled by default upstream for everything but Darwin. Enabling
it adds a miniscule of build time, but simplifies packaging.
PR: 296084
graphics/mesa-dri: Make glslang an unconditional build dependency
Strictly speaking, glslang is only needed for Vulkan drivers, but this isn't
a heavy dependency.
PR: 296094
Reported by: Oleh Hushchenkov <o.hushchenkov@gmail.com>
graphics/mesa-{dri,libs}: Fix building with iris and anv off
Move the pkgconfig related CONFIGURE_ENV knob to a common place instead of
activating it depending on options.
PR: 296094
Reported by: Oleh Hushchenkov <o.hushchenkov@gmail.com>
graphics/mesa-{dri,libs}: Fix vaapi for AMD
VA bits end up being compiled into the libgallium.so giant library, which is
shipped by mesa-libs. This means that we should make libva an unconditional
build dep for mesa-libs. In turn this makes no sense to disable VA in mesa-dri.
Luckily, libva is a pretty thin dep.
Reported by: flo
graphics/mesa-dri: fix builds against llvm 20 and 21
Add several upstream patches, as patch-llvm-20-* and patch-llvm-21-*, to
make mesa build against llvm 20 and 21. Whenever mesa gets updated to a
new version which includes those changes, the patches can easily be
removed.
PR: 290809, 290874
MFH: 2026Q2
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
(Only the first 15 lines of the commit message are shown above )
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
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
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
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.
graphics/mesa: Re-add --undefined-version
This is needed for linking with lld 17 and it was lost in the update
to 23.1.8
Reported by: dim
Fixes: 29d855b6f775 ("graphics/mesa: update to 23.1.8")
Sponsored by: Beckohh Automation GmbH & Co. KG
graphics/mesa*: Drop llvm,noexport in Makefile.common
And put noexport in every mesa ports.
It does work to have multiple USES= llvm (see PR 199603).
Reported by: jbeich
Fixes: fa7309cb976e ("lang/clover: Restrict llvm to max version 16")
Sponsored by: Beckhoff Automation GmbH & Co. KG
lang/clover: Restrict llvm to max version 16
Clover cannot (yet?) be compiled with LLVM17, it misses
llvm/Transforms/IPO/PassManagerBuilder.h
For now set a max version of llvm to 16 for clover only, people should still
be able to use llvm17 for other mesa componant if they are not interested in
clover.
While here clean up a bit the USES=llvm for mesa port, we already set noexport
in mesa-dri/Makefile.common so no need to set it in all the ports.
Sponsored by: Beckhoff Automation GmbH & Co. KG
PR: 275290
graphics/mesa-dri: vulkan: Remove haswell driver
Haswell doesn't work so remove it.
While here fix plist, PR 275242
PR: 275242
Sponsored by: Beckhoff Automation GmbH & Co. KG
graphics/mesa: update to 23.1.8
While here:
- Remove some unneeded dep in gallium-vdpau
- Disable libelf from devel/elfutils (we will fallback on base libelf), PR
273803
- Always disable libunwind, if you want stacktrace you will need to compile from
upstream PR: 250306
- enable vulkan haswell driver
Co-authored-by: manu, vishwin
PR: 273703, 273803, 250306
graphics/mesa-dri: fix build with lld 17
Some symbols in mesa's linker version scripts are not always defined,
depending on configuration options. Suppress errors with lld >= 17 due
to these undefined symbols.
This applies to multiple mesa ports, such as mesa-dri, mesa-libs,
mesa-gallium-*, etc. So add the LDFLAGS setting to Makefile.common.
PR: 273981
Approved by: x11 (manu)
MFH: 2023Q3
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
graphics/mesa-dri: fix Wayland warnings on exit after d2c3c81a5310
warning: queue 0x562a5ed2cd20 destroyed while proxies still attached:
wl_display@1 still attached
warning: queue 0x557a4efbcf70 destroyed while proxies still attached:
zwp_linux_dmabuf_feedback_v1@18 still attached
PR: 269877
Obtained from: upstream (mesa-23.1.0)
Exp-run by: antoine
Approved by: manu
graphics/mesa-dri: fix Wayland warnings on exit after d2c3c81a5310
warning: queue 0x562a5ed2cd20 destroyed while proxies still attached:
wl_display@1 still attached
warning: queue 0x557a4efbcf70 destroyed while proxies still attached:
zwp_linux_dmabuf_feedback_v1@18 still attached
PR: 269877
Obtained from: upstream (mesa-23.1.0)
Exp-run by: antoine
Approved by: manu
graphics/mesa-dri: Remove upstreamed patch
I somehow didn't had the commit that added this patch on my test branch so
forgot to remove it.
Reported by: Michael Butler <imb@protected-networks.net>
Sponsored by: Beckhoff Automation GmbH & Co. KG
graphics/mesa-dri: Fix a crash for radeon r600 graphic cards.
Add an upstream patch to fix an immediate crash of Xorg and wayland
on systems with radeon r600 based graphic cards. See:
https://gitlab.freedesktop.org/mesa/mesa/-/issues/7931
PR: 268327
Number of commits found: 236 (showing only 100 on this page)