meson: fix HAVE_LLVM version define in meson build
authorMarc Dietrich <marvin24@gmx.de>
Wed, 24 Jan 2018 21:03:51 +0000 (22:03 +0100)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 24 Jan 2018 22:04:20 +0000 (14:04 -0800)
LLVM patch level is not included in HAVE_LLVM.

Fixes: e6418ab1566d ("meson: build "radv" vulkan driver for radeon hardware")
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan.c.baker@intel.com>
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
meson.build

index eb85a4a5938557b879721fa14528b3ec56a5b0fa..222b79d75ccc6474a881650ea6f473e09d31c82d 100644 (file)
@@ -1025,7 +1025,7 @@ if with_llvm
     _llvm_patch = _llvm_patch.split('s')[0]
   endif
   pre_args += [
-    '-DHAVE_LLVM=0x0@0@@1@@2@'.format(_llvm_version[0], _llvm_version[1], _llvm_patch),
+    '-DHAVE_LLVM=0x0@0@0@1@'.format(_llvm_version[0], _llvm_version[1]),
     '-DMESA_LLVM_VERSION_PATCH=@0@'.format(_llvm_patch),
   ]
 elif with_amd_vk or with_gallium_radeonsi or with_gallium_swr