Mesa (17.3): configure.ac: blacklist libdrm 2.4.90

Juan Antonio Suárez Romero jasuarez at kemper.freedesktop.org
Mon Mar 19 11:25:43 UTC 2018


Module: Mesa
Branch: 17.3
Commit: 820e63b49e7283865db7bbef36639e0607009561
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=820e63b49e7283865db7bbef36639e0607009561

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Mar 13 20:22:11 2018 -0400

configure.ac: blacklist libdrm 2.4.90

Cc: 18.0 17.3 17.2 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
(cherry picked from commit 5d0acff39e4274ab803c17855115b231efcbef80)

---

 configure.ac | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configure.ac b/configure.ac
index 7283cab73b..dea094ce05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2494,6 +2494,14 @@ if test -n "$with_gallium_drivers"; then
             HAVE_GALLIUM_RADEONSI=yes
             PKG_CHECK_MODULES([RADEON], [libdrm >= $LIBDRM_RADEON_REQUIRED libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
             PKG_CHECK_MODULES([AMDGPU], [libdrm >= $LIBDRM_AMDGPU_REQUIRED libdrm_amdgpu >= $LIBDRM_AMDGPU_REQUIRED])
+
+            # Blacklist libdrm_amdgpu 2.4.90 because it causes a crash in older
+            # radeonsi with pretty much any app.
+            libdrm_version=`pkg-config libdrm_amdgpu --modversion`
+            if test "x$libdrm_version" = x2.4.90; then
+                AC_MSG_ERROR([radeonsi can't use libdrm 2.4.90 due to a compatibility issue. Use a newer or older version.])
+            fi
+
             require_libdrm "radeonsi"
             radeon_llvm_check $LLVM_REQUIRED_RADEONSI "radeonsi"
             if test "x$enable_egl" = xyes; then




More information about the mesa-commit mailing list