From 1bb26562767ea2f623952d1a1db08bb9e70c1762 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 11 Sep 2019 10:56:07 -0400 Subject: [PATCH] ac: replace HAVE_LLVM with LLVM_VERSION_MAJOR for atomic-optimizations trivial --- src/amd/common/ac_llvm_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c index deca5b98772..64942670b6c 100644 --- a/src/amd/common/ac_llvm_util.c +++ b/src/amd/common/ac_llvm_util.c @@ -63,7 +63,7 @@ static void ac_init_llvm_target() "mesa", "-simplifycfg-sink-common=false", "-global-isel-abort=2", -#if HAVE_LLVM >= 0x1000 +#if LLVM_VERSION_MAJOR >= 10 /* Atomic optimizations require LLVM 10.0 for gfx10 support. */ "-amdgpu-atomic-optimizations=true", #endif -- 2.30.2