summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-09-11 10:56:07 -0400
committerMarek Olšák <[email protected]>2019-09-11 10:56:46 -0400
commit1bb26562767ea2f623952d1a1db08bb9e70c1762 (patch)
treeb48e28a5ec4fb779cafa9e0f03692b2ea139573f /src/amd/common
parent32ea4c2c5ea461659a5b779dfe6d6b1334747ee6 (diff)
ac: replace HAVE_LLVM with LLVM_VERSION_MAJOR for atomic-optimizations
trivial
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_llvm_util.c2
1 files changed, 1 insertions, 1 deletions
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