forked from Lainports/freebsd-ports
graphics/mesa: Update to 21.3.4
This is the last mesa release with DRI drivers, next one will only have the gallium drivers. Release notes for 21.2.0: https://lists.freedesktop.org/archives/mesa-dev/2021-August/225459.html Release notes for 21.2.1: https://lists.freedesktop.org/archives/mesa-dev/2021-September/225480.html Release notes for 21.2.2: https://lists.freedesktop.org/archives/mesa-dev/2021-September/225490.html Release notes for 21.2.3: https://lists.freedesktop.org/archives/mesa-dev/2021-September/225495.html Release notes for 21.2.4: https://lists.freedesktop.org/archives/mesa-dev/2021-October/225532.html Release notes for 21.2.5: https://lists.freedesktop.org/archives/mesa-dev/2021-October/225555.html Release notes for 21.2.6: https://lists.freedesktop.org/archives/mesa-dev/2021-November/225580.html Release notes for 21.3.0: https://lists.freedesktop.org/archives/mesa-dev/2021-November/225574.html Release notes for 21.3.1: https://lists.freedesktop.org/archives/mesa-dev/2021-December/225581.html Release notes for 21.3.2: https://lists.freedesktop.org/archives/mesa-dev/2021-December/225603.html Release notes for 21.3.3: https://lists.freedesktop.org/archives/mesa-dev/2021-December/225612.html Release notes for 21.3.4: https://lists.freedesktop.org/archives/mesa-dev/2022-January/225635.html MFH: 2022Q1 Reviewed by: zeising (privately) Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33332
This commit is contained in:
parent
3fc3cfad60
commit
e9669c2a0b
10 changed files with 33 additions and 72 deletions
|
|
@ -29,7 +29,7 @@ ZSTD_MESON_ENABLED= zstd
|
|||
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
||||
|
||||
ALL_DRI_DRIVERS= I915 I965 R100 R200
|
||||
ALL_GALLIUM_DRIVERS= IRIS R300 R600 RADEONSI SVGA SWRAST
|
||||
ALL_GALLIUM_DRIVERS= CROCUS IRIS R300 R600 RADEONSI SVGA SWRAST
|
||||
ALL_VULKAN_DRIVERS= INTEL AMD
|
||||
|
||||
GALLIUM_DRIVERS+= SWRAST # llvmpipe
|
||||
|
|
@ -50,7 +50,7 @@ MESON_ARGS+= -Dgallium-xvmc=enabled
|
|||
.endif
|
||||
.if ${ARCH} == amd64 || ${ARCH} == i386
|
||||
DRI_DRIVERS+= I915 I965
|
||||
GALLIUM_DRIVERS+= IRIS SVGA
|
||||
GALLIUM_DRIVERS+= CROCUS IRIS SVGA
|
||||
VULKAN_DRIVERS+= INTEL
|
||||
.endif
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/}
|
||||
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/}
|
||||
|
||||
MESABASEVERSION= 21.1.8
|
||||
MESABASEVERSION= 21.3.4
|
||||
# if there is a subversion, don't include the '-' between 7.11-rc2.
|
||||
MESASUBVERSION=
|
||||
|
||||
|
|
@ -25,6 +25,9 @@ DISTFILES= mesa-${MESADISTVERSION}${EXTRACT_SUFX}
|
|||
|
||||
MAINTAINER= x11@FreeBSD.org
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/docs/license.rst
|
||||
|
||||
COMPONENT= ${PORTNAME:tl:C/^lib//:C/mesa-//}
|
||||
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs \
|
||||
|
|
@ -85,7 +88,7 @@ PKGDEINSTALL= ${.CURDIR}/pkg-deinstall
|
|||
|
||||
BINARY_ALIAS+= python3=${PYTHON_VERSION}
|
||||
|
||||
LLVM_DEFAULT= 12
|
||||
LLVM_DEFAULT= 13
|
||||
BUILD_DEPENDS+= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
|
||||
.if ${COMPONENT} != libs
|
||||
RUN_DEPENDS+= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1633514529
|
||||
SHA256 (mesa-21.1.8.tar.xz) = 5cd32f5d089dca75300578a3d771a656eaed652090573a2655fe4e7022d56bfc
|
||||
SIZE (mesa-21.1.8.tar.xz) = 15410504
|
||||
TIMESTAMP = 1642339994
|
||||
SHA256 (mesa-21.3.4.tar.xz) = 77104fd4a93bce69da3b0982f8ee88ba7c4fb98cfc491a669894339cdcd4a67d
|
||||
SIZE (mesa-21.3.4.tar.xz) = 16497248
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
--- meson.build.orig 2021-06-30 18:18:55 UTC
|
||||
+++ meson.build
|
||||
@@ -161,7 +161,7 @@ if dri_drivers.contains('auto')
|
||||
if system_has_kms_drm
|
||||
# TODO: PPC, Sparc
|
||||
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
||||
- dri_drivers = ['i915', 'i965', 'r100', 'r200', 'nouveau']
|
||||
+ dri_drivers = ['i915', 'i965', 'r100', 'r200']
|
||||
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||||
dri_drivers = []
|
||||
elif ['mips', 'mips64'].contains(host_machine.cpu_family())
|
||||
@@ -193,7 +193,7 @@ if gallium_drivers.contains('auto')
|
||||
# TODO: PPC, Sparc
|
||||
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
||||
gallium_drivers = [
|
||||
- 'r300', 'r600', 'radeonsi', 'nouveau', 'virgl', 'svga', 'swrast',
|
||||
+ 'r300', 'r600', 'radeonsi', 'virgl', 'svga', 'swrast',
|
||||
'iris'
|
||||
]
|
||||
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||||
@@ -1041,7 +1041,6 @@ else
|
||||
'-Werror=incompatible-pointer-types',
|
||||
'-Werror=int-conversion',
|
||||
'-Wimplicit-fallthrough',
|
||||
- '-Werror=thread-safety',
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-format-truncation',
|
||||
'-fno-math-errno',
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- src/gallium/include/pipe/p_compiler.h.orig 2022-01-16 11:29:08 UTC
|
||||
+++ src/gallium/include/pipe/p_compiler.h
|
||||
@@ -170,7 +170,7 @@ typedef unsigned char boolean;
|
||||
* aligned, but we only want to align the field.
|
||||
*/
|
||||
#define EXCLUSIVE_CACHELINE(decl) \
|
||||
- union { char __cl_space[CACHE_LINE_SIZE]; \
|
||||
+ union { char __cl_space[MESA_CACHE_LINE_SIZE]; \
|
||||
decl; }
|
||||
|
||||
#if defined(__GNUC__)
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
--- src/intel/compiler/brw_nir_lower_shader_calls.c.orig 2021-06-30 18:18:55 UTC
|
||||
+++ src/intel/compiler/brw_nir_lower_shader_calls.c
|
||||
@@ -151,6 +151,12 @@ instr_is_shader_call(nir_instr *instr)
|
||||
intrin->intrinsic == nir_intrinsic_execute_callable;
|
||||
}
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+/* brw_nir_rt.h -> glthread.h -> u_thread.h -> pthread_np.h -> sys/cpuset.h -> sys/_bitset.h
|
||||
+ * - defines `struct bitset` which clashes with the following
|
||||
+ */
|
||||
+#define bitset mesa_bitset
|
||||
+#endif
|
||||
struct bitset {
|
||||
BITSET_WORD *set;
|
||||
unsigned size;
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
--- src/loader/meson.build.orig 2020-12-03 18:59:28.209491000 +0100
|
||||
+++ src/loader/meson.build 2020-12-03 18:59:40.685431000 +0100
|
||||
@@ -41,7 +41,7 @@
|
||||
'-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path),
|
||||
]
|
||||
|
||||
-if with_gallium_iris and get_option('prefer-iris')
|
||||
+if get_option('prefer-iris')
|
||||
loader_c_args += ['-DPREFER_IRIS']
|
||||
endif
|
||||
|
||||
10
graphics/mesa-dri/files/patch-src_util_macros.h
Normal file
10
graphics/mesa-dri/files/patch-src_util_macros.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--- src/util/macros.h.orig 2022-01-16 11:28:56 UTC
|
||||
+++ src/util/macros.h
|
||||
@@ -478,6 +478,6 @@ typedef int lock_cap_t;
|
||||
#endif
|
||||
|
||||
/* TODO: this could be different on non-x86 architectures. */
|
||||
-#define CACHE_LINE_SIZE 64
|
||||
+#define MESA_CACHE_LINE_SIZE 64
|
||||
|
||||
#endif /* UTIL_MACROS_H */
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
--- src/util/os_file.c.orig 2021-06-30 18:18:56 UTC
|
||||
+++ src/util/os_file.c
|
||||
@@ -89,7 +89,7 @@ typedef ptrdiff_t ssize_t;
|
||||
static ssize_t
|
||||
readN(int fd, char *buf, size_t len)
|
||||
{
|
||||
- int err = -ENODATA;
|
||||
+ int err = -1;
|
||||
size_t total = 0;
|
||||
do {
|
||||
ssize_t ret = read(fd, buf + total, len - total);
|
||||
|
|
@ -4,6 +4,8 @@
|
|||
include/GL/internal/dri_interface.h
|
||||
@comment include/KHR/khrplatform.h
|
||||
@comment include/gbm.h
|
||||
%%CROCUS_GDRIVER%%lib/dri/crocus_dri.so
|
||||
%%I915_DRIVER%%lib/dri/i830_dri.so
|
||||
%%I915_DRIVER%%lib/dri/i915_dri.so
|
||||
%%I965_DRIVER%%lib/dri/i965_dri.so
|
||||
%%IRIS_GDRIVER%%lib/dri/iris_dri.so
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue