[Mesa-dev] [PATCH] radeon: fix r600 builds when old version of llvm is present

Edward O'Callaghan funfunctor at folklore1984.net
Thu Feb 23 02:51:28 UTC 2017


Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

On 02/23/2017 01:37 PM, Timothy Arceri wrote:
> ---
>  src/gallium/drivers/radeon/r600_pipe_common.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
> index bae6d6f..9a514e3 100644
> --- a/src/gallium/drivers/radeon/r600_pipe_common.c
> +++ b/src/gallium/drivers/radeon/r600_pipe_common.c
> @@ -43,7 +43,7 @@
>  #define HAVE_LLVM 0
>  #endif
>  
> -#if HAVE_LLVM
> +#if HAVE_LLVM >= 0x0306
>  #include <llvm-c/TargetMachine.h>
>  #endif
>  
> @@ -793,7 +793,7 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen)
>  		if (rscreen->chip_class < SI) {
>  			res = asprintf(&timestamp_str, "%u",mesa_timestamp);
>  		}
> -#if HAVE_LLVM
> +#if HAVE_LLVM >= 0x0306
>  		else {
>  			uint32_t llvm_timestamp;
>  			if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo,
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170223/d0a44121/attachment.sig>


More information about the mesa-dev mailing list