<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I am not an expert on all the changes needed for travis and packaging, but the swr changes look good.
<div class=""><br class="">
</div>
<div class="">Reviewed-by: George Kyriazis <<a href="mailto:george.kyriazis@intel.com" class="">george.kyriazis@intel.com</a>></div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Feb 13, 2018, at 4:42 PM, Andres Gomez <<a href="mailto:agomez@igalia.com" class="">agomez@igalia.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Since radv and radeonsi removed support for LLVM 3.9 the distcheck<br class="">
target got broken because SWR distribution needed 3.9.x.<br class="">
<br class="">
After checking with George Kyriazis, SWR is OK with moving to LLVM 4.0<br class="">
and above, which will solve this problem.<br class="">
<br class="">
Fixes: 3bf1e036e8a ("amd: remove support for LLVM 3.9")<br class="">
Cc: George Kyriazis <<a href="mailto:george.kyriazis@intel.com" class="">george.kyriazis@intel.com</a>><br class="">
Cc: Tim Rowley <<a href="mailto:timothy.o.rowley@intel.com" class="">timothy.o.rowley@intel.com</a>><br class="">
Cc: Emil Velikov <<a href="mailto:emil.velikov@collabora.com" class="">emil.velikov@collabora.com</a>><br class="">
Cc: Dylan Baker <<a href="mailto:dylan@pnwbakers.com" class="">dylan@pnwbakers.com</a>><br class="">
Cc: Eric Engestrom <<a href="mailto:eric.engestrom@imgtec.com" class="">eric.engestrom@imgtec.com</a>><br class="">
Signed-off-by: Andres Gomez <<a href="mailto:agomez@igalia.com" class="">agomez@igalia.com</a>><br class="">
---<br class="">
.travis.yml                         | 15 ++++++---------<br class="">
configure.ac                        |  6 +++---<br class="">
meson.build                         |  4 ++--<br class="">
src/gallium/drivers/swr/Makefile.am |  2 +-<br class="">
src/gallium/drivers/swr/SConscript  |  4 ++--<br class="">
5 files changed, 14 insertions(+), 17 deletions(-)<br class="">
<br class="">
diff --git a/.travis.yml b/.travis.yml<br class="">
index 3651d00169f..0ec08e5bff7 100644<br class="">
--- a/.travis.yml<br class="">
+++ b/.travis.yml<br class="">
@@ -90,12 +90,10 @@ matrix:<br class="">
        - BUILD=make<br class="">
        - MAKEFLAGS="-j4"<br class="">
        - MAKE_CHECK_COMMAND="true"<br class="">
-        - LLVM_VERSION=3.9<br class="">
+        - LLVM_VERSION=4.0<br class="">
        - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"<br class="">
        - OVERRIDE_CC="gcc-4.8"<br class="">
        - OVERRIDE_CXX="g++-4.8"<br class="">
-        # New binutils linker is required for llvm-3.9<br class="">
-        - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin<br class="">
        - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"<br class="">
        - DRI_DRIVERS=""<br class="">
        - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"<br class="">
@@ -105,13 +103,12 @@ matrix:<br class="">
      addons:<br class="">
        apt:<br class="">
          sources:<br class="">
-            - llvm-toolchain-trusty-3.9<br class="">
+            - llvm-toolchain-trusty-4.0<br class="">
          packages:<br class="">
-            - binutils-2.26<br class="">
            # LLVM packaging is broken and misses these dependencies<br class="">
            - libedit-dev<br class="">
            # From sources above<br class="">
-            - llvm-3.9-dev<br class="">
+            - llvm-4.0-dev<br class="">
            # Common<br class="">
            - xz-utils<br class="">
            - x11proto-xf86vidmode-dev<br class="">
@@ -400,7 +397,7 @@ matrix:<br class="">
        - BUILD=scons<br class="">
        - SCONSFLAGS="-j4"<br class="">
        - SCONS_TARGET="swr=1"<br class="">
-        - LLVM_VERSION=3.9<br class="">
+        - LLVM_VERSION=4.0<br class="">
        - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"<br class="">
        # Keep it symmetrical to the make build. There's no actual SWR, yet.<br class="">
        - SCONS_CHECK_COMMAND="true"<br class="">
@@ -409,13 +406,13 @@ matrix:<br class="">
      addons:<br class="">
        apt:<br class="">
          sources:<br class="">
-            - llvm-toolchain-trusty-3.9<br class="">
+            - llvm-toolchain-trusty-4.0<br class="">
          packages:<br class="">
            - scons<br class="">
            # LLVM packaging is broken and misses these dependencies<br class="">
            - libedit-dev<br class="">
            # From sources above<br class="">
-            - llvm-3.9-dev<br class="">
+            - llvm-4.0-dev<br class="">
            # Common<br class="">
            - xz-utils<br class="">
            - x11proto-xf86vidmode-dev<br class="">
diff --git a/configure.ac b/configure.ac<br class="">
index 8ed606c7694..7fff725954d 100644<br class="">
--- a/configure.ac<br class="">
+++ b/configure.ac<br class="">
@@ -105,7 +105,7 @@ LLVM_REQUIRED_OPENCL=3.9.0<br class="">
LLVM_REQUIRED_R600=3.9.0<br class="">
LLVM_REQUIRED_RADEONSI=4.0.0<br class="">
LLVM_REQUIRED_RADV=4.0.0<br class="">
-LLVM_REQUIRED_SWR=3.9.0<br class="">
+LLVM_REQUIRED_SWR=4.0.0<br class="">
<br class="">
dnl Check for progs<br class="">
AC_PROG_CPP<br class="">
@@ -2695,8 +2695,8 @@ if test -n "$with_gallium_drivers"; then<br class="">
fi<br class="">
<br class="">
# XXX: Keep in sync with LLVM_REQUIRED_SWR<br class="">
-AM_CONDITIONAL(SWR_INVALID_LLVM_VERSION, test "x$LLVM_VERSION" != x3.9.0 -a \<br class="">
-                                              "x$LLVM_VERSION" != x3.9.1)<br class="">
+AM_CONDITIONAL(SWR_INVALID_LLVM_VERSION, test "x$LLVM_VERSION" != x4.0.0 -a \<br class="">
+                                              "x$LLVM_VERSION" != x4.0.1)<br class="">
<br class="">
if test "x$enable_llvm" = "xyes" -a "$with_gallium_drivers"; then<br class="">
    llvm_require_version $LLVM_REQUIRED_GALLIUM "gallium"<br class="">
diff --git a/meson.build b/meson.build<br class="">
index b39e2f8ab96..96e44459465 100644<br class="">
--- a/meson.build<br class="">
+++ b/meson.build<br class="">
@@ -1011,9 +1011,9 @@ if with_gallium_opencl<br class="">
  # TODO: optional modules<br class="">
endif<br class="">
<br class="">
-if with_amd_vk or with_gallium_radeonsi<br class="">
+if with_amd_vk or with_gallium_radeonsi or with_gallium_swr<br class="">
  _llvm_version = '>= 4.0.0'<br class="">
-elif with_gallium_opencl or with_gallium_swr or with_gallium_r600<br class="">
+elif with_gallium_opencl or with_gallium_r600<br class="">
  _llvm_version = '>= 3.9.0'<br class="">
else<br class="">
  _llvm_version = '>= 3.3.0'<br class="">
diff --git a/src/gallium/drivers/swr/Makefile.am b/src/gallium/drivers/swr/Makefile.am<br class="">
index 2bc129429c6..3ee79f7be25 100644<br class="">
--- a/src/gallium/drivers/swr/Makefile.am<br class="">
+++ b/src/gallium/drivers/swr/Makefile.am<br class="">
@@ -352,7 +352,7 @@ include $(top_srcdir)/install-gallium-links.mk<br class="">
dist-hook:<br class="">
if SWR_INVALID_LLVM_VERSION<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>@echo "*******************************************************"<br class="">
-<span class="Apple-tab-span" style="white-space:pre"> </span>@echo "LLVM 3.9.0 or LLVM 3.9.1 required to create the tarball"<br class="">
+<span class="Apple-tab-span" style="white-space:pre"> </span>@echo "LLVM 4.0.0 or LLVM 4.0.1 required to create the tarball"<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>@echo "*******************************************************"<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>@test<br class="">
endif<br class="">
diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript<br class="">
index eca4830c249..7cfc66faeb7 100644<br class="">
--- a/src/gallium/drivers/swr/SConscript<br class="">
+++ b/src/gallium/drivers/swr/SConscript<br class="">
@@ -12,8 +12,8 @@ if not env['llvm']:<br class="">
    env['swr'] = False<br class="">
    Return()<br class="">
<br class="">
-if env['LLVM_VERSION'] < distutils.version.LooseVersion('3.9'):<br class="">
-    print("warning: swr requires LLVM >= 3.9: not building swr")<br class="">
+if env['LLVM_VERSION'] < distutils.version.LooseVersion('4.0'):<br class="">
+    print("warning: swr requires LLVM >= 4.0: not building swr")<br class="">
    env['swr'] = False<br class="">
    Return()<br class="">
<br class="">
-- <br class="">
2.15.1<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>