1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Mesa 3D Graphics Library
8 HOMEPAGE= https://www.mesa3d.org/
12 SITES[main]= https://mesa.freedesktop.org/archive/
13 https://mesa.freedesktop.org/archive/17.2.7/
14 ftp://ftp.freedesktop.org/pub/mesa/17.2.7/
15 DISTFILE[1]= mesa-17.2.7.tar.xz:main
17 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= X86_DRIVERS ARM_DRIVERS
24 OPTIONS_STANDARD= X86_DRIVERS ARM_DRIVERS
25 OPT_ON[aarch64]= ARM_DRIVERS
26 OPT_ON[x86_64]= X86_DRIVERS
27 OPT_ON[i386]= X86_DRIVERS
29 BUILD_DEPENDS= libpthread-stubs:single:standard
30 libclc:single:standard
33 zlib:complete:standard
34 libelf:single:standard
35 libvdpau:single:standard
38 BUILDRUN_DEPENDS= expat:shared:standard
39 libdrm:single:standard
40 ocl-icd:primary:standard
41 opencl:single:standard
42 EXRUN[clover]= llvm40:llvm:standard
44 libelf:single:standard
46 libdrm:single:standard
47 EXRUN[drivers]= llvm40:llvm:standard
50 libelf:single:standard
51 EXRUN[osmesa]= llvm40:llvm:standard
55 USES= bison gettext-tools gmake libtool pkgconfig
56 python:py27,build shebangfix
57 c++:clover,drivers,osmesa
58 XORG_COMPONENTS= dri2proto dri3proto glproto presentproto x11 xcb
59 xdamage xext xfixes xshmfence xxf86vm xv xvmc
61 FPC_EQUIVALENT= graphics/mesa-libs
62 SHEBANG_FILES= src/gallium/*/*/*.py
63 src/gallium/tools/trace/*.py
64 src/gallium/drivers/svga/svgadump/svga_dump.py
65 src/mapi/glapi/gen/*.py
67 src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py
68 src/mesa/main/get_*.py
69 src/util/format_srgb.py
71 src/intel/genxml/gen_pack_header.py
72 SHEBANG_OLD_PYTHON= /usr/bin/env[[:space:]]python2
74 /bin/env[[:space:]]python
77 CONFIGURE_ARGS= --enable-llvm
78 --enable-texture-float
85 --with-platforms=x11,drm
86 --enable-gallium-osmesa
87 --with-llvm-prefix={{LOCALBASE}}/llvm40
88 --with-dri-drivers="{{DRI_DRIVERS:tl}}"
89 --with-gallium_drivers="{{GALLIUM_DRIVERS:tl}}"
91 INSTALL_TARGET= install-strip
92 INSTALL_REQ_TOOLCHAIN= yes
94 LDFLAGS= -Wl,-rpath={{LOCALBASE}}/llvm40/lib
96 [ARM_DRIVERS].DESCRIPTION= Build drivers for aarch64 architecture
97 [ARM_DRIVERS].MAKEFILE_ON= GALLIUM_DRIVERS+=FREEDRENO
100 [X86_DRIVERS].DESCRIPTION= Build drivers for i386 and x86_64 architectures
101 [X86_DRIVERS].CONFIGURE_ENABLE_BOTH= opencl
103 [X86_DRIVERS].MAKEFILE_ON= DRI_DRIVERS+=RADEON
107 GALLIUM_DRIVERS+=R300
108 GALLIUM_DRIVERS+=R600
109 GALLIUM_DRIVERS+=RADEONSI
110 GALLIUM_DRIVERS+=SVGA
113 @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
114 ${WRKSRC}/src/mesa/drivers/dri/common/xmlconfig.c
117 @${REINPLACE_CMD} -e 's|x86_64|amd64|' ${WRKSRC}/configure
119 [FILE:808:descriptions/desc.libs]
120 The Mesa project began as an open-source implementation of the OpenGL
121 specification - a system for rendering interactive 3D graphics.
123 Over the years the project has grown to implement more graphics APIs,
124 including OpenGL ES (versions 1, 2, 3), OpenCL, OpenMAX, VDPAU, VA API,
127 A variety of device drivers allows the Mesa libraries to be used in many
128 different environments ranging from software emulation to complete
129 hardware acceleration for modern GPUs.
131 Mesa ties into several other open-source projects: the Direct Rendering
132 Infrastructure and X.org to provide OpenGL support on Linux, FreeBSD
133 and other operating systems.
135 This package contains the Mesa OpenGL libraries for GLX and EGL clients.
136 These include libEGL, libGL, and libglesv2 as well as utlity libraries
140 [FILE:130:descriptions/desc.clover]
141 This package contains Mesa's libOpenCL implementation "Clover".
142 It is built upon GALLIUM and currently only supports Radeon GPUs.
145 [FILE:162:descriptions/desc.drivers]
146 This package contains the Mesa OpenGL libraries for GLX and EGL clients.
147 These include libEGL, libGL, and libglesv2 as well as utlity libraries
151 [FILE:591:descriptions/desc.osmesa]
152 Mesa is a 3-D graphics library with an API which is very similar to that
153 of OpenGL*. To the extent that Mesa utilizes the OpenGL command syntax or
154 state machine, it is being used with authorization from Silicon Graphics,
155 Inc. However, the author makes no claim that Mesa is in any way a
156 compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
158 This is a Off-Screen version of Mesa in order to do off-screen rendering in
159 other packages like VTK. Offscreen rendering is useful for a
160 number of things, such as batch processing, parallel processing, and
165 50cfdea8df55045797b4d0409591c04c784d9551c4da09b8178874dbe5a37a68 10353448 mesa-17.2.7.tar.xz
168 [FILE:721:manifests/plist.libs]
193 include/KHR/khrplatform.h
211 @comment lib/libwayland-egl.so
212 @comment lib/libwayland-egl.so.1
213 @comment lib/libwayland-egl.so.1.0.0
219 @comment lib/pkgconfig/wayland-egl.pc
222 [FILE:245:manifests/plist.clover]
223 %%X86_DRIVERS-ON%%etc/OpenCL/vendors/mesa.icd
224 %%X86_DRIVERS-ON%%lib/gallium-pipe/
230 %%X86_DRIVERS-ON%%lib/
233 libMesaOpenCL.so.1.0.0
236 [FILE:868:manifests/plist.drivers]
238 include/GL/internal/dri_interface.h
239 %%X86_DRIVERS-ON%%lib/dri/
242 %%ARM_DRIVERS-ON%%lib/dri/
246 %%ARM_DRIVERS-ON%%lib/dri/
248 %%X86_DRIVERS-ON%%lib/dri/
255 radeonsi_drv_video.so
258 %%ARM_DRIVERS-ON%%lib/dri/
260 %%X86_DRIVERS-ON%%lib/dri/
262 %%X86_DRIVERS-ON%%lib/
267 %%X86_DRIVERS-ON%%lib/vdpau/
271 libvdpau_r300.so.1.0.0
275 libvdpau_r600.so.1.0.0
277 libvdpau_radeonsi.so.1
278 libvdpau_radeonsi.so.1.0
279 libvdpau_radeonsi.so.1.0.0
283 [FILE:99:manifests/plist.osmesa]
289 lib/pkgconfig/osmesa.pc
292 [FILE:1408:patches/patch-configure]
293 --- configure.orig 2017-09-04 17:20:37 UTC
295 @@ -22746,7 +22746,7 @@ fi
300 +linux* | freebsd* | dragonfly*)
304 @@ -26299,9 +26299,19 @@ if test "x$enable_opencl" = xyes; then
305 as_fn_error $? "cannot enable OpenCL without Gallium" "$LINENO" 5
308 + if test "x$acv_mesa_CLANG" = xno; then
310 + GCC_VERSION=`$CC -dumpversion`
311 + if test $? -eq 0; then
312 + GCC_VERSION_MAJOR=`echo $GCC_VERSION | cut -d. -f1`
313 + GCC_VERSION_MINOR=`echo $GCC_VERSION | cut -d. -f2`
316 if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 7; then
317 as_fn_error $? "gcc >= 4.7 is required to build clover" "$LINENO" 5
319 +# end of clang test.
322 if test "x$have_libclc" = xno; then
323 as_fn_error $? "pkg-config cannot find libclc.pc which is required to build clover.
324 @@ -26364,9 +26374,6 @@ rm -f core conftest.err conftest.$ac_obj
325 CLANG_LIBDIR=${LLVM_LIBDIR}
327 CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION}
328 - if test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"; then :
329 - as_fn_error $? "Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries." "$LINENO" 5
332 if test "x$enable_opencl" = xyes; then
336 [FILE:529:patches/patch-include_GL_internal_dri__interface.h]
337 GCC on 9.x doesn't allow types to be overwritten, these types are defined
338 in drm.h also, which causes build issues in xorg-server.
340 --- include/GL/internal/dri_interface.h.orig 2016-11-10 22:05:17 UTC
341 +++ include/GL/internal/dri_interface.h
343 #ifndef DRI_INTERFACE_H
344 #define DRI_INTERFACE_H
349 -typedef unsigned int drm_context_t;
350 -typedef unsigned int drm_drawable_t;
351 -typedef struct drm_clip_rect drm_clip_rect_t;
355 * \name DRI interface structures
358 [FILE:596:patches/patch-src_egl_drivers_dri2_platform__x11.c]
359 # work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627
361 --- src/egl/drivers/dri2/platform_x11.c.orig 2017-09-04 17:20:31 UTC
362 +++ src/egl/drivers/dri2/platform_x11.c
363 @@ -1488,7 +1488,11 @@ dri2_initialize_x11(_EGLDriver *drv, _EG
365 if (!getenv("LIBGL_ALWAYS_SOFTWARE")) {
367 +#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined (__DRM_NEXT__)
368 + if (getenv("LIBGL_DRI3_ENABLE") && !getenv("LIBGL_DRI3_DISABLE"))
370 if (!getenv("LIBGL_DRI3_DISABLE"))
372 initialized = dri2_initialize_x11_dri3(drv, disp);
377 [FILE:3256:patches/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c]
378 Revert the following commit.
380 FreeBSD and DragonFly don't have the required render nodes.
384 From 69a1b9959e59653da262185c4e2cf57d24939b19 Mon Sep 17 00:00:00 2001
385 From: Emil Velikov <emil.l.velikov@gmail.com>
386 Date: Mon, 29 Jun 2015 12:36:45 +0100
387 Subject: pipe-loader: drop support for non-render node devices
389 Render nodes have been around for quite some time. Removing support via
390 the master/primary node allows us to clean up the conditional
391 compilation and simplify the build greatly.
393 For example currently we the pipe-loader, which explicitly links against
394 xcb and friends (for X auth) if found at compile-time. That
395 would cause problems as one will be forced to use X/xcb, even if it's a
396 headless system that is used for opencl.
398 v2: Clarify the linking topic in the commit message.
400 Cc: Tom Stellard <thomas.stellard@amd.com>
401 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
402 Reviewed-by: Francisco Jerez <currojerez@riseup.net>
405 --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c.orig 2017-09-04 17:20:31 UTC
406 +++ src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
407 @@ -214,6 +214,14 @@ pipe_loader_drm_probe_fd(struct pipe_loa
411 +open_drm_minor(int minor)
413 + char path[PATH_MAX];
414 + snprintf(path, sizeof(path), DRM_DEV_NAME, DRM_DIR_NAME, minor);
415 + return open(path, O_RDWR, 0);
419 open_drm_render_node_minor(int minor)
422 @@ -225,8 +233,15 @@ open_drm_render_node_minor(int minor)
424 pipe_loader_drm_probe(struct pipe_loader_device **devs, int ndev)
427 + int i, k, fd, num_render_node_devs;
431 + unsigned vendor_id;
433 + } render_node_devs[DRM_RENDER_NODE_MAX_NODES];
435 + /* Look for render nodes first */
436 for (i = DRM_RENDER_NODE_MIN_MINOR, j = 0;
437 i <= DRM_RENDER_NODE_MAX_MINOR; i++) {
438 struct pipe_loader_device *dev;
439 @@ -240,6 +255,9 @@ pipe_loader_drm_probe(struct pipe_loader
443 + render_node_devs[j].vendor_id = dev->u.pci.vendor_id;
444 + render_node_devs[j].chip_id = dev->u.pci.chip_id;
449 @@ -249,6 +267,46 @@ pipe_loader_drm_probe(struct pipe_loader
453 + num_render_node_devs = j;
455 + /* Next look for drm devices. */
456 + for (i = 0; i < DRM_MAX_MINOR; i++) {
457 + struct pipe_loader_device *dev;
458 + boolean duplicate = FALSE;
459 + fd = open_drm_minor(i);
463 + if (!pipe_loader_drm_probe_fd(&dev, fd)) {
468 + /* Check to make sure we aren't already accessing this device via
471 + for (k = 0; k < num_render_node_devs; k++) {
472 + if (dev->u.pci.vendor_id == render_node_devs[k].vendor_id &&
473 + dev->u.pci.chip_id == render_node_devs[k].chip_id) {
475 + dev->ops->release(&dev);
487 + dev->ops->release(&dev);
498 [FILE:504:patches/patch-src_gallium_auxiliary_util_u__network.c]
499 --- src/gallium/auxiliary/util/u_network.c.orig 2016-11-10 22:05:17 UTC
500 +++ src/gallium/auxiliary/util/u_network.c
502 #if defined(PIPE_SUBSYSTEM_WINDOWS_USER)
503 # include <winsock2.h>
504 # include <windows.h>
505 -#elif defined(PIPE_OS_LINUX) || defined(PIPE_OS_HAIKU) || \
506 +#elif defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_HAIKU) || \
507 defined(PIPE_OS_APPLE) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_SOLARIS)
508 # include <sys/socket.h>
509 # include <netinet/in.h>
512 [FILE:360:patches/patch-src_gallium_drivers_vc4_vc4__bufmgr.c]
513 # define ETIME as ETIMEOUT same as in intel driver
515 --- src/gallium/drivers/vc4/vc4_bufmgr.c.orig 2017-05-10 14:13:57 UTC
516 +++ src/gallium/drivers/vc4/vc4_bufmgr.c
520 #include <xf86drmMode.h>
522 +#define ETIME ETIMEDOUT
525 #include "util/u_hash_table.h"
526 #include "util/u_memory.h"
529 [FILE:1043:patches/patch-src_gallium_include_pipe_p__config.h]
530 --- src/gallium/include/pipe/p_config.h.orig 2017-09-04 17:20:31 UTC
531 +++ src/gallium/include/pipe/p_config.h
536 +#if defined(__sparc__) || defined(__sparc64__)
537 +#define PIPE_ARCH_SPARC
538 +#if defined(__sparc64__)
539 +#define PIPE_ARCH_SPARC_64
545 * Processor architecture
548 #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) || defined(PIPE_ARCH_ARM) || defined(PIPE_ARCH_AARCH64)
549 #define PIPE_ARCH_LITTLE_ENDIAN
550 -#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) || defined(PIPE_ARCH_S390)
551 +#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) || defined(PIPE_ARCH_S390) || defined(PIPE_ARCH_SPARC) || defined(PIPE_ARCH_SPARC_64)
552 #define PIPE_ARCH_BIG_ENDIAN
556 #define PIPE_OS_ANDROID
559 +#if defined(__DragonFly__)
560 +#define PIPE_OS_DRAGONFLY
562 +#define PIPE_OS_UNIX
565 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
566 #define PIPE_OS_FREEBSD
570 [FILE:1577:patches/patch-src_gallium_state__trackers_clover_llvm_invocation.cpp]
571 # fix errors like the following
573 # llvm/invocation.cpp:(.text+0x1275): undefined reference to `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::c_str()
575 # /usr/bin/ld: ../../../../src/gallium/state_trackers/clover/.libs/libclover.a(libclllvm_la-invocation.o): relocation R_X86_64_PC32 against `_ZNKSt3__112bas
576 ic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv' can not be used when making a shared object; recompile with -fPIC
577 # /usr/bin/ld: final link failed: Bad value
579 --- src/gallium/state_trackers/clover/llvm/invocation.cpp.orig 2017-04-01 15:33:37 UTC
580 +++ src/gallium/state_trackers/clover/llvm/invocation.cpp
581 @@ -93,6 +93,8 @@ namespace {
585 + const char* cstr(const std::string& str) { return str.c_str(); }
587 std::unique_ptr<clang::CompilerInstance>
588 create_compiler_instance(const target &target,
589 const std::vector<std::string> &opts,
590 @@ -105,8 +107,8 @@ namespace {
591 // Parse the compiler options. A file name should be present at the end
592 // and must have the .cl extension in order for the CompilerInvocation
593 // class to recognize it as an OpenCL source file.
594 - const std::vector<const char *> copts =
595 - map(std::mem_fn(&std::string::c_str), opts);
596 + std::vector<const char *> copts(opts.size());
597 + std::transform(opts.begin(), opts.end(), copts.begin(), cstr);
599 if (!clang::CompilerInvocation::CreateFromArgs(
600 c->getInvocation(), copts.data(), copts.data() + copts.size(), diag))
603 [FILE:635:patches/patch-src_gallium_state__trackers_clover_llvm_metadata.hpp]
604 # Fix error: no matching constructor for initialization of 'std::vector<const ::llvm::MDNode *>'
606 --- src/gallium/state_trackers/clover/llvm/metadata.hpp.orig 2016-11-10 22:05:17 UTC
607 +++ src/gallium/state_trackers/clover/llvm/metadata.hpp
608 @@ -42,7 +42,7 @@ namespace clover {
609 get_kernel_nodes(const ::llvm::Module &mod) {
610 if (const ::llvm::NamedMDNode *n =
611 mod.getNamedMetadata("opencl.kernels"))
612 - return { n->op_begin(), n->op_end() };
613 + return { n->getOperand(0), n->getOperand(n->getNumOperands()) };
619 [FILE:1150:patches/patch-src_gallium_state__trackers_clover_util_range.hpp]
620 From b95533b981af9a6687b41418e7cc2a5652fc2bdb Mon Sep 17 00:00:00 2001
621 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
622 Date: Fri, 7 Mar 2014 15:16:08 +0100
623 Subject: [PATCH 3/3] Work around for clang 3.4 which fails to build Clover
626 https://bugs.freedesktop.org/show_bug.cgi?id=74098#c3
627 --- src/gallium/state_trackers/clover/util/range.hpp.orig 2016-11-10 22:05:17 UTC
628 +++ src/gallium/state_trackers/clover/util/range.hpp
629 @@ -362,6 +362,12 @@ namespace clover {
634 + template<typename T>
635 + using fixup_function_type =
636 + typename std::conditional<std::is_function<T>::value, T &, T>::type;
640 /// Create a range by transforming the contents of a number of
641 /// source ranges \a rs element-wise using a provided functor \a f.
642 @@ -369,7 +375,7 @@ namespace clover {
643 /// \sa adaptor_range.
645 template<typename F, typename... Rs>
646 - adaptor_range<F, Rs...>
647 + adaptor_range<detail::fixup_function_type<F>, Rs...>
648 map(F &&f, Rs &&... rs) {
649 return { std::forward<F>(f), std::forward<Rs>(rs)... };
653 [FILE:429:patches/patch-src_gallium_winsys_svga_drm_vmw__screen__ioctl.c]
654 --- src/gallium/winsys/svga/drm/vmw_screen_ioctl.c.orig 2016-11-10 22:05:17 UTC
655 +++ src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
656 @@ -70,6 +70,11 @@ vmw_region_size(struct vmw_region *regio
660 +#if defined(__DragonFly__) || defined(__FreeBSD__) || \
661 + defined(__NetBSD__) || defined(__OpenBSD__)
662 +#define ERESTART EINTR
666 vmw_ioctl_context_create(struct vmw_winsys_screen *vws)
670 [FILE:633:patches/patch-src_glx_glxext.c]
671 # work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627
673 --- src/glx/glxext.c.orig 2017-04-01 15:33:37 UTC
675 @@ -906,7 +906,11 @@ __glXInitialize(Display * dpy)
676 #if defined(GLX_USE_DRM)
677 if (glx_direct && glx_accel) {
678 #if defined(HAVE_DRI3)
679 +#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined (__DRM_NEXT__)
680 + if (getenv("LIBGL_DRI3_ENABLE") && !getenv("LIBGL_DRI3_DISABLE"))
682 if (!getenv("LIBGL_DRI3_DISABLE"))
684 dpyPriv->dri3Display = dri3_create_display(dpy);
685 #endif /* HAVE_DRI3 */
686 dpyPriv->dri2Display = dri2CreateDisplay(dpy);
689 [FILE:302:patches/patch-src_intel_tools_aubinator__error__decode.c]
690 # expose getline in FreeBSD's stdio.h
692 --- src/intel/tools/aubinator_error_decode.c.orig 2017-05-10 14:13:57 UTC
693 +++ src/intel/tools/aubinator_error_decode.c
699 +#define _WITH_GETLINE
706 [FILE:619:patches/patch-src_mapi_glapi_gen_gl__gentable.py]
707 --- src/mapi/glapi/gen/gl_gentable.py.orig 2017-05-15 12:05:59 UTC
708 +++ src/mapi/glapi/gen/gl_gentable.py
709 @@ -43,7 +43,7 @@ header = """/* GLXEXT is the define used
712 #if (defined(GLXEXT) && defined(HAVE_BACKTRACE)) \\
713 - || (!defined(GLXEXT) && defined(DEBUG) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__))
714 + || (!defined(GLXEXT) && defined(DEBUG) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__))
715 #define USE_BACKTRACE
720 [FILE:406:patches/patch-src_mesa_main_compiler.h]
721 --- src/mesa/main/compiler.h.orig 2017-05-10 14:13:57 UTC
722 +++ src/mesa/main/compiler.h
724 #if defined(__linux__)
725 #include <byteswap.h>
726 #define CPU_TO_LE32( x ) bswap_32( x )
727 +#elif defined(__FreeBSD__)
728 +#include <sys/endian.h>
729 +#define CPU_TO_LE32( x ) bswap32( x )
730 #elif defined(__APPLE__)
731 #include <CoreFoundation/CFByteOrder.h>
732 #define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x )
735 [FILE:377:patches/patch-src_util_build__id.c]
736 # Elf_ doesn't exist, use Elf32_ or Elf64_
738 --- src/util/build_id.c.orig 2017-05-10 14:13:58 UTC
739 +++ src/util/build_id.c
744 -#define ElfW(type) Elf_##type
746 +#define ElfW(type) Elf64_##type
748 +#define ElfW(type) Elf32_##type
752 #define ALIGN(val, align) (((val) + (align) - 1) & ~((align) - 1))
755 [FILE:343:patches/patch-src_util_u__endian.h]
756 --- src/util/u_endian.h.orig 2016-11-10 22:05:17 UTC
757 +++ src/util/u_endian.h
759 # define PIPE_ARCH_BIG_ENDIAN
762 -#elif defined(__OpenBSD__) || defined(__NetBSD__)
763 +#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
764 #include <sys/types.h>
765 #include <machine/endian.h>
769 [FILE:47:files/special.mk]
771 GALLIUM_DRIVERS+= SWRAST
774 [FILE:686:dragonfly/patch-src_intel_tools_aubinator.c]
775 # We don't have MAP_NORESERVE so use MAP_NOSYNC | MAP_NOCORE and
776 # hope for the best (this alloc is too big but it's only a test)
778 --- src/intel/tools/aubinator.c.orig 2017-09-04 17:20:31 UTC
779 +++ src/intel/tools/aubinator.c
780 @@ -1237,7 +1237,7 @@ int main(int argc, char *argv[])
781 /* mmap a terabyte for our gtt space. */
782 gtt_size = 1ull << 40;
783 gtt = mmap(NULL, gtt_size, PROT_READ | PROT_WRITE,
784 - MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0);
785 + MAP_PRIVATE | MAP_ANONYMOUS | MAP_NOSYNC | MAP_NOCORE, -1, 0);
786 if (gtt == MAP_FAILED) {
787 fprintf(stderr, "failed to alloc gtt space: %s\n", strerror(errno));
791 [FILE:686:freebsd/patch-src_intel_tools_aubinator.c]
792 # We don't have MAP_NORESERVE so use MAP_NOSYNC | MAP_NOCORE and
793 # hope for the best (this alloc is too big but it's only a test)
795 --- src/intel/tools/aubinator.c.orig 2017-05-10 14:13:57 UTC
796 +++ src/intel/tools/aubinator.c
797 @@ -1221,7 +1221,7 @@ int main(int argc, char *argv[])
798 /* mmap a terabyte for our gtt space. */
799 gtt_size = 1ull << 40;
800 gtt = mmap(NULL, gtt_size, PROT_READ | PROT_WRITE,
801 - MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0);
802 + MAP_PRIVATE | MAP_ANONYMOUS | MAP_NOSYNC | MAP_NOCORE, -1, 0);
803 if (gtt == MAP_FAILED) {
804 fprintf(stderr, "failed to alloc gtt space: %s\n", strerror(errno));