This package contains the Mesa OpenGL libraries for GLX and EGL clients.
These include libEGL, libGL, and libglesv2 as well as utlity libraries
libglapi and gbm.
===> The following configuration options are available for mesa-libs-26.2.2_1:
ZSTD=on: Use ZSTD for shader cache
====> Options available for the group PLATFORM
X11=on: Enable X11 support for GBM/EGL
WAYLAND=on: Enable Wayland support for GBM/EGL
===> Use 'make config' to modify these settings
Affects: users of graphics/mesa-libs and x11/nvidia-driver
Author: kbowling@FreeBSD.org
Reason:
Some libraries from mesa-libs are now provided by libglvnd while
others were renamed. nvidia-driver already used libglvnd but bundled
a copy which is now provided as a separate package. When building
outside poudriere make sure to remove mesa-libs and nvidia-driver
first in order to avoid conflict with libglvnd.
For portmaster users:
# pkg delete -f mesa-libs nvidia-driver
# portmaster -a
For portupgrade users:
# pkg delete -f mesa-libs nvidia-driver
# portupgrade -a
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-libs: force rebuild on -CURRENT after 13d55b0eaa13
$ glxgears
Error: couldn't get an RGB, Double-buffered visual
$ glmark2-wayland
Error: eglGetDisplay() failed with error: 0x3000
Error: main: Could not initialize canvas
$ kmscube
MESA-LOADER: failed to open iris: /usr/local/lib/libglapi.so.0: Unsupported
relocation type 36 in non-PLT relocations
(search paths /usr/local/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /usr/local/lib/libglapi.so.0:
Unsupported relocation type 36 in non-PLT relocations
(search paths /usr/local/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /usr/local/lib/libglapi.so.0: Unsupported
relocation type 36 in non-PLT relocations
(search paths /usr/local/lib/dri, suffix _dri)
failed to initialize GBM
PR: 282316
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: 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: 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-libs: Fix LIB_DEPENDS
Mesa itself does not depend on libOpenGL.so from libglvnd but it needs
libglvnd at build stage.
Also it doesn't not depend on libwayland-egl.so but on libwayland-server.so
and libwayland-client.so
Differential Revision: https://reviews.freebsd.org/D44831
PR: 278324
Reported by: autodep
Reviewed by: bapt
Sponsored by: Beckhoff Automation GmbH & Co. KG
graphics/mesa-libs: Add USES=llvm,noexport
It was set in Makefile.common from mesa-dri before
Reported by: jbeich
Fixes: 6e38f0a6247d ("graphics/mesa*: Drop llvm,noexport in Makefile.common")
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 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: Do not add USE_LDCONFIG for every mesa ports
Not every mesa ports provides shared libraries intented for dynamic uses
so stop running ldconfig script for those ports.
Sponsored by: Beckhoff Automation GmbH & Co. KG
graphics/mesa*: Stop using meson native-file
Use BINARY_ALIAS instead, this is cleaner.
While here directly record the deps on libLLVM for packages that
needs it.
Sponsored by: Beckhoff Automation GmbH & Co. KG
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
graphics: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Abel Chow <ozsanh45vds001@sneakemail.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
* Ade Lovett <ade@lovett.com>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Hayward <xelah@xelah.com>
* Alex Ivasyuv <siegerstein@pochta.ru>
* Alex Samorukov <samm@os2.kiev.ua>
(Only the first 15 lines of the commit message are shown above )
graphics: Make libglvnd a LIB_DEPEND
There are still some incoming reports of dep issues when upgrading
old systems. This should help with dep solving and getting past the
file conflicts.
Reviewed by: jbeich, x11 (manu)
Differential Revision: https://reviews.freebsd.org/D31465
graphics/mesa-libs: Add back patch for iris
Due to how the mesa ports are split we need to patch meson files so
iris is prefered on compatible intel GPU.
PR: 257462
mesa*: Update to 21.1.5
- swrast is only a gallium driver now.
- Bump needed llvm to 12
- libclc is still a llvm10, moving to >10 needs to change
from where we pick libclc as its now part of llvm
Differential Revision: https://reviews.freebsd.org/D31165
Reviewed by: kbowling, zeising
mesa-*: Update to 20.2.3
- Fix mesa-gallium-va and mesa-gallium-vdpau for X11 usage
- Add a patch so iris will be prefered for compatible intel GPUs (>=broadwell)
PR: 250307250325
graphics/mesa*: Add Iris Gallium driver and libunwind for more arch
Iris is the prefered gallium driver for Intel Gen8 to Gen11, add it
to the build. [1]
Add libunwind support for more arch. [2]
PR: 250307 [1], 250305 [2]
Submitted by: jbeich [2]
Reported by: jbeich [1]
Reviewed by: zeising
graphics/mesa*: Update to 20.2
Update to 20.2
Move graphics/libxatracker to graphics/mesa-gallium-xa
Remove VAAPI and VDPAU options in mesa-libs in favor of
two new ports : mesa-gallium-va and mesa-gallium-vdpau
Bump needed llvm to llvm10
Change a lot of meson option from false to disabled as it's
deprecated.
Remove the drm and surfaceless platform from mesa* as it's always
enabled now.
Add zstd option, used for shader cache.
Reviewed by: x11 (zeising@)
Differential Revision: https://reviews.freebsd.org/D26682
mesa-libs: Add glesv1 lib
There is no real reason to disable glesv1 so add it to the build.
While here add a USE_GL for it.
Reviewed by: zeising
Approved by: x11 (zeising@)
Differential Revision: https://reviews.freebsd.org/D26461
mesa*: Only add x11 dependancy if it's requested
This allow to have a full setup without any x11 deps.
PR: 247029
Reviewed by: zeising
Approved by: x11 (zeising@)
Differential Revision: https://reviews.freebsd.org/D26438
graphics/mesa: Fix minor issues from meson switch
Fix a couple of minor issues with mesa related ports after the switch to
meson.
Define _GNU_SOURCE when building on FreeBSD. This fixes blur effects in
Plasma 5 and issues with the SDDM greeter. This fix was originally applied
in r516100 but got lost in the switch to meson. [1]
Properly detect sys/sysctl.h on FreeBSD. On FreeBSD sys/sysctl.h needs
sys/types.h as well, patch the meson build script to take this into account.
Fix a broken sed command to properly set ${LOCALBASE}/etc and
${LOCALBASE}/share/ as appropriate.
Bump portrevision of all mesa related ports.
PR: 247138 [1]
Reported by: Roman [1]
Reviewed by: manu
Tested by: Roman, Serge Volkov
Differential Revision: https://reviews.freebsd.org/D25265
mesa: Fix build empty DRI_DRIVER
In some cases, such as on sparc64, armv6 and armv7 etc, DRI_DRIVER,
GALLIUM_DRIVER and/or VULKAN_DRIVER might be undefined. This causes an
error similar to
make: "/usr/ports/graphics/mesa-dri/Makefile" line 106: Malformed conditional
(${DRI_DRIVERS:M${:UI915}})
Fix this by checking if [DRI,GALLIUM,VULKAN]_DRIVER is defined before
checking what it is set to.
While here, remove textproc/py-mako dependency from mesa-dri/Makefile, it's
already included in mesa-dri/Makefile.common, no need to depend on it twice.
PR: 247117
Reported by: jbeich
mesa*: Add platforms option
Mesa support different platforms, add some options that control which one
we are enabling and build the -Dplatform meson arg based on that.
Keep the WAYLAND option for now but if you're using it switch to the
newly created PLATFORM_WAYLAND.
PR: 246969
Approved by: zeising (x11@ implicit)
mesa*: Switch to meson
Upstream switched to meson for their build system so do the same as
it will be easier to find problems sooner than later.
This also switch to python3, python is only used for the build.
There is more thing enabled by default (or auto-enabled based on some
configuration) so we need to disable a lot more things than with autotools.
This should be a non functional change.
Reviewed by: zeising (x11@)
Differential Revision: https:/reviews.freebsd.org/D25092
graphics/libglvnd: add new port
Submitted by: Greg V <greg@unrelenting.technology>
libglvnd is a vendor-neutral dispatch layer for arbitrating OpenGL API calls
between multiple vendors. It allows multiple drivers from different vendors to
coexist on the same filesystem, and determines which vendor to dispatch each
API call to at runtime.
Both GLX and EGL are supported, in any combination with OpenGL and OpenGL ES.
https://gitlab.freedesktop.org/glvnd/libglvnd
graphics/mesa: Update to 19.0.8
Update mesa and related ports to 19.0.8.
This is the last version where the autotools build system is being used.
This serves as a stepping stone for reworking the ports to use the meson
build system and to enable further updates.
PR: 235570
Submitted by: jbeich (with minor changes)
Differential Revision: https://reviews.freebsd.org/D19099https://reviews.freebsd.org/D19100
graphics/mesa-libs: fix build on powerpc head
Clang currently lacks atomic functions on powerpc, making build fail:
u_atomic.c:64:1: error: definition of builtin function
'__sync_val_compare_and_swap_8'
Use GCC for now.
graphics/mesa-libs: Change default to use DRI3
Change the default mesa configuration to use DRI3 rather than the older DRI2
interface. This should improve performance somewhat, and alleviates the need
for the FIXDRM option in x11-servers/xorg-server.
Remove the FIXDRM option from x11-servers/xorg-server.
Add an UPDATING entry for the change.
For users of graphics/drm-legacy-kmod or the base graphics drivers, this might
cause regressions. If you experience problems when running OpenGL applications
please force the use of the DRI2 backend by setting the LIBGL_DRI3_DISABLE
environment variable to 1 before starting any OpenGL application. This is
easiest done by adding it to your shell startup file or .xinitrc.
Add UPDATING entry for xorg-server, detailing the change of device
configuration backend.
PR: 196678, 244306 (for tracking)
graphics/mesa: Add -D_GNU_SOURCE to compile flags
Add -D_GNU_SOURCE to compile flags when building on FreeBSD. This is needed
to have mesa work with various locales, that for instance use , instead of .
as a decmal separator.
Bump portrevision on all mesa related ports.
PR: 241506
Reported by: Jesper Schmitz Mouridsen
MFH: 2019Q4
Bump remaining mesa ports after llvm version change
Bump these mesa ports as well, to ensure that they are rebuilt with the
correct llvm port.
This was missed in r513776
PR: 239682
MFH: 2019Q4 (implicit, fix for earlier commits)
Switch mesa and related ports to llvm80
Switch mesa over to use llvm80 instead of llvm60. Make it use the
global LLVM_DEFAULT instead of deciding for ourself which llvm version
to use. [1]
Fix build of lang/beginet [1]
Add patch from upstream to fix build of devel/libclc. The patch is taken
from the git mirror of devel/libclc rather than the SVN repo, for
convenience.
Add a patch from mesa upstream preventing certain error messages when using
amdgpu [2]
(Only the first 15 lines of the commit message are shown above )
graphics/mesa-libs: enable WAYLAND by default here and in consumers
PR: 227509
Requested by: Johannes Lundberg, Greg V
Reviewed by: tobik (earlier version)
Approved by: madpilot, x11 (zeising), maintainer timeout (2 weeks)
Exp-run by: antoine
Enable libEGL for all platforms
Enable libEGL build for all platforms, even those without llvm. Previously
it was disabled on those platforms. This has been tested on sparc64.
Remove the EGL option completely.
PR: 232729
Submitted by: jbeich
Tested by: Yoshihiko Iwama (sparc64 support)
Change x11/xorgproto to become a build dep
Change x11/xorgproto to become a build time dependency when added to
USE_XORG. Change the dependency to be on the port, rather than a file the
port installs.
Fix fallout.
Bump portrevision on depending ports.
PR: 230909
Reviewed by: eadler
Approved by: portmgr (antoine)
Obtained
from: https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto
exp-run: antoine
Differential Revision: https://reviews.freebsd.org/D16906
Fix build with lld linker on i386
Fix the build with the lld linker on i386. This is done by adding an option
to the linker to allow relocations in read-only segments, since there are
some assembler code that's not PIC.
the gnu ld linker does this by default.
PR: 230239
Submitted by: emaste
Switch to xorgproto instead of individual packages
Upstream used to distribute protocol headers as separate packages, but has
decided to merge those to a common package, named xorgproto. This update
tracks that change.
* Add a new port, x11/xorgproto, with are protocol headers for xorg.
* Hook the new protocol port to the build and to infrastructure in
bsd.xorg.mk.
* Update all ports with a dependency on any of the old *proto packages to
instead depend on xorgproto. Bump portrevision.
* Delete the old *proto packages, update MOVED.
PR: 230023
Submitted by: zeising
Approved by: portmgr (antoine)
exp-run by: antoine
Update the Mesa ports to 17.2.2
Mesa supports both llvm40 and llvm50. The former remains the default as it's
what the OpenCL ports currently require and it's available on more platforms.
Update the Mesa ports to 17.1.0
* restrict use of LLVM for Gallium to platforms with LLVM in base to fix
runtime errors when Gallium is built with a mix of GCC and LLVM
* make LLVM only a BUILD_DEPEND for mesa-libs, which needs it to build EGL
* add pkg-plist entries for freedreno and vc4 drivers [1]
* remove extraneous SHEBANG_FILES entry to fix build of freedreno [2,3]
* correct typo in libosmesa, which may have affected the Gallium build [4]
PR: 219247 [1], 219406 [3]
Submitted by: jbeich [1] (2 patches, pkg-plist fix), strejda (vc4 CFLAGS)
Reported by: strejda [2], andrew [3], linimon [4]
Approved by: swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10842
Consolidate the Mesa ports, update to 17.0.4, and add Wayland option
* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs,
graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted
* mesa-libs has a new WAYLAND option that enables platform support in libEGL
* mesa-dri now depends on graphics/s2tc for compressed texture support [1]
* re-remove obsolete dependency on makedepends [2]
* correct sed fix backported from 17.1 [3]
PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3]
Submitted by: dbn [1], jbeich [2,3]
Reported by: afiskon@devzen.ru [1]
Reviewed by: kwm, johalun0@gmail.com
Approved by: portmgr, swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10448