[Mesa-dev] [PATCH v3 19/25] configure.ac: Reorder arguments in radeon_llvm_check

Tobias Droste tdroste at gmx.de
Tue Oct 11 23:02:46 UTC 2016


Use the same order as llvm_check_version_for.

Signed-off-by: Tobias Droste <tdroste at gmx.de>
---
 configure.ac | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9385583..f759a98 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1007,11 +1007,11 @@ radeon_llvm_check() {
         amdgpu_llvm_target_name='amdgpu'
     fi
 
-    llvm_check_version_for $2 $3 $4 $1
+    llvm_check_version_for $*
 
-    llvm_add_target $amdgpu_llvm_target_name $1
-    llvm_add_component "bitreader" $1
-    llvm_add_component "ipo" $1
+    llvm_add_target $amdgpu_llvm_target_name $4
+    llvm_add_component "bitreader" $4
+    llvm_add_component "ipo" $4
 
     NEED_RADEON_LLVM=yes
 
@@ -2496,7 +2496,7 @@ if test -n "$with_gallium_drivers"; then
             gallium_require_drm "Gallium R600"
             gallium_require_drm_loader
             if test "x$enable_opencl" = xyes; then
-                radeon_llvm_check "r600g" "3" "6" "0"
+                radeon_llvm_check "3" "6" "0" "r600"
                 gallium_require_llvm "r600"
                 LLVM_COMPONENTS="${LLVM_COMPONENTS} bitreader asmparser"
             fi
@@ -2507,7 +2507,7 @@ if test -n "$with_gallium_drivers"; then
             PKG_CHECK_MODULES([AMDGPU], [libdrm_amdgpu >= $LIBDRM_AMDGPU_REQUIRED])
             gallium_require_drm "radeonsi"
             gallium_require_drm_loader
-            radeon_llvm_check "radeonsi" "3" "6" "0"
+            radeon_llvm_check "3" "6" "0" "radeonsi"
             gallium_require_llvm "radeonsi"
             require_egl_drm "radeonsi"
             ;;
@@ -2576,7 +2576,7 @@ if test -n "$with_gallium_drivers"; then
 fi
 
 if test "x$HAVE_RADEON_VULKAN" = "xyes"; then
-    radeon_llvm_check "radv" "3" "9" "0"
+    radeon_llvm_check "3" "9" "0" "radv"
 fi
 
 dnl Set LLVM_LIBS - This is done after the driver configuration so
-- 
2.10.0



More information about the mesa-dev mailing list