Commit Graph

21 Commits

Author SHA1 Message Date
Jan Beich
fc18844849 devel/libclc: revert to llvm80 as lang/clover isn't ready
Both ports need to use the same LLVM version for OpenCL to work.

Reported by:	Vasily Postnicov (on x11@ list)
Approved by:	portmgr blanket
2019-09-22 16:55:24 +00:00
Jan Beich
3f1915711d Switch default devel/llvm* to 90
PR:		239682
Reviewed by:	tobik
Differential Revision:	https://reviews.freebsd.org/D21172
2019-09-20 19:58:36 +00:00
Niclas Zeising
6db0d126a4 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]

Add a notice to bsd.default-versions.mk asking that the graphics team be
informed before the llvm version is changed.

Enable llvm and gallium on MIPS.  As far as I can tell, this used to
be the default before this change.

Bump portrevisions since dependencies changed.

PR:		230789 [1], [2]
Submitted by:	jbeich [1], tobik [2]
Obtained from:	FreeBSD Graphics Team development repo
		https://github.com/FreeBSDDesktop/freebsd-ports/commits/feature/mesa-llvm80
Sponsored by:	B3 Init (zeising)
2019-06-30 14:56:12 +00:00
Jan Beich
9e43432b2f graphics/mesa-dri: back out r494579
Landed by mistake. x11@ is immune to maintainer timeout nowadays.

PR:		230789
2019-03-04 10:56:12 +00:00
Jan Beich
24a1731ddf graphics/mesa-dri: switch to llvm70
PR:		230789
Approved by:	maintainer timeout (2 weeks)
2019-03-04 10:42:22 +00:00
Ed Maste
8399ead6f8 Add -znotext to LDFLAGS on i386, for lld
These ports link some non-PIC code, which fails with lld as it defaults
to disallowing relocations against read-only segments.  For i386 we can
just add -znotext unconditionally: for GNU BFD ld it just affirms BFD's
existing default.

PR:		214864
Approved by:	portmgr (lld blanket)
Sponsored by:	The FreeBSD Foundation
2018-09-26 16:12:12 +00:00
Matthew Rezny
410afd0d3b Update the Mesa ports to 17.3.1 and switch to LLVM5 by default
Correct dependencies: remove the cruft added to mesa-dri in the previous
commit (those are mesa-libs deps), add a RUN_DEPENDS for libclc to clover

Clean up patches, remove one stale patch
2017-12-25 23:30:54 +00:00
Niclas Zeising
1290fbe8bc Update mesa ports to 17.3.0
Add missing dependencies on xcb and xxf86vm.

Changelog for mesa: https://www.mesa3d.org/relnotes/17.3.0.html

PR:		223195
Submitted by:	jbeich
Tested by:	Greg V, cpm
2017-12-17 13:07:37 +00:00
Dmitry Marakasov
221f02e52f - Update WWW
Approved by:	portmgr blanket
2017-08-08 09:01:17 +00:00
Matthew Rezny
943c52c8cc 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
2017-05-21 19:30:54 +00:00
Matthew Rezny
e6acde078c 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
2017-05-12 18:46:53 +00:00
Matthew Rezny
ef2181dc7a Update Mesa to 17.0.3
* OpenGL 4.5 support for RadeonSI and recent Intel
* Use LLVM 4.0 by default, building with 3.9 is possible via MESA_LLVM_VER
* DRI3 remains enabled at compile time, but is now disabled at runtime for
  stock FreeBSD.  Set LIBGL_DRI3_ENABLE in the environment to enable DRI3.
  This extra check is added when compiling on stock FreeBSD, not DRM-next.
  This change was made to work around a problem in libEGL, which fails to
  fall back to using DRI2 when run on a system without DRI3 support.

Reviewed by:	jmd, mat
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D10250
2017-04-10 19:14:48 +00:00
Matthew Rezny
ce75c06578 Update Mesa to 13.0.4
* Use LLVM 3.9
* OpenGL 4.4 support for recent Intel and ReadeonSI

PR:	214581
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D9438
2017-02-11 13:31:59 +00:00
Mathieu Arnold
c1b39669d4 Cleanup BROKEN/IGNORE for 10.3-
Sponsored by:	Absolight
2017-01-03 11:01:05 +00:00
John Marino
1d2525df43 Add USES+=ssl to 3 of 8 graphics/libGL/Makefile.common consumers
Despite having a configure argument of --with-sha1=libcrypto, only three
of the eight users of graphics/libGL/Makefile.common actually link to
SSL libraries.  Individually add USES=ssl to these three ports rather
than have all 8 having this requirement.

Approved by:	SSL blanket
2016-09-15 16:16:22 +00:00
Koop Mast
6e3ae05a8e Now that the bug in llvm37 is fixed [1], clover can be enabled again on
10.1-RELEASE i386.

[1] https://svnweb.freebsd.org/changeset/ports/412196
2016-04-04 12:24:33 +00:00
Mathieu Arnold
a9dcad2fff Remove ${PORTSDIR}/ from dependencies, categories h, i, j, k, and l.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:08:37 +00:00
Koop Mast
9a96fef2ce Exclude libclc (and thus OpenCL) on 10.1 i386.
There is a wierd issue with base clang and llvm37 which stops libclc to
build on 10.1 i386. So disable it so we don't block 1500+ ports.

Submitted by:	pkg-fallout via antoine@
2016-03-29 14:14:54 +00:00
Koop Mast
f28b16021b Update Mesa to 10.6.9.
* Unbreak build on powerpc and other !x86 archs by moving the
  --with-dri-drivers logic from dri/Makefile to the
  libGL/Makefile.common file. So the settings are applied to all mesa ports,
  this was missed in the 10.6.6 update. [1]
* Don't try to enable OpenCL support on anything other then i386 and amd64. [1]
* Move the texture-float and vdpau logic to Makefile.common even if the latter
  isn't supported yet. Keep OPTIONS_DEFINE/DEFAULT in dri/Makefile since they
  need to defined before bsd.port.options.mk is included, and they only affect
  the dri modules.
* Sed on 11 and 10 supports \< and \> however sed on 9.x and dragonfly do not,
  replace the sed keywords with some magic to get the intended results. [2]

Submitted by:		marino@ [2]
Reported and tested by:	arved@ (on ppc32)[1]
2015-10-10 21:04:44 +00:00
Jimmy Olgeni
42bc424f61 Remove trailing whitespace from Makefiles, A-L. 2015-10-08 15:11:28 +00:00
Koop Mast
05360ec71e Update Mesa port to 10.6.6 and add Clover.
Add beignet 1.1.0.
Add clinfo, clblas, clfft and clrng.

The major change is that all Mesa ports are now configured the same way.
This fixes several problems and enables new features.  The details
are described in this blog post:
http://blogs.freebsdish.org/graphics/2015/03/18/unifying-mesa-ports-configure/

The second important change is the OpenCL support.  Mesa's
implementation, Clover, is enabled as well as Beignet.  Clover
targets all Gallium drivers, only Radeon GPUs in our case.  Beignet
is for Intel GPUs starting with Ivy Bridge.  Thanks to Johannes
Dieterich, O. Hartman, and Koop Mast for their work on OpenCL!  As a
bonus, there are several OpenCL-based math ports added (clblas,
clfft and clrng). For more information and known issues, please see
https://wiki.freebsd.org/Graphics/OpenCL

The third change is the removal of Mesa 9.1.7 which was installed on
FreeBSD 9.3-RELEASE.  There is now only one version of Mesa in the Ports
tree (10.6.6) for all supported versions of FreeBSD.

Other, smaller changes:

* Include libosmesa into the Mesa framework; this changes libOSMesa
  shlib version.

* bsd.mesalib.mk was renamed and split up in two files namely
  Makefile.common and Makefile.targets.  So ports can overwrite variables
  set by Makefile.common and are used by Makefile.targets.

* Some text in the pkg-descr files was wrong, clean it up.  While here,
  update the WWW to the main mesa3d.org upstream page.

* devel/clinfo was added, a glxinfo like program but for OpenCL.

Non-x86 hardware reports are very welcome since we changed the framework
quite a bit.

Obtained from:	Graphics team development repo.
2015-09-17 18:07:25 +00:00