From: Marek Olšák Date: Wed, 11 Sep 2019 14:56:07 +0000 (-0400) Subject: ac: replace HAVE_LLVM with LLVM_VERSION_MAJOR for atomic-optimizations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bb26562767ea2f623952d1a1db08bb9e70c1762;p=mesa.git ac: replace HAVE_LLVM with LLVM_VERSION_MAJOR for atomic-optimizations 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