ac: replace HAVE_LLVM with LLVM_VERSION_MAJOR for atomic-optimizations

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 11 September 2019 14:56 EDT

trivial

###

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

1bb26562767 ac: replace HAVE_LLVM with LLVM_VERSION_MAJOR for atomic-optimizations
src/amd/common/ac_llvm_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share