aboutsummaryrefslogtreecommitdiff
path: root/graphics/mesa-dri
diff options
context:
space:
mode:
authorMatthew Rezny <rezny@FreeBSD.org>2017-12-25 23:30:54 +0000
committerMatthew Rezny <rezny@FreeBSD.org>2017-12-25 23:30:54 +0000
commit410afd0d3b299aca5be8d4d8f80a19ab76ddd388 (patch)
treef4f2a30d50932bb7700dc02a05ef701cf2389593 /graphics/mesa-dri
parent1211d5f1a04cc2596d03c7c45267db8b9a50a7d0 (diff)
Notes
Diffstat (limited to 'graphics/mesa-dri')
-rw-r--r--graphics/mesa-dri/Makefile5
-rw-r--r--graphics/mesa-dri/Makefile.common6
-rw-r--r--graphics/mesa-dri/Makefile.targets5
-rw-r--r--graphics/mesa-dri/distinfo6
-rw-r--r--graphics/mesa-dri/files/patch-configure8
-rw-r--r--graphics/mesa-dri/files/patch-include_GL_internal_dri__interface.h6
-rw-r--r--graphics/mesa-dri/files/patch-src_egl_drivers_dri2_platform__x11.c10
-rw-r--r--graphics/mesa-dri/files/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c10
-rw-r--r--graphics/mesa-dri/files/patch-src_glx_glxext.c10
-rw-r--r--graphics/mesa-dri/files/patch-src_intel_Makefile.in4
-rw-r--r--graphics/mesa-dri/files/patch-src_mesa_main_compiler.h12
-rw-r--r--graphics/mesa-dri/files/patch-src_util_build__id.c4
12 files changed, 41 insertions, 45 deletions
diff --git a/graphics/mesa-dri/Makefile b/graphics/mesa-dri/Makefile
index ce25dcac09cc..ffafbbe424ab 100644
--- a/graphics/mesa-dri/Makefile
+++ b/graphics/mesa-dri/Makefile
@@ -7,8 +7,8 @@ CATEGORIES= graphics
COMMENT= OpenGL hardware acceleration drivers for DRI2+
-USE_XORG= dri2proto dri3proto glproto presentproto x11 xcb xdamage xext \
- xfixes xshmfence xv xvmc xxf86vm
+USE_XORG= dri2proto dri3proto glproto presentproto x11 xdamage xext \
+ xfixes xshmfence xv xvmc
OPTIONS_DEFINE= TEXTURE VAAPI VDPAU
OPTIONS_DEFAULT=TEXTURE
@@ -19,6 +19,7 @@ TEXTURE_CONFIGURE_ENABLE= texture-float
VAAPI_CONFIGURE_ENABLE= va
VAAPI_LIB_DEPENDS= libva.so:multimedia/libva
+VAAPI_USE= XORG=xcb
VDPAU_CONFIGURE_ENABLE= vdpau
VDPAU_LIB_DEPENDS= libvdpau.so:multimedia/libvdpau
diff --git a/graphics/mesa-dri/Makefile.common b/graphics/mesa-dri/Makefile.common
index d10612b537ac..53e928f707f1 100644
--- a/graphics/mesa-dri/Makefile.common
+++ b/graphics/mesa-dri/Makefile.common
@@ -14,7 +14,7 @@
MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/}
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/}
-MESABASEVERSION= 17.3.0
+MESABASEVERSION= 17.3.1
# if there is a subversion, don't include the '-' between 7.11-rc2.
MESASUBVERSION=
@@ -45,7 +45,7 @@ LIB_DEPENDS+= libelf.so:devel/libelf
.endif
USES+= compiler:c++11-lib bison gettext-tools gmake libtool \
- localbase pathfix pkgconfig python:2,build shebangfix tar:xz
+ localbase pathfix pkgconfig python:2.7,build shebangfix tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
@@ -77,7 +77,7 @@ INSTALL_TARGET= install-strip
# need LLVM for libEGL wherever possible, but mixing GCC and LLVM breaks Gallium
.if ${CHOSEN_COMPILER_TYPE} == clang \
|| (${COMPONENT} == libs && ${ARCH} != sparc64) # no working LLVM
-MESA_LLVM_VER?= 40
+MESA_LLVM_VER?= 50
.endif
.if "${MESA_LLVM_VER}" != ""
diff --git a/graphics/mesa-dri/Makefile.targets b/graphics/mesa-dri/Makefile.targets
index bed4b2b41503..fbb3cada941a 100644
--- a/graphics/mesa-dri/Makefile.targets
+++ b/graphics/mesa-dri/Makefile.targets
@@ -3,7 +3,10 @@
# this file holds common targets
post-patch:
-# Use --link-static until ports/223191 is fixed
+# The LLVM docs say: "BUILD_SHARED_LIBS is only recommended for use by LLVM developers.
+# If you want to build LLVM as a shared library, you should use the LLVM_BUILD_LLVM_DYLIB option."
+# So, use the "old buggy" way, which is really the working way, whereas the SHARED_LIBS
+# approach is actually the old (before LLVM 3.9) and buggy (according to LLVM devs) way
@${REINPLACE_CMD} -e '/$$LLVM_VERSION_MAJOR -ge 4/s|test |false |' ${WRKSRC}/configure
. if ${COMPONENT} == osmesa
@${REINPLACE_CMD} -e '/$$LLVM_VERSION_MAJOR -ge 4/s|test |false |' ${WRKSRC}/configure.ac
diff --git a/graphics/mesa-dri/distinfo b/graphics/mesa-dri/distinfo
index 2981d6845208..a10f2c3c22a4 100644
--- a/graphics/mesa-dri/distinfo
+++ b/graphics/mesa-dri/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1512740951
-SHA256 (mesa-17.3.0.tar.xz) = 29a0a3a6c39990d491a1a58ed5c692e596b3bfc6c01d0b45e0b787116c50c6d9
-SIZE (mesa-17.3.0.tar.xz) = 10667896
+TIMESTAMP = 1513877589
+SHA256 (mesa-17.3.1.tar.xz) = 9ae607e0998a586fb2c866cfc8e45e6f52d1c56cb1b41288253ea83eada824c1
+SIZE (mesa-17.3.1.tar.xz) = 10669392
diff --git a/graphics/mesa-dri/files/patch-configure b/graphics/mesa-dri/files/patch-configure
index 6081f5762e5d..e3923ac7ec7e 100644
--- a/graphics/mesa-dri/files/patch-configure
+++ b/graphics/mesa-dri/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig 2017-10-02 15:49:13 UTC
+--- configure.orig 2017-12-21 17:31:27 UTC
+++ configure
-@@ -22846,7 +22846,7 @@ fi
+@@ -23308,7 +23308,7 @@ fi
case "$host_os" in
@@ -9,7 +9,7 @@
dri3_default=yes
;;
*)
-@@ -26399,9 +26399,19 @@ if test "x$enable_opencl" = xyes; then
+@@ -27028,9 +27028,19 @@ if test "x$enable_opencl" = xyes; then
as_fn_error $? "cannot enable OpenCL without Gallium" "$LINENO" 5
fi
@@ -29,7 +29,7 @@
if test "x$have_libclc" = xno; then
as_fn_error $? "pkg-config cannot find libclc.pc which is required to build clover.
-@@ -26464,9 +26474,6 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -27096,9 +27106,6 @@ rm -f core conftest.err conftest.$ac_obj
CLANG_LIBDIR=${LLVM_LIBDIR}
fi
CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION}
diff --git a/graphics/mesa-dri/files/patch-include_GL_internal_dri__interface.h b/graphics/mesa-dri/files/patch-include_GL_internal_dri__interface.h
index 292d66dd6d2b..e6cc2444f8d0 100644
--- a/graphics/mesa-dri/files/patch-include_GL_internal_dri__interface.h
+++ b/graphics/mesa-dri/files/patch-include_GL_internal_dri__interface.h
@@ -1,7 +1,7 @@
GCC on 9.x doesn't allow types to be overwritten, these types are defined
in drm.h also, which causes build issues in xorg-server.
---- include/GL/internal/dri_interface.h.orig 2016-11-10 22:05:17 UTC
+--- include/GL/internal/dri_interface.h.orig 2017-12-21 17:31:21 UTC
+++ include/GL/internal/dri_interface.h
@@ -40,13 +40,7 @@
#ifndef DRI_INTERFACE_H
@@ -15,5 +15,5 @@ in drm.h also, which causes build issues in xorg-server.
-typedef struct drm_clip_rect drm_clip_rect_t;
-#endif
- /**
- * \name DRI interface structures
+ #include <stdint.h>
+
diff --git a/graphics/mesa-dri/files/patch-src_egl_drivers_dri2_platform__x11.c b/graphics/mesa-dri/files/patch-src_egl_drivers_dri2_platform__x11.c
index 9044fc35ae37..62ef848b9f37 100644
--- a/graphics/mesa-dri/files/patch-src_egl_drivers_dri2_platform__x11.c
+++ b/graphics/mesa-dri/files/patch-src_egl_drivers_dri2_platform__x11.c
@@ -1,14 +1,16 @@
# work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627
#
---- src/egl/drivers/dri2/platform_x11.c.orig 2017-10-23 13:21:18 UTC
+--- src/egl/drivers/dri2/platform_x11.c.orig 2017-12-21 17:31:21 UTC
+++ src/egl/drivers/dri2/platform_x11.c
-@@ -1462,6 +1462,9 @@ dri2_initialize_x11(_EGLDriver *drv, _EGLDisplay *disp
+@@ -1462,7 +1462,11 @@ dri2_initialize_x11(_EGLDriver *drv, _EG
if (!disp->Options.UseFallback) {
#ifdef HAVE_DRI3
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(__DRM_NEXT__)
-+ if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false))
-+#endif
++ if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false) && !env_var_as_boolean("LIBGL_DRI3_DISABLE", false))
++#else
if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false))
++#endif
initialized = dri2_initialize_x11_dri3(drv, disp);
#endif
+
diff --git a/graphics/mesa-dri/files/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c b/graphics/mesa-dri/files/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c
index 81fb99f418f6..c5ad70045a18 100644
--- a/graphics/mesa-dri/files/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c
+++ b/graphics/mesa-dri/files/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c
@@ -25,9 +25,9 @@ Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
---- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c.orig 2017-10-02 15:49:02 UTC
+--- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c.orig 2017-12-21 17:31:21 UTC
+++ src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
-@@ -214,6 +214,14 @@ pipe_loader_drm_probe_fd(struct pipe_loa
+@@ -207,6 +207,14 @@ pipe_loader_drm_probe_fd(struct pipe_loa
}
static int
@@ -42,7 +42,7 @@ Reviewed-by: Francisco Jerez <currojerez@riseup.net>
open_drm_render_node_minor(int minor)
{
char path[PATH_MAX];
-@@ -225,8 +233,15 @@ open_drm_render_node_minor(int minor)
+@@ -218,8 +226,15 @@ open_drm_render_node_minor(int minor)
int
pipe_loader_drm_probe(struct pipe_loader_device **devs, int ndev)
{
@@ -59,7 +59,7 @@ Reviewed-by: Francisco Jerez <currojerez@riseup.net>
for (i = DRM_RENDER_NODE_MIN_MINOR, j = 0;
i <= DRM_RENDER_NODE_MAX_MINOR; i++) {
struct pipe_loader_device *dev;
-@@ -240,6 +255,9 @@ pipe_loader_drm_probe(struct pipe_loader
+@@ -233,6 +248,9 @@ pipe_loader_drm_probe(struct pipe_loader
continue;
}
@@ -69,7 +69,7 @@ Reviewed-by: Francisco Jerez <currojerez@riseup.net>
if (j < ndev) {
devs[j] = dev;
} else {
-@@ -249,6 +267,46 @@ pipe_loader_drm_probe(struct pipe_loader
+@@ -242,6 +260,46 @@ pipe_loader_drm_probe(struct pipe_loader
j++;
}
diff --git a/graphics/mesa-dri/files/patch-src_glx_glxext.c b/graphics/mesa-dri/files/patch-src_glx_glxext.c
index 99bf096953ec..05ba1fbf75fd 100644
--- a/graphics/mesa-dri/files/patch-src_glx_glxext.c
+++ b/graphics/mesa-dri/files/patch-src_glx_glxext.c
@@ -1,14 +1,16 @@
# work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627
#
---- src/glx/glxext.c.orig 2017-10-23 13:21:18 UTC
+--- src/glx/glxext.c.orig 2017-12-21 17:31:21 UTC
+++ src/glx/glxext.c
-@@ -920,6 +920,9 @@ __glXInitialize(Display * dpy)
+@@ -920,7 +920,11 @@ __glXInitialize(Display * dpy)
#if defined(GLX_USE_DRM)
if (glx_direct && glx_accel) {
#if defined(HAVE_DRI3)
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(__DRM_NEXT__)
-+ if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false))
-+#endif
++ if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false) && !env_var_as_boolean("LIBGL_DRI3_DISABLE", false))
++#else
if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false))
++#endif
dpyPriv->dri3Display = dri3_create_display(dpy);
#endif /* HAVE_DRI3 */
+ dpyPriv->dri2Display = dri2CreateDisplay(dpy);
diff --git a/graphics/mesa-dri/files/patch-src_intel_Makefile.in b/graphics/mesa-dri/files/patch-src_intel_Makefile.in
index ccd48030361c..ac0465b81775 100644
--- a/graphics/mesa-dri/files/patch-src_intel_Makefile.in
+++ b/graphics/mesa-dri/files/patch-src_intel_Makefile.in
@@ -4,9 +4,9 @@ half_float.c:(.text+0xbf): undefined reference to `lrintf'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: *** [Makefile:2706: tools/aubinator_error_decode] Error 1
---- src/intel/Makefile.in.orig 2017-10-23 13:21:32 UTC
+--- src/intel/Makefile.in.orig 2017-12-24 10:29:12 UTC
+++ src/intel/Makefile.in
-@@ -1975,7 +1975,8 @@ tools_aubinator_error_decode_LDADD = \
+@@ -1977,7 +1977,8 @@ tools_aubinator_error_decode_LDADD = \
compiler/libintel_compiler.la \
$(top_builddir)/src/util/libmesautil.la \
$(PTHREAD_LIBS) \
diff --git a/graphics/mesa-dri/files/patch-src_mesa_main_compiler.h b/graphics/mesa-dri/files/patch-src_mesa_main_compiler.h
deleted file mode 100644
index 7f8b47633a31..000000000000
--- a/graphics/mesa-dri/files/patch-src_mesa_main_compiler.h
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/mesa/main/compiler.h.orig 2017-05-10 14:13:57 UTC
-+++ src/mesa/main/compiler.h
-@@ -51,6 +51,9 @@
- #if defined(__linux__)
- #include <byteswap.h>
- #define CPU_TO_LE32( x ) bswap_32( x )
-+#elif defined(__FreeBSD__)
-+#include <sys/endian.h>
-+#define CPU_TO_LE32( x ) bswap32( x )
- #elif defined(__APPLE__)
- #include <CoreFoundation/CFByteOrder.h>
- #define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x )
diff --git a/graphics/mesa-dri/files/patch-src_util_build__id.c b/graphics/mesa-dri/files/patch-src_util_build__id.c
index 7a51f30b39d7..b5d3ecace969 100644
--- a/graphics/mesa-dri/files/patch-src_util_build__id.c
+++ b/graphics/mesa-dri/files/patch-src_util_build__id.c
@@ -1,8 +1,8 @@
# Elf_ doesn't exist, use Elf32_ or Elf64_
#
---- src/util/build_id.c.orig 2017-05-10 14:13:58 UTC
+--- src/util/build_id.c.orig 2017-12-21 17:31:22 UTC
+++ src/util/build_id.c
-@@ -33,7 +33,11 @@
+@@ -34,7 +34,11 @@
#endif
#ifndef ElfW